Commit b254c5916a3efce19ec0aab339147735f0cb75f4

Authored by yvan.ni
1 parent 89f02c51

会员中心联系客服的功能制作

pages/user/index/index.js
@@ -265,6 +265,11 @@ Page({ @@ -265,6 +265,11 @@ Page({
265 getApp().getConfig2(function(e) { 265 getApp().getConfig2(function(e) {
266 var t_swi = e.switch_list; 266 var t_swi = e.switch_list;
267 if (t_swi) t_swi = JSON.parse(t_swi) 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 if (parseInt(t_swi.rank_switch) == 2) { 273 if (parseInt(t_swi.rank_switch) == 2) {
269 var userInfo = th.data.userInfo; 274 var userInfo = th.data.userInfo;
270 if (userInfo.card_field != null && userInfo.card_field != undefined && userInfo.card_field != "") { 275 if (userInfo.card_field != null && userInfo.card_field != undefined && userInfo.card_field != "") {
pages/user/index/index.wxml
@@ -196,11 +196,19 @@ @@ -196,11 +196,19 @@
196 <view class="fs26">我的权益</view> 196 <view class="fs26">我的权益</view>
197 </view> 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 <image class="xc-center-img " src="{{iurl}}/miniapp/images/kefu.png"></image> 205 <image class="xc-center-img " src="{{iurl}}/miniapp/images/kefu.png"></image>
201 <view class="fs26">联系客服</view> 206 <view class="fs26">联系客服</view>
202 </view> 207 </view>
203 208
  209 +
  210 +
  211 +
204 <view class="item t-c" data-url="/pages/user/cardinfo/cardinfo" bindtap="goto" wx:if="{{is_dengji==1}}"> 212 <view class="item t-c" data-url="/pages/user/cardinfo/cardinfo" bindtap="goto" wx:if="{{is_dengji==1}}">
205 <image class="xc-center-img " src="{{iurl}}/miniapp/images/plus/privilege_o.png"></image> 213 <image class="xc-center-img " src="{{iurl}}/miniapp/images/plus/privilege_o.png"></image>
206 <view class="fs26">plus会员</view> 214 <view class="fs26">plus会员</view>
pages/user/index/index.wxss
@@ -706,4 +706,6 @@ @@ -706,4 +706,6 @@
706 .banner-frame{ 706 .banner-frame{
707 width: 100%; 707 width: 100%;
708 background: #f2f2f2; 708 background: #f2f2f2;
709 -}  
710 \ No newline at end of file 709 \ No newline at end of file
  710 +}
  711 +
  712 +button::after{ border: 0}
711 \ No newline at end of file 713 \ No newline at end of file