Commit 515b0238eeabb36b4b604ce9763032cf0ffdfd8c
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
1 changed file
with
7 additions
and
4 deletions
pages/user/userinfo/userinfo.js
@@ -782,10 +782,11 @@ Page({ | @@ -782,10 +782,11 @@ Page({ | ||
782 | choice_guide=JSON.parse(JSON.stringify(getApp().globalData.choice_guide)); | 782 | choice_guide=JSON.parse(JSON.stringify(getApp().globalData.choice_guide)); |
783 | getApp().globalData.choice_guide=null; | 783 | getApp().globalData.choice_guide=null; |
784 | let user=this.data.user; | 784 | let user=this.data.user; |
785 | - user.staffName=choice_guide.StaffName; | ||
786 | - user.staffId=choice_guide.Id; | ||
787 | - user.staffTel=choice_guide.Tel; | ||
788 | - this.setData({user}) | 785 | + this.setData({ |
786 | + 'user.staffName':choice_guide.StaffName, | ||
787 | + 'user.staffId':choice_guide.Id, | ||
788 | + 'user.staffTel':choice_guide.Tel | ||
789 | + }) | ||
789 | return false; | 790 | return false; |
790 | } | 791 | } |
791 | 792 | ||
@@ -840,6 +841,8 @@ Page({ | @@ -840,6 +841,8 @@ Page({ | ||
840 | 841 | ||
841 | } | 842 | } |
842 | }) | 843 | }) |
844 | + | ||
845 | + | ||
843 | a.getUserInfo(function(a) { | 846 | a.getUserInfo(function(a) { |
844 | var txt = util.formatTime(a.birthday, 'yyyy-M-d'), | 847 | var txt = util.formatTime(a.birthday, 'yyyy-M-d'), |
845 | arr = txt.split(' '); | 848 | arr = txt.split(' '); |