修改访客邀请、一键开门bug

This commit is contained in:
zhouyanli
2026-05-07 11:57:57 +08:00
parent 231de9cde8
commit 0fb361ad64
6 changed files with 82 additions and 114 deletions

View File

@@ -13,9 +13,9 @@
</up-steps>
</uni-col>
<uni-col :span="12">
<view class="step-time">2026-03-26 09:30:38</view>
<view class="step-time">2026-03-26 09:30:38</view>
<view class="step-time-3">2026-03-28 09:30:38</view>
<view class="step-time" v-if="currentStep >= 0">{{timeData.createTime}}</view>
<view class="step-time" v-if="currentStep >= 1">{{timeData.dispatchTime}}</view>
<view class="step-time-3" v-if="currentStep >= 2">{{timeData.finishTime}}</view>
</uni-col>
</uni-row>
</view>
@@ -61,9 +61,9 @@
</view>
<!-- 联系物业按钮 -->
<view class="btn-container">
<!-- <view class="btn-container">
<button class="contact-btn" @click="contactProperty">联系物业</button>
</view>
</view> -->
</view>
</template>
@@ -87,6 +87,13 @@ const repairInfo = ref({
// 步骤状态
const currentStep = ref(0)
// 三个步骤对应的时间
const timeData = ref({
createTime: '', // 待处理/提交时间
dispatchTime: '', // 已派单时间
finishTime: '' // 已完成时间
})
const setStep = (status) => {
if (status === '0' || status === 0) currentStep.value = 0
@@ -108,6 +115,10 @@ const mapData = (data) => {
images
}
setStep(data.problemStatus)
// 三个步骤时间赋值
timeData.value.createTime = data.updateTime || ''
timeData.value.dispatchTime = data.updateTime || ''
timeData.value.finishTime = data.updateTime || ''
}
// 获取详情接口
@@ -145,11 +156,11 @@ const previewImage = (url) => {
}
// 联系物业按钮点击事件
const contactProperty = () => {
uni.makePhoneCall({
phoneNumber: '物业电话' // 换成真实电话
})
}
// const contactProperty = () => {
// uni.makePhoneCall({
// phoneNumber: '物业电话' // 换成真实电话
// })
// }
</script>
<style scoped>