Commit f6e7c56e authored by Mac's avatar Mac

微店的登录设置分销中心的分享带微店信息

parent ec9d877e
...@@ -61,11 +61,16 @@ ...@@ -61,11 +61,16 @@
getWeiXinQRCode(){ getWeiXinQRCode(){
let that = this let that = this
uni.showNavigationBarLoading(); uni.showNavigationBarLoading();
let SmallShopId = that.UserInfo.SmallShopId?that.UserInfo.SmallShopId:0;
if(SmallShopId==0){
SmallShopId = that.UserInfo.UserSmallShopId?that.UserInfo.UserSmallShopId:0;
}
console.log('pages/index/index?user_id=' + that.UserInfo.UserId+'&SmallShopId='+ SmallShopId)
that.request2( that.request2(
{ {
url: '/api/AppletUser/GetWeiXinQRCodeForApplet', url: '/api/AppletUser/GetWeiXinQRCodeForApplet',
data: { data: {
Path:'pages/index/index?user_id=' + that.UserInfo.UserId, Path:'pages/index/index?user_id=' + that.UserInfo.UserId+'&SmallShopId='+ SmallShopId,
With:that.qrcode.QrCodeSize, With:that.qrcode.QrCodeSize,
} }
}, },
......
...@@ -241,7 +241,9 @@ export default { ...@@ -241,7 +241,9 @@ export default {
}, },
pandu(item){ pandu(item){
let flag=true; let flag=true;
let IsOpen = this.shopBasics.model&&this.shopBasics.model.IsOpen?this.shopBasics.model.IsOpen:1 let IsOpen = this.shopBasics.model&&this.shopBasics.model.IsOpen?this.shopBasics.model.IsOpen:1;
let SmallShopId = this.mall_UserInfo.SmallShopId?this.mall_UserInfo.SmallShopId:0;
let UserSmallShopId = this.mall_UserInfo.UserSmallShopId?this.mall_UserInfo.UserSmallShopId:0;
switch(item.link_url) switch(item.link_url)
{ {
case "/pages/share/index/index" : case "/pages/share/index/index" :
...@@ -258,7 +260,7 @@ export default { ...@@ -258,7 +260,7 @@ export default {
if(IsOpen==2) if(IsOpen==2)
{ {
if(this.mall_UserInfo.SmallShopId==0 && this.mall_UserInfo.UserSmallShopId!=0) if(SmallShopId==0 && UserSmallShopId!=0)
{ {
flag=false; flag=false;
} }
...@@ -268,7 +270,7 @@ export default { ...@@ -268,7 +270,7 @@ export default {
} }
//关闭 //关闭
else{ else{
if(this.mall_UserInfo.SmallShopId&&this.mall_UserInfo.SmallShopId!=0) if(SmallShopId!=0)
{ {
flag=true; flag=true;
} }
......
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