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,10 +19,11 @@ Page({ | ||
19 | 19 | ||
20 | getApp().getConfig2(function (e) { | 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 | if(e.switch_list){ | 24 | if(e.switch_list){ |
25 | var s_list=JSON.parse(e.switch_list); | 25 | var s_list=JSON.parse(e.switch_list); |
26 | + th.setData({sys_switch: s_list}); | ||
26 | var is_open_offline=s_list.is_pricing_open; | 27 | var is_open_offline=s_list.is_pricing_open; |
27 | var user=getApp().globalData.userInfo; | 28 | var user=getApp().globalData.userInfo; |
28 | //如果后台有开启等级价的功能 | 29 | //如果后台有开启等级价的功能 |
pages/user/order_detail/order_detail.wxml
@@ -52,7 +52,19 @@ | @@ -52,7 +52,19 @@ | ||
52 | </view> | 52 | </view> |
53 | <view class="order-operate"> | 53 | <view class="order-operate"> |
54 | <view bindtap="checkTeam" class="contact-us check-btn" wx:if="{{optionIsGoup}}">查看拼团详情</view> | 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 | <view bindtap="cancelOrder" class="cancel-order goods-btn" data-id="{{order.order_id}}" | 68 | <view bindtap="cancelOrder" class="cancel-order goods-btn" data-id="{{order.order_id}}" |
57 | hidden="{{!(order.order_status==0&&order.pay_status==0)}}">取消订单</view> | 69 | hidden="{{!(order.order_status==0&&order.pay_status==0)}}">取消订单</view> |
58 | </view> | 70 | </view> |
pages/user/order_detail/order_detail.wxss
@@ -170,4 +170,9 @@ | @@ -170,4 +170,9 @@ | ||
170 | background-color: #f23030; | 170 | background-color: #f23030; |
171 | /* margin-left: 2rpx; */ | 171 | /* margin-left: 2rpx; */ |
172 | margin-right: 8rpx | 172 | margin-right: 8rpx |
173 | +} | ||
174 | + | ||
175 | + | ||
176 | +.contact-us.goods-btn::after { | ||
177 | + content: none; | ||
173 | } | 178 | } |
174 | \ No newline at end of file | 179 | \ No newline at end of file |