xuqiang há 5 anos atrás
pai
commit
fa4b5eff5b
2 ficheiros alterados com 16 adições e 0 exclusões
  1. 8 0
      src/components/AllorderInfo.vue
  2. 8 0
      src/pages/orderdetails.vue

+ 8 - 0
src/components/AllorderInfo.vue

@@ -330,6 +330,14 @@ export default {
         },
         Apply() {
             this.navigateTo('/pages/Apply?id=' + this.id);
+            // if (this.status == 'PAYED') {
+            //     this.navigateTo('/pages/Apply?id=' + this.id);
+            // } else {
+            //     wx.showToast({
+            //         icon: 'none',
+            //         title: '卡包已开箱,无法申请退款'
+            //     });
+            // }
         },
         applydetails() {
             this.navigateTo('/pages/Applydetails?id=' + this.id);

+ 8 - 0
src/pages/orderdetails.vue

@@ -423,6 +423,14 @@ export default {
         },
         Apply() {
             this.navigateTo('/pages/Apply?id=' + this.orderInfoId);
+            // if (this.status.orderStatus == 'PAYED') {
+            //     this.navigateTo('/pages/Apply?id=' + this.orderInfoId);
+            // } else {
+            //     wx.showToast({
+            //         icon: 'none',
+            //         title: '卡包已开箱,无法申请退款'
+            //     });
+            // }
         },
         pay() {
             wx.showLoading({