Commit 49483c1f authored by 罗超's avatar 罗超

首页修改

parent 2cd6a248
...@@ -224,7 +224,6 @@ export default { ...@@ -224,7 +224,6 @@ export default {
that.u = uni.getStorageSync("mall_UserInfo") that.u = uni.getStorageSync("mall_UserInfo")
wx.getUserInfo({ wx.getUserInfo({
success: function (res) { success: function (res) {
if (uni.getStorageSync("mall_UserInfo")) { if (uni.getStorageSync("mall_UserInfo")) {
let uid = uni.getStorageSync("mall_UserInfo").UserId; let uid = uni.getStorageSync("mall_UserInfo").UserId;
let msg = { let msg = {
...@@ -258,6 +257,16 @@ export default { ...@@ -258,6 +257,16 @@ export default {
}); });
} }
}, },
fail:function(e){
uni.showToast({ title: '微信登录授权失败', icon: 'none' });
if (!that.u) {
that.u = {
nickName: "未登录",
avatarUrl: ""
};
that.showAuth = true;
}
}
}); });
......
...@@ -375,7 +375,7 @@ ...@@ -375,7 +375,7 @@
this.shopBasics = res.data; this.shopBasics = res.data;
if(this.AuditStatus ==2){ if(this.AuditStatus ==2){
this.getSmallShopsCenter()//获取微店信息 this.getSmallShopsCenter()//获取微店信息
this.pageTitle = '店中心' this.pageTitle = '店中心'
} }
} }
...@@ -425,7 +425,7 @@ ...@@ -425,7 +425,7 @@
that.init() that.init()
if(this.shopBasics.IsExamine==1){ if(this.shopBasics.IsExamine==1){
this.getSmallShopsCenter()//获取微店信息 this.getSmallShopsCenter()//获取微店信息
this.pageTitle = '店中心' this.pageTitle = '店中心'
} }
} }
......
...@@ -241,7 +241,7 @@ export default { ...@@ -241,7 +241,7 @@ export default {
}, },
pandu(item){ pandu(item){
let flag=true; let flag=true;
let IsOpen = this.shopBasics.model.IsOpen?this.shopBasics.model.IsOpen:1 let IsOpen = this.shopBasics.model&&this.shopBasics.model.IsOpen?this.shopBasics.model.IsOpen:1
switch(item.link_url) switch(item.link_url)
{ {
case "/pages/share/index/index" : case "/pages/share/index/index" :
......
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