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

增加渝快码跳转参数,以及跳回渝快码页面

parent bdf8f0b8
......@@ -293,6 +293,15 @@
}
}
,{
"path" : "pages/configure/backMiniProgram/backMiniProgram",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
"navigationBarTextStyle": "white",
......
......@@ -18,11 +18,14 @@
let companyId=option.companyId
let productIdList=option.productIdList
let orderSource=option.orderSource
let ifyukuaiCode=option.ifyukuaiCode//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
let pdOpenid=uni.getStorageSync("openid")//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token")
let pdCreateUserId=uni.getStorageSync("createUserId")
let pdUserId=uni.getStorageSync("userId")
this.outUrl="https://wx.pangdly.com/#/combiOrder?groupId="+groupId+"&orderSource"+orderSource+"&productIdList="+productIdList+"&groupChannelId="+groupChannelId+"&companyId="+companyId+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId
let baseUrl="https://wx.pangdly.com/#/combiOrder?pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId
let url="&groupId="+groupId+"&groupChannelId="+groupChannelId+"&productIdList="+productIdList+"&orderSource="+orderSource+"&companyId="+companyId+"&ifyukuaiCode="+ifyukuaiCode
this.outUrl=baseUrl+url
},
methods: {
......
<template>
<!--返回上一个小程序中转页面-->
<view class="wrap">
<view class="imgBox">
<image src="../../../static/img/my/NumberBg.jpg"></image>
</view>
<view class="contentBox">
<view class="title">
微信提示
</view>
<view class="content">
验证码用于入园游玩时核验使用
</view>
<view class="remark">
注:验证码信息已自动同步至订单所有游玩人渝快码,游玩人直接使用本人渝快码即可入园核验
</view>
<view class="know">
<text @click="returnMini()">我知道了</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
//---返回上一个小程序
returnMini(){
//#ifdef MP-WEIXIN
wx.navigateBackMiniProgram({
extraData: {
},
fail(res){
uni.showToast({
title:"获取失败,请退出后重新进入渝快码小程序获取验证码",
icon:"none",
duration:3000
})
}
})
//#endif
//#ifdef MP-ALIPAY
my.navigateBackMiniProgram({
extraData:{
},
fail: (res) => {
uni.showToast({
title:"获取失败,请退出后重新进入渝快码小程序获取验证码",
icon:"none",
duration:3000
})
}
})
//#endif
}
}
}
</script>
<style>
.imgBox{position: fixed;top: 0;left: 0;right: 0;bottom: 0;}
.imgBox image{width: 100%;height: 100%;}
.contentBox{padding:200rpx 80rpx 0 80rpx;text-align: center;position: fixed;top:0;left: 0;right: 0;bottom: 0;z-index: 1;}
.title{font-size: 40rpx;font-weight: bold;color: #FC6703}
.content{margin-top: 48rpx;font-size: 32rpx;color: #000000;}
.remark{margin-top: 40rpx;color: #666666;}
.know{margin-top:40rpx;}
.know text{display: inline-block;width: 240rpx;height: 72rpx;background: rgb(54, 136, 255);box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.2);
border-radius: 48px;text-align: center;line-height: 72rpx;color: #FFFFFF;}
</style>
......@@ -17,11 +17,14 @@
let productId=option.productId
let companyId=option.companyId
let orderSource=option.orderSource
let ifyukuaiCode=option.ifyukuaiCode//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
let pdOpenid=uni.getStorageSync("openid")//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token")
let pdCreateUserId=uni.getStorageSync("createUserId")
let pdUserId=uni.getStorageSync("userId")
this.outUrl="https://wx.pangdly.com/#/scenicJointOrder?merchantId="+merchantId+"&orderSource"+orderSource+"&productId="+productId+"&companyId="+companyId+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId
let baseUrl="https://wx.pangdly.com/#/scenicJointOrder?pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId
let url="&merchantId="+merchantId+"&productId="+productId+"&orderSource="+orderSource+"&companyId="+companyId+"&ifyukuaiCode="+ifyukuaiCode
this.outUrl=baseUrl+url
},
methods: {
......
......@@ -30,18 +30,23 @@
let pdToken=uni.getStorageSync("token")
let pdCreateUserId=uni.getStorageSync("createUserId")
let pdUserId=uni.getStorageSync("userId")
this.outUrl="https://wx.pangdly.com/#/scenicSingleOrder?merchantId="+merchantId+"&productId="+productId+"&orderSource="+orderSource+"&companyId="+companyId+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId
let baseUrl="https://wx.pangdly.com/#/scenicSingleOrder?pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId
let url="&merchantId="+merchantId+"&productId="+productId+"&orderSource="+orderSource+"&companyId="+companyId
this.outUrl=baseUrl+url
}else{//小程序页面跳转进入
let merchantId=option.merchantId
let productId=option.productId
let orderSource=option.orderSource
let companyId=option.companyId
let ifyukuaiCode=option.ifyukuaiCode//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
let pdOpenid=uni.getStorageSync("openid")//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token")
let pdCreateUserId=uni.getStorageSync("createUserId")
let pdUserId=uni.getStorageSync("userId")
this.outUrl="https://wx.pangdly.com/#/scenicSingleOrder?merchantId="+merchantId+"&productId="+productId+"&orderSource="+orderSource+"&companyId="+companyId+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId
let baseUrl="https://wx.pangdly.com/#/scenicSingleOrder?pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId
let url="&merchantId="+merchantId+"&productId="+productId+"&orderSource="+orderSource+"&companyId="+companyId+"&ifyukuaiCode="+ifyukuaiCode
this.outUrl=baseUrl+url
}
},
methods: {
......
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