瀏覽代碼

快捷绑卡

xiongzhu 3 年之前
父節點
當前提交
dce54a01d7

+ 36 - 0
src/components/auction/deposit.vue

@@ -444,6 +444,24 @@ export default {
                             .replace('www.raex.vip', 'jump.raex.vip')
                             .replace('test.raex.vip', 'jumptest.raex.vip')
                             .replace(/http:\/\/192\.168.*?\//, 'https://jumptest.raex.vip/');
+                    } else if (this.payType === 'QUICK_BIND') {
+                        this.$http
+                            .get('/payOrder/v2/auction/sandQuickBind?id=' + this.orderId)
+                            .then(res => {
+                                document.location.href = res;
+                                this.getOrder(true);
+                            })
+                            .catch(e => {
+                                this.$toast.clear();
+                                this.$dialog
+                                    .alert({
+                                        title: '提示',
+                                        message: e.error || '支付失败'
+                                    })
+                                    .then(res => {
+                                        this.$router.go(-2);
+                                    });
+                            });
                     } else if (this.payType === 'BALANCE') {
                         if (!this.tradeCode) {
                             this.$toast.clear();
@@ -586,6 +604,24 @@ export default {
                                 .replace('www.raex.vip', 'jump.raex.vip')
                                 .replace('test.raex.vip', 'jumptest.raex.vip')
                                 .replace(/http:\/\/192\.168.*?\//, 'https://jumptest.raex.vip/');
+                        } else if (this.payType === 'QUICK_BIND') {
+                            this.$http
+                                .get('/payOrder/v2/auction/sandQuickBind?id=' + this.orderId)
+                                .then(res => {
+                                    document.location.href = res;
+                                    this.getOrder(true);
+                                })
+                                .catch(e => {
+                                    this.$toast.clear();
+                                    this.$dialog
+                                        .alert({
+                                            title: '提示',
+                                            message: e.error || '支付失败'
+                                        })
+                                        .then(res => {
+                                            this.$router.go(-2);
+                                        });
+                                });
                         }
                     });
                 } else {

+ 18 - 0
src/views/Givesubmit.vue

@@ -347,6 +347,24 @@ export default {
                         .replace('www.raex.vip', 'jump.raex.vip')
                         .replace('test.raex.vip', 'jumptest.raex.vip')
                         .replace(/http:\/\/192\.168.*?\//, 'https://jumptest.raex.vip/');
+                } else if (this.payType === 'QUICK_BIND') {
+                    this.$http
+                        .get('/payOrder/v2/gift/sandQuickBind?id=' + this.orderId)
+                        .then(res => {
+                            document.location.href = res;
+                            this.getOrder(true);
+                        })
+                        .catch(e => {
+                            this.$toast.clear();
+                            this.$dialog
+                                .alert({
+                                    title: '提示',
+                                    message: e.error || '支付失败'
+                                })
+                                .then(res => {
+                                    this.$router.go(-2);
+                                });
+                        });
                 } else if (this.payType === 'BALANCE') {
                     this.$toast.loading({
                         message: '支付中',

+ 1 - 1
src/views/Store.vue

@@ -698,4 +698,4 @@ export default {
         margin-top: 10vh;
     }
 }
-</style>
+</style>

+ 18 - 0
src/views/activity/Submit.vue

@@ -372,6 +372,24 @@ export default {
                             .replace('www.raex.vip', 'jump.raex.vip')
                             .replace('test.raex.vip', 'jumptest.raex.vip')
                             .replace(/http:\/\/192\.168.*?\//, 'https://jumptest.raex.vip/');
+                    } else if (this.payType === 'QUICK_BIND') {
+                        this.$http
+                            .get('/payOrder/v2/mint/sandQuickBind?id=' + this.orderId)
+                            .then(res => {
+                                document.location.href = res;
+                                this.getOrder(true);
+                            })
+                            .catch(e => {
+                                this.$toast.clear();
+                                this.$dialog
+                                    .alert({
+                                        title: '提示',
+                                        message: e.error || '支付失败'
+                                    })
+                                    .then(res => {
+                                        this.$router.go(-1);
+                                    });
+                            });
                     } else if (this.payType === 'BALANCE') {
                         if (!this.tradeCode) {
                             this.$toast.clear();

+ 18 - 0
src/views/auction/Submit.vue

@@ -432,6 +432,24 @@ export default {
                             .replace('www.raex.vip', 'jump.raex.vip')
                             .replace('test.raex.vip', 'jumptest.raex.vip')
                             .replace(/http:\/\/192\.168.*?\//, 'https://jumptest.raex.vip/');
+                    } else if (this.payType === 'QUICK_BIND') {
+                        this.$http
+                            .get('/payOrder/v2/auction/sandQuickBind?id=' + this.orderId)
+                            .then(res => {
+                                document.location.href = res;
+                                this.getOrder(true);
+                            })
+                            .catch(e => {
+                                this.$toast.clear();
+                                this.$dialog
+                                    .alert({
+                                        title: '提示',
+                                        message: e.error || '支付失败'
+                                    })
+                                    .then(res => {
+                                        this.$router.go(-1);
+                                    });
+                            });
                     } else if (this.payType === 'BALANCE') {
                         if (!this.tradeCode) {
                             this.$toast.clear();

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

@@ -311,6 +311,20 @@ export default {
                         '_blank'
                     );
                     break;
+                case 'QUICK_BIND':
+                    window.open(
+                        resolveUrl(
+                            this.$baseUrl,
+                            '/payOrder/v2/recharge/sandQuickBind?userId=' +
+                                this.$store.state.userInfo.id +
+                                '&amount=' +
+                                this.amount
+                        )
+                            .replace('www.raex.vip', 'jump.raex.vip')
+                            .replace('test.raex.vip', 'jumptest.raex.vip'),
+                        '_blank'
+                    );
+                    break;
                 case 'SYXPAY':
                     this.$router.push({
                         name: 'bankPay',

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

@@ -190,6 +190,20 @@ export default {
                         '_blank'
                     );
                     break;
+                case 'QUICK_BIND':
+                    window.open(
+                        resolveUrl(
+                            this.$baseUrl,
+                            '/payOrder/v2/recharge/sandQuickBind?userId=' +
+                                this.$store.state.userInfo.id +
+                                '&amount=' +
+                                this.amount
+                        )
+                            .replace('www.raex.vip', 'jump.raex.vip')
+                            .replace('test.raex.vip', 'jumptest.raex.vip'),
+                        '_blank'
+                    );
+                    break;
                 case 'SYXPAY':
                     this.$router.push({
                         name: 'bankPay',