Commit bb0a834d096bec9d066329fdd7cc93f1a401b99b
1 parent
ec0eeb77
会员没有登陆的情况的分享测试
Showing
1 changed file
with
1 additions
and
1 deletions
packageA/pages/goodsInfo/goodsInfo.js
... | ... | @@ -2197,7 +2197,7 @@ Page({ |
2197 | 2197 | return false; |
2198 | 2198 | } |
2199 | 2199 | //---获取分享图片的本地地址,头像和商品图片---- |
2200 | - var path2 = getApp().globalData.userInfo.head_pic; | |
2200 | + var path2 = getApp().globalData.userInfo?getApp().globalData.userInfo.head_pic:''; | |
2201 | 2201 | if (path2 == "") { |
2202 | 2202 | ee.data.share_head = "../../../images/share/hui_hear_pic.png"; |
2203 | 2203 | tt(func); | ... | ... |