Commit 1d67c0c0798b39d9f108eee30ca7fefab4e86d75
解决冲突1
Showing
3 changed files
with
37 additions
and
18 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
@@ -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:18rpx; | ||
176 | -height:18rpx; | ||
177 | -margin-left:4rpx; | ||
178 | -margin-top: 4rpx; | ||
179 | -background-color:#C4182E; | ||
180 | -border-radius:50rpx; /* 图形的半径 */ | ||
181 | -display: none; | 174 | + width:18rpx; |
175 | + height:18rpx; | ||
176 | + margin-left:4rpx; | ||
177 | + margin-top: 4rpx; | ||
178 | + background-color:#C4182E; | ||
179 | + border-radius:50rpx; /* 图形的半径 */ | ||
180 | + display: none; | ||
182 | } | 181 | } |
183 | .ys.tab_item_active{ | 182 | .ys.tab_item_active{ |
184 | display: block; | 183 | display: block; |
pages/user/userinfo/userinfo.js
@@ -775,18 +775,27 @@ Page({ | @@ -775,18 +775,27 @@ 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 | + user.staffName=choice_guide.StaffName; | ||
786 | + user.staffId=choice_guide.Id; | ||
787 | + user.staffTel=choice_guide.Tel; | ||
788 | + this.setData({user}) | ||
789 | + return false; | ||
790 | + } | ||
791 | + | ||
778 | if (this.data.is_zy){ | 792 | if (this.data.is_zy){ |
779 | this.data.is_zy=0; | 793 | this.data.is_zy=0; |
780 | return false; | 794 | return false; |
781 | } | 795 | } |
782 | this.wait_for_store_config(); | 796 | this.wait_for_store_config(); |
783 | 797 | ||
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 | - } | 798 | + |
790 | 799 | ||
791 | var req = t; | 800 | var req = t; |
792 | req.get("/api/weshop/users/getAndUpdateUser/" + r.stoid + "/" + getApp().globalData.user_id, { | 801 | req.get("/api/weshop/users/getAndUpdateUser/" + r.stoid + "/" + getApp().globalData.user_id, { |
@@ -1071,7 +1080,7 @@ Page({ | @@ -1071,7 +1080,7 @@ Page({ | ||
1071 | this.data.sele_ing=1; | 1080 | this.data.sele_ing=1; |
1072 | this.check_click_ok(function(){ | 1081 | this.check_click_ok(function(){ |
1073 | th.data.is_zy=1; | 1082 | th.data.is_zy=1; |
1074 | - getApp().goto("/packageB/pages/user/choice_guide/choice_guide"); | 1083 | + getApp().goto("/packageB/pages/user/choice_guide/choice_guide?is_back=1"); |
1075 | 1084 | ||
1076 | },1) | 1085 | },1) |
1077 | }, | 1086 | }, |