diff --git a/pages/shop/afterService.vue b/pages/shop/afterService.vue index 1bb7980..942462f 100644 --- a/pages/shop/afterService.vue +++ b/pages/shop/afterService.vue @@ -83,6 +83,9 @@ {{item.mallOrder.otherOrder == 1 ? '快递/跑腿单' : '查看订单'}} + + 平台介入 + 拼团详情 @@ -388,6 +391,45 @@ 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){ this.contactItem = item || {}; this.$refs.contactPopup.open('bottom'); @@ -1217,4 +1259,10 @@ background: rgba(0, 35, 28, 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; + } \ No newline at end of file