sunlupeng 8 місяців тому
батько
коміт
e998942704
1 змінених файлів з 25 додано та 25 видалено
  1. 25 25
      src/views/HomeView/RedeemView.vue

+ 25 - 25
src/views/HomeView/RedeemView.vue

@@ -991,32 +991,32 @@ export default {
             }
 
             if (this.activeName == "goodsNotice") {
-                // start(params)
-                //     .then((response) => {
-                //         console.log(response.data.data);
-                //         if(response.data.data){
-                //             this.recharge = true;
-                //             this.$nextTick(function () {
-                //                 let data = response.data.data;
-                //                 this.qrcode(data.payUrl);    // 例如:data.payUrl 的值为 "weixin://wxpay/bizpayurl?pr=......",根据这个值生成相对应的微信支付二维码
-                //                 this.timer = setInterval(() => {    // 通过定时器每间隔一会去请求查询微信支付状态(具体参数根据项目需要而定)
-                //                     this.handleQueryWxPayStatus(data.orderNo);
-                //                 }, 1000);
-                //             })
-                //         }else{
-                //             this.$store.dispatch("GetUserInfo");
-                //             this.dialogMsgVisible = true;
-                //         }
-                //     })
-                //     .catch(() => { });
+                start(params)
+                    .then((response) => {
+                        console.log(response.data.data);
+                        if(response.data.data){
+                            this.recharge = true;
+                            this.$nextTick(function () {
+                                let data = response.data.data;
+                                this.qrcode(data.payUrl);    // 例如:data.payUrl 的值为 "weixin://wxpay/bizpayurl?pr=......",根据这个值生成相对应的微信支付二维码
+                                this.timer = setInterval(() => {    // 通过定时器每间隔一会去请求查询微信支付状态(具体参数根据项目需要而定)
+                                    this.handleQueryWxPayStatus(data.orderNo);
+                                }, 1000);
+                            })
+                        }else{
+                            this.$store.dispatch("GetUserInfo");
+                            this.dialogMsgVisible = true;
+                        }
+                    })
+                    .catch(() => { });
             } else {
-                // kill(params)
-                //     .then((response) => {
-                //         console.log(response.data.data);
-                //         this.$store.dispatch("GetUserInfo");
-                //         this.dialogMsgVisible = true;
-                //     })
-                //     .catch(() => { });
+                kill(params)
+                    .then((response) => {
+                        console.log(response.data.data);
+                        this.$store.dispatch("GetUserInfo");
+                        this.dialogMsgVisible = true;
+                    })
+                    .catch(() => { });
             }
         },
         handleClickExchange: debounce(