同步代码
This commit is contained in:
@@ -116,7 +116,7 @@
|
||||
const jweixin = require('jweixin-module');
|
||||
import { Apply, Wechat, authFollow } from '@/apis/interfaces/index'
|
||||
import { ums, umsState } from '@/apis/interfaces/pay'
|
||||
import { servicePay, serviceUms, serviceDg, expandPay, expandUms, expandDg, entrustPay, entrustUms, entrustDg, synDiffPay, synDiffUms, synDiffDg } from '@/apis/interfaces/pay'
|
||||
import { servicePay, serviceUms, serviceDg, expandPay, expandUms, expandDg, entrustPay, entrustUms, entrustDg, synDiffPay, synDiffUms, synDiffDg, payWechat, payUms, payDg } from '@/apis/interfaces/pay'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -133,7 +133,7 @@
|
||||
payForm : '', // 支付类型
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
onShow() {
|
||||
this.token = this.$store.getters.getToken
|
||||
this.payPrice = this.$Route.query.price
|
||||
this.payForm = this.$Route.query.payForm
|
||||
@@ -174,6 +174,8 @@
|
||||
apiUrl = expandDg
|
||||
} else if (this.payForm == 'entrust') {
|
||||
apiUrl = entrustDg
|
||||
} else if (this.payForm == 'synthesize') {
|
||||
apiUrl = payDg
|
||||
}
|
||||
NewUrl = apiUrl
|
||||
}
|
||||
@@ -213,6 +215,8 @@
|
||||
apiUrl = serviceUms
|
||||
} else if (this.payForm == 'expand') {
|
||||
apiUrl = expandUms
|
||||
} else if (this.payForm == 'synthesize') {
|
||||
apiUrl = payUms
|
||||
} else {
|
||||
apiUrl = entrustUms
|
||||
}
|
||||
@@ -265,6 +269,8 @@
|
||||
apiUrl = servicePay
|
||||
} else if (this.payForm == 'expand') {
|
||||
apiUrl = expandPay
|
||||
} else if (this.payForm == 'synthesize') {
|
||||
apiUrl = payWechat
|
||||
} else {
|
||||
apiUrl = entrustPay
|
||||
}
|
||||
@@ -307,6 +313,9 @@
|
||||
} else if (this.payForm == 'expand') {
|
||||
// 跳到拓展单
|
||||
this.$Router.replace({name: 'ExpandOrder'})
|
||||
} else if (this.payForm == 'synthesize') {
|
||||
// 个人中心
|
||||
this.$Router.replace({name: 'User'})
|
||||
} else {
|
||||
// 跳到委托单
|
||||
this.$Router.replace({name: 'EntrustOrder'})
|
||||
@@ -329,6 +338,11 @@
|
||||
setTimeout(()=>{
|
||||
this.$Router.replace({name: 'ExpandOrder'})
|
||||
},1000)
|
||||
} else if (this.payForm == 'synthesize') {
|
||||
// 个人中心
|
||||
setTimeout(()=>{
|
||||
this.$Router.replace({name: 'User'})
|
||||
},1000)
|
||||
} else {
|
||||
// 跳到委托单
|
||||
setTimeout(()=>{
|
||||
@@ -349,8 +363,9 @@
|
||||
|
||||
// 获取微信授权信息-获取oppid
|
||||
authFollow({
|
||||
// url: 'https://web.douhuofalv.com/webWechat/index?id=' + this.$Route.query.id + '&style=' + this.$Route.query.style + '&price=' + this.$Route.query.price
|
||||
url: 'https://web.douhuotest.douhuofalv.com/webWechat/index?id=' + this.orderId + '&style=' + this.$Route.query.style + '&price=' + this.$Route.query.price
|
||||
url: 'https://web.douhuofalv.com/webWechat/index?id=' + this.$Route.query.id + '&style=' + this.$Route.query.style + '&price=' + this.$Route.query.price
|
||||
// url: 'https://web.douhuotest.douhuofalv.com/webWechat/index?id=' + this.orderId + '&style=' + this.$Route.query.style + '&price=' + this.$Route.query.price
|
||||
// url: 'http://web.douhuo.demos.uzchain.tech/webWechat/index?id=' + this.orderId + '&style=' + this.$Route.query.style + '&price=' + this.$Route.query.price 最新
|
||||
}).then(res => {
|
||||
window.location.href = res
|
||||
}).catch(err => {
|
||||
@@ -370,6 +385,9 @@
|
||||
} else if (this.payForm == 'expand') {
|
||||
// 跳到拓展单
|
||||
this.$Router.replace({name: 'ExpandOrder'})
|
||||
} else if (this.payForm == 'synthesize') {
|
||||
// 个人中心
|
||||
this.$Router.replace({name: 'User'})
|
||||
} else {
|
||||
// 跳到委托单
|
||||
this.$Router.replace({name: 'EntrustOrder'})
|
||||
|
||||
Reference in New Issue
Block a user