Authored by TaoHuang

fix

... ... @@ -88,12 +88,20 @@ export default {
this.hide();
this.$emit('closeAction');
},
pay() {
delay(ns) {
return new Promise(resolve => {
setTimeout(resolve, ns);
});
},
async pay() {
this.$emit('confirmAction');
const toast = this.$createToast({
txt: '正在调起支付宝'
}).show();
txt: '正在调起支付宝',
mask: true
}).show();0
await this.delay(1500);
this.payAction({
orderCode: this.orderCode
... ...
... ... @@ -11,7 +11,7 @@ const ALIPAY_DOMAIN = 'https://openapi.alipay.com/gateway.do';
export default {
name: 'PayPage',
props: ['orderCode', 'payParams', 'type'],
props: ['orderCode', 'payParams', 'extra'],
mounted() {
if (this.payParams) {
const url = ALIPAY_DOMAIN + '?' + this.payParams;
... ...