Commit 821644c6 authored by Mac's avatar Mac

修改首页分享问题

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