修复bug

This commit is contained in:
zhouyanli
2026-08-01 08:01:17 +08:00
parent 3b66b76e40
commit a34b625092
7 changed files with 141 additions and 110 deletions

View File

@@ -20,7 +20,7 @@
<text class="label">联系方式</text>
<text class="value">{{ visitorInfo.phone }}</text>
</view>
<view class="info-item">
<view class="info-item" v-if="visitorInfo.type !== '1'">
<text class="label">车牌号</text>
<text class="value">{{ visitorInfo.carNumber }}</text>
</view>
@@ -66,6 +66,7 @@ import {getVisitorDetail} from '../api/api.js'
const visitorInfo = ref({
name: '',
status: 'waiting', // waiting:等待来访visited:已到访
type: '',
address: '',
phone: '',
carNumber: '',
@@ -87,6 +88,7 @@ const mapDetail = (item) => {
return {
name: item.visitorName || '',
status,
type: item.type || '',
address: addressParts.join(''),
phone: item.visitorPhone || '',
carNumber: item.carNum || '',