lex-xin hai 4 meses
pai
achega
ad8ff85a00

+ 13 - 8
miniprogram/pages/orders/order-result.ts

@@ -190,7 +190,7 @@ Page({
             },
             this
           );
-        }, 500);
+        }, 300);
       },
     });
   },
@@ -222,11 +222,12 @@ Page({
       console.log(data, 'data')
       if(data.code == 200) {
         wx.showToast({ title: '取消退款成功', icon: 'none' })
-        setTimeout(() => {
-          wx.navigateBack({
-            delta: 1
-          })
-        }, 1000);
+        // setTimeout(() => {
+        //   wx.navigateBack({
+        //     delta: 1
+        //   })
+        // }, 1000);
+        this.getDetail()
       } else {
         wx.showToast({ title: data.message, icon: 'none' })
       }
@@ -244,9 +245,13 @@ Page({
     })
   },
   onRefoundComfirm() {
-    wx.navigateBack({
-      delta: 1
+    this.setData({
+      refoundStatus: false
     })
+    // wx.navigateBack({
+    //   delta: 1
+    // })
+    this.getDetail()
   },
   onCopy(e: { currentTarget: any }) {
     wx.setClipboardData({

+ 1 - 1
miniprogram/pages/orders/order-result.wxml

@@ -48,7 +48,7 @@
         <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">为了顺利使用,请<text>长按下方二维码</text>进行激活</view>
         <view class="qrcode-text used" wx:else>登录「音乐数字课堂」APP,开启AI学练之旅~</view>
         <view class="qrcode-block">
-          <view class="left-text">待使用</view>
+          <view class="left-text">{{goodsInfo.wechatStatus == 'PAID' ? '待使用' : '已使用'}}</view>
           <view class="qrcode-wrap">
             <image src="{{canvasImg}}" class='my_draw_canvas' show-menu-by-longpress="true"></image>
           </view>

+ 6 - 4
miniprogram/pages/orders/orders.ts

@@ -44,7 +44,6 @@ Page({
     refoundStatus: false,
     goodsInfo: {}, // 选中的数据
   },
-
   /**
    * 生命周期函数--监听页面加载
    */
@@ -352,15 +351,18 @@ Page({
     })
   },
   onRefoundComfirm() {
+    const that = this
+    this.setData({
+      refoundStatus: false
+    })
     setTimeout(() => {
-      this.setData({
-        refoundStatus: false,
+      that.setData({
         page: 1,
         maxPage: 1,
         recordList: [],
       }, () => {
         this.getList()
       })
-    }, 15000);
+    }, 1500);
   },
 })