Commit e27d7b24 authored by 潘永坪's avatar 潘永坪

支付成功后指定页面跳转

parent a6c5d23a
......@@ -117,11 +117,13 @@
paySign:"",
background:"",//去支付的背景颜色
orderId:"",//订单Id
openid:""//用户Id
openid:"",//用户Id
afterBuyUrl:"",//支付成功后地址跳转
}
},
onLoad(option){
this.orderId=option.orderId
this.afterBuyUrl=option.afterBuyUrl||"/pages/my/order/orderList/orderList"
this.openid=uni.getStorageSync("openid")||""
if(this.openid){
this.initDetail()
......@@ -244,7 +246,7 @@
paySign:this.paySign,
success: function (res) {
uni.navigateTo({
url:"/pages/my/order/orderList/orderList"
url:_this.afterBuyUrl+"?orderId="+_this.orderId
})
},
fail: function (err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment