|
|
|
@ -19,7 +19,7 @@ import { detail } from '@/api/mz/contract'; |
|
|
|
>{{ info.gender == 1 ? "男" : "女" }}</view |
|
|
|
> |
|
|
|
<view class="info-row" |
|
|
|
><text class="label">联系电话</text>{{ info.telephone }}</view |
|
|
|
><text class="label">联系电话</text>{{ maskPhoneNumber(info.telephone) }}</view |
|
|
|
> |
|
|
|
<view class="info-row" |
|
|
|
><text class="label">居住日期</text>{{ info.checkInDate }}至{{ |
|
|
|
@ -186,6 +186,12 @@ export default { |
|
|
|
this.getFacilities(options.houseId); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
maskPhoneNumber (phoneNumber) { |
|
|
|
if (!phoneNumber || phoneNumber.length !== 11) { |
|
|
|
return phoneNumber; |
|
|
|
} |
|
|
|
return phoneNumber.substr(0, 3) + '****' + phoneNumber.substr(7); |
|
|
|
}, |
|
|
|
getFacilities(id) { |
|
|
|
getRoomFacilities({ houseId: id }).then((res) => { |
|
|
|
this.deviceList = res.data; |
|
|
|
|