Files
tk-mini-program/unpackage/dist/dev/mp-weixin/components/contentList/contentList.js
pengxiaolong af10ed06db 弹窗
2025-05-21 22:52:33 +08:00

80 lines
2.2 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const components_request = require("../request.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
data() {
return {
title: "Hello",
Gender: true,
page: 0,
// 列表数据
list: [
{
title: "极乐世界",
id: "9088",
gender: "男",
score: 8.8
}
]
// 列表数据结束
};
},
mounted() {
this.pkList();
},
methods: {
async pkList() {
const res = await components_request.request({
url: "pk/pkList",
method: "GET",
data: {
status: 0,
page: this.page,
Size: 10
},
userInfo: false
});
common_vendor.index.__f__("log", "at components/contentList/contentList.vue:61", res);
if (res.code === 200) {
this.list.concat(res.data);
common_vendor.index.__f__("log", "at components/contentList/contentList.vue:64", this.list);
}
},
onScrollToLower() {
this.page++;
this.pkList();
}
}
};
if (!Array) {
const _component_uni_card = common_vendor.resolveComponent("uni-card");
_component_uni_card();
}
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
} : {
c: 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
});
}),
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))
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4813d59a"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/contentList/contentList.js.map