|
|
@@ -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> |
|
|
|
</template> |
|
|
|
<template #label> |
|
|
|
<p style="font-size: 16px">内容</p> |
|
|
|
<p style="font-size: 16px"></p> |
|
|
|
</template> |
|
|
|
</van-cell> |
|
|
|
</van-list> |
|
|
@@ -45,15 +45,15 @@ |
|
|
|
// 异步更新数据 |
|
|
|
// setTimeout 仅做示例,真实场景中一般为 ajax 请求 |
|
|
|
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; |
|
|
|
|
|
|
|
// 数据全部加载完成 |
|
|
|
if (this.list.length >= 40) { |
|
|
|
if (this.list.length >= 1) { |
|
|
|
this.finished = true; |
|
|
|
} |
|
|
|
}, 1000); |
|
|
|