|
|
@@ -187,18 +187,19 @@ export default {
|
|
|
gas: 0,
|
|
|
id: 0,
|
|
|
status: '',
|
|
|
+ payUrl: '',
|
|
|
payUrl2: ''
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
// 微信
|
|
|
- payUrl() {
|
|
|
- return resolveUrl(
|
|
|
- this.$baseUrl,
|
|
|
- 'https://nfttest.9space.vip/wx/redirect?redirectUrl=https://nfttest.9space.vip/payOrder/weixin_pc?id=' +
|
|
|
- this.id
|
|
|
- );
|
|
|
- },
|
|
|
+ // payUrl() {
|
|
|
+ // return resolveUrl(
|
|
|
+ // this.$baseUrl,
|
|
|
+ // 'https://nfttest.9space.vip/wx/redirect?redirectUrl=https://nfttest.9space.vip/payOrder/weixin?id=' +
|
|
|
+ // this.id
|
|
|
+ // );
|
|
|
+ // },
|
|
|
money() {
|
|
|
let money = 0;
|
|
|
if (this.info.price && !this.couponInfo) {
|
|
|
@@ -360,6 +361,15 @@ export default {
|
|
|
this.$router.replace('/collectionorder');
|
|
|
}, 1000);
|
|
|
}
|
|
|
+ if (this.payMethods === 'WEIXIN') {
|
|
|
+ this.$http
|
|
|
+ .get('/payOrder/weixin', {
|
|
|
+ id: res.id
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ this.payUrl = res.wx_h5_pay_url;
|
|
|
+ });
|
|
|
+ }
|
|
|
if (this.payMethods === 'ALIPAY') {
|
|
|
this.$http
|
|
|
.get('/payOrder/alipay_qr', {
|