Sfoglia il codice sorgente

8/23合并前上传

Foystor 3 anni fa
parent
commit
444cab0bed
1 ha cambiato i file con 18 aggiunte e 6 eliminazioni
  1. 18 6
      src/pages/coupons/index.vue

+ 18 - 6
src/pages/coupons/index.vue

@@ -315,17 +315,29 @@ export default {
         if ($res.code == 0) {
           Toast.success({
             message: $res.errmsg,
+            duration:800,
+            onClose() {
+              $this.get_rec_coupon_list()
+              $this.get_coupon_list()
+              $this.get_overdue_list()
+            }
           })
-          $this.get_rec_coupon_list()
-          $this.get_coupon_list()
-          $this.get_overdue_list()
+          // $this.get_rec_coupon_list()
+          // $this.get_coupon_list()
+          // $this.get_overdue_list()
         } else {
           Toast.fail({
             message: $res.errmsg,
+            duration:800,
+            onClose() {
+              $this.get_rec_coupon_list()
+              $this.get_coupon_list()
+              $this.get_overdue_list()
+            }
           })
-          $this.get_rec_coupon_list()
-          $this.get_coupon_list()
-          $this.get_overdue_list()
+          // $this.get_rec_coupon_list()
+          // $this.get_coupon_list()
+          // $this.get_overdue_list()
         }
       }).catch((err)=>{
         console.log("错误",err)