Commit 0524b5cb by 张卓

分销信息判空

parent a6aa477a
......@@ -242,7 +242,7 @@ export default {
that.showMyCard = res;
})
//获取分销信息
this.getSpokesmanInit(JSON.parse(wx.getStorageSync("becomeInfo")))
this.getSpokesmanInit(wx.getStorageSync("becomeInfo")?JSON.parse(wx.getStorageSync("becomeInfo")):'')
}
// 来源
if (options.from == "logout") {
......
......@@ -313,7 +313,7 @@ export default {
// 是否跳转h5或小程序
pushPageType(){
//绑定上下级关系
app.fenxiaoModel.becomeRelation(JSON.parse(wx.getStorageSync("becomeInfo"))).then(res=>{
app.fenxiaoModel.becomeRelation(wx.getStorageSync("becomeInfo")?JSON.parse(wx.getStorageSync("becomeInfo")):'').then(res=>{
if(res) {
wx.removeStorage({
key: "becomeInfo"
......
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