|
@@ -219,7 +219,9 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- getListToAnnouncement,getCovers,getCarousel
|
|
|
+ getListToAnnouncement,
|
|
|
+ getCovers,
|
|
|
+ getCarousel
|
|
|
} from '@/api/index/index.js';
|
|
|
import {
|
|
|
governmentListData
|
|
@@ -233,11 +235,11 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- bigImg:'https://tse1-mm.cn.bing.net/th/id/OIP-C.JsghMT_u8V52I4PSHow2hAHaEG?w=332&h=186&c=7&r=0&o=5&pid=1.7',
|
|
|
+ bigImg: 'https://tse1-mm.cn.bing.net/th/id/OIP-C.JsghMT_u8V52I4PSHow2hAHaEG?w=332&h=186&c=7&r=0&o=5&pid=1.7',
|
|
|
// 图片轮播
|
|
|
banners: [
|
|
|
- 'https://tse1-mm.cn.bing.net/th/id/OIP-C.JsghMT_u8V52I4PSHow2hAHaEG?w=332&h=186&c=7&r=0&o=5&pid=1.7'
|
|
|
- ],
|
|
|
+ 'https://tse1-mm.cn.bing.net/th/id/OIP-C.JsghMT_u8V52I4PSHow2hAHaEG?w=332&h=186&c=7&r=0&o=5&pid=1.7'
|
|
|
+ ],
|
|
|
announcementList: [{
|
|
|
id: '3',
|
|
|
announcementTitle: '关于高质量推进土地整治工作赋能乡村振兴的通知'
|
|
@@ -378,18 +380,18 @@
|
|
|
goZcDetail(e) {
|
|
|
let id = e.id || ''
|
|
|
let type = 10
|
|
|
- uni.navigateTo({
|
|
|
- url: `../informationDetail/informationDetail?id=${id}&type=${type}`
|
|
|
- });
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `../informationDetail/informationDetail?id=${id}&type=${type}`
|
|
|
+ });
|
|
|
},
|
|
|
//封面与轮播图
|
|
|
- getCovers(){
|
|
|
- getCovers().then(res=>{
|
|
|
+ getCovers() {
|
|
|
+ getCovers().then(res => {
|
|
|
this.bigImg = res.data
|
|
|
})
|
|
|
- getCarousel().then(res=>{
|
|
|
+ getCarousel().then(res => {
|
|
|
this.banners = res.data
|
|
|
- })
|
|
|
+ })
|
|
|
},
|
|
|
// 热门知识获取数据
|
|
|
getList() {
|
|
@@ -399,7 +401,7 @@
|
|
|
}
|
|
|
popularKnowledgeList(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.dataSource = res.rows
|
|
|
+ this.dataSource = [...this.dataSource, ...res.rows]
|
|
|
this.total = res.total
|
|
|
console.log("this.dataSource", this.dataSource)
|
|
|
}
|
|
@@ -580,7 +582,7 @@
|
|
|
relevance: "0",
|
|
|
}
|
|
|
reduceScore(params).then((res) => {
|
|
|
- console.log("reduceScore",res)
|
|
|
+ console.log("reduceScore", res)
|
|
|
})
|
|
|
},
|
|
|
/**
|
|
@@ -594,7 +596,7 @@
|
|
|
relevance: "0",
|
|
|
}
|
|
|
addScore(params).then((res) => {
|
|
|
- console.log("addScore",res)
|
|
|
+ console.log("addScore", res)
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -602,4 +604,4 @@
|
|
|
</script>
|
|
|
<style>
|
|
|
@import './index.css';
|
|
|
-</style>
|
|
|
+</style>
|