修改支付界面的问题
This commit is contained in:
parent
9b30956be9
commit
7d3ad11946
@ -363,7 +363,7 @@
|
|||||||
},
|
},
|
||||||
mapGetters(['isLogin', 'uid', 'viewColor', 'keyColor', ])),
|
mapGetters(['isLogin', 'uid', 'viewColor', 'keyColor', ])),
|
||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
console.log('11111111')
|
|
||||||
this.credit_buy = options.credit_buy
|
this.credit_buy = options.credit_buy
|
||||||
// console.log(options.product_type)
|
// console.log(options.product_type)
|
||||||
if (options.product_type) {
|
if (options.product_type) {
|
||||||
|
@ -172,7 +172,7 @@
|
|||||||
},
|
},
|
||||||
getOrderInfo() {
|
getOrderInfo() {
|
||||||
groupOrderDetail(this.order_id, this.product_type).then(res => {
|
groupOrderDetail(this.order_id, this.product_type).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.couponData = res.data
|
this.couponData = res.data
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.couponData.interest !== null) {
|
if (this.couponData.interest !== null) {
|
||||||
@ -189,6 +189,7 @@
|
|||||||
pay_type: this.payType
|
pay_type: this.payType
|
||||||
}
|
}
|
||||||
).then(res => {
|
).then(res => {
|
||||||
|
|
||||||
if (res.data.paid === false) {
|
if (res.data.paid === false) {
|
||||||
//拉起微信支付
|
//拉起微信支付
|
||||||
|
|
||||||
@ -213,7 +214,10 @@
|
|||||||
orderPay(this.order_id, {
|
orderPay(this.order_id, {
|
||||||
type: this.payType
|
type: this.payType
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|
||||||
|
|
||||||
let jsConfig = res.data.result.config
|
let jsConfig = res.data.result.config
|
||||||
|
|
||||||
if (res.data.status === 'weixinApp') {
|
if (res.data.status === 'weixinApp') {
|
||||||
//拉起微信支付
|
//拉起微信支付
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
@ -257,16 +261,35 @@
|
|||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if (res.status == 200) {
|
||||||
|
|
||||||
|
// uni.navigateBack({
|
||||||
|
// delta: 1
|
||||||
|
// })
|
||||||
|
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: res.message
|
||||||
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pages/users/order_list/index?status=2'
|
||||||
|
})
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// uni.navigateBack({
|
// uni.navigateBack({
|
||||||
// delta: 1
|
// delta: 1
|
||||||
// })
|
// })
|
||||||
// }, 1000)
|
// }, 1000)
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
icon:'none' ,
|
// icon:'none' ,
|
||||||
title: res.message
|
// title: res.message
|
||||||
})
|
// })
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user