wangyx 1 week ago
parent
commit
769024c1c7
  1. 42
      pagesA/kfPage/list.vue
  2. BIN
      static/img/kf.png

42
pagesA/kfPage/list.vue

@ -34,14 +34,14 @@
> >
<view <view
class="appointment-card" class="appointment-card"
v-for="item in filteredAppointmentList" v-for="item in appointmentList"
:key="item.id" :key="item.id"
> >
<!-- 卡片头部 --> <!-- 卡片头部 -->
<view class="card-header"> <view class="card-header">
<u-icon name="home" size="16" color="#08B3B3"></u-icon> <u-icon name="/static/img/kf.png" size="20" color="#08B3B3"></u-icon>
<text class="community-info" <text class="community-info"
>{{ item.apartmentName }} | {{ item.houseTypeName }}</text >{{ item.apartmentName }} | {{ item.houseTypeName||'' }}</text
> >
</view> </view>
@ -78,7 +78,7 @@
<!-- 空状态 --> <!-- 空状态 -->
<u-empty <u-empty
v-if="filteredAppointmentList.length === 0 && !loading" v-if="appointmentList.length === 0 && !loading"
text="暂无预约信息" text="暂无预约信息"
mode="list" mode="list"
></u-empty> ></u-empty>
@ -201,26 +201,7 @@ export default {
return { return {
searchPhone: "", // searchPhone: "", //
loading: false, // loading: false, //
appointmentList: [ appointmentList: [],
{
id: 1,
community: "西海岸路乐业社区",
houseType: "三居室",
appointee: "杨斌",
phone: "13362000010",
appointmentTime: "2025-08-06 上午09:00-12:00",
idCard: "370832199606062001",
},
{
id: 2,
community: "西海岸路乐业社区",
houseType: "三居室",
appointee: "曲曼",
phone: "17700020202",
appointmentTime: "2025-08-06 上午09:00-12:00",
idCard: "370832199606062002",
},
],
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
@ -246,19 +227,6 @@ export default {
], ],
}; };
}, },
computed: {
//
filteredAppointmentList() {
if (!this.searchPhone) {
return this.appointmentList;
}
return this.appointmentList.filter(
(item) =>
item.phone.includes(this.searchPhone) ||
item.appointee.includes(this.searchPhone)
);
},
},
onLoad() { onLoad() {
this.resetAndLoad(); this.resetAndLoad();
}, },

BIN
static/img/kf.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Loading…
Cancel
Save