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

支付成功后指定页面跳转

parent a6c5d23a
...@@ -117,11 +117,13 @@ ...@@ -117,11 +117,13 @@
paySign:"", paySign:"",
background:"",//去支付的背景颜色 background:"",//去支付的背景颜色
orderId:"",//订单Id orderId:"",//订单Id
openid:""//用户Id openid:"",//用户Id
afterBuyUrl:"",//支付成功后地址跳转
} }
}, },
onLoad(option){ onLoad(option){
this.orderId=option.orderId this.orderId=option.orderId
this.afterBuyUrl=option.afterBuyUrl||"/pages/my/order/orderList/orderList"
this.openid=uni.getStorageSync("openid")||"" this.openid=uni.getStorageSync("openid")||""
if(this.openid){ if(this.openid){
this.initDetail() this.initDetail()
...@@ -244,7 +246,7 @@ ...@@ -244,7 +246,7 @@
paySign:this.paySign, paySign:this.paySign,
success: function (res) { success: function (res) {
uni.navigateTo({ uni.navigateTo({
url:"/pages/my/order/orderList/orderList" url:_this.afterBuyUrl+"?orderId="+_this.orderId
}) })
}, },
fail: function (err) { 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