首页列表

This commit is contained in:
pengxiaolong
2025-05-22 16:21:07 +08:00
parent af10ed06db
commit 6ca66f45d4
33 changed files with 483 additions and 377 deletions

View File

@@ -5,25 +5,28 @@ const common_assets = require("../../common/assets.js");
const _sfc_main = {
data() {
return {
title: "Hello",
Gender: true,
page: 0,
//页码
size: 10,
//每页条数
list: []
// 列表数据
list: [
{
title: "极乐世界",
id: "9088",
gender: "男",
score: 8.8
}
]
// 列表数据结束
};
},
mounted() {
this.pkList();
},
methods: {
goDetail(item) {
common_vendor.index.navigateTo({
url: "/pages/pkDetail/pkDetail",
success: function(res) {
res.eventChannel.emit("itemDetail", {
item
});
}
});
},
async pkList() {
const res = await components_request.request({
url: "pk/pkList",
@@ -31,14 +34,14 @@ const _sfc_main = {
data: {
status: 0,
page: this.page,
Size: 10
size: this.size
},
userInfo: false
});
common_vendor.index.__f__("log", "at components/contentList/contentList.vue:61", res);
common_vendor.index.__f__("log", "at components/contentList/contentList.vue:64", res);
if (res.code === 200) {
this.list.concat(res.data);
common_vendor.index.__f__("log", "at components/contentList/contentList.vue:64", this.list);
this.list.push(...res.data);
common_vendor.index.__f__("log", "at components/contentList/contentList.vue:67", this.list);
}
},
onScrollToLower() {
@@ -55,23 +58,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($data.list, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.title)
}, $data.Gender ? {
b: common_assets._imports_1$1
a: item.anchorIcon,
b: common_vendor.t(item.anchorId),
c: item.sex === "2"
}, item.sex === "2" ? {
d: common_assets._imports_0$4
} : {
c: common_assets._imports_1$1
e: common_assets._imports_1$1
}, {
d: common_vendor.t(item.gender),
e: common_vendor.t(item.id),
f: common_vendor.t(item.score),
g: "4813d59a-0-" + i0
f: common_vendor.t(item.sex === "1" ? "男" : "女"),
g: item.sex === "1" ? 1 : "",
h: item.sex === "2" ? 1 : "",
i: common_vendor.t(_ctx.formatDate(item.pkTime)),
j: common_vendor.t(item.coin + "K"),
k: common_vendor.o$1(($event) => $options.goDetail(item)),
l: "4813d59a-0-" + i0
});
}),
b: common_assets._imports_0$4,
c: $data.Gender,
d: $data.Gender ? 1 : "",
e: !$data.Gender ? 1 : "",
f: common_vendor.o$1((...args) => $options.onScrollToLower && $options.onScrollToLower(...args))
b: common_vendor.o$1((...args) => $options.onScrollToLower && $options.onScrollToLower(...args))
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4813d59a"]]);