From 9bc40cd91f3af46f9d73aa91f20fc33c0d2da1ae Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 25 Apr 2022 17:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppInfotainment/components/files.png | Bin 0 -> 955 bytes src/apps/AppInfotainment/liveList.vue | 146 --------- src/apps/AppInfotainment/newLIst.vue | 23 +- src/apps/AppInfotainment/newsDetail.vue | 144 ++++++--- src/apps/AppInfotainment/newsList.vue | 276 ----------------- src/apps/AppInfotainment/productList.vue | 287 ------------------ src/apps/AppInfotainment/products.vue | 148 --------- .../residentList.vue | 0 8 files changed, 100 insertions(+), 924 deletions(-) create mode 100644 src/apps/AppInfotainment/components/files.png delete mode 100644 src/apps/AppInfotainment/liveList.vue delete mode 100644 src/apps/AppInfotainment/newsList.vue delete mode 100644 src/apps/AppInfotainment/productList.vue delete mode 100644 src/apps/AppInfotainment/products.vue rename src/apps/{AppInfotainment => AppMonitoringObject}/residentList.vue (100%) diff --git a/src/apps/AppInfotainment/components/files.png b/src/apps/AppInfotainment/components/files.png new file mode 100644 index 0000000000000000000000000000000000000000..10d53502535dad10eb33a37845dd2491f07992fe GIT binary patch literal 955 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7OGojKx9jP7LeL$-D$|Tv8)E(|mmy zw18|52FCVG1{RPKAeI7R1_tH@j10^`nh_+nfC(;}uz(rC1}R)=9PbBIuIlOH7*fIb zcFx9Z5l4~s`!P)~m5z8>9PtZY+IekSQ^I@ugw$O1uBBT;|1n&Sj_lkTH`$L{@l@kf z#>=i}`mCRGCR)Bv%m4m1fA4RxpgV6*SAX7@pWb$+)%bA}1B(I!BZmV6lRyI|GvO*H z%Xzl`V}(CHPv5&Cp**Q4+%`M3xLqLW=e_Tro-cN-mfiL?pZKJ11cq|Q7!`JVgFl@!Zq5l6xoKmKuK_4CwEyEr{g zpEF|q^l$E=N1yrQ9~r;5+WGS?OUd46&&}pMI$>l;DxO$EN28hggc2J7vuQR-tgtylN*n+ zYYfzveAH#pagbQNS7z>!)7*!q?dxrDeQ`zA6p0r-=cXD9c{AtFaw~M1$QaC>FI5w!??YYBoqTz{T6NCRQ$(@1|7*86r zFwQG6E>c!to|MkPWb-oZiJJqP%J~Vt=bwBonlGM~ZzpOdE3l|4rPm z+njCN#mVmeY6=JIe_Q@#uPhH2`nx?i%Cg)#Oi(y?@_4b>@K6|~A?mf(BZ(nEETa)5FfqC(NBUPp&w}269$XHmJ z#=vxh<;c^Sj7f}}?2p{C;C=h}Wm@cfBgWi0ZQnkYY+lE3Q|QXG&Xn0ZUoquK=?h;d zd9eD^Z=m!%k8LwoXK&nOyP)^-h3?q}*B{(k^}OiNbhhJ}8S|8G3QaNJ0}Pyo8-`2* z3Tg^^=Xo3&W;E=uF=k*)VtVxHOhc$>KwbG~^TPbKQ@_7Cn$PA^eO-#NROxu!9hR6| zTaJg-C2pG)`}kKX|KvC+^;vTd_#U`t(6ikvM?b>i%bY`-Z)g3>lPZ>~ex>;Jl8v$? io>U4 -
-
- -
-
- - - - - 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 @@