deming/components/mine/article-list/index.vue

47 lines
918 B
Vue
Raw Normal View History

2020-06-04 08:21:34 +08:00
<template>
<view class="article-list">
<view v-for="(item, index) in articleList" :key="index" class="list-item" @click="toDetailsPage()">
<view>{{ type }}</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,
type: String
},
methods: {
toDetailsPage() {
uni.navigateTo({
2020-06-08 15:23:23 +08:00
url: '/pageE/mine/ArticleDetails?title=' + this.type + "详情"
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;
.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>