Browse Source

订单取消的时候 刷新列表

黄琪勇 5 months ago
parent
commit
90e5a8df99
2 changed files with 2 additions and 1 deletions
  1. 1 1
      miniprogram/pages/orders/order-result.ts
  2. 1 0
      miniprogram/pages/orders/orders.ts

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

@@ -317,7 +317,7 @@ Page({
         wx.showToast({ title: '支付成功', icon: 'success' });
         setTimeout(() => {
           that.getDetail()
-        }, 1000)
+        }, 1500)
       },
       fail(ressonInfo) {
         console.log('支付失败', ressonInfo)

+ 1 - 0
miniprogram/pages/orders/orders.ts

@@ -238,6 +238,7 @@ Page({
         this.onExecutePay(paymentConfig, paymentType, orderNo)
       } else {
         this.onPayError()
+        this.getList()
       }
     } catch {
       wx.hideLoading()