支付
This commit is contained in:
@@ -134,7 +134,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.orderType = this.$Route.query.orderType
|
|
||||||
this.token = this.$store.getters.getToken
|
this.token = this.$store.getters.getToken
|
||||||
this.payPrice = this.$Route.query.price
|
this.payPrice = this.$Route.query.price
|
||||||
this.payForm = this.$Route.query.payForm
|
this.payForm = this.$Route.query.payForm
|
||||||
@@ -178,7 +177,7 @@
|
|||||||
}
|
}
|
||||||
NewUrl = apiUrl
|
NewUrl = apiUrl
|
||||||
}
|
}
|
||||||
NewUrl(this.orderId, {type: payType, app_schema: 'weixin://', order_type: this.orderType}).then(res => {
|
NewUrl(this.orderId, {type: payType, app_schema: 'weixin://',}).then(res => {
|
||||||
let { params, trade_id } = res;
|
let { params, trade_id } = res;
|
||||||
this.getState = true
|
this.getState = true
|
||||||
switch (payType){
|
switch (payType){
|
||||||
@@ -220,7 +219,7 @@
|
|||||||
NewUrl = apiUrl
|
NewUrl = apiUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
NewUrl(this.orderId, {type: payType, order_type: this.orderType}).then(res => {
|
NewUrl(this.orderId, {type: payType}).then(res => {
|
||||||
this.getState = true
|
this.getState = true
|
||||||
switch (payType){
|
switch (payType){
|
||||||
case 'mp':
|
case 'mp':
|
||||||
@@ -274,7 +273,6 @@
|
|||||||
|
|
||||||
NewUrl(this.orderId, {
|
NewUrl(this.orderId, {
|
||||||
openid : newOpenId,
|
openid : newOpenId,
|
||||||
order_type : this.orderType
|
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let wxConfig = JSON.parse(res.wechat)
|
let wxConfig = JSON.parse(res.wechat)
|
||||||
jweixin.config({
|
jweixin.config({
|
||||||
|
|||||||
Reference in New Issue
Block a user