Commit 9bf842bed594a97b88666c2df507faac4b82e1aa
1 parent
3437fe3e
订单详情联系客服实现会话
Showing
3 changed files
with
20 additions
and
2 deletions
pages/user/order_detail/order_detail.js
| ... | ... | @@ -19,10 +19,11 @@ Page({ |
| 19 | 19 | |
| 20 | 20 | getApp().getConfig2(function (e) { |
| 21 | 21 | |
| 22 | - th.setData({conf: e,sales_rules:e.sales_rules }); | |
| 22 | + th.setData({conf: e,sales_rules:e.sales_rules, userInfo: getApp().globalData.userInfo}); | |
| 23 | 23 | //--- 看后台是不是有开通等级卡 --- |
| 24 | 24 | if(e.switch_list){ |
| 25 | 25 | var s_list=JSON.parse(e.switch_list); |
| 26 | + th.setData({sys_switch: s_list}); | |
| 26 | 27 | var is_open_offline=s_list.is_pricing_open; |
| 27 | 28 | var user=getApp().globalData.userInfo; |
| 28 | 29 | //如果后台有开启等级价的功能 | ... | ... |
pages/user/order_detail/order_detail.wxml
| ... | ... | @@ -52,7 +52,19 @@ |
| 52 | 52 | </view> |
| 53 | 53 | <view class="order-operate"> |
| 54 | 54 | <view bindtap="checkTeam" class="contact-us check-btn" wx:if="{{optionIsGoup}}">查看拼团详情</view> |
| 55 | - <view bindtap="contactService" class="contact-us goods-btn">联系客服</view> | |
| 55 | + <view> | |
| 56 | + <!-- <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}}"> --> | |
| 57 | + <!-- <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> | |
| 58 | + <view></view> --> | |
| 59 | + <!-- </button> --> | |
| 60 | + <button wx:if="{{sys_switch.weapp_customertype}}" class="contact-us goods-btn" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}">联系客服</button> | |
| 61 | + <!-- <view wx:else class="custom-service cart-ico new_split" bindtap="contactService"> | |
| 62 | + <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> | |
| 63 | + <view>联系客服</view> | |
| 64 | + </view> --> | |
| 65 | + <view wx:else bindtap="contactService" class="contact-us goods-btn">联系客服</view> | |
| 66 | + </view> | |
| 67 | + <!-- <view bindtap="contactService" class="contact-us goods-btn">联系客服</view> --> | |
| 56 | 68 | <view bindtap="cancelOrder" class="cancel-order goods-btn" data-id="{{order.order_id}}" |
| 57 | 69 | hidden="{{!(order.order_status==0&&order.pay_status==0)}}">取消订单</view> |
| 58 | 70 | </view> | ... | ... |
pages/user/order_detail/order_detail.wxss