Browse Source

详情脱敏

fenbao
lipengcheng 4 months ago
parent
commit
baf0df1b9e
  1. 8
      pagesA/checkout/detail/detail.vue

8
pagesA/checkout/detail/detail.vue

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

Loading…
Cancel
Save