Commit 78a21be4 authored by Mac's avatar Mac

分享参数修改

parent 75b9fd84
......@@ -84,7 +84,7 @@ export default {
let t = getCurrentPages();
let u = uni.getStorageSync("mall_UserInfo");
let uid = u.UserId ? u.UserId : 0;
let Up = uni.getStorageSync("UserPageType")?uni.getStorageSync("UserPageType").UserPageType:0;
let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
this.path = '/pages/index/index?id=' + this.goodId + "&user_id=" + uid+ "&Up=" + Up+'&JumpType=1';
//console.log(t[t.length - 1]);
......
......@@ -305,7 +305,7 @@ export default {
? uni.getStorageSync("mall_UserInfo").UserSmallShopId
: 0;
}
let Up = uni.getStorageSync("UserPageType")?uni.getStorageSync("UserPageType").UserPageType:0;
let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
var IsOpenSchool = uni.getStorageSync("mall_UserInfo").IsOpenSchool;
this.request2(
{
......
......@@ -393,7 +393,7 @@ export default {
if (option && option.Up) {//分享进入校园id
uni.setStorageSync("Up", { Up: option.Up });
}
this.Up = uni.getStorageSync("UserPageType")?uni.getStorageSync("UserPageType").UserPageType:0;//用于分享出去的参数
this.Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;//用于分享出去的参数
if (option && option.AnchorName) {
//当传过来有主播名称的时候 存入缓存
uni.setStorageSync("AnchorName", { AnchorName: option.AnchorName });
......
......@@ -299,7 +299,7 @@ export default {
? uni.getStorageSync("mall_UserInfo").UserSmallShopId
: 0;
}
let Up = uni.getStorageSync("UserPageType")?uni.getStorageSync("UserPageType").UserPageType:0;
let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
var IsOpenSchool = uni.getStorageSync("mall_UserInfo").IsOpenSchool;
this.request2(
{
......
......@@ -418,7 +418,7 @@
if (option && option.Up) {//分享进入校园id
uni.setStorageSync("Up", { Up: option.Up });
}
this.Up = uni.getStorageSync("UserPageType")?uni.getStorageSync("UserPageType").UserPageType:0;//用于分享出去的参数
this.Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;//用于分享出去的参数
if(option&& option.StartTime && option.EndTime){
let startTime = new Date(option.StartTime); // 开始时间
......
......@@ -380,7 +380,7 @@ export default {
if(SmallShopId!=0){
title=this.shopData.Name
}
let Up = uni.getStorageSync("UserPageType")?uni.getStorageSync("UserPageType").UserPageType:0;
let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
return {
title: title,
query: "user_id=" + uid + "&SmallShopId=" + SmallShopId+ "&Up=" + Up,
......@@ -413,7 +413,7 @@ export default {
if(SmallShopId!=0){
title=this.shopData.Name
}
let Up = uni.getStorageSync("UserPageType")?uni.getStorageSync("UserPageType").UserPageType:0;
let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
return {
title: title,
path:
......@@ -839,7 +839,12 @@ export default {
data: {},
},
(res) => {
uni.setStorageSync('UserPageType', res.data);
// uni.setStorageSync('UserPageType', res.data);
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):{};
mall_UserInfo.IsOpenSchool=res.data.IsOpenSchool;
mall_UserInfo.UserPageType=res.data.UserPageType;
uni.setStorageSync("mall_UserInfo", mall_UserInfo);
}
);
},
......
......@@ -123,7 +123,7 @@
{
url: '/api/AppletUser/GetWeiXinQRCodeForApplet',
data: {
Path:'/pages/index/index?user_id=' + that.UserInfo.UserId+'&SmallShopId='+ SmallShopId+'&Up='+ that.UserInfo.UserPageType,
Path:'/pages/index/index?user_id=' + that.UserInfo.UserId+'&SmallShopId='+ SmallShopId+'&Up=2',
With:that.qrcode.QrCodeSize,
}
},
......
......@@ -261,7 +261,7 @@
this.secondary = this.$uiConfig.secondary;
this.nav = uni.getMenuButtonBoundingClientRect().top;
this.headStyle.paddingTop = this.nav +'px';
this.UserPageType = uni.getStorageSync("UserPageType")?uni.getStorageSync("UserPageType"):{};
this.UserPageType = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):{};
},
mounted() {
let currentPages = getCurrentPages();
......
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