Commit f2f33ad7 authored by Mac's avatar Mac

1

parent b44f1601
......@@ -129,6 +129,7 @@ export default {
showBack: false,
showAuth:false,
U:{},
shopData:{},
};
},
components: {
......@@ -273,6 +274,7 @@ export default {
// #endif
this.init();
this.getSmallShopById()
let set = uni.getStorageSync("basedata")
? uni.getStorageSync("basedata").mall.setting
: {};
......@@ -334,13 +336,24 @@ export default {
? uni.getStorageSync("mall_UserInfo").UserSmallShopId
: 0;
}
return {
title: this.setting.share_title
? this.setting.share_title
: uni.getStorageSync("basedata").mall.name,
path: "/pages/index/index?user_id=" + uid+"&SmallShopId=" + SmallShopId,
imageUrl: this.setting.share_pic ? this.setting.share_pic : "",
};
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 {
title: this.setting.share_title
? this.setting.share_title
: uni.getStorageSync("basedata").mall.name,
path: "/pages/index/index?user_id=" + uid+"&SmallShopId=" + SmallShopId,
imageUrl: this.setting.share_pic ? this.setting.share_pic : "",
};
}
},
// #endif
onShow() {
......@@ -523,6 +536,25 @@ export default {
(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() {
this.add_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