Commit b7ff23ec961cc84e1d89768791936b4a96cd85b5
1 parent
737356ca
小程序客服的管理控制
Showing
2 changed files
with
6 additions
and
4 deletions
pages/goods/goodsInfo/goodsInfo.js
@@ -279,6 +279,7 @@ Page({ | @@ -279,6 +279,7 @@ Page({ | ||
279 | var json_d = JSON.parse(e.switch_list); | 279 | var json_d = JSON.parse(e.switch_list); |
280 | ee.setData({ | 280 | ee.setData({ |
281 | store_config: e, | 281 | store_config: e, |
282 | + sys_switch:json_d, | ||
282 | is_closecoupon: json_d.is_closecoupon, | 283 | is_closecoupon: json_d.is_closecoupon, |
283 | is_newsales_rules:json_d.is_newsales_rules | 284 | is_newsales_rules:json_d.is_newsales_rules |
284 | }); | 285 | }); |
pages/goods/goodsInfo/goodsInfo.wxml
@@ -734,13 +734,14 @@ | @@ -734,13 +734,14 @@ | ||
734 | <!-------------------底部按钮--------------------> | 734 | <!-------------------底部按钮--------------------> |
735 | <view class="join-cart"> | 735 | <view class="join-cart"> |
736 | <!-- bindtap="contactService" --> | 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 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> | 738 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> |
739 | <view>客服</view> | 739 | <view>客服</view> |
740 | </button> | 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 | <view bindtap="collectGoods" class="custom-service cart-ico new_split"> | 746 | <view bindtap="collectGoods" class="custom-service cart-ico new_split"> |
746 | <image hidden="{{is_collect}}" class="cs-img" src="{{iurl}}/miniapp/images/heart.png"></image> | 747 | <image hidden="{{is_collect}}" class="cs-img" src="{{iurl}}/miniapp/images/heart.png"></image> |