Bladeren bron

Merge branch 'dev' of http://git.izouma.com/xiongzhu/raex_front into dev

panhui 3 jaren geleden
bovenliggende
commit
9d6b42d485
1 gewijzigde bestanden met toevoegingen van 19 en 7 verwijderingen
  1. 19 7
      src/views/Submit.vue

+ 19 - 7
src/views/Submit.vue

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