Browse Source

任务提心样式修改

yangyongyong 4 years ago
parent
commit
f3114ace0b

+ 7 - 1
client/pages/customer/taskreminder/taskreminder.acss

@@ -129,7 +129,13 @@
 }
 .homecssname{
   color: #09AFFF;
-  float: left;
+  float: right;
+}
+.homecssnameone{
+  float: right;
+}
+.homecssnameimage{
+  margin-top: 10rpx;
 }
 .tasks-item-red{
   height: 102rpx;

+ 3 - 3
client/pages/customer/taskreminder/taskreminder.axml

@@ -5,12 +5,12 @@
       <view class="cell-title">
         <label>{{servantName}}</label>
         <view class="cell-right" onTap="changeotherhome" a:if="{{homecssname}}">
-          <image mode="scaleToFill" src="/image/switch-blue.png"/>
+          <image class="homecssnameimage" mode="scaleToFill" src="/image/switch-blue.png"/>
           <label class="homecssname">切换到其他保姆</label>
         </view>
         <view class="cell-right" onTap="changeotherhome" a:if="{{!homecssname}}">
-          <image mode="scaleToFill" src="/image/switch-grey.png"/>
-          <label>切换到其他保姆</label>
+          <image class="homecssnameimage" mode="scaleToFill" src="/image/switch-grey.png"/>
+          <label class="homecssnameone">切换到其他保姆</label>
         </view>
       </view>
       <view class="cell-list">

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

@@ -18,6 +18,8 @@ Page({
     taskList: [],
     selectDailyCost:0, //今日花销
     tomorrowtasksState:true,//明天任务状态
+    workDay: false,
+    isremindscose:false
   },
   onLoad() {
     //加载选中的时间
@@ -179,7 +181,8 @@ Page({
       }else{//今天是休息日
         this.setData({ 
             workDay: false,
-            isremindscose:false
+            isremindscose:false,
+            isreminds: true,
           });
       }
     }