|
|
@@ -81,6 +81,7 @@ import asset from '../../mixins/asset';
|
|
|
import product from '../../mixins/product';
|
|
|
import resolveUrl from 'resolve-url';
|
|
|
import PayMethodPick from '../../components/PayMethodPick.vue';
|
|
|
+import { mapState } from 'vuex';
|
|
|
let inWeixin = /micromessenger/i.test(navigator.userAgent);
|
|
|
let inApp = /#cordova#/i.test(navigator.userAgent);
|
|
|
let inIos = /iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
|
@@ -134,6 +135,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
+ ...mapState(['companyId']),
|
|
|
showAddress() {
|
|
|
if (this.addressInfo.id) {
|
|
|
return {
|
|
|
@@ -278,7 +280,12 @@ export default {
|
|
|
if (this.payType === 'SYXPAY') {
|
|
|
this.$toast.clear();
|
|
|
this.$router.replace(
|
|
|
- '/' + this.$route.params.companyId + '/bankPay?id=' + this.orderId + '&type=mint'
|
|
|
+ '/' +
|
|
|
+ this.$route.params.companyId +
|
|
|
+ '/bankPay?id=' +
|
|
|
+ this.orderId +
|
|
|
+ '&type=mint&companyId=' +
|
|
|
+ this.companyId
|
|
|
);
|
|
|
} else if (this.$store.state.review) {
|
|
|
window.store.order('358');
|
|
|
@@ -286,11 +293,14 @@ export default {
|
|
|
} else if (this.payType === 'ALIPAY') {
|
|
|
if (this.inWeixin) {
|
|
|
document.location.replace(
|
|
|
- resolveUrl(this.$baseUrl, '/payOrder/v2/mint/alipay_wx?id=' + this.orderId)
|
|
|
+ resolveUrl(
|
|
|
+ this.$baseUrl,
|
|
|
+ '/payOrder/v2/mint/alipay_wx?id=' + this.orderId + '&companyId=' + this.companyId
|
|
|
+ )
|
|
|
);
|
|
|
} else {
|
|
|
this.$http
|
|
|
- .get(`/payOrder/v2/mint/alipay?id=${this.orderId}`)
|
|
|
+ .get(`/payOrder/v2/mint/alipay?id=${this.orderId}&companyId=${this.companyId}`)
|
|
|
.then(res => {
|
|
|
this.$toast.clear();
|
|
|
this.hrefUrl = res;
|
|
|
@@ -316,7 +326,8 @@ export default {
|
|
|
.post('/payOrder/mint/weixin', {
|
|
|
id: this.orderId,
|
|
|
channel: this.payChannel,
|
|
|
- openId: localStorage.getItem('openId') || 'oWJG55wLnwdVzXoKka1-DzQKOd_Y'
|
|
|
+ openId: localStorage.getItem('openId') || 'oWJG55wLnwdVzXoKka1-DzQKOd_Y',
|
|
|
+ companyId: this.companyId
|
|
|
})
|
|
|
.then(res => {
|
|
|
if ('wx_pub' === this.payChannel) {
|
|
|
@@ -374,14 +385,14 @@ export default {
|
|
|
} else if (this.payType === 'UNION') {
|
|
|
document.location.href = resolveUrl(
|
|
|
this.$baseUrl,
|
|
|
- '/payOrder/v2/mint/sandQuick?id=' + this.orderId
|
|
|
+ '/payOrder/v2/mint/sandQuick?id=' + this.orderId + '&companyId=' + this.companyId
|
|
|
)
|
|
|
.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)
|
|
|
+ .get('/payOrder/v2/mint/sandQuickBind?id=' + this.orderId + '&companyId=' + this.companyId)
|
|
|
.then(res => {
|
|
|
document.location.href = res;
|
|
|
this.getOrder(true);
|
|
|
@@ -408,7 +419,11 @@ export default {
|
|
|
forbidClick: true
|
|
|
});
|
|
|
this.$http
|
|
|
- .post('/payOrder/v2/mint/balance', { id: this.orderId, tradeCode: this.tradeCode })
|
|
|
+ .post('/payOrder/v2/mint/balance', {
|
|
|
+ id: this.orderId,
|
|
|
+ tradeCode: this.tradeCode,
|
|
|
+ companyId: this.companyId
|
|
|
+ })
|
|
|
.then(res => {
|
|
|
this.$toast.success('支付成功');
|
|
|
setTimeout(() => {
|