Commit f2f33ad7 authored by Mac's avatar Mac

1

parent b44f1601
...@@ -129,6 +129,7 @@ export default { ...@@ -129,6 +129,7 @@ export default {
showBack: false, showBack: false,
showAuth:false, showAuth:false,
U:{}, U:{},
shopData:{},
}; };
}, },
components: { components: {
...@@ -273,6 +274,7 @@ export default { ...@@ -273,6 +274,7 @@ export default {
// #endif // #endif
this.init(); this.init();
this.getSmallShopById()
let set = uni.getStorageSync("basedata") let set = uni.getStorageSync("basedata")
? uni.getStorageSync("basedata").mall.setting ? uni.getStorageSync("basedata").mall.setting
: {}; : {};
...@@ -334,6 +336,15 @@ export default { ...@@ -334,6 +336,15 @@ export default {
? uni.getStorageSync("mall_UserInfo").UserSmallShopId ? uni.getStorageSync("mall_UserInfo").UserSmallShopId
: 0; : 0;
} }
if(SmallShopId!=0){
return{
title: this.shopData.Name
? this.shopData.Name
: uni.getStorageSync("basedata").mall.name,
path: "/pages/index/index?user_id=" + uid+"&SmallShopId=" + SmallShopId,
imageUrl: '',
}
}else{
return { return {
title: this.setting.share_title title: this.setting.share_title
? this.setting.share_title ? this.setting.share_title
...@@ -341,6 +352,8 @@ export default { ...@@ -341,6 +352,8 @@ export default {
path: "/pages/index/index?user_id=" + uid+"&SmallShopId=" + SmallShopId, path: "/pages/index/index?user_id=" + uid+"&SmallShopId=" + SmallShopId,
imageUrl: this.setting.share_pic ? this.setting.share_pic : "", imageUrl: this.setting.share_pic ? this.setting.share_pic : "",
}; };
}
}, },
// #endif // #endif
onShow() { onShow() {
...@@ -523,6 +536,25 @@ export default { ...@@ -523,6 +536,25 @@ export default {
(error) => {} (error) => {}
); );
}, },
getSmallShopById(){
let Id = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo").SmallShopId: 0;
if(Id==0){
Id = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo").UserSmallShopId: 0;
}
this.request2(
{
url: '/api/AppletUser/GetSmallShopById',
data: {
Id: Id
}
},
res => {
if (res.resultCode == 1) {
this.shopData = res.data
}
}
);
},
close() { close() {
this.add_show = 2; this.add_show = 2;
uni.setStorageSync("add_top_app", { add_top_app_show: 2 }); uni.setStorageSync("add_top_app", { add_top_app_show: 2 });
......
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