cc12458 hace 3 meses
padre
commit
34cfb6078c

+ 7 - 2
miniprogram/module/chats/components/message-follow/message-follow.ts

@@ -1,6 +1,7 @@
 // module/chats/components/message-text/message-text.ts
+import I18nBehavior from "../../../../i18n/behavior";
 Component({
-
+  behaviors: [I18nBehavior],
   /**
    * 组件的属性列表
    */
@@ -13,7 +14,11 @@ Component({
    * 组件的初始数据
    */
   data: {
-
+    i18n: {
+      report: { title: '评估' },
+      analysis: { title: '结果' },
+      follow: { tips: '操作完成' },
+    },
   },
 
   /**

+ 3 - 3
miniprogram/module/chats/components/message-follow/message-follow.wxml

@@ -5,7 +5,7 @@
   </view>
 
   <view class="chat-card__content">
-   <t-cell t-class="cell-border-gradient" title="随访完成,感谢您的配合,祝您早日恢复!"></t-cell>
+   <t-cell t-class="cell-border-gradient" title="{{i18n.follow.tips}}"></t-cell>
   </view>
 </view>
 
@@ -14,11 +14,11 @@
     <image src="../../assets/robot.png" mode="aspectFill" />
   </view>
   <view class="chat-card__content">
-    <t-cell t-class="cell-border-gradient" title="查看舌面象分析报告">
+    <t-cell t-class="cell-border-gradient" title="查看{{i18n.analysis.title}}">
     </t-cell>
     <view class="chat-card__handle">
       <view class="item health-report" bind:tap="seeReport">
-      查看健康分析报告
+        查看{{i18n.report.title}}
         <image src="../../assets/button-report.bg.png" mode="aspectFit" />
       </view>
     </view>

+ 0 - 1
miniprogram/module/health/components/card-analysis/card-analysis-content.ts

@@ -48,7 +48,6 @@ Component({
       'analysis.face_1',
       'analysis.__show__',
       'analysis.__showContent__',
-      'analysis.__showException__',
     ],
   },
   methods: {

+ 2 - 2
miniprogram/module/health/components/card-analysis/card-analysis-content.wxml

@@ -48,7 +48,7 @@
   </view>
 </view>
 
-<exception wx:if="{{tongueException.length && i18n.analysis.__showException__}}" dataset="{{tongueException}}"></exception>
+<exception wx:if="{{tongueException.length}}" dataset="{{tongueException}}"></exception>
 
 <view class="card-wrapper tongue-container" wx:if="{{face.result && i18n.analysis.__show__}}" mark:type="face" bind:tap="preview">
   <view wx:if="{{isShowType}}">
@@ -88,4 +88,4 @@
   </view>
 </view>
 
-<exception wx:if="{{faceException.length && i18n.analysis.__showException__}}" dataset="{{faceException}}"></exception>
+<exception wx:if="{{faceException.length}}" dataset="{{faceException}}"></exception>

+ 10 - 2
miniprogram/module/health/pages/report/report.wxml

@@ -1,4 +1,12 @@
 <!--module/health/pages/report/report.wxml-->
+<wxs module="tool">
+module.exports = {
+  replace : function (value) {
+    if (typeof value === 'string') return value.replace(':', '').replace(':', '');
+    return ''
+  },
+}
+</wxs>
 <view class="report-container">
   <t-navbar title="{{i18n.report.title}}" left-arrow bind:fail="toHomePage" />
 
@@ -67,7 +75,7 @@
           <view> 
             <image src="../../assets/icon/icon_zhengsu@2x.png" class="icon-title" />
           </view>
-          <view class="text-title">{{i18n.common.zy}}{{i18n.report.resultTable[5]}}</view>
+          <view class="text-title">{{i18n.common.zy}}{{tool.replace(i18n.health.statusTable[5])}}</view>
         </view>
         <view class="rows" wx:for="{{dataset.factorItems}}" wx:key="*this">
           <view class="primary">{{item.factorItemName}}</view>
@@ -81,7 +89,7 @@
           <view>
             <image src="../../assets/icon/icon_zhengxing@2x.png" class="icon-title" />
           </view>
-          <view class="text-title">{{i18n.common.zy}}{{i18n.report.resultTable[6]}}</view>
+          <view class="text-title">{{i18n.common.zy}}{{tool.replace(i18n.health.statusTable[6])}}</view>
         </view>
         <view class="rows" wx:for="{{dataset.diagnoseSyndromes}}" wx:key="*this">
           <view class="primary">{{item.diagnoseSyndromeName}}</view>