Kaynağa Gözat

fix: bugFixed 2022-10-22-01

wangyuan 2 yıl önce
ebeveyn
işleme
1f7a39b793

+ 1 - 1
pages/buy/buy.wxss

@@ -65,7 +65,7 @@
   margin: 0 auto;
   min-height: 302rpx;
   display: flex;
-  justify-content: flex-start;
+  justify-content: center;
   flex-wrap: wrap;
 }
 .pay-item {

+ 5 - 1
pages/index/index.js

@@ -300,9 +300,13 @@ Page({
       currentPage: 1
     }).then(res => {
       if (res.data.vos.length !== 0) {
+        const response = res.data.vos || []
+        response.map(item => {
+          item.timeStr = item.appointmentTime.split(' ')[0]
+        })
         that.setData({
           showTopBar: true,
-          topBarObj: res.data.vos[0]
+          topBarObj: response[0]
         })
         app.globalData.hasAppointment = true
       } else {

+ 1 - 1
pages/index/index.wxml

@@ -4,7 +4,7 @@
     <view class="main-header">
       <view class="location">
         <view class="location-info ittflex-jcs">
-          您预约了{{topBarObj.appointmentTime}}的健康筛查
+          您预约了{{topBarObj.timeStr}}的健康筛查
         </view>
         <view class="scan">
           待体检

+ 1 - 1
pages/my/my.wxml

@@ -32,7 +32,7 @@
   <view class="bottom-actions">
     <view class="b-title">小课堂</view>
     <view class="images">
-      <image class="imageitem" wx:for="{{imageList}}" src="{{item.imgUrl}}"></image>
+      <image class="imageitem" wx:for="{{imageList}}" wx:key="index" src="{{item.imgUrl}}"></image>
     </view>
   </view>
 </view>

+ 1 - 4
pages/myRecord/myRecord.wxml

@@ -22,10 +22,7 @@
           <view class="center info">
             <view class="title info-item">
               <!-- 充值类型 充值类型 【1、购买套餐,2、实体卡  3、体验卡  4、活动赠送 -->
-              <text wx:if="{{item.chargeType == 1}}">购买套餐</text>
-              <text wx:if="{{item.chargeType == 2}}">实体卡</text>
-              <text wx:if="{{item.chargeType == 3}}">体验卡</text>
-              <text wx:if="{{item.chargeType == 4}}">活动赠送</text>
+              <text>{{item.typeName}}</text>
             </view>
             <view class="carno info-item">
               <text>卡编号:</text>

+ 1 - 1
pages/set/set.js

@@ -23,7 +23,7 @@ Page({
    */
   handleLinkus() {
     wx.showModal({
-      content: '感谢您选择ITT,如有疑问,欢迎您在公众号【ITT健康扫描】直接留言,我们的客服人员在9:00-18:00在线为您服务',
+      content: '感谢您选择ITT,如有疑问,欢迎您在公众号【ITT健康扫描】直接留言,我们的客服人员在9:00-18:00在线为您服务',
       confirmColor: '#333',
       showCancel: false
     })