wangfukang 2 weeks ago
parent
commit
70c5503411
  1. 44
      package2/shop/afterService.vue
  2. 14
      package2/shop/orderDetail.vue

44
package2/shop/afterService.vue

@ -83,6 +83,9 @@
<view class="btn" @tap="orderDetailOpen(item)" style="display: inline-block;">
{{item.mallOrder.otherOrder == 1 ? '快递/跑腿单' : '查看订单'}}
</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>
@ -378,10 +381,45 @@
});
},
makeCall(phone){
if (!phone) {
this.tui.toast("暂无联系电话");
return;
}
uni.makePhoneCall({
phoneNumber: phone
});
},
callPlatformService() {
let regionId = this.getCurrentRegionId();
if (!regionId) {
this.tui.toast("请选择校区");
return;
}
let that = this;
that.tui.request("/mall/admin/seckillGroup/customerPhone/get", "GET", {
regionId: regionId
}, false, true).then((res) => {
if (res.code == 200) {
that.makeCall(res.result);
} else {
that.tui.toast(res.message || "获取客服电话失败");
}
}).catch(() => {
that.tui.toast("获取客服电话失败");
});
},
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');
@ -807,6 +845,12 @@
background: linear-gradient(90deg, #FF4500, #FFA07A);
color: #fff;
}
.platform-intervention-btn {
margin-left: 14rpx;
background: rgba(255, 255, 255, 0.72);
border: 1px solid rgba(0, 35, 28, 0.12);
color: #00231C;
}
.empty-box {
width: 95%;
margin: 40rpx auto 0;

14
package2/shop/orderDetail.vue

@ -201,11 +201,7 @@
</view>
</view>
<view class="box1 income-card" v-if="data.incomeSummary && data.incomeSummary.show && Ptype !='work'">
<view class="income-title">
<text>商家预计收入</text>
<text class="income-total">{{formatMoney(data.incomeSummary.expectedIncome)}}</text>
</view>
<view class="income-subtitle">{{data.incomeSummary.remark}}</view>
<view class="income-row">
<text>结算基数</text>
<text>{{formatMoney(data.incomeSummary.baseAmount)}}</text>
@ -229,11 +225,13 @@
<view class="income-formula" v-if="data.incomeSummary.deductionBaseAmount > 0">
责任金额 {{formatMoney(data.incomeSummary.deductionBaseAmount)}} - 返还服务费 {{formatMoney(data.incomeSummary.deductionCommissionAmount)}}
</view>
<view class="income-row income-result">
<text>预计收入</text>
<text>{{formatMoney(data.incomeSummary.expectedIncome)}}</text>
<view class="income-title">
<text>商家预计收入</text>
<text class="income-total">{{formatMoney(data.incomeSummary.expectedIncome)}}</text>
</view>
<view class="income-formula">正常结算 - 退款/售后责任扣款</view>
<view class="income-subtitle">{{data.incomeSummary.remark}}</view>
<view class="income-line-list" v-if="data.incomeSummary.lines && data.incomeSummary.lines.length > 0">
<view class="income-line" v-for="(line,lineIndex) in data.incomeSummary.lines" :key="lineIndex">
<text>{{line.name}}</text>

Loading…
Cancel
Save