From bd1c6a95967584a3571f44edb82fc0ec9bd05d2a Mon Sep 17 00:00:00 2001 From: cr <423803750@qq.com> Date: Sat, 25 Apr 2026 01:02:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(home):=20=E5=8A=A8=E6=80=81=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=A6=96=E9=A1=B5=E6=95=B0=E6=8D=AE=E5=B9=B6=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 + pages.json | 46 +++++- pages/index/index.vue | 104 +++++++++--- pages/index/login-page.vue | 1 - pages/sub/community/dynamics-detail.vue | 210 ++++++++++++++++++++++++ pages/sub/community/dynamics.vue | 132 +++++++++------ pages/sub/knowledge/classroom.vue | 194 +++++++++++----------- pages/sub/knowledge/detail.vue | 209 +++++++++++++++++++++++ pages/sub/notice/detail.vue | 128 ++++++++------- pages/sub/notice/list.vue | 197 ++++++++++++++++++++++ pages/sub/service/more.vue | 158 ++++++++++++++++++ sheep/api/community/dynamics.js | 30 ++++ sheep/api/community/knowledge.js | 30 ++++ sheep/api/community/notice.js | 54 ++++++ static/img/person.png | Bin 0 -> 1077 bytes 15 files changed, 1258 insertions(+), 236 deletions(-) create mode 100644 pages/sub/community/dynamics-detail.vue create mode 100644 pages/sub/knowledge/detail.vue create mode 100644 pages/sub/notice/list.vue create mode 100644 pages/sub/service/more.vue create mode 100644 sheep/api/community/dynamics.js create mode 100644 sheep/api/community/knowledge.js create mode 100644 sheep/api/community/notice.js create mode 100644 static/img/person.png diff --git a/.env b/.env index 2518203..630a551 100644 --- a/.env +++ b/.env @@ -7,6 +7,7 @@ SHOPRO_BASE_URL=http://api-dashboard.yudao.iocoder.cn # 后端接口 - 测试环境(通过 process.env.NODE_ENV = development) #SHOPRO_DEV_BASE_URL=http://127.0.0.1:48080 SHOPRO_DEV_BASE_URL=http://1.12.53.43:9999 +#SHOPRO_DEV_BASE_URL=http://192.168.1.105:48080 ### SHOPRO_DEV_BASE_URL=http://10.171.1.188:48080 ### SHOPRO_DEV_BASE_URL = http://yunai.natapp1.cc diff --git a/pages.json b/pages.json index d13d3a8..8c1db5f 100644 --- a/pages.json +++ b/pages.json @@ -605,7 +605,18 @@ } }, { - "path": "notice/detail", + "path": "community/dynamics-detail", + "style": { + "navigationBarTitleText": "社区动态" + }, + "meta": { + "sync": true, + "title": "社区动态详情", + "group": "物业管理" + } + }, + { + "path": "notice/list", "style": { "navigationBarTitleText": "通知公告" }, @@ -615,6 +626,17 @@ "group": "物业管理" } }, + { + "path": "notice/detail", + "style": { + "navigationBarTitleText": "通知详情" + }, + "meta": { + "sync": true, + "title": "通知详情", + "group": "物业管理" + } + }, { "path": "activity/list", "style": { @@ -670,6 +692,17 @@ "group": "物业管理" } }, + { + "path": "knowledge/detail", + "style": { + "navigationBarTitleText": "知识课堂" + }, + "meta": { + "sync": true, + "title": "知识课堂详情", + "group": "物业管理" + } + }, { "path": "community/daily", "style": { @@ -681,6 +714,17 @@ "title": "物业日常", "group": "物业管理" } + }, + { + "path": "service/more", + "style": { + "navigationBarTitleText": "更多服务" + }, + "meta": { + "sync": true, + "title": "更多服务", + "group": "物业管理" + } } ] }, diff --git a/pages/index/index.vue b/pages/index/index.vue index f529e73..4d617bd 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -28,7 +28,7 @@ indicator-color="rgba(255, 127, 105, 0.3)" indicator-active-color="#FF7F69" > - + - + - - + + @@ -58,8 +58,9 @@ + + diff --git a/pages/sub/service/more.vue b/pages/sub/service/more.vue new file mode 100644 index 0000000..8286034 --- /dev/null +++ b/pages/sub/service/more.vue @@ -0,0 +1,158 @@ + + + + + + diff --git a/sheep/api/community/dynamics.js b/sheep/api/community/dynamics.js new file mode 100644 index 0000000..5ffa522 --- /dev/null +++ b/sheep/api/community/dynamics.js @@ -0,0 +1,30 @@ +import request from '@/sheep/request'; + +const DynamicsApi = { + // 查询社区动态列表 + getPage: (params) => { + return request({ + url: '/community/post/page', + method: 'GET', + data: params, + custom: { + showLoading: false, + auth: true, + }, + }); + }, + // 查询社区动态详情 + getDetail: (id) => { + return request({ + url: '/community/post/get', + method: 'GET', + data: { id }, + custom: { + showLoading: true, + auth: true, + }, + }); + }, +}; + +export default DynamicsApi; diff --git a/sheep/api/community/knowledge.js b/sheep/api/community/knowledge.js new file mode 100644 index 0000000..29677de --- /dev/null +++ b/sheep/api/community/knowledge.js @@ -0,0 +1,30 @@ +import request from '@/sheep/request'; + +const KnowledgeApi = { + // 查询知识课堂列表 + getPage: (params) => { + return request({ + url: '/community/knowledge-class/page', + method: 'GET', + data: params, + custom: { + showLoading: false, + auth: true, + }, + }); + }, + // 查询知识课堂详情 + getDetail: (id) => { + return request({ + url: '/community/knowledge-class/get', + method: 'GET', + data: { id }, + custom: { + showLoading: true, + auth: true, + }, + }); + }, +}; + +export default KnowledgeApi; diff --git a/sheep/api/community/notice.js b/sheep/api/community/notice.js new file mode 100644 index 0000000..d9f793c --- /dev/null +++ b/sheep/api/community/notice.js @@ -0,0 +1,54 @@ +import request from '@/sheep/request'; + +const NoticeApi = { + // 查询通知列表 + getPage: (params) => { + return request({ + url: '/community/notice/page', + method: 'GET', + data: params, + custom: { + showLoading: false, + auth: true, + }, + }); + }, + // 查询通知详情 + getDetail: (id) => { + return request({ + url: '/community/notice/get', + method: 'GET', + data: { id }, + custom: { + showLoading: true, + auth: true, + }, + }); + }, + // 查询Banner列表 + getBannerList: (position) => { + return request({ + url: '/community/banner/list', + method: 'GET', + data: { position }, + custom: { + showLoading: false, + auth: false, + }, + }); + }, + // 查询小程序配置列表(功能入口) + getMiniAppConfigList: (position) => { + return request({ + url: '/community/mini-app-config/list', + method: 'GET', + data: { position }, + custom: { + showLoading: false, + auth: false, + }, + }); + }, +}; + +export default NoticeApi; diff --git a/static/img/person.png b/static/img/person.png new file mode 100644 index 0000000000000000000000000000000000000000..8b82d93204bd8ee32e157727a0e349b28e9868b3 GIT binary patch literal 1077 zcmV-51j_q~P)5g|T4) zKv)1FUH}PRKybAGHQl+l4=U3e%R*A8o$-0=H1JtJfPL(SD>q#G##G}L;jgyE4CEr9 zmc~Nv0tcm89f4t>7DEPV)@PVg0)QO_8RirZZ6QKd9zSaZk~06> zWsuzKW5RzbWoykgMK6KmYwK0|%M+yy8b#@dCT%r}5~y@Ug`!Y}#RhxIOOnXf=PrlL z;N0OvdqF#_wQqg{Lhmc(`%Oo|?Me$-tM;9e9I+$2@ zt|TPMy{^Pq@KNF~Zi9Sb+Dz2CQ|=SdWo<2qS~AV z7?ey%S7r}B)r`($V03=HReHC}l{BsTg!R2dO|!oJ-`1kr4(7W07R|Qcet^8}_^43o zf5|3I6HEiaX3gntyO)WrWu373S8dBSli_|TDi9143KqnUf(&!Y+URRMBDTIU(e1Ez zY9;^in%^GR##lpBRaI3b(LhS}I(Fl>L5a3yKFhd7DA%J`m^ji}PJ{t$B>}^X(gK)M zJe*WwG3+S;&TD2A#5xoQBJGT1*(S_`P>B(UWhfrRO58xU$8{hyF1N@F#hqIojFHn| z9h_Vq+!$;7NUS=`C@WQVWJsLEoB~}v`Nbk%#+CVOUgpcRMfvK4OY}gPU;=}mcly%t z1L2>(^caYI!-YOuslP#m5V?0bk>gab;~e#*cw!Xntz3GGRlb!=pRp777g2YN)L;`o zsJMPHUszCqOb8L2+Yp@*@mP0_$|pMrCM0Et@YI341n1g>2i&^vgv>e+FolF1WKxFo zT8B*8_X!nJAr(>~74m~1ZoG1A{h0?r8$EGWq<0nGT)^2jWgZ*s~RPn5}dL zF3}4i+~hfah!k v`a^y~F3)b+hEEsX?&T}H@$ln+_d)#uF2=OI8XbR%00000NkvXXu0mjfT*Bse literal 0 HcmV?d00001