1111
This commit is contained in:
@@ -1,71 +0,0 @@
|
||||
"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
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "uni-app分页",
|
||||
"usingComponents": {
|
||||
"up-avatar": "../../node-modules/uview-plus/components/u-avatar/u-avatar",
|
||||
"up-cell": "../../node-modules/uview-plus/components/u-cell/u-cell",
|
||||
"up-list-item": "../../node-modules/uview-plus/components/u-list-item/u-list-item",
|
||||
"up-list": "../../node-modules/uview-plus/components/u-list/u-list"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="u-page"><up-list u-s="{{['d']}}" bindscrolltolower="{{b}}" u-i="1bde9236-0" bind:__l="__l"><up-list-item wx:for="{{a}}" wx:for-item="item" wx:key="e" u-s="{{['d']}}" u-i="{{item.f}}" bind:__l="__l"><up-cell wx:if="{{item.d}}" u-s="{{['icon']}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"><up-avatar u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}" slot="icon"></up-avatar></up-cell></up-list-item></up-list></view>
|
||||
Reference in New Issue
Block a user