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

appid参数增加

parent 4fe4c2d3
...@@ -28,6 +28,10 @@ export default { ...@@ -28,6 +28,10 @@ export default {
}) })
},300) },300)
} }
//#ifdef MP-WEIXIN
uni.setStorageSync('appid','wxe678d5240e98a7b8')
//#endif
//#ifdef MP-ALIPAY //#ifdef MP-ALIPAY
if (options.query && options.query.qrCode) { if (options.query && options.query.qrCode) {
uni.setStorageSync('alipayQrCode',options.query.qrCode) uni.setStorageSync('alipayQrCode',options.query.qrCode)
......
...@@ -40,7 +40,8 @@ export default { ...@@ -40,7 +40,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 companyId:uni.getStorageSync('enterOptions').query.companyId||'',
appid:uni.getStorageSync('appid')||''
} }
_this.$request('wechat/wx/getUserInfoByCode', data).then(res => { _this.$request('wechat/wx/getUserInfoByCode', data).then(res => {
if (res.code == '00') { if (res.code == '00') {
......
...@@ -140,7 +140,8 @@ export default { ...@@ -140,7 +140,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 companyId:uni.getStorageSync('enterOptions').query.companyId||'',
appid:uni.getStorageSync('appid')||''
} }
_this.$request('wechat/wx/getUserInfoByCode', data) _this.$request('wechat/wx/getUserInfoByCode', data)
.then(res => { .then(res => {
......
...@@ -217,7 +217,8 @@ ...@@ -217,7 +217,8 @@
let data={ let data={
code:res.code, code:res.code,
source,//微信小程序3,支付宝小程序4 source,//微信小程序3,支付宝小程序4
companyId:uni.getStorageSync('enterOptions').query.companyId companyId:uni.getStorageSync('enterOptions').query.companyId||'',
appid:uni.getStorageSync('appid')||''
} }
_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