...
|
...
|
@@ -8,7 +8,7 @@ |
|
|
<slot name="price">
|
|
|
<div class="price-info">
|
|
|
<div class="desc">{{desc}}</div>
|
|
|
<div class="price">{{price }}</div>
|
|
|
<div class="price">¥{{price }}</div>
|
|
|
</div>
|
|
|
</slot>
|
|
|
<slot name="content">
|
...
|
...
|
@@ -128,39 +128,39 @@ export default { |
|
|
this.hide();
|
|
|
this.$emit('paySuccess');
|
|
|
|
|
|
// this.$router.replace({
|
|
|
// name: 'OrderPay',
|
|
|
// query: {
|
|
|
// orderCode: this.orderCode,
|
|
|
// payParams: result.data.payParams,
|
|
|
// extra: this.extra
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
if (this.$xianyu.isAliApp) {
|
|
|
const page = JSON.parse(this.extra || '{}');
|
|
|
this.$router.replace({
|
|
|
name: 'OrderPay',
|
|
|
query: {
|
|
|
orderCode: this.orderCode,
|
|
|
payParams: result.data.payParams,
|
|
|
extra: this.extra
|
|
|
}
|
|
|
});
|
|
|
|
|
|
this.$xianyu.setXianyuPay({
|
|
|
payURL: result.data.payParams
|
|
|
}, () => {
|
|
|
if (page.forward) {
|
|
|
this.$router.replace(page.forward);
|
|
|
}
|
|
|
}, () => {
|
|
|
if (page.back) {
|
|
|
this.$router.replace(page.back);
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
this.$router.replace({
|
|
|
name: 'OrderPay',
|
|
|
query: {
|
|
|
orderCode: this.orderCode,
|
|
|
payParams: result.data.payParams,
|
|
|
extra: this.extra
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
// if (this.$xianyu.isAliApp) {
|
|
|
// const page = JSON.parse(this.extra || '{}');
|
|
|
//
|
|
|
// this.$xianyu.setXianyuPay({
|
|
|
// payURL: result.data.payParams
|
|
|
// }, () => {
|
|
|
// if (page.forward) {
|
|
|
// this.$router.replace(page.forward);
|
|
|
// }
|
|
|
// }, () => {
|
|
|
// if (page.back) {
|
|
|
// this.$router.replace(page.back);
|
|
|
// }
|
|
|
// });
|
|
|
// } else {
|
|
|
// this.$router.replace({
|
|
|
// name: 'OrderPay',
|
|
|
// query: {
|
|
|
// orderCode: this.orderCode,
|
|
|
// payParams: result.data.payParams,
|
|
|
// extra: this.extra
|
|
|
// }
|
|
|
// });
|
|
|
// }
|
|
|
}
|
|
|
}
|
|
|
};
|
...
|
...
|
|