diff --git a/src/apps/AppInfotainment/components/files.png b/src/apps/AppInfotainment/components/files.png new file mode 100644 index 00000000..10d53502 Binary files /dev/null and b/src/apps/AppInfotainment/components/files.png differ diff --git a/src/apps/AppInfotainment/liveList.vue b/src/apps/AppInfotainment/liveList.vue deleted file mode 100644 index b991a2aa..00000000 --- a/src/apps/AppInfotainment/liveList.vue +++ /dev/null @@ -1,146 +0,0 @@ - - - - - diff --git a/src/apps/AppInfotainment/newLIst.vue b/src/apps/AppInfotainment/newLIst.vue index 41f1da14..7ff3eec5 100644 --- a/src/apps/AppInfotainment/newLIst.vue +++ b/src/apps/AppInfotainment/newLIst.vue @@ -28,7 +28,7 @@ --> -
+

{{ item.title }}

通知公告{{ item.createTime }}

@@ -63,7 +63,6 @@ }, onLoad (params) { - this.areaId = params.areaId this.getNewsList() this.parentId = params.id this.parentName = params.parentName @@ -75,9 +74,6 @@ this.currIndex = uni.getStorageSync('newTypeIndex') this.getListInit() } - // uni.$on('update',()=>{ - // this.getListInit() - // }) this.getListInit() }, @@ -110,7 +106,6 @@ categoryType: '2', } }).then((res)=>{ - // console.log(res,'新闻分类'); var array = [] res.data.records.map(item=>{ array.push({ @@ -120,7 +115,7 @@ }) }) this.tabList = array - console.log(this.tabList[this.currIndex].parentId,'parentId'); + // console.log(this.tabList[this.currIndex].parentId,'parentId'); }) }, @@ -138,24 +133,16 @@ moduleId: this.tabList[this.currIndex].parentId, categoryId: this.tabList[this.currIndex].id, } - }).then(res => { - console.log(res); - + }).then(res => { if (res.code === 0) { const data = res.data.records this.newsList.push(...data) this.current = this.current } - }).catch((err) => { - console.log(err); }) }, - toDetail(item) { - if(item.detailType == 6 || item.detailType == 5) { //特色农产品 旅游故事 - uni.navigateTo(`/subPages/live/products?id=${item.id}&detailType=${item.detailType}`) - }else { - uni.navigateTo(`/subPages/live/newsDetail?id=${item.id}&areaId=${this.areaId}&type=${this.currIndex}`) - } + toDetail(id) { + uni.navigateTo({url: `./newsDetail?id=${id}`}) }, }, diff --git a/src/apps/AppInfotainment/newsDetail.vue b/src/apps/AppInfotainment/newsDetail.vue index 1fff8f65..7363a675 100644 --- a/src/apps/AppInfotainment/newsDetail.vue +++ b/src/apps/AppInfotainment/newsDetail.vue @@ -1,11 +1,11 @@