|
|
@@ -294,29 +294,29 @@ export default {
|
|
|
if (this.couponInfo) {
|
|
|
url += '&couponId=' + this.couponInfo.id;
|
|
|
}
|
|
|
- // this.$http
|
|
|
- // .post(url)
|
|
|
- // .then(res => {
|
|
|
- // // console.log(res)
|
|
|
- // if (this.money) {
|
|
|
- // // 没有代金券
|
|
|
- // this.initTime(res.id, res.createdAt);
|
|
|
- // this.status = res.status;
|
|
|
- // this.id = res.id;
|
|
|
- // this.payWatch();
|
|
|
- // } else {
|
|
|
- // // 有代金券
|
|
|
- // this.$message.success('支付成功');
|
|
|
- // setTimeout(() => {
|
|
|
- // this.$router.replace('/collectionorder');
|
|
|
- // }, 1000);
|
|
|
- // }
|
|
|
- // })
|
|
|
- // .catch(e => {
|
|
|
- // if (e) {
|
|
|
- // this.$message.error(e.error);
|
|
|
- // }
|
|
|
- // });
|
|
|
+ this.$http
|
|
|
+ .post(url)
|
|
|
+ .then(res => {
|
|
|
+ // console.log(res)
|
|
|
+ if (this.money) {
|
|
|
+ // 没有代金券
|
|
|
+ this.initTime(res.id, res.createdAt);
|
|
|
+ this.status = res.status;
|
|
|
+ this.id = res.id;
|
|
|
+ this.payWatch();
|
|
|
+ } else {
|
|
|
+ // 有代金券
|
|
|
+ this.$message.success('支付成功');
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$router.replace('/collectionorder');
|
|
|
+ }, 1000);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ if (e) {
|
|
|
+ this.$message.error(e.error);
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
init(info) {
|
|
|
this.status = 'Unpaid';
|