浏览代码

fix: bugFixed 2022-10-22-05

wangyuan 2 年之前
父节点
当前提交
a3a362b256

+ 0 - 1
pages/appointment/appointment.js

@@ -244,7 +244,6 @@ Page({
     }
   },
   handleTime (e) {
-    console.log(e);
     var timeActiveIndex = e.currentTarget.dataset.time
     this.setData({
       timeActive: timeActiveIndex

+ 3 - 3
pages/my/my.wxss

@@ -179,20 +179,20 @@
   margin: 20rpx auto 0;
 }
 .b-title {
-  width: 690;
+  width: 690rpx;
   font-size: 30rpx;
   font-weight: bold;
   color: #333333;
   margin-bottom: 20rpx;
 }
 .images {
-  width: 100%;
+  width: 690rpx;
   height: auto;
   border-radius: 20rpx;
 }
 
 .imageitem {
-  width: 100%;
+  width: 690rpx;
   border-radius: 20rpx;
   margin-bottom: 20rpx;
 }

+ 5 - 1
pages/myAppointment/myAppointment.js

@@ -48,9 +48,13 @@ Page({
     })
     appointmentList(data).then(res => {
       wx.hideLoading()
+      const response = res.data.vos || []
+      response.map(item => {
+        item.appointmentTimeStr = item.appointmentTime.split(' ')[0]
+      })
       this.setData({
         hasNext: res.data.hasNext,
-        appointmentList: res.data.vos
+        appointmentList: response
       })
     }).catch(e => {
       wx.hideLoading()

+ 5 - 1
pages/myAppointment/myAppointment.wxml

@@ -13,7 +13,7 @@
   <block wx:else>
     <view wx:for="{{appointmentList}}" wx:key="index" class="data-item">
       <view class="top date ittflex-jcb">
-        <text class="top-date">{{item.appointmentTime}}</text>
+        <text class="top-date">{{item.appointmentTimeStr}}</text>
         <!-- 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 == 4}}">已完成</text>
@@ -29,6 +29,10 @@
           <text>下单时间:</text>
           <text>{{item.addTime}}</text>
         </view>
+        <view class="order-time info-item" wx:if="{{item.status == 4}}">
+          <text>完成时间:</text>
+          <text>{{item.finishTime}}</text>
+        </view>
       </view>
       <view class="bototm actions" wx:if="{{item.status == 1}}">
         <view class="submit-btn itt-btn ittflex" bindtap="handleScanCode">去核销</view>

+ 0 - 1
pages/set/set.wxml

@@ -16,5 +16,4 @@
     <view class="label">联系我们</view>
     <van-icon style="margin-right: 30rpx;" name="arrow" color="#999"/>
   </view>
-  <view class="out-button itt-btn" bindtap="handleLogout">退出登录</view>
 </view>