|
@@ -107,6 +107,19 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
const toTab = async (data) => {
|
|
|
console.log(data);
|
|
|
};
|
|
|
+ const toPage = () => {
|
|
|
+ if (total.value > list.value.length) {
|
|
|
+ common_vendor.index.showLoading({
|
|
|
+ title: "加载中",
|
|
|
+ mask: true
|
|
|
+ });
|
|
|
+ page.value = page.value + 1;
|
|
|
+ skip.value = page.value * limit.value;
|
|
|
+ search();
|
|
|
+ common_vendor.index.hideLoading();
|
|
|
+ } else
|
|
|
+ is_bottom.value = true;
|
|
|
+ };
|
|
|
const clearPage = () => {
|
|
|
list.value = [];
|
|
|
skip.value = 0;
|
|
@@ -118,9 +131,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
a: nick_name.value,
|
|
|
b: common_vendor.o(($event) => nick_name.value = $event.detail.value),
|
|
|
c: common_vendor.o(searchInfo),
|
|
|
- d: total.value > 0
|
|
|
- }, total.value > 0 ? common_vendor.e({
|
|
|
- e: common_vendor.f(subjectList.value, (item, index, i0) => {
|
|
|
+ d: common_vendor.f(subjectList.value, (item, index, i0) => {
|
|
|
return {
|
|
|
a: common_vendor.t(item.label),
|
|
|
b: common_vendor.n(active.value == index ? "listActive" : ""),
|
|
@@ -128,40 +139,37 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
d: common_vendor.o(($event) => toChange(index, item), index)
|
|
|
};
|
|
|
}),
|
|
|
- f: common_vendor.o(toTab),
|
|
|
- g: common_vendor.p({
|
|
|
+ e: common_vendor.o(toTab),
|
|
|
+ f: common_vendor.p({
|
|
|
list: gradeList.value,
|
|
|
keyName: "label"
|
|
|
}),
|
|
|
- h: total.value > 0
|
|
|
+ g: total.value > 0
|
|
|
}, total.value > 0 ? common_vendor.e({
|
|
|
- i: common_vendor.f(list.value, (tag, index, i0) => {
|
|
|
+ h: common_vendor.f(list.value, (tag, index, i0) => {
|
|
|
return {
|
|
|
a: common_vendor.t(tag.nick_name),
|
|
|
b: index,
|
|
|
c: common_vendor.o(($event) => _ctx.toBuy(tag), index)
|
|
|
};
|
|
|
}),
|
|
|
- j: is_bottom.value
|
|
|
+ i: is_bottom.value
|
|
|
}, is_bottom.value ? {
|
|
|
- k: common_vendor.t(config.value.bottom_title)
|
|
|
+ j: common_vendor.t(config.value.bottom_title)
|
|
|
} : {}, {
|
|
|
+ k: common_vendor.o(toPage),
|
|
|
l: common_vendor.o(
|
|
|
- //@ts-ignore
|
|
|
- (...args) => _ctx.toPage && _ctx.toPage(...args)
|
|
|
- ),
|
|
|
- m: common_vendor.o(
|
|
|
//@ts-ignore
|
|
|
(...args) => _ctx.toScroll && _ctx.toScroll(...args)
|
|
|
)
|
|
|
}) : {
|
|
|
- n: common_vendor.p({
|
|
|
+ m: common_vendor.p({
|
|
|
mode: "list",
|
|
|
icon: "/static/list.png"
|
|
|
})
|
|
|
- }) : {}, {
|
|
|
- o: common_vendor.o(showChange),
|
|
|
- p: common_vendor.p({
|
|
|
+ }, {
|
|
|
+ n: common_vendor.o(showChange),
|
|
|
+ o: common_vendor.p({
|
|
|
show: show.value
|
|
|
})
|
|
|
});
|