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