|
@@ -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)
|