正在显示
6 个修改的文件
包含
47 行增加
和
11 行删除
@@ -202,8 +202,8 @@ | @@ -202,8 +202,8 @@ | ||
202 | <button class="confirm-join-btn {{is_send === 1 && detail.status !== 8?'gray':''}}" form-type="submit"> | 202 | <button class="confirm-join-btn {{is_send === 1 && detail.status !== 8?'gray':''}}" form-type="submit"> |
203 | <text wx:if="{{is_send === 1 && detail.status === 2}}">待拼成</text> | 203 | <text wx:if="{{is_send === 1 && detail.status === 2}}">待拼成</text> |
204 | <text wx:if="{{is_send === 1 && detail.status === 8}}">待完成</text> | 204 | <text wx:if="{{is_send === 1 && detail.status === 8}}">待完成</text> |
205 | - <text wx:if="{{is_send === 2 && detail.status === 8 }}">确认拼活动</text> | ||
206 | - <text wx:if="{{is_send === 2 && detail.status === 2 }}">确认拼活动</text> | 205 | + <text wx:if="{{is_send === 2 && detail.status === 8 }}">确认拼餐</text> |
206 | + <text wx:if="{{is_send === 2 && detail.status === 2 }}">确认拼餐</text> | ||
207 | <text wx:if="{{detail.status === 3}}">未拼成</text> | 207 | <text wx:if="{{detail.status === 3}}">未拼成</text> |
208 | <text wx:if="{{detail.status === 4}}">已拼成</text> | 208 | <text wx:if="{{detail.status === 4}}">已拼成</text> |
209 | <text wx:if="{{detail.status === 5}}">已取消</text> | 209 | <text wx:if="{{detail.status === 5}}">已取消</text> |
@@ -15,6 +15,7 @@ Page({ | @@ -15,6 +15,7 @@ Page({ | ||
15 | city:'', | 15 | city:'', |
16 | phone_number:'', | 16 | phone_number:'', |
17 | phone_number_params:'', | 17 | phone_number_params:'', |
18 | + wx_num:'', | ||
18 | introduce:'', | 19 | introduce:'', |
19 | is_change:false, | 20 | is_change:false, |
20 | is_choose_phone:false | 21 | is_choose_phone:false |
@@ -123,6 +124,24 @@ Page({ | @@ -123,6 +124,24 @@ Page({ | ||
123 | this.setData({is_change:true}); | 124 | this.setData({is_change:true}); |
124 | } | 125 | } |
125 | }, | 126 | }, |
127 | + //输入微信号 | ||
128 | + inputWx(e) { | ||
129 | + this.setData({ | ||
130 | + wx_num: e.detail.value, | ||
131 | + is_choose_wx: true | ||
132 | + }); | ||
133 | + if(e.detail.value === '') { | ||
134 | + this.setData({is_change:false}); | ||
135 | + } | ||
136 | + if((this.data.is_choose_wx&&this.data.wx_num !== '') && | ||
137 | + this.data.user.country !== null && | ||
138 | + this.data.user.tel !== null && | ||
139 | + this.data.user.introduce !== null | ||
140 | + ){ | ||
141 | + console.log(2); | ||
142 | + this.setData({is_change:true}); | ||
143 | + } | ||
144 | + }, | ||
126 | //简介 | 145 | //简介 |
127 | inputContent(e) { | 146 | inputContent(e) { |
128 | var textcontent = e.detail.value; | 147 | var textcontent = e.detail.value; |
@@ -148,7 +167,8 @@ Page({ | @@ -148,7 +167,8 @@ Page({ | ||
148 | if((this.data.is_choose_introduce&&this.data.introduce !== '') && | 167 | if((this.data.is_choose_introduce&&this.data.introduce !== '') && |
149 | this.data.user.city !== null && | 168 | this.data.user.city !== null && |
150 | this.data.user.tel !== null && | 169 | this.data.user.tel !== null && |
151 | - this.data.user.country !== null | 170 | + this.data.user.country !== null && |
171 | + this.data.user.wx !== null | ||
152 | ){ | 172 | ){ |
153 | console.log(2); | 173 | console.log(2); |
154 | this.setData({is_change:true}); | 174 | this.setData({is_change:true}); |
@@ -156,7 +176,8 @@ Page({ | @@ -156,7 +176,8 @@ Page({ | ||
156 | if((this.data.is_choose_country&&this.data.country !== '')&& | 176 | if((this.data.is_choose_country&&this.data.country !== '')&& |
157 | (this.data.is_choose_city&&this.data.city !== '') && | 177 | (this.data.is_choose_city&&this.data.city !== '') && |
158 | (this.data.user.tel!==null&&this.data.user.tel !== '') && | 178 | (this.data.user.tel!==null&&this.data.user.tel !== '') && |
159 | - (this.data.is_choose_introduce&&this.data.introduce !== '') | 179 | + (this.data.is_choose_introduce&&this.data.introduce !== '') && |
180 | + (this.data.is_choose_wx&&this.data.wx_num !== '') | ||
160 | ) { | 181 | ) { |
161 | console.log(1); | 182 | console.log(1); |
162 | this.setData({is_change:true}); | 183 | this.setData({is_change:true}); |
@@ -174,6 +195,8 @@ Page({ | @@ -174,6 +195,8 @@ Page({ | ||
174 | wx.showToast({title:'请获取手机号',icon:'none'}) | 195 | wx.showToast({title:'请获取手机号',icon:'none'}) |
175 | }else if(this.data.is_wrong_phone){ | 196 | }else if(this.data.is_wrong_phone){ |
176 | wx.showToast({title:'手机号格式错误',icon:'none'}) | 197 | wx.showToast({title:'手机号格式错误',icon:'none'}) |
198 | + }else if(this.data.wx_num === '' && this.data.user.wx === null) { | ||
199 | + wx.showToast({title:'请填写微信号',icon:'none'}) | ||
177 | }else if(this.data.introduce === '' && this.data.user.introduce === null) { | 200 | }else if(this.data.introduce === '' && this.data.user.introduce === null) { |
178 | wx.showToast({title:'请填写简介',icon:'none'}) | 201 | wx.showToast({title:'请填写简介',icon:'none'}) |
179 | }else { | 202 | }else { |
@@ -186,6 +209,7 @@ Page({ | @@ -186,6 +209,7 @@ Page({ | ||
186 | city:this.data.is_choose_city?this.data.city:this.data.user.city, | 209 | city:this.data.is_choose_city?this.data.city:this.data.user.city, |
187 | // tel:(this.data.is_choose_phone&&this.data.phone_number !== '')?this.data.phone_number:this.data.user.tel, | 210 | // tel:(this.data.is_choose_phone&&this.data.phone_number !== '')?this.data.phone_number:this.data.user.tel, |
188 | tel:this.data.user.tel, | 211 | tel:this.data.user.tel, |
212 | + wx: this.data.is_choose_wx?this.data.wx_num:this.data.user.wx, | ||
189 | introduce:this.data.is_choose_introduce?this.data.introduce:this.data.user.introduce | 213 | introduce:this.data.is_choose_introduce?this.data.introduce:this.data.user.introduce |
190 | }; | 214 | }; |
191 | app.post(url, params, {}).then((res) => { | 215 | app.post(url, params, {}).then((res) => { |
@@ -214,7 +238,8 @@ Page({ | @@ -214,7 +238,8 @@ Page({ | ||
214 | if(this.data.user.country === null || | 238 | if(this.data.user.country === null || |
215 | this.data.user.city === null || | 239 | this.data.user.city === null || |
216 | this.data.user.tel === null || | 240 | this.data.user.tel === null || |
217 | - this.data.user.introduce === null | 241 | + this.data.user.introduce === null || |
242 | + this.data.user.wx === null | ||
218 | ) { | 243 | ) { |
219 | this.setData({is_change:false});//完成按钮不能点 | 244 | this.setData({is_change:false});//完成按钮不能点 |
220 | }else { | 245 | }else { |
@@ -33,6 +33,12 @@ | @@ -33,6 +33,12 @@ | ||
33 | <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="phone-btn">自动填写</button> | 33 | <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="phone-btn">自动填写</button> |
34 | </view> | 34 | </view> |
35 | </view> | 35 | </view> |
36 | + <view class="flex-box"> | ||
37 | + <view class="title">微信号:</view> | ||
38 | + <view class="text"> | ||
39 | + <input type="text" bindinput="inputWx" value="{{is_choose_wx?wx_num:user.wx}}"/> | ||
40 | + </view> | ||
41 | + </view> | ||
36 | <view class="content-box"> | 42 | <view class="content-box"> |
37 | <view class="title">个人简介:</view> | 43 | <view class="title">个人简介:</view> |
38 | <view class="text"> | 44 | <view class="text"> |
@@ -7,13 +7,13 @@ | @@ -7,13 +7,13 @@ | ||
7 | <!--<image src="../../../../images/avatar@2x.png"></image>--> | 7 | <!--<image src="../../../../images/avatar@2x.png"></image>--> |
8 | <image src="{{detail.userPic}}"></image> | 8 | <image src="{{detail.userPic}}"></image> |
9 | <text class="name">{{detail.userName}}</text> | 9 | <text class="name">{{detail.userName}}</text> |
10 | - <text class="phone">手机号: 13026256485</text> | 10 | + <!--<text class="phone">手机号: 13026256485</text>--> |
11 | <text class="num">{{detail.number}}人</text> | 11 | <text class="num">{{detail.number}}人</text> |
12 | </view> | 12 | </view> |
13 | 13 | ||
14 | <view class="area"> | 14 | <view class="area"> |
15 | <text class="title">{{detail.title}}</text> | 15 | <text class="title">{{detail.title}}</text> |
16 | - <text class="restaurant-name">{{detail.address}}</text> | 16 | + <text class="restaurant-name">{{detail.addr}}</text> |
17 | <text class="date">{{detail.time}}</text> | 17 | <text class="date">{{detail.time}}</text> |
18 | <!--<text class="time">15:30</text>--> | 18 | <!--<text class="time">15:30</text>--> |
19 | <view class="address" bindtap="getNavigate"> | 19 | <view class="address" bindtap="getNavigate"> |
@@ -28,7 +28,8 @@ | @@ -28,7 +28,8 @@ | ||
28 | <view wx:for="{{join}}" wx:key="index" class="list"> | 28 | <view wx:for="{{join}}" wx:key="index" class="list"> |
29 | <image src="{{item.pic}}"></image> | 29 | <image src="{{item.pic}}"></image> |
30 | <view class="people-name">{{item.name}}</view> | 30 | <view class="people-name">{{item.name}}</view> |
31 | - <view class="people-phone">手机号: {{item.tel}}</view> | 31 | + <text class="people-phone" selectable="true">手机号: {{item.tel}}</text> |
32 | + <text class="people-phone" selectable="true">微信号: {{item.wx}}</text> | ||
32 | </view> | 33 | </view> |
33 | </scroll-view> | 34 | </scroll-view> |
34 | </view> | 35 | </view> |
@@ -118,12 +118,16 @@ | @@ -118,12 +118,16 @@ | ||
118 | width: 40rpx; | 118 | width: 40rpx; |
119 | height: 40rpx; | 119 | height: 40rpx; |
120 | border-radius: 50%; | 120 | border-radius: 50%; |
121 | - margin-right: 30rpx; | 121 | + margin-right: 12rpx; |
122 | } | 122 | } |
123 | .people-name { | 123 | .people-name { |
124 | color: #666666; | 124 | color: #666666; |
125 | font-size: 22rpx; | 125 | font-size: 22rpx; |
126 | - margin-right: 42rpx; | 126 | + margin-right: 12rpx; |
127 | + overflow : hidden; | ||
128 | + display: -webkit-box; | ||
129 | + -webkit-line-clamp: 1; | ||
130 | + -webkit-box-orient: vertical; | ||
127 | } | 131 | } |
128 | .people-phone { | 132 | .people-phone { |
129 | color: #666666; | 133 | color: #666666; |
@@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
23 | <view class="code"> | 23 | <view class="code"> |
24 | <image src="../../../images/wallet-icon.png"></image> | 24 | <image src="../../../images/wallet-icon.png"></image> |
25 | </view> | 25 | </view> |
26 | - <view class="name">{{item.type === 1?'活动票':'饭票'}}</view> | 26 | + <view class="name">{{item.type === 1?'活动票':'餐票'}}</view> |
27 | </view> | 27 | </view> |
28 | </view> | 28 | </view> |
29 | </view> | 29 | </view> |
-
请 注册 或 登录 后发表评论