Commit 4fe4c2d3 authored by 潘永坪's avatar 潘永坪

登录参数增加

parent 84fca4f3
...@@ -272,6 +272,13 @@ ...@@ -272,6 +272,13 @@
"navigationBarTitleText" : "湖广会馆", "navigationBarTitleText" : "湖广会馆",
"enablePullDownRefresh" : false "enablePullDownRefresh" : false
} }
},
{
"path" : "pages/my/exchangeCode/exchangeIndex/exchangeIndex",
"style" : {
"navigationBarTitleText" : "兑换",
"enablePullDownRefresh" : false
}
} }
], ],
"globalStyle" : { "globalStyle" : {
......
...@@ -39,7 +39,8 @@ export default { ...@@ -39,7 +39,8 @@ export default {
} }
let data = { let data = {
code: res.code, code: res.code,
source //微信小程序3,支付宝小程序4 source, //微信小程序3,支付宝小程序4
companyId:uni.getStorageSync('enterOptions').query.companyId
} }
_this.$request('wechat/wx/getUserInfoByCode', data).then(res => { _this.$request('wechat/wx/getUserInfoByCode', data).then(res => {
if (res.code == '00') { if (res.code == '00') {
......
<template>
<view>
<web-view :src="outUrl"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
outUrl:"",//跳出页面路由
}
},
onLoad(option) {
let merchantId=option.merchantId||''
let pdOpenid=uni.getStorageSync("openid")||''//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token")||''
let pdCreateUserId=uni.getStorageSync("createUserId")||''
let pdUserId=uni.getStorageSync("userId")||''
let baseUrl="https://wx.pangdly.com/#/exchangeIndex?merchantId="+merchantId
this.outUrl=baseUrl+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId
},
methods: {
}
}
</script>
<style>
</style>
...@@ -139,7 +139,8 @@ export default { ...@@ -139,7 +139,8 @@ export default {
} }
let data = { let data = {
code: res.code, code: res.code,
source //微信小程序3,支付宝小程序4 source, //微信小程序3,支付宝小程序4
companyId:uni.getStorageSync('enterOptions').query.companyId
} }
_this.$request('wechat/wx/getUserInfoByCode', data) _this.$request('wechat/wx/getUserInfoByCode', data)
.then(res => { .then(res => {
......
...@@ -217,6 +217,7 @@ ...@@ -217,6 +217,7 @@
let data={ let data={
code:res.code, code:res.code,
source,//微信小程序3,支付宝小程序4 source,//微信小程序3,支付宝小程序4
companyId:uni.getStorageSync('enterOptions').query.companyId
} }
_this.$request('wechat/wx/getUserInfoByCode',data).then(res => { _this.$request('wechat/wx/getUserInfoByCode',data).then(res => {
if(res.code=='00'){ if(res.code=='00'){
......
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