Files
dvcp_v2_wxcp_app/src/apps/AppInfotainment/AppInfotainment.vue

91 lines
1.8 KiB
Vue
Raw Normal View History

2022-04-24 11:38:19 +08:00
<template>
<div class="AppInfotainment">
2022-04-24 17:42:09 +08:00
<div class="fiveIndustry">
<div class="title">
<h2>{{ title }}</h2>
<p>实现乡村振兴的物质基础</p>
2022-04-24 11:38:19 +08:00
</div>
2022-04-24 17:42:09 +08:00
<div class="list">
<div class="item" v-for="(item,index) in list" :key="index">
<span>产业资讯</span>
<span><u-icon name="arrow-right"></u-icon></span>
2022-04-24 14:19:20 +08:00
</div>
</div>
</div>
2022-04-24 17:42:09 +08:00
<!-- <AiEmpty description="暂无数据" v-else /> -->
2022-04-24 11:38:19 +08:00
</div>
</template>
<script>
2022-04-24 17:42:09 +08:00
export default {
name: 'AppInfotainment',
appName: '宣传资讯',
data() {
return {
fiveList: [],
title: '产业振兴',
current: 1,
categoryType: '0',
list: [],
}
},
onShow() {
document.title = this.title
this.getFiveList()
},
methods: {
getFiveList() {
this.$http.post('/app/apppublicitycategory/list',null,{
params: {
categoryType: '0',
2022-04-24 14:19:20 +08:00
}
2022-04-24 17:42:09 +08:00
}).then((res)=>{
console.log(res);
this.fiveList = res.data.records
})
2022-04-24 14:19:20 +08:00
}
2022-04-24 17:42:09 +08:00
},
}
2022-04-24 11:38:19 +08:00
</script>
<style lang="scss" scoped>
2022-04-24 17:42:09 +08:00
.AppInfotainment {
::v-deep .AppInfotainment {
background: none;
2022-04-24 14:19:20 +08:00
}
2022-04-24 17:42:09 +08:00
.fiveIndustry {
.title {
padding: 30px 32px;
2022-04-24 14:19:20 +08:00
box-sizing: border-box;
2022-04-24 17:42:09 +08:00
height: 256px;
background: #FFF url('./components/bg.png') no-repeat right;
background-size: 336px 256px;
h2 {
margin-top: 20px;
font-size: 50px;
font-weight: 800;
2022-04-24 14:19:20 +08:00
}
2022-04-24 17:42:09 +08:00
p {
margin-top: 16px;
font-size: 30px;
color: #999999;
2022-04-24 14:19:20 +08:00
}
}
2022-04-24 17:42:09 +08:00
.list {
margin-top: 24px;
background: #FFF;
padding: 0 32px;
box-sizing: border-box;
.item {
2022-04-24 14:19:20 +08:00
display: flex;
2022-04-24 17:42:09 +08:00
justify-content: space-between;
padding: 30px 0;
border-bottom: 1px solid #D8DDE6;
2022-04-24 14:19:20 +08:00
}
}
2022-04-24 11:38:19 +08:00
}
2022-04-24 17:42:09 +08:00
}
</style>