优化代码

This commit is contained in:
pengxiaolong
2025-08-05 22:05:56 +08:00
parent 3eddd94922
commit 40c3282515
86 changed files with 1700 additions and 399 deletions

View File

@@ -30,7 +30,7 @@ const _sfc_main = {
// PK大厅列表数据
MakeAppointmentPKlist: [],
// 今日PK列表数据
listtype: 1,
listtype: 2,
// 列表类型 1 当天 2 大于当天
filterable: true,
//是否可搜索
@@ -228,6 +228,10 @@ const _sfc_main = {
goAdvertisement() {
common_vendor.index.navigateTo({ url: "/pages/pkDetail/pkDetail" });
},
onScrollToLower() {
this.page++;
this.pkList({ type: this.listtype });
},
//下拉刷新
onRefresherRefresh() {
this.page = 0;
@@ -269,7 +273,7 @@ const _sfc_main = {
userId: this.info.id,
from: 1
},
userInfo: true
userInfo: false
});
this.detailsdata = res.data;
if (res.code === 200) {
@@ -329,10 +333,6 @@ const _sfc_main = {
}
}
},
onScrollToLower() {
this.page++;
this.pkList({ type: this.listtype });
},
components: {
topNavigation,
Advertisement,
@@ -385,7 +385,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
f: $data.list.length === 0
}, $data.list.length === 0 ? {} : {}, {
g: common_vendor.o((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
h: common_vendor.o((...args) => _ctx.onScrollToLower && _ctx.onScrollToLower(...args)),
h: common_vendor.o((...args) => $options.onScrollToLower && $options.onScrollToLower(...args)),
i: $data.triggered,
j: common_vendor.o(($event) => $options.onRefresherRefresh()),
k: common_vendor.p({