72 lines
2.7 KiB
JavaScript
72 lines
2.7 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
if (!Array) {
|
|
const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar");
|
|
const _easycom_up_cell2 = common_vendor.resolveComponent("up-cell");
|
|
const _easycom_up_list_item2 = common_vendor.resolveComponent("up-list-item");
|
|
const _easycom_up_list2 = common_vendor.resolveComponent("up-list");
|
|
(_easycom_up_avatar2 + _easycom_up_cell2 + _easycom_up_list_item2 + _easycom_up_list2)();
|
|
}
|
|
const _easycom_up_avatar = () => "../../node-modules/uview-plus/components/u-avatar/u-avatar.js";
|
|
const _easycom_up_cell = () => "../../node-modules/uview-plus/components/u-cell/u-cell.js";
|
|
const _easycom_up_list_item = () => "../../node-modules/uview-plus/components/u-list-item/u-list-item.js";
|
|
const _easycom_up_list = () => "../../node-modules/uview-plus/components/u-list/u-list.js";
|
|
if (!Math) {
|
|
(_easycom_up_avatar + _easycom_up_cell + _easycom_up_list_item + _easycom_up_list)();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "index",
|
|
setup(__props) {
|
|
const indexList = common_vendor.ref([]);
|
|
const urls = [
|
|
"https://uview-plus.jiangruyi.com/album/1.jpg",
|
|
"https://uview-plus.jiangruyi.com/album/2.jpg",
|
|
"https://uview-plus.jiangruyi.com/album/3.jpg",
|
|
"https://uview-plus.jiangruyi.com/album/4.jpg",
|
|
"https://uview-plus.jiangruyi.com/album/5.jpg",
|
|
"https://uview-plus.jiangruyi.com/album/6.jpg",
|
|
"https://uview-plus.jiangruyi.com/album/7.jpg",
|
|
"https://uview-plus.jiangruyi.com/album/8.jpg",
|
|
"https://uview-plus.jiangruyi.com/album/9.jpg",
|
|
"https://uview-plus.jiangruyi.com/album/10.jpg"
|
|
];
|
|
common_vendor.onLoad(() => {
|
|
loadmore();
|
|
});
|
|
const scrolltolower = () => {
|
|
loadmore();
|
|
};
|
|
const loadmore = () => {
|
|
for (let i = 0; i < 30; i++) {
|
|
indexList.value.push({
|
|
url: urls[common_vendor.index.$u.random(0, urls.length - 1)]
|
|
});
|
|
}
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.f(indexList.value, (item, index, i0) => {
|
|
return {
|
|
a: "1bde9236-3-" + i0 + "," + ("1bde9236-2-" + i0),
|
|
b: common_vendor.p({
|
|
shape: "square",
|
|
size: "35",
|
|
src: item.url,
|
|
customStyle: "margin: -3px 5px -3px 0"
|
|
}),
|
|
c: "1bde9236-2-" + i0 + "," + ("1bde9236-1-" + i0),
|
|
d: common_vendor.p({
|
|
title: `列表长度-${index + 1}`
|
|
}),
|
|
e: index,
|
|
f: "1bde9236-1-" + i0 + ",1bde9236-0"
|
|
};
|
|
}),
|
|
b: common_vendor.o(scrolltolower)
|
|
};
|
|
};
|
|
}
|
|
};
|
|
wx.createPage(_sfc_main);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_case/index/index.js.map
|