政策动态

This commit is contained in:
liuye
2022-03-28 11:44:10 +08:00
parent baa6944b8b
commit e20044b7c9
6 changed files with 84 additions and 7 deletions

View File

@@ -0,0 +1,65 @@
<template>
<div class="AppPageInteraction">
<AiListPage :label="label" :appList="appList" :headerBg="headerBg"/>
</div>
</template>
<script>
export default {
name: 'AppPageInteraction',
appName: '工作台(振兴)',
data() {
return {
label: '振兴',
appList: [
{
name: '产业振兴',
icon: require('./img/jmhd.png'),
url: '../AppServicePublic/AppServicePublic?moduleId=c7d4e2c46b56477c9a581af7f16e10d9&listName=产业资讯'
},
{
name: '组织振兴',
icon: require('./img/jmys.png'),
url: '../AppServicePublic/AppServicePublic?moduleId=a33a855416d44b77a006b93599c9618d&listName=组织动态'
},
{
name: '人才振兴',
icon: require('./img/xcxgg.png'),
url: '../AppServicePublic/AppServicePublic?moduleId=6aa884de2b814967bdbb18a363904083&listName=人才工作'
},
{
name: '文化振兴',
icon: require('./img/xcxgg.png'),
url: '../AppServicePublic/AppServicePublic?moduleId=feaf0264251f422db9b10c5e9f6c1c56&listName=生态建设'
},
{
name: '生态振兴',
icon: require('./img/xcxgg.png'),
url: '../AppServicePublic/AppServicePublic?moduleId=95f0f1c509e44d528069bc9f9dc19e53&listName=党建要闻'
}
],
headerBg: require('./img/header-bg.png'),
}
},
onShow() {
document.title = "振兴"
}
}
</script>
<style lang="scss" scoped>
uni-page-body {
height: 100%;
}
.AppPageInteraction {
height: 100%;
::v-deep .item{
border-bottom: 1px solid #eee;
}
::v-deep .item:nth-last-of-type(1),
::v-deep .item:nth-last-of-type(2){
border-bottom: 0;
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -9,7 +9,7 @@
<image :src="$cdn + 'yjjk.png'"/> <image :src="$cdn + 'yjjk.png'"/>
<h2>预警监控</h2> <h2>预警监控</h2>
</div> </div>
<div class="info-top__item" @click="linkTo('../AppServicePublic/AppServicePublic?moduleId=c78bfb3e3bd6441f83fb2fb1eab8166e&listName=返贫动态')"> <div class="info-top__item" @click="linkTo('../AppServicePublic/AppServicePublic?moduleId=ac80f2857f2c4e4d8f0e266a703aed7a&listName=政策动态')">
<image :src="$cdn + 'news.png'"/> <image :src="$cdn + 'news.png'"/>
<h2>政策动态</h2> <h2>政策动态</h2>
</div> </div>
@@ -18,7 +18,7 @@
<h2>最新动态</h2> <h2>最新动态</h2>
<div class="news-list"> <div class="news-list">
<div class="news-item" v-for="(item, index) in list" :key="index" <div class="news-item" v-for="(item, index) in list" :key="index"
@click="linkTo(`./NewsDetail?id=${item.id}`)"> @click="linkTo(`../AppServicePublic/Detail?id=${item.id}&listName=政策动态`)">
<div class="left"> <div class="left">
<h2>{{ item.title }}</h2> <h2>{{ item.title }}</h2>
<div class="item-bottom"> <div class="item-bottom">
@@ -58,17 +58,29 @@ export default {
uni.navigateTo({url}) uni.navigateTo({url})
}, },
getList() { getList() {
this.$http.post(`/app/appnewscenterinfo/listForWx`, null, { this.$http.post('/app/appcontentinfo/list', null, {
params: { params: {
size: 20,
current: 1, current: 1,
size: 10, moduleId: 'ac80f2857f2c4e4d8f0e266a703aed7a',
status: 1 },
} })
}).then(res => { .then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.list = res.data.records this.list = res.data.records
} }
}) })
// this.$http.post(`/app/appnewscenterinfo/listForWx`, null, {
// params: {
// current: 1,
// size: 10,
// status: 1
// }
// }).then(res => {
// if (res.code == 0) {
// this.list = res.data.records
// }
// })
} }
} }
} }