Commit de958ea5303c50f2450a168fd7057f5ec29395e4
1 parent
834134a0
美图秀秀优化
Showing
1 changed file
with
9 additions
and
4 deletions
packageF/pages/free_delivery/free_delivery.js
| ... | ... | @@ -74,10 +74,15 @@ Page({ |
| 74 | 74 | userInfo |
| 75 | 75 | }) |
| 76 | 76 | if (userInfo) { |
| 77 | - this.setData({ | |
| 78 | - login_title:userInfo.mobile, | |
| 79 | - login_name:'领取会员' | |
| 80 | - }) | |
| 77 | + if (userInfo.mobile) { | |
| 78 | + this.setData({ | |
| 79 | + login_title:userInfo.mobile, | |
| 80 | + login_name:'领取会员' | |
| 81 | + }) | |
| 82 | + }else{ | |
| 83 | + getApp().globalData.userInfo=null | |
| 84 | + wx.setStorageSync("userinfo", null); | |
| 85 | + } | |
| 81 | 86 | } |
| 82 | 87 | |
| 83 | 88 | }, | ... | ... |