Commit faf58980 authored by Mac's avatar Mac

进入首页

parent 9d8097fb
...@@ -216,7 +216,6 @@ export default { ...@@ -216,7 +216,6 @@ export default {
} }
if (options && options.SmallShopId) { if (options && options.SmallShopId) {
uni.setStorageSync("SmallShopId", { SmallShopId: options.SmallShopId }); uni.setStorageSync("SmallShopId", { SmallShopId: options.SmallShopId });
console.log(uni.getStorageSync("SmallShopId"));
} }
if (options && options.scene) { if (options && options.scene) {
...@@ -241,7 +240,7 @@ export default { ...@@ -241,7 +240,7 @@ export default {
} }
} }
if (options && options.J) {//司导分享的的特殊处理 if (options && options.J) {//司导分享的的特殊处理
console.log(options.J)
this.JumpType = options.J; this.JumpType = options.J;
if(options.J == 3){ if(options.J == 3){
this.guidecar.GoodsId = options.id; this.guidecar.GoodsId = options.id;
...@@ -275,6 +274,7 @@ export default { ...@@ -275,6 +274,7 @@ export default {
Photo: res.userInfo.avatarUrl, Photo: res.userInfo.avatarUrl,
}; };
that.updateuserinfo(msg); that.updateuserinfo(msg);
that.getPageType()
// 如果登录的情况下直接跳转商品详情或者直播列表 // 如果登录的情况下直接跳转商品详情或者直播列表
setTimeout(() => { setTimeout(() => {
if (that.JumpType == 1) { if (that.JumpType == 1) {
...@@ -340,15 +340,13 @@ export default { ...@@ -340,15 +340,13 @@ export default {
? uni.getStorageSync("add_top_app").add_top_app_show ? uni.getStorageSync("add_top_app").add_top_app_show
: 1; : 1;
this.setting = set; this.setting = set;
// console.log(this.setting)
console.log(uni.getStorageSync("basedata"));
this.isShowBack(); this.isShowBack();
uni.showNavigationBarLoading(); uni.showNavigationBarLoading();
}, },
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
onShareTimeline() { onShareTimeline() {
setTimeout(() => { setTimeout(() => {
console.log("分享调用"); // console.log("分享调用");
this.getReceive(); this.getReceive();
}, 2500); }, 2500);
let uid = uni.getStorageSync("mall_UserInfo") let uid = uni.getStorageSync("mall_UserInfo")
...@@ -366,7 +364,6 @@ export default { ...@@ -366,7 +364,6 @@ export default {
? uni.getStorageSync("mall_UserInfo").UserSmallShopId ? uni.getStorageSync("mall_UserInfo").UserSmallShopId
: 0; : 0;
} }
console.log(uid);
let title=this.setting.share_title let title=this.setting.share_title
? this.setting.share_title ? this.setting.share_title
: uni.getStorageSync("basedata").mall.name : uni.getStorageSync("basedata").mall.name
...@@ -381,7 +378,7 @@ export default { ...@@ -381,7 +378,7 @@ export default {
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
setTimeout(() => { setTimeout(() => {
console.log("分享调用"); // console.log("分享调用");
this.getReceive(); this.getReceive();
}, 2500); }, 2500);
let uid = uni.getStorageSync("mall_UserInfo") let uid = uni.getStorageSync("mall_UserInfo")
...@@ -471,7 +468,7 @@ export default { ...@@ -471,7 +468,7 @@ export default {
that.u = res.data; that.u = res.data;
uni.removeStorageSync("pid"); uni.removeStorageSync("pid");
uni.removeStorageSync("SmallShopId"); uni.removeStorageSync("SmallShopId");
that.getPageType()
// 如果登录的情况下直接跳转商品详情或者直播列表 // 如果登录的情况下直接跳转商品详情或者直播列表
setTimeout(() => { setTimeout(() => {
if (that.JumpType == 1) { if (that.JumpType == 1) {
...@@ -813,7 +810,7 @@ export default { ...@@ -813,7 +810,7 @@ export default {
}, },
(res) => { (res) => {
console.log(res, "PageType"); console.log(res, "PageType");
uni.setStorageSync('UserPageType', res.data);
} }
); );
}, },
......
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