浏览代码

雇主端任务提醒

gaoyognxing 4 年之前
父节点
当前提交
c11b9d2917

+ 4 - 9
client/pages/customer/taskreminder/taskreminder.axml

@@ -1,24 +1,19 @@
+<import-sjs from="../../../util/formateFuc.sjs" name="formate"></import-sjs>
 <view class="tasks-page">
 <!---客户信息-->
     <view class="tasks-head">
       <view class="cell-title">
-        <label>王阿姨</label>
+        <label>{{servantName}}</label>
         <view class="cell-right">
           <image mode="scaleToFill" src="/image/switch-grey.png"/>
           <label>切换到其他家庭</label>
         </view>
       </view>
       <view class="cell-list">
-        <label>周一▪</label>
-        <label>周二▪</label>
-        <label>周三▪</label>
-        <label>周四▪</label>
-        <label>周五▪</label>
-        <label>周六▪</label>
-        <label>周日</label>
+        {{weekday}}
       </view>
         <view class="cell-type">
-          保姆工种:<label>钟点工</label>
+          保姆工种:<label>{{formate.serviceType(servantTypeValue)}}</label>
         </view>
       </view>
       <!---一周任务查看器-->

+ 3 - 4
client/pages/customer/taskreminder/taskreminder.js

@@ -1,4 +1,5 @@
 var util = require('../../../util/util.js')
+var app = getApp();
 Page({
   data: {
     showchangetime:false,
@@ -30,13 +31,11 @@ Page({
       }
     }
     this.setData({
-      datelist: data
-    });
-    this.setData({
+      datelist: data,
       servantName: app.globalData.relationInfo.servantName,
       weekday: app.globalData.relationInfo.servantTaskPeriod.workDay,
       servantTypeValue: app.globalData.relationInfo.servantType
-    })
+    });
     //处理时间完成
   },
   showcancel(){