|
|
@@ -1,18 +1,15 @@
|
|
|
<!--module/health/components/card-analysis/card-analysis-content.wxml-->
|
|
|
-<view class="card-wrapper tongue-container" wx:if="{{tongue.result}}"
|
|
|
-mark:type="tongue" bind:tap="preview">
|
|
|
-
|
|
|
-<view wx:if="{{isShowType}}">
|
|
|
-<view class="togue-title"> 舌象</view>
|
|
|
-</view>
|
|
|
-
|
|
|
+<view class="card-wrapper tongue-container" wx:if="{{tongue.result && i18n.analysis.__show__}}" mark:type="tongue" bind:tap="preview">
|
|
|
|
|
|
+ <view wx:if="{{isShowType}}">
|
|
|
+ <view class="togue-title">{{i18n.analysis.tongue}}</view>
|
|
|
+ </view>
|
|
|
<view class="card-title" wx:else>
|
|
|
<view class="tongue-right">
|
|
|
<view>
|
|
|
<image src="../../assets/icon/icon_tongue@2x.png" class="icon-title" />
|
|
|
</view>
|
|
|
- <view class="text-title">舌象分析</view>
|
|
|
+ <view class="text-title">{{i18n.analysis.tongue}}{{i18n.analysis._}}</view>
|
|
|
</view>
|
|
|
<block wx:if="{{exception.tongue === false && tongue.exception.length}}">
|
|
|
<view class="extra-warapper" slot="right-icon" mark:operation="exception-list">
|
|
|
@@ -27,40 +24,42 @@ mark:type="tongue" bind:tap="preview">
|
|
|
<view class="picture-container">
|
|
|
<view style="position: relative;">
|
|
|
<image src="../../assets/image/pic_tongue@2x.png" class="body-image" mode="widthFix" />
|
|
|
- <text class="tongue-label tongue-top">舌面</text>
|
|
|
- <text class="tongue-label tongue-bottom">舌下</text>
|
|
|
+ <text class="tongue-label tongue-top">{{i18n.analysis.tongue_1}}</text>
|
|
|
+ <text class="tongue-label tongue-bottom">{{i18n.analysis.tongue_2}}</text>
|
|
|
</view>
|
|
|
<view wx:if="{{tongue.cover.length}}" class="picture-wrapper">
|
|
|
<image wx:for="{{tongue.cover}}" wx:key="*this" src="{{item}}" mode="aspectFill" />
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view wx:if="{{simple.tongue === false}}" class="talbel-wrapper">
|
|
|
- <view class="tr">
|
|
|
- <view wx:for="{{tongue.table.columns}}" wx:key="*this" class="th">{{item}}</view>
|
|
|
- </view>
|
|
|
- <view wx:for="{{tongue.table.data}}" wx:key="0" wx:for-item="data" class="tr {{data.exception ? 'exception': ''}} {{data.invalid ? 'invalid' : ''}}">
|
|
|
- <view wx:for="{{tongue.table.columns}}" wx:key="*this" wx:for-index="index" class="td">
|
|
|
- <rich-text nodes="{{data[index]}}"></rich-text>
|
|
|
+ <block wx:if="{{i18n.analysis.__showContent__}}">
|
|
|
+ <view wx:if="{{simple.tongue === false}}" class="talbel-wrapper">
|
|
|
+ <view class="tr">
|
|
|
+ <view wx:for="{{tongue.table.columns}}" wx:key="*this" class="th">{{item}}</view>
|
|
|
+ </view>
|
|
|
+ <view wx:for="{{tongue.table.data}}" wx:key="0" wx:for-item="data" class="tr {{data.exception ? 'exception': ''}} {{data.invalid ? 'invalid' : ''}}">
|
|
|
+ <view wx:for="{{tongue.table.columns}}" wx:key="*this" wx:for-index="index" class="td">
|
|
|
+ <rich-text nodes="{{data[index]}}"></rich-text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view wx:else>  {{tongue.result}}</view>
|
|
|
+ <view wx:else>  {{tongue.result}}</view>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
-<exception wx:if="{{tongueException.length}}" dataset="{{tongueException}}"></exception>
|
|
|
+<exception wx:if="{{tongueException.length && i18n.analysis.__showException__}}" dataset="{{tongueException}}"></exception>
|
|
|
|
|
|
-<view class="card-wrapper tongue-container" wx:if="{{face.result}}" mark:type="face" bind:tap="preview">
|
|
|
-<view wx:if="{{isShowType}}">
|
|
|
-<view class="togue-title"> 面象</view>
|
|
|
-</view>
|
|
|
+<view class="card-wrapper tongue-container" wx:if="{{face.result && i18n.analysis.__show__}}" mark:type="face" bind:tap="preview">
|
|
|
+ <view wx:if="{{isShowType}}">
|
|
|
+ <view class="togue-title">{{i18n.analysis.face}}</view>
|
|
|
+ </view>
|
|
|
<view class="card-title" wx:else>
|
|
|
<view class="tongue-right">
|
|
|
<view>
|
|
|
<image src="../../assets/icon/icon_face@2x.png" class="icon-title" />
|
|
|
</view>
|
|
|
- <view class="text-title">面象分析</view>
|
|
|
+ <view class="text-title">{{i18n.analysis.face}}{{i18n.analysis._}}</view>
|
|
|
</view>
|
|
|
<block wx:if="{{exception.face === false && face.exception.length}}">
|
|
|
<view class="extra-warapper" slot="right-icon" mark:operation="exception-group">
|
|
|
@@ -70,8 +69,7 @@ mark:type="tongue" bind:tap="preview">
|
|
|
</block>
|
|
|
</view>
|
|
|
|
|
|
- <view class="card-body constitution-container">
|
|
|
-
|
|
|
+ <view wx:if="{{i18n.analysis.__showContent__}}" class="card-body constitution-container">
|
|
|
<view wx:if="{{simple.face === false}}" class="talbel-wrapper">
|
|
|
<view class="tr">
|
|
|
<view wx:for="{{face.table.columns}}" wx:key="*this" class="th">{{item}}</view>
|
|
|
@@ -90,4 +88,4 @@ mark:type="tongue" bind:tap="preview">
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
-<exception wx:if="{{faceException.length}}" dataset="{{faceException}}"></exception>
|
|
|
+<exception wx:if="{{faceException.length && i18n.analysis.__showException__}}" dataset="{{faceException}}"></exception>
|