Commit b7ff23ec961cc84e1d89768791936b4a96cd85b5

Authored by yvan.ni
1 parent 737356ca

小程序客服的管理控制

pages/goods/goodsInfo/goodsInfo.js
... ... @@ -279,6 +279,7 @@ Page({
279 279 var json_d = JSON.parse(e.switch_list);
280 280 ee.setData({
281 281 store_config: e,
  282 + sys_switch:json_d,
282 283 is_closecoupon: json_d.is_closecoupon,
283 284 is_newsales_rules:json_d.is_newsales_rules
284 285 });
... ...
pages/goods/goodsInfo/goodsInfo.wxml
... ... @@ -734,13 +734,14 @@
734 734 <!-------------------底部按钮-------------------->
735 735 <view class="join-cart">
736 736 <!-- bindtap="contactService" -->
737   - <button class="custom-service cart-ico new_split" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}">
  737 + <button wx:if="{{sys_switch.weapp_customertype}}" class="custom-service cart-ico new_split" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}">
738 738 <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image>
739 739 <view>客服</view>
740 740 </button>
741   -
742   -
743   -
  741 + <view wx:else class="custom-service cart-ico new_split" bindtap="contactService">
  742 + <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image>
  743 + <view>客服</view>
  744 + </view>
744 745  
745 746 <view bindtap="collectGoods" class="custom-service cart-ico new_split">
746 747 <image hidden="{{is_collect}}" class="cs-img" src="{{iurl}}/miniapp/images/heart.png"></image>
... ...