|
@@ -144,6 +144,7 @@ export default {
|
|
|
appWxPayFn(){
|
|
appWxPayFn(){
|
|
|
let that = this
|
|
let that = this
|
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
|
|
|
+ uni.showLoading()
|
|
|
let id = this.option.id ? this.option.id : 0
|
|
let id = this.option.id ? this.option.id : 0
|
|
|
let realPrice = this.option.realPrice ? this.option.realPrice : 0
|
|
let realPrice = this.option.realPrice ? this.option.realPrice : 0
|
|
|
let orderSn = this.option.orderSn ? this.option.orderSn : ''
|
|
let orderSn = this.option.orderSn ? this.option.orderSn : ''
|
|
@@ -163,6 +164,12 @@ export default {
|
|
|
path: '/pagesPurchase/wechatPay?id='+id+'&realPrice='+realPrice+'&orderSn='+orderSn,
|
|
path: '/pagesPurchase/wechatPay?id='+id+'&realPrice='+realPrice+'&orderSn='+orderSn,
|
|
|
type: 0
|
|
type: 0
|
|
|
});
|
|
});
|
|
|
|
|
+ setTimeout(function(){
|
|
|
|
|
+ that.$util.confirmModal({content:'确认已付款?'},() => {
|
|
|
|
|
+ that.pageTo({ url: '/pagesPurchase/particulars?id=' + id, type: 2 })
|
|
|
|
|
+ })
|
|
|
|
|
+ },3000)
|
|
|
|
|
+ uni.hideLoading()
|
|
|
} else {
|
|
} else {
|
|
|
that.$msg("没有找到微信服务")
|
|
that.$msg("没有找到微信服务")
|
|
|
//that.$msg("获取微信失败:" + e.message)
|
|
//that.$msg("获取微信失败:" + e.message)
|