REFACTOR:礼品功能重构
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
</u-popup>
|
||||
|
||||
<!-- 联系人信息 -->
|
||||
<view class="contact-section">
|
||||
<view class="contact-section" v-if="isView === 0">
|
||||
<view class="section-title v12-font-28 v12-font-bold">联系人信息</view>
|
||||
<u-divider></u-divider>
|
||||
<view class="info-item">
|
||||
@@ -135,7 +135,7 @@
|
||||
|
||||
<!-- 底部按钮 -->
|
||||
<view class="bottom-buttons">
|
||||
<button class="btn customer-service" @click="showPhoneDialog('phone')">平台客服</button>
|
||||
<button class="btn customer-service" @click="showPhoneDialog('company')">平台客服</button>
|
||||
<view class="v12-align-center" v-if="orderInfo._status && ['1','2'].includes(orderInfo._status._type)">
|
||||
<button class="btn v12-primary-border v12-primary-text modify-time" @click="modifyStayTime">修改入住时间</button>
|
||||
<button class="btn v12-primary-border v12-primary-text refund" @click="applyRefund">申请退款</button>
|
||||
@@ -170,11 +170,13 @@ export default {
|
||||
_status: {},
|
||||
merchantPhone: '' // 添加商家电话字段
|
||||
},
|
||||
showPhonePopup: false // 控制电话弹窗显示
|
||||
showPhonePopup: false, // 控制电话弹窗显示
|
||||
isView: 0
|
||||
}
|
||||
},
|
||||
onLoad(otps) {
|
||||
this.key = otps.id;
|
||||
this.isView = otps.isView || 0;
|
||||
this.getSojoumOrderDetail();
|
||||
},
|
||||
methods: {
|
||||
@@ -324,7 +326,7 @@ export default {
|
||||
},
|
||||
// 显示电话弹窗
|
||||
showPhoneDialog(type) {
|
||||
if (!this.orderInfo.merPhone) {
|
||||
if (!this.orderInfo.merPhone && type === 'phone') {
|
||||
uni.showToast({
|
||||
title: '暂无商家电话',
|
||||
icon: 'none'
|
||||
@@ -337,6 +339,9 @@ export default {
|
||||
} else if (type === 'wechat') {
|
||||
this.title = '商家微信';
|
||||
this.popContent = this.orderInfo.merWechat;
|
||||
} else if (type === 'company') {
|
||||
this.title = '平台电话';
|
||||
this.popContent = this.orderInfo.companyTel;
|
||||
}
|
||||
this.showPhonePopup = true;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user