From 0614875a8306fb46e6ece33945c8f991dc39bc56 Mon Sep 17 00:00:00 2001 From: Double-_-Z <2492419643@qq.com> Date: Wed, 20 Nov 2024 09:32:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=88=90=E5=91=98=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E4=B8=80=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.api.js | 1 + pages.json | 9 +++++++++ pages/activity/activityList.vue | 18 +----------------- pages/home/component/dynamics.vue | 2 +- pages/home/home.vue | 15 +++++++++++---- pages/policy/policyList.vue | 18 +----------------- 6 files changed, 24 insertions(+), 39 deletions(-) diff --git a/common/http.api.js b/common/http.api.js index 9a7dd89..9e94f47 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -12,6 +12,7 @@ const install = (Vue, vm) => { vm.$api.getLabel = async (moduleid) => await vm.$u.get(`/cpLabel/moduleid/${moduleid}`);// 获取模块下的标签 vm.$api.getArticleList = async (params = {}) => await vm.$u.get('/cpArticle', params);// 分页获取文章列表 vm.$api.getSingleArticle = async (id) => await vm.$u.get(`/cpArticle/${id}`);// 获取单个文章 + vm.$api.getChildLabel = async (labelId) => await vm.$u.get(`/cpLabel/labelId/${labelId}`);// 获取父标签下的子标签 } diff --git a/pages.json b/pages.json index 807c0fe..35ef7d3 100644 --- a/pages.json +++ b/pages.json @@ -54,6 +54,15 @@ "navigationBarTitleText" : "工作动态" } }, + { + "path" : "pages/member/member", + "style" : + { + //是否开启下拉刷新 + "enablePullDownRefresh": true, + "navigationBarTitleText" : "成员单位一览" + } + }, { "path" : "pages/home/component/message", "style" : diff --git a/pages/activity/activityList.vue b/pages/activity/activityList.vue index fc9ded7..eb1aef5 100644 --- a/pages/activity/activityList.vue +++ b/pages/activity/activityList.vue @@ -29,23 +29,7 @@ // 导航栏列表 list:[], // 列表 - dataList:[ - // { - // top: 0, - // title: '本年度广州市积分制入户申请即将开放!你想知道的都在这里', - // text: '

2024年度广州市积分制入户工作正式启动今年的入户指标为1.6万个10月8日起接受积分制入户申请

', - // photo: 'static/banner.png', - // view: 597, - // createtime: 1729935783000 - // },{ - // top: 0, - // title: '本年度广州市积分制入户申请即将开放!你想知道的都在这里', - // text: '

2024年度广州市积分制入户工作正式启动今年的入户指标为1.6万个10月8日起接受积分制入户申请

', - // photo: 'static/banner.png', - // view: 597, - // createtime: 1729935783000 - // }, - ], + dataList:[], form:{ moduleName: '', labelName: '', diff --git a/pages/home/component/dynamics.vue b/pages/home/component/dynamics.vue index 7d2e703..35c4577 100644 --- a/pages/home/component/dynamics.vue +++ b/pages/home/component/dynamics.vue @@ -13,7 +13,7 @@ - + {{ getDate(item.createtime) }} diff --git a/pages/home/home.vue b/pages/home/home.vue index fcd3c68..1324162 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -28,9 +28,9 @@ 点击进入{{ introductionList[0].name }} 立即查看 - - {{ introductionList[1].name }} - 点击进入{{ introductionList[1].name }} + + {{ introductionList[2].name }} + 点击进入{{ introductionList[2].name }} 立即查看 @@ -188,7 +188,14 @@ // }) }, - // 三大功能中的智汇谷简介和成员单位一览 + // 成员单位一览 + toShowMember(index){ + uni.navigateTo({ + url: `/pages/member/member?moduleName=${this.introductionName}&id=${this.introductionList[index].id}` + }) + }, + + // 三大功能中的智汇谷简介 toShowIntroduce(index){ const title = this.introductionList[index].name; const moduleName = this.introductionName; diff --git a/pages/policy/policyList.vue b/pages/policy/policyList.vue index c562a0b..6ab578f 100644 --- a/pages/policy/policyList.vue +++ b/pages/policy/policyList.vue @@ -29,23 +29,7 @@ // 导航栏列表 list:[], // 列表 - dataList:[ - // { - // top: 0, - // title: '本年度广州市积分制入户申请即将开放!你想知道的都在这里', - // text: '

2024年度广州市积分制入户工作正式启动今年的入户指标为1.6万个10月8日起接受积分制入户申请

', - // photo: 'static/banner.png', - // view: 597, - // createtime: 1729935783000 - // },{ - // top: 0, - // title: '本年度广州市积分制入户申请即将开放!你想知道的都在这里', - // text: '

2024年度广州市积分制入户工作正式启动今年的入户指标为1.6万个10月8日起接受积分制入户申请

', - // photo: 'static/banner.png', - // view: 597, - // createtime: 1729935783000 - // }, - ], + dataList:[], form:{ moduleName: '', labelName: '',