Commit fedf9a1460605e45c4e8d1f1e2a8ee706751dc01
Merge branch 'qa' of http://git.vipzhuang.cn/wxd/MShopWeApp
Showing
3 changed files
with
43 additions
and
21 deletions
packageB/pages/user/choice_guide/choice_guide.js
@@ -14,12 +14,19 @@ Page({ | @@ -14,12 +14,19 @@ Page({ | ||
14 | show_pop:0, | 14 | show_pop:0, |
15 | sele_item:null, | 15 | sele_item:null, |
16 | input_val:null, | 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 | onShow: function() { | 28 | onShow: function() { |
22 | - getApp().check_can_share(); | 29 | + getApp().check_can_share(); |
23 | this.data.ismore=0;this.data.isload=0; | 30 | this.data.ismore=0;this.data.isload=0; |
24 | this.setData({list:null}); | 31 | this.setData({list:null}); |
25 | this.get_list(); | 32 | this.get_list(); |
@@ -96,7 +103,11 @@ Page({ | @@ -96,7 +103,11 @@ Page({ | ||
96 | go_user_info:function () { | 103 | go_user_info:function () { |
97 | var item=this.data.sele_item; | 104 | var item=this.data.sele_item; |
98 | getApp().globalData.choice_guide=item; | 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 | img_err:function (e) { | 113 | img_err:function (e) { |
packageD/pages/user/member/bring/bring.wxss
@@ -140,7 +140,7 @@ margin-top:28rpx; | @@ -140,7 +140,7 @@ margin-top:28rpx; | ||
140 | } | 140 | } |
141 | /* 提现方式 */ | 141 | /* 提现方式 */ |
142 | .txfs{ | 142 | .txfs{ |
143 | - width:120rpx; | 143 | + width:150rpx; |
144 | display: inline-block; | 144 | display: inline-block; |
145 | font-size: 25rpx; | 145 | font-size: 25rpx; |
146 | color: #000000; | 146 | color: #000000; |
@@ -171,14 +171,13 @@ margin-top:28rpx; | @@ -171,14 +171,13 @@ margin-top:28rpx; | ||
171 | } | 171 | } |
172 | /* 选中样式 1*/ | 172 | /* 选中样式 1*/ |
173 | .ys{ | 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 | .ys.tab_item_active{ | 182 | .ys.tab_item_active{ |
184 | display: block; | 183 | display: block; |
@@ -195,7 +194,7 @@ display: none; | @@ -195,7 +194,7 @@ display: none; | ||
195 | display:inline-block; | 194 | display:inline-block; |
196 | font-size: 25rpx; | 195 | font-size: 25rpx; |
197 | color: #3b639f; | 196 | color: #3b639f; |
198 | - width: 100rpx; | 197 | + width: 120rpx; |
199 | height: 100%; | 198 | height: 100%; |
200 | line-height: 100%; | 199 | line-height: 100%; |
201 | } | 200 | } |
@@ -203,7 +202,7 @@ display: none; | @@ -203,7 +202,7 @@ display: none; | ||
203 | .big-rim-two{ | 202 | .big-rim-two{ |
204 | display: flex; | 203 | display: flex; |
205 | line-height:60rpx; | 204 | line-height:60rpx; |
206 | - width:250rpx; | 205 | + width:180rpx; |
207 | height:60rpx; | 206 | height:60rpx; |
208 | margin-top:14rpx; | 207 | margin-top:14rpx; |
209 | 208 |
pages/user/userinfo/userinfo.js
@@ -775,18 +775,28 @@ Page({ | @@ -775,18 +775,28 @@ Page({ | ||
775 | onShow: function() { | 775 | onShow: function() { |
776 | getApp().check_can_share(); | 776 | getApp().check_can_share(); |
777 | var e = this; | 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 | if (this.data.is_zy){ | 793 | if (this.data.is_zy){ |
779 | this.data.is_zy=0; | 794 | this.data.is_zy=0; |
780 | return false; | 795 | return false; |
781 | } | 796 | } |
782 | this.wait_for_store_config(); | 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 | var req = t; | 801 | var req = t; |
792 | req.get("/api/weshop/users/getAndUpdateUser/" + r.stoid + "/" + getApp().globalData.user_id, { | 802 | req.get("/api/weshop/users/getAndUpdateUser/" + r.stoid + "/" + getApp().globalData.user_id, { |
@@ -831,6 +841,8 @@ Page({ | @@ -831,6 +841,8 @@ Page({ | ||
831 | 841 | ||
832 | } | 842 | } |
833 | }) | 843 | }) |
844 | + | ||
845 | + | ||
834 | a.getUserInfo(function(a) { | 846 | a.getUserInfo(function(a) { |
835 | var txt = util.formatTime(a.birthday, 'yyyy-M-d'), | 847 | var txt = util.formatTime(a.birthday, 'yyyy-M-d'), |
836 | arr = txt.split(' '); | 848 | arr = txt.split(' '); |
@@ -1071,7 +1083,7 @@ Page({ | @@ -1071,7 +1083,7 @@ Page({ | ||
1071 | this.data.sele_ing=1; | 1083 | this.data.sele_ing=1; |
1072 | this.check_click_ok(function(){ | 1084 | this.check_click_ok(function(){ |
1073 | th.data.is_zy=1; | 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 | },1) | 1088 | },1) |
1077 | }, | 1089 | }, |