|
|
@@ -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();
|