Authored by TaoHuang

fix

@@ -88,12 +88,20 @@ export default { @@ -88,12 +88,20 @@ export default {
88 this.hide(); 88 this.hide();
89 this.$emit('closeAction'); 89 this.$emit('closeAction');
90 }, 90 },
91 - pay() { 91 + delay(ns) {
  92 + return new Promise(resolve => {
  93 + setTimeout(resolve, ns);
  94 + });
  95 + },
  96 + async pay() {
92 this.$emit('confirmAction'); 97 this.$emit('confirmAction');
93 98
94 const toast = this.$createToast({ 99 const toast = this.$createToast({
95 - txt: '正在调起支付宝'  
96 - }).show(); 100 + txt: '正在调起支付宝',
  101 + mask: true
  102 + }).show();0
  103 +
  104 + await this.delay(1500);
97 105
98 this.payAction({ 106 this.payAction({
99 orderCode: this.orderCode 107 orderCode: this.orderCode
@@ -11,7 +11,7 @@ const ALIPAY_DOMAIN = 'https://openapi.alipay.com/gateway.do'; @@ -11,7 +11,7 @@ const ALIPAY_DOMAIN = 'https://openapi.alipay.com/gateway.do';
11 11
12 export default { 12 export default {
13 name: 'PayPage', 13 name: 'PayPage',
14 - props: ['orderCode', 'payParams', 'type'], 14 + props: ['orderCode', 'payParams', 'extra'],
15 mounted() { 15 mounted() {
16 if (this.payParams) { 16 if (this.payParams) {
17 const url = ALIPAY_DOMAIN + '?' + this.payParams; 17 const url = ALIPAY_DOMAIN + '?' + this.payParams;