Commit 6117fc076578cc9e10f514724a5bd763b06d09aa
1 parent
08a9bcba
选中了导购,就修改导购的部分,其他不改
Showing
1 changed file
with
7 additions
and
4 deletions
pages/user/userinfo/userinfo.js
... | ... | @@ -782,10 +782,11 @@ Page({ |
782 | 782 | choice_guide=JSON.parse(JSON.stringify(getApp().globalData.choice_guide)); |
783 | 783 | getApp().globalData.choice_guide=null; |
784 | 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 | 790 | return false; |
790 | 791 | } |
791 | 792 | |
... | ... | @@ -840,6 +841,8 @@ Page({ |
840 | 841 | |
841 | 842 | } |
842 | 843 | }) |
844 | + | |
845 | + | |
843 | 846 | a.getUserInfo(function(a) { |
844 | 847 | var txt = util.formatTime(a.birthday, 'yyyy-M-d'), |
845 | 848 | arr = txt.split(' '); | ... | ... |