2020-06-04 08:21:34 +08:00
|
|
|
<template>
|
|
|
|
<view class="article-list">
|
2020-06-24 16:39:31 +08:00
|
|
|
<u-empty text="数据为空" mode="data" color="#000000" img-width="240" margin-top="300" v-if="!articleList.length"></u-empty>
|
2020-06-19 18:07:11 +08:00
|
|
|
<view v-for="(item, index) in articleList" :key="index" class="list-item" @click="toDetailsPage(item)">
|
|
|
|
<view>{{ item.help_title }}</view>
|
2020-06-08 15:23:23 +08:00
|
|
|
<image src="@/pageE/static/mine/21.png"></image>
|
2020-06-04 08:21:34 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {}
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
articleList: Array,
|
|
|
|
},
|
|
|
|
methods: {
|
2020-06-19 18:07:11 +08:00
|
|
|
toDetailsPage(item) {
|
|
|
|
this.$u.route({
|
|
|
|
type: 'navigateTo',
|
|
|
|
url: '/pageE/mine/ArticleDetails',
|
|
|
|
params: {
|
|
|
|
id: item.help_id
|
|
|
|
}
|
|
|
|
})
|
2020-06-04 08:21:34 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.article-list {
|
2020-06-08 15:23:23 +08:00
|
|
|
min-height: calc(100vh - var(--window-top));
|
2020-06-04 08:21:34 +08:00
|
|
|
background-color: #ECECEC;
|
2020-06-24 16:39:31 +08:00
|
|
|
overflow: hidden;
|
2020-06-04 08:21:34 +08:00
|
|
|
.list-item {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
height: 98rpx;
|
|
|
|
border-top: 2rpx solid #EBEBEB;
|
|
|
|
background-color: #ffffff;
|
|
|
|
padding: 0 30rpx;
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: rgba(51,51,51,1);
|
2020-06-08 15:23:23 +08:00
|
|
|
> image {
|
2020-06-04 08:21:34 +08:00
|
|
|
width: 14rpx;
|
|
|
|
height: 24rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|