tianyi 2 weeks ago
parent
commit
524b26e761
  1. 48
      pages/shop/afterService.vue

48
pages/shop/afterService.vue

@ -83,6 +83,9 @@
<view class="btn" @tap="orderDetailOpen(item)" style="display: inline-block;"> <view class="btn" @tap="orderDetailOpen(item)" style="display: inline-block;">
{{item.mallOrder.otherOrder == 1 ? '快递/跑腿单' : '查看订单'}} {{item.mallOrder.otherOrder == 1 ? '快递/跑腿单' : '查看订单'}}
</view> </view>
<view class="btn platform-intervention-btn" @tap.stop="callPlatformService" style="display: inline-block;">
平台介入
</view>
<view class="btn group-detail-btn" v-if="item.mallOrder && item.mallOrder.orderType != 1" @tap.stop="getGroupOrders(item.mallOrder.id || item.orderId)" style="display: inline-block;"> <view class="btn group-detail-btn" v-if="item.mallOrder && item.mallOrder.orderType != 1" @tap.stop="getGroupOrders(item.mallOrder.id || item.orderId)" style="display: inline-block;">
拼团详情 拼团详情
</view> </view>
@ -388,6 +391,45 @@
phoneNumber: phone phoneNumber: phone
}); });
}, },
callPlatformService() {
let regionId = this.getCurrentRegionId();
if (!regionId) {
this.tui.toast("请选择校区");
return;
}
let that = this;
this.NB.sendRequest("/mall/admin/seckillGroup/customerPhone/get", {
regionId: regionId
}, false, 'get', 'application/json').then((res) => {
if (res.code == 200) {
that.makeCall(res.result);
} else {
uni.showToast({
title: res.message || "获取客服电话失败",
icon: 'none'
})
return;
}
uni.hideLoading();
}).catch((res) => {
uni.showToast({
title: "获取客服电话失败",
icon: 'none'
})
});
},
getCurrentRegionId() {
let area = uni.getStorageSync('area');
if (!area) return '';
if (typeof area === 'object') {
return area.id || '';
}
try {
return JSON.parse(area).id || '';
} catch (e) {
return '';
}
},
openContactPopup(item){ openContactPopup(item){
this.contactItem = item || {}; this.contactItem = item || {};
this.$refs.contactPopup.open('bottom'); this.$refs.contactPopup.open('bottom');
@ -1217,4 +1259,10 @@
background: rgba(0, 35, 28, 1); background: rgba(0, 35, 28, 1);
color: rgba(166, 255, 234, 1); color: rgba(166, 255, 234, 1);
} }
.platform-intervention-btn {
margin-left: 14rpx;
background: rgba(255, 255, 255, 0.72);
border: 1px solid rgba(0, 35, 28, 0.12);
color: #00231C;
}
</style> </style>
Loading…
Cancel
Save