Commit b254c5916a3efce19ec0aab339147735f0cb75f4
1 parent
89f02c51
会员中心联系客服的功能制作
Showing
3 changed files
with
17 additions
and
2 deletions
pages/user/index/index.js
... | ... | @@ -265,6 +265,11 @@ Page({ |
265 | 265 | getApp().getConfig2(function(e) { |
266 | 266 | var t_swi = e.switch_list; |
267 | 267 | if (t_swi) t_swi = JSON.parse(t_swi) |
268 | + if(t_swi){ | |
269 | + th.setData({sys_switch:t_swi}) | |
270 | + } | |
271 | + | |
272 | + | |
268 | 273 | if (parseInt(t_swi.rank_switch) == 2) { |
269 | 274 | var userInfo = th.data.userInfo; |
270 | 275 | if (userInfo.card_field != null && userInfo.card_field != undefined && userInfo.card_field != "") { | ... | ... |
pages/user/index/index.wxml
... | ... | @@ -196,11 +196,19 @@ |
196 | 196 | <view class="fs26">我的权益</view> |
197 | 197 | </view> |
198 | 198 | |
199 | - <view class="item t-c" bindtap="contactService"> | |
199 | + <button class="item t-c" wx:if="{{sys_switch.weapp_customertype}}" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> | |
200 | + <image class="xc-center-img " src="{{iurl}}/miniapp/images/kefu.png"></image> | |
201 | + <view class="fs26">联系客服</view> | |
202 | + </button> | |
203 | + | |
204 | + <view class="item t-c" bindtap="contactService" wx:else> | |
200 | 205 | <image class="xc-center-img " src="{{iurl}}/miniapp/images/kefu.png"></image> |
201 | 206 | <view class="fs26">联系客服</view> |
202 | 207 | </view> |
203 | 208 | |
209 | + | |
210 | + | |
211 | + | |
204 | 212 | <view class="item t-c" data-url="/pages/user/cardinfo/cardinfo" bindtap="goto" wx:if="{{is_dengji==1}}"> |
205 | 213 | <image class="xc-center-img " src="{{iurl}}/miniapp/images/plus/privilege_o.png"></image> |
206 | 214 | <view class="fs26">plus会员</view> | ... | ... |