3 changed files with 44 additions and 0 deletions
@ -0,0 +1,44 @@ |
|||
<template> |
|||
<view> |
|||
<template v-if="list.length"> |
|||
<u-list> |
|||
<u-list-item> |
|||
<td title="adsdsdf">小区名称</td> |
|||
<td title="adsdsdf">联系电话</td> |
|||
<td title="adsdsdf">服务等级</td> |
|||
<td title="adsdsdf">物业费单价</td> |
|||
</u-list-item> |
|||
<u-list-item v-for="(item, index) in list" :key="index"> |
|||
<u-cell :title="item.name" is-link :url="`/userPages/pages/article?id=${item.articleId}`" :label="item.createTime"></u-cell> |
|||
</u-list-item> |
|||
</u-list> |
|||
</template> |
|||
<u-empty v-else text="暂无文章"/> |
|||
<custom-tabbar :current="1"/> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
import CustomTabbar from "@/components/customTabbar.vue"; |
|||
import {communityListReq} from "@/api/common"; |
|||
|
|||
export default { |
|||
name: "articleList", |
|||
components: {CustomTabbar}, |
|||
data() { |
|||
return { |
|||
cateId: null, |
|||
list: [] |
|||
} |
|||
}, |
|||
methods: { |
|||
async getList() { |
|||
const {data} = await communityListReq() |
|||
this.list = data |
|||
} |
|||
}, |
|||
onLoad({id}) { |
|||
this.getList() |
|||
} |
|||
} |
|||
</script> |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
Loading…
Reference in new issue