Kaynağa Gözat

fix: bugFixed appointment status

wangyuan 2 yıl önce
ebeveyn
işleme
bb1a385bce

+ 3 - 1
pages/index/index.wxss

@@ -1,10 +1,12 @@
 /* pages/index/index.wxss */
 .index-container {
   width: 100%;
-  min-height: 100%;
+  height: 100%;
+  overflow-y: auto;
   background-color: #F7F7F7;
   position: relative;
   padding-top: 1rpx;
+  padding-bottom: 80rpx;
 }
 .header {
   width: 100%;

+ 1 - 0
pages/my/my.js

@@ -77,6 +77,7 @@ Page({
     if (!this.data.isFirstGetCount) {
       this.getAccountNmberFn()
       this.appointmentListFn()
+      this.getAppGetConfigImg()
     }
   },
 

+ 4 - 3
pages/myAppointment/myAppointment.wxml

@@ -14,10 +14,11 @@
     <view wx:for="{{appointmentList}}" wx:key="index" class="data-item">
       <view class="top date ittflex-jcb">
         <text class="top-date">{{item.appointmentTime}}</text>
-        <!-- status 1:申请 待服务 2.取消 3.完成 -->
+        <!-- status 1 待服务,2,3 已取消  4: 已完成 5.超时 -->
         <text class="status s-wait" wx:if="{{item.status == 1}}">待服务</text>
-        <text class="status s-done" wx:if="{{item.status == 3}}">已完成</text>
-        <text class="status s-cancel" wx:if="{{item.status == 2}}">已取消</text>
+        <text class="status s-done" wx:if="{{item.status == 4}}">已完成</text>
+        <text class="status s-cancel" wx:if="{{item.status == 2 || item.status == 3}}">已取消</text>
+        <text class="status s-done" wx:if="{{item.status == 5}}">超时</text>
       </view>
       <view class="center info">
         <view class="username info-item">