Commit dd6d7c95 authored by youjie's avatar youjie

签证分享

parent 6e29e93c
...@@ -731,6 +731,64 @@ ...@@ -731,6 +731,64 @@
url: "/pages/visa/visa_Reserve?id=" +this.delMsg.Pid+'&CreateBy=' +createBy, url: "/pages/visa/visa_Reserve?id=" +this.delMsg.Pid+'&CreateBy=' +createBy,
}); });
}, },
// #ifdef MP-WEIXIN
//分享朋友圈
onShareTimeline() {
let uid = uni.getStorageSync("mall_UserInfo") ?
uni.getStorageSync("mall_UserInfo").UserId :
0;
if (uid == 0) {
uid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0;
}
let SmallShopId = uni.getStorageSync("mall_UserInfo") ?
uni.getStorageSync("mall_UserInfo").SmallShopId :
0;
if (SmallShopId == 0) {
//如果微店id为0 去找所属微店id
SmallShopId = uni.getStorageSync("mall_UserInfo") ?
uni.getStorageSync("mall_UserInfo").UserSmallShopId :
0;
}
let title = this.dataList.Name ? this.dataList.Name : "帖子";
let imageUrl =
this.dataList.CoverImageList && this.dataList.CoverImageList.length > 0 ?
this.dataList.CoverImageList[0] :
"";
return {
title: title,
query: "id=" +
this.delMsg.Pid +
"&createBy=" +
this.createBy +this.$uiConfig.DIRECT_PARAMETER,
imageUrl: imageUrl,
};
},
// #endif
//分享给朋友
onShareAppMessage(res) {
let u = uni.getStorageSync("mall_UserInfo");
let uid = u.UserId ? u.UserId : 0;
if (uid == 0) {
uid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0;
}
let SmallShopId = u.SmallShopId ? u.SmallShopId : 0;
if (SmallShopId == 0) {
//如果微店id为0 去找所属微店id
SmallShopId = u.UserSmallShopId ? u.UserSmallShopId : 0;
}
return {
title: this.dataList.Name ? this.dataList.Name : "帖子",
path: "/pages/visa/visaDetail?id=" +
this.delMsg.Pid +
"&createBy=" +
this.createBy +this.$uiConfig.DIRECT_PARAMETER,
imageUrl: "",
// imageUrl:
// this.dataList.tempImgCover && this.dataList.tempImgCover.length > 0
// ? this.dataList.tempImgCover[0]
// : "",
};
},
}, },
}; };
</script> </script>
......
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