Commit 821644c6 authored by Mac's avatar Mac

修改首页分享问题

parent 67004341
......@@ -344,6 +344,7 @@ export default {
showorder: false, //显示弹出
carrierType: "", //载体type
AppletID: 0, //判断小程序的id,相亲:11
page_idt:0,//首页组件分享参数
};
},
components: {
......@@ -387,7 +388,6 @@ export default {
onLoad(options) {
let that = this;
// that.yj()
// options = {user_id:125459,SmallShopId:0,EduSchoolId:79}
uni.getSystemInfo({
success(res) {
that.titleStyle = {
......@@ -516,6 +516,9 @@ export default {
this.guidecar.EndTime = options.EndTime ? options.EndTime : "";
}
}
if(options && options.page_idt){
this.page_idt = options.page_idt
}
if (options && options.J) {
//司导分享的的特殊处理
......@@ -665,9 +668,16 @@ export default {
let Up = uni.getStorageSync("mall_UserInfo")
? uni.getStorageSync("mall_UserInfo").UserPageType
: 0;
let path
if(this.pageId>0){//首页子组件的分享
path = "user_id=" + uid + "&SmallShopId=" + SmallShopId + "&Up=" + Up+ "&page_idt=" + this.pageId+"&JumpType=19"
}else{//首页分享
path = "user_id=" + uid + "&SmallShopId=" + SmallShopId + "&Up=" + Up
}
console.log(path)
return {
title: title,
query: "user_id=" + uid + "&SmallShopId=" + SmallShopId + "&Up=" + Up+ "&page_id=" + this.pageId,
query: path,
imageUrl: "",
};
},
......@@ -700,15 +710,15 @@ export default {
let Up = uni.getStorageSync("mall_UserInfo")
? uni.getStorageSync("mall_UserInfo").UserPageType
: 0;
let path
if(this.pageId>0){//首页子组件的分享
path = "/pages/index/index?user_id=" + uid + "&SmallShopId=" + SmallShopId + "&Up=" + Up+ "&page_idt=" + this.pageId+"&JumpType=19"
}else{//首页分享
path = "/pages/index/index?user_id=" + uid + "&SmallShopId=" + SmallShopId + "&Up=" + Up
}
return {
title: title,
path:
"/pages/index/index?user_id=" +
uid +
"&SmallShopId=" +
SmallShopId +
"&Up=" +
Up+ "&page_id=" + this.pageId+"JumpType=19",
path:path,
imageUrl: "",
};
},
......@@ -1092,9 +1102,9 @@ export default {
});
}else if(that.JumpType==19){
that.JumpType=0
if(that.pageId>0){
if(that.page_idt>0){
uni.navigateTo({
url: "/pages/index/index?page_id="+that.pageId,
url: "/pages/index/index?page_id="+that.page_idt,
});
}
......
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