MrShi
22 小时以前 47d56a8b0f22fb15a46b69dfd46fac23560ad2cd
mini-program/pagesA/pages/order/order.vue
@@ -300,6 +300,9 @@
                        } else {
                           uni.showToast({ title: '订单取消支付', icon: 'none' })
                        }
                     },
                     fail(err) {
                        console.log(err)
                     }
                  })
               }
@@ -316,10 +319,13 @@
            if(this.userType == 1 || this.currentOrder==null || this.currentOrder.id == null) {
               return
            }
            if (this.loading) return;
            this.loading = true
            var that =this
            let res = await this.$u.api.affirmOrder({ orderId: this.currentOrder.id  });
            if (res.code === 200 ) {
            this.loading = false
               that.showDone = false
            if (res.code === 200 ) {
               that.getFirstPageData()
               //修改订单状态
               // this.dataList.forEach(item=>{
@@ -340,10 +346,13 @@
            if(this.userType == 1 || this.currentOrder==null || this.currentOrder.id == null) {
               return
            }
            if (this.loading) return;
            this.loading = true
               var that =this
            let res = await that.$u.api.cancelOrder({ orderId: this.currentOrder.id  });
            if (res.code === 200 ) {
            this.loading = false
               this.showCancel = false
            if (res.code === 200 ) {
               //修改订单状态
               this.dataList.forEach(item=>{
                  if(item.id==this.currentOrder.id){
@@ -363,10 +372,13 @@
            if(this.userType == 1 || this.currentOrder==null || this.currentOrder.id == null) {
               return
            }
            if (this.loading) return;
            this.loading = true
            var that =this
            let res = await that.$u.api.delOrder({ orderId: this.currentOrder.id  });
            if (res.code === 200 ) {
            this.loading = false
               this.showDelete = false
            if (res.code === 200 ) {
               //修改订单状态
               /* var tindex = -1;
               this.dataList.forEach((item,index)=>{