فهرست منبع

支付宝支付

panhui 3 سال پیش
والد
کامیت
dafcf54b5d
1فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 14 0
      src/views/user/Wallet.vue

+ 14 - 0
src/views/user/Wallet.vue

@@ -324,6 +324,20 @@ export default {
                             this.$toast(e.error || '充值失败');
                         });
                     break;
+                case 'ALI':
+                    this.$toast.loading('充值中');
+                    this.$http
+                        .post('/payOrder/v2/recharge/ali', { amount: this.amount })
+                        .then(res => {
+                            this.openScheme(res);
+                            setTimeout(() => {
+                                this.$toast.clear();
+                            }, 1000);
+                        })
+                        .catch(e => {
+                            this.$toast(e.error || '充值失败');
+                        });
+                    break;
                 case 'SYXPAY':
                     this.$router.push({
                         name: 'bankPay',