2023-03-02 09:44:12 +08:00
|
|
|
<template>
|
|
|
|
<view>
|
2023-03-07 18:03:25 +08:00
|
|
|
<view class="container" v-for="(item,index) in data.items" :key="index" @click="toDetail(item)">
|
2023-03-02 09:44:12 +08:00
|
|
|
<view class="container-top">
|
|
|
|
<view class="container-name">
|
2023-03-07 18:03:25 +08:00
|
|
|
{{item.title}}
|
2023-03-02 09:44:12 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
2023-03-07 18:03:25 +08:00
|
|
|
<view class="container-content-key">
|
2023-03-02 09:44:12 +08:00
|
|
|
{{item.content}}
|
|
|
|
</view>
|
|
|
|
<view class="container-bottom">
|
|
|
|
<view class="container-date">
|
2023-03-07 18:03:25 +08:00
|
|
|
{{item.daily_time.replace("T"," ")}}
|
2023-03-02 09:44:12 +08:00
|
|
|
</view>
|
|
|
|
<uni-icons type="more-filled" size="12"></uni-icons>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2023-03-07 18:03:25 +08:00
|
|
|
props: {
|
|
|
|
data: [Object]
|
|
|
|
},
|
2023-03-02 09:44:12 +08:00
|
|
|
data() {
|
|
|
|
return {
|
2023-03-07 18:03:25 +08:00
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
toDetail(value) {
|
|
|
|
uni.redirectTo({
|
2023-03-07 18:03:25 +08:00
|
|
|
url: "/pages/dynamic/industry/detail?id=" + value.id,
|
2023-03-02 09:44:12 +08:00
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.container {
|
|
|
|
padding: 20px;
|
|
|
|
border: 1px solid #eee;
|
|
|
|
font-size: 12px;
|
2023-03-07 18:03:25 +08:00
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
&-name {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
2023-03-07 18:03:25 +08:00
|
|
|
font-weight: 800;
|
2023-03-02 09:44:12 +08:00
|
|
|
}
|
|
|
|
|
2023-03-07 18:03:25 +08:00
|
|
|
&-content-key{
|
|
|
|
padding:10px 0 0 0;
|
2023-03-02 09:44:12 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
-webkit-line-clamp: 3;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
display: -webkit-box;
|
|
|
|
}
|
2023-03-07 18:03:25 +08:00
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
&-bottom {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|