Commit 3b8eb337 authored by 潘永坪's avatar 潘永坪

联合国际支付宝扫码购bug处理

parent e2b958b4
...@@ -112,6 +112,7 @@ export default{ ...@@ -112,6 +112,7 @@ export default{
页面获取companyI方法 let companyId=this.$commonjs.getCompanyId() 页面获取companyI方法 let companyId=this.$commonjs.getCompanyId()
*/ */
getCompanyId:function(option){ getCompanyId:function(option){
//待按照下面getKey方法进行优化
let enterUrl='' let enterUrl=''
//#ifdef MP-WEIXIN //#ifdef MP-WEIXIN
enterUrl=option.q enterUrl=option.q
...@@ -131,20 +132,15 @@ export default{ ...@@ -131,20 +132,15 @@ export default{
}, },
//获取除companyId的其他参数 //获取除companyId的其他参数
getKey:function(option,query){ getKey:function(option,query){
let enterUrl='' let key=''
// 优先取值小程序页面参数,其次取值普通二维码
//#ifdef MP-WEIXIN //#ifdef MP-WEIXIN
enterUrl=option.q key=option[query]||this.getUrlKey(`${query}`,option.q)||''
//#endif //#endif
//#ifdef MP-ALIPAY //#ifdef MP-ALIPAY
enterUrl=uni.getStorageSync('alipayQrCode') key=option[query]||this.getUrlKey(`${query}`,uni.getStorageSync('alipayQrCode'))||''
//#endif //#endif
let key=''
if(enterUrl){//普通二维码扫码进入
key=this.getUrlKey(`${query}`,enterUrl)||''
}else{//小程序页面跳转进入
key=option[query]||''
}
return key return key
} }
} }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</view> </view>
<view class="middle"> <view class="middle">
<view class="middle1"> <!-- <view class="middle1">
<view class="middle1-list"> <view class="middle1-list">
<view> <view>
0 0
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
积分 积分
</view> </view>
</view> </view>
</view> </view> -->
<view class="middle2"> <view class="middle2">
<view class="middle2-top" @click="goOrderlist()"> <view class="middle2-top" @click="goOrderlist()">
......
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