Commit fedf9a1460605e45c4e8d1f1e2a8ee706751dc01

Authored by season
2 parents 0d52e850 beb8e5b2

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

packageB/pages/user/choice_guide/choice_guide.js
... ... @@ -14,12 +14,19 @@ Page({
14 14 show_pop:0,
15 15 sele_item:null,
16 16 input_val:null,
  17 +
  18 + is_back:0
17 19 },
18 20 //------初始化加载----------
19   - onLoad: function(t) {},
  21 + onLoad: function(t) {
  22 + if(t.is_back){
  23 + this.data.is_back=t.is_back
  24 + }
  25 +
  26 + },
20 27  
21 28 onShow: function() {
22   - getApp().check_can_share();
  29 + getApp().check_can_share();
23 30 this.data.ismore=0;this.data.isload=0;
24 31 this.setData({list:null});
25 32 this.get_list();
... ... @@ -96,7 +103,11 @@ Page({
96 103 go_user_info:function () {
97 104 var item=this.data.sele_item;
98 105 getApp().globalData.choice_guide=item;
99   - getApp().goto("/pages/user/userinfo/userinfo");
  106 +
  107 + if( this.data.is_back)
  108 + wx.navigateBack({ delta: 1 })
  109 + else
  110 + getApp().goto("/pages/user/userinfo/userinfo");
100 111 },
101 112  
102 113 img_err:function (e) {
... ...
packageD/pages/user/member/bring/bring.wxss
... ... @@ -140,7 +140,7 @@ margin-top:28rpx;
140 140 }
141 141 /* 提现方式 */
142 142 .txfs{
143   - width:120rpx;
  143 + width:150rpx;
144 144 display: inline-block;
145 145 font-size: 25rpx;
146 146 color: #000000;
... ... @@ -171,14 +171,13 @@ margin-top:28rpx;
171 171 }
172 172 /* 选中样式 1*/
173 173 .ys{
174   -
175   -width:21rpx;
176   -height:21rpx;
177   -margin-left:3rpx;
178   -margin-top: 3rpx;
179   -background-color:#C4182E;
180   -border-radius:25rpx; /* 图形的半径 */
181   -display: none;
  174 + width:21rpx;
  175 + height:21rpx;
  176 + margin-left:2rpx;
  177 + margin-top: 2rpx;
  178 + background-color:#C4182E;
  179 + border-radius:25rpx; /* 图形的半径 */
  180 + display: none;
182 181 }
183 182 .ys.tab_item_active{
184 183 display: block;
... ... @@ -195,7 +194,7 @@ display: none;
195 194 display:inline-block;
196 195 font-size: 25rpx;
197 196 color: #3b639f;
198   - width: 100rpx;
  197 + width: 120rpx;
199 198 height: 100%;
200 199 line-height: 100%;
201 200 }
... ... @@ -203,7 +202,7 @@ display: none;
203 202 .big-rim-two{
204 203 display: flex;
205 204 line-height:60rpx;
206   - width:250rpx;
  205 + width:180rpx;
207 206 height:60rpx;
208 207 margin-top:14rpx;
209 208  
... ...
pages/user/userinfo/userinfo.js
... ... @@ -775,18 +775,28 @@ Page({
775 775 onShow: function() {
776 776 getApp().check_can_share();
777 777 var e = this;
  778 +
  779 + //如果有传值进行跳转的话,
  780 + var choice_guide=null;
  781 + if(getApp().globalData.choice_guide){
  782 + choice_guide=JSON.parse(JSON.stringify(getApp().globalData.choice_guide));
  783 + getApp().globalData.choice_guide=null;
  784 + let user=this.data.user;
  785 + this.setData({
  786 + 'user.staffName':choice_guide.StaffName,
  787 + 'user.staffId':choice_guide.Id,
  788 + 'user.staffTel':choice_guide.Tel
  789 + })
  790 + return false;
  791 + }
  792 +
778 793 if (this.data.is_zy){
779 794 this.data.is_zy=0;
780 795 return false;
781 796 }
782 797 this.wait_for_store_config();
783 798  
784   - //如果有传值进行跳转的话
785   - var choice_guide=null;
786   - if(getApp().globalData.choice_guide){
787   - choice_guide=JSON.parse(JSON.stringify(getApp().globalData.choice_guide));
788   - getApp().globalData.choice_guide=null;
789   - }
  799 +
790 800  
791 801 var req = t;
792 802 req.get("/api/weshop/users/getAndUpdateUser/" + r.stoid + "/" + getApp().globalData.user_id, {
... ... @@ -831,6 +841,8 @@ Page({
831 841  
832 842 }
833 843 })
  844 +
  845 +
834 846 a.getUserInfo(function(a) {
835 847 var txt = util.formatTime(a.birthday, 'yyyy-M-d'),
836 848 arr = txt.split(' ');
... ... @@ -1071,7 +1083,7 @@ Page({
1071 1083 this.data.sele_ing=1;
1072 1084 this.check_click_ok(function(){
1073 1085 th.data.is_zy=1;
1074   - getApp().goto("/packageB/pages/user/choice_guide/choice_guide");
  1086 + getApp().goto("/packageB/pages/user/choice_guide/choice_guide?is_back=1");
1075 1087  
1076 1088 },1)
1077 1089 },
... ...