Feat;旅居订单评价

This commit is contained in:
LinCyJang
2026-01-10 23:56:33 +08:00
parent 0038846328
commit 6f367223c5
4 changed files with 83 additions and 11 deletions
+21 -1
View File
@@ -176,6 +176,9 @@
<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>
</view>
<view class="v12-align-center" v-if="orderInfo._status && ['3','4'].includes(orderInfo._status._type)">
<button class="btn v12-primary-border v12-primary-text" @click="goEvaluate">立即评价</button>
</view>
<view class="v12-align-center" v-if="!orderInfo._status && ['1','2'].includes(orderInfo._status._type)">
<button class="btn v12-dark-border v12-dark-text modify-time" @click="showPhoneDialog('phone')">联系商家</button>
</view>
@@ -385,6 +388,23 @@ export default {
url: '/pkg_product/views/sojoumOrderRefund?id=' + this.key
})
},
goEvaluate() {
const orderId = this.orderInfo.orderId
if (!orderId) {
uni.showToast({
title: '订单信息错误',
icon: 'none'
})
return
}
this.$yrouter.push({
path: '/pages/shop/GoodsEvaluate/index',
query: {
id: orderId,
isTravelGroup: 1
}
})
},
// 显示电话弹窗
showPhoneDialog(type) {
if (!this.orderInfo.merPhone && type === 'phone') {
@@ -647,4 +667,4 @@ export default {
margin-top: 30rpx;
padding: 30rpx;
}
</style>
</style>