litian
2024-03-29 4b5f1f7ed3460df9465e5071a59b8105cbc9146e
packagePersonal/pages/myOrder/index.js
@@ -155,7 +155,7 @@
          })
        } else {
          this.setData({
            list: false,
            list: [],
            skeletonLoding: false,
            loading: false
          })
@@ -222,6 +222,7 @@
  },
  onCancel(e) {
    let that = this;
    let {
      orderNum
    } = e.currentTarget.dataset
@@ -232,13 +233,16 @@
        if (res.confirm) {
          app.MG.store.cancelOrder({
            orderNum: orderNum
          }).then(() => {
            wx.showToast({
              title: "订单已取消",
              icon: 'success',
              duration: 1000
            })
            this.getDataList(false)
          }).then((res) => {
            if (res) {
              wx.showToast({
                title: "订单已取消",
                icon: 'success',
                duration: 1000
              })
              that.getDataList(false)
            }
          })
        } else if (res.cancel) {
          console.log('用户点击了取消')