Commit 515b0238eeabb36b4b604ce9763032cf0ffdfd8c

Authored by WXD-SEASON\season
2 parents 1f104467 6117fc07

Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev

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(' ');