Commit 6cb7a43a authored by 潘永坪's avatar 潘永坪

渝快码中转页面开发

parent b5108999
...@@ -302,6 +302,15 @@ ...@@ -302,6 +302,15 @@
} }
} }
,{
"path" : "pages/my/order/orderList/orderList",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
], ],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
//#ifdef MP-WEIXIN //#ifdef MP-WEIXIN
wx.navigateBackMiniProgram({ wx.navigateBackMiniProgram({
extraData: { extraData: {
cqQRCode:1
}, },
fail(res){ fail(res){
uni.showToast({ uni.showToast({
...@@ -52,6 +53,7 @@ ...@@ -52,6 +53,7 @@
//#ifdef MP-ALIPAY //#ifdef MP-ALIPAY
my.navigateBackMiniProgram({ my.navigateBackMiniProgram({
extraData:{ extraData:{
cqQRCode:1
}, },
fail: (res) => { fail: (res) => {
uni.showToast({ uni.showToast({
......
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
let pdToken=uni.getStorageSync("token") let pdToken=uni.getStorageSync("token")
let pdCreateUserId=uni.getStorageSync("createUserId") let pdCreateUserId=uni.getStorageSync("createUserId")
let pdUserId=uni.getStorageSync("userId") let pdUserId=uni.getStorageSync("userId")
this.outUrl="https://wx.pangdly.com/#/unusedDetail?id="+option.orderId+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId let ifyukuaiCode=option.ifyukuaiCode//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
this.outUrl="https://wx.pangdly.com/#/unusedDetail?id="+option.orderId+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId+"&ifyukuaiCode="+ifyukuaiCode
}, },
methods: { methods: {
......
<template>
<view>
<web-view :src="outUrl"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
outUrl:"",//跳出地址
}
},
onLoad() {
let pdOpenid=uni.getStorageSync("openid")//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token")
let pdCreateUserId=uni.getStorageSync("createUserId")
let pdUserId=uni.getStorageSync("userId")
let ifyukuaiCode=option.ifyukuaiCode//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
this.outUrl="https://wx.pangdly.com/#/ordersList1?pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId+"&ifyukuaiCode="+ifyukuaiCode
},
methods: {
}
}
</script>
<style>
...@@ -117,10 +117,12 @@ ...@@ -117,10 +117,12 @@
orderId:"",//订单Id orderId:"",//订单Id
openid:"",//用户Id openid:"",//用户Id
afterBuyUrl:"",//支付成功后地址跳转 afterBuyUrl:"",//支付成功后地址跳转
ifyukuaiCode:"",//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
} }
}, },
onLoad(option){ onLoad(option){
this.orderId=option.orderId this.orderId=option.orderId
this.ifyukuaiCode=option.ifyukuaiCode
this.afterBuyUrl=option.afterBuyUrl||"/pages/my/order/orderList/orderList" 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){
...@@ -195,7 +197,7 @@ ...@@ -195,7 +197,7 @@
this.pdOrderMoney = res.data.pdOrderMoney this.pdOrderMoney = res.data.pdOrderMoney
if(this.pdOrderMoney==0&&res.data.subOrderType == -1){//0元购直接跳电子门票页面 if(this.pdOrderMoney==0&&res.data.subOrderType == -1){//0元购直接跳电子门票页面
uni.navigateTo({ uni.navigateTo({
url:"/pages/my/order/electronicTicket/electronicTicket?orderId="+this.orderId url:"/pages/my/order/electronicTicket/electronicTicket?orderId="+this.orderId+"&ifyukuaiCode="+this.ifyukuaiCode
}) })
} }
this.errorMessage = res.data.errorMessage this.errorMessage = res.data.errorMessage
...@@ -247,7 +249,7 @@ ...@@ -247,7 +249,7 @@
// uni.removeStorageSync('checkList') // uni.removeStorageSync('checkList')
// uni.removeStorageSync('sortImglist') // uni.removeStorageSync('sortImglist')
uni.navigateTo({ uni.navigateTo({
url:_this.afterBuyUrl+"?orderId="+_this.orderId url:_this.afterBuyUrl+"?orderId="+_this.orderId+"&ifyukuaiCode="+_this.ifyukuaiCode
}) })
}, },
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