| @@ -18,7 +18,7 @@ | |||||
| <p style="display:inline-block;background: #EC4B2C;height:20px;width: 20px;border-radius: 2px;margin-right: 10px;float: left"></p><p style="font-weight: bold;font-size: 18px;">{{item}}</p> | <p style="display:inline-block;background: #EC4B2C;height:20px;width: 20px;border-radius: 2px;margin-right: 10px;float: left"></p><p style="font-weight: bold;font-size: 18px;">{{item}}</p> | ||||
| </template> | </template> | ||||
| <template #label> | <template #label> | ||||
| <p style="font-size: 16px">内容</p> | |||||
| <p style="font-size: 16px"></p> | |||||
| </template> | </template> | ||||
| </van-cell> | </van-cell> | ||||
| </van-list> | </van-list> | ||||
| @@ -45,15 +45,15 @@ | |||||
| // 异步更新数据 | // 异步更新数据 | ||||
| // setTimeout 仅做示例,真实场景中一般为 ajax 请求 | // setTimeout 仅做示例,真实场景中一般为 ajax 请求 | ||||
| setTimeout(() => { | setTimeout(() => { | ||||
| for (let i = 0; i < 10; i++) { | |||||
| this.list.push(this.list.length + 1+"标题"); | |||||
| for (let i = 0; i < 1; i++) { | |||||
| this.list.push("暂无公示公告"); | |||||
| } | } | ||||
| // 加载状态结束 | // 加载状态结束 | ||||
| this.loading = false; | this.loading = false; | ||||
| // 数据全部加载完成 | // 数据全部加载完成 | ||||
| if (this.list.length >= 40) { | |||||
| if (this.list.length >= 1) { | |||||
| this.finished = true; | this.finished = true; | ||||
| } | } | ||||
| }, 1000); | }, 1000); | ||||