From c917ac5acfdc423c794ae0d40c8741610a349ed5 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 24 Aug 2022 10:09:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=85=A7=E6=B2=BB=E7=90=86=E5=AE=9A=E5=88=B6?= =?UTF-8?q?=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppEnteringCommunity.vue | 140 +++++++ .../AppEnteringCommunity/AppPhotoAlbum.vue | 385 ++++++++++++++++++ src/project/huizhili/AppMine/AppMine.vue | 353 ++++++++++++++++ src/project/huizhili/AppMine/me.png | Bin 0 -> 993 bytes src/project/huizhili/AppMine/me_selected.png | Bin 0 -> 1035 bytes src/project/huizhili/AppMine/myFamily.vue | 180 ++++++++ src/project/huizhili/AppMine/myHometown.vue | 123 ++++++ src/project/huizhili/AppMine/userInfo.vue | 222 ++++++++++ src/project/huizhili/AppPolice/AppPolice.vue | 222 ++++++++++ 9 files changed, 1625 insertions(+) create mode 100644 src/project/huizhili/AppEnteringCommunity/AppPhotoAlbum.vue create mode 100644 src/project/huizhili/AppMine/AppMine.vue create mode 100644 src/project/huizhili/AppMine/me.png create mode 100644 src/project/huizhili/AppMine/me_selected.png create mode 100644 src/project/huizhili/AppMine/myFamily.vue create mode 100644 src/project/huizhili/AppMine/myHometown.vue create mode 100644 src/project/huizhili/AppMine/userInfo.vue create mode 100644 src/project/huizhili/AppPolice/AppPolice.vue diff --git a/src/project/huizhili/AppEnteringCommunity/AppEnteringCommunity.vue b/src/project/huizhili/AppEnteringCommunity/AppEnteringCommunity.vue index 30ff804..fc43f9c 100644 --- a/src/project/huizhili/AppEnteringCommunity/AppEnteringCommunity.vue +++ b/src/project/huizhili/AppEnteringCommunity/AppEnteringCommunity.vue @@ -65,6 +65,43 @@ +
+ 居民活动 +
+ 更多活动 + +
+
+ +
+ +
+ {{ item.title }} +
+
+ +
+
+ 乡村相册 +
+
+
+ +
共{{ item.total }}张
+
{{ item.name }}
+
+ +
@@ -83,6 +120,8 @@ export default { areaName: '', areaId: '', $areaId: '', + albumList: [], + activityList: [], publicList: [], moduleId: "", isInit: false @@ -96,8 +135,14 @@ export default { this.autoLogin() this.$nextTick(() => { + this.getAlbumList() + this.getActiveList() this.getName() }) + + uni.$on('update', () => { + this.getAlbumList() + }) }, computed: { @@ -198,11 +243,45 @@ export default { this.newsList = [] this.$nextTick(() => { + this.getActiveList() + this.getAlbumList() this.getPublicList() uni.setStorageSync('areaId', this.areaId) uni.setStorageSync('areaName', this.areaName) }) }, + + getAlbumList() { + this.$instance.post(`/app/appvillagepicturealbum/queryAlbumMenu?areaId=${this.areaId}`).then(res => { + if (res.code == 0) { + this.albumList = res.data.map(v => { + return { + ...v, + coverImg: `${this.$cdn}/dvcp/album/album${v.type}.png` + } + }) + } + }) + }, + + getActiveList() { + this.$instance.post(`/app/appvillageactivityinfo/listUp`, null, { + params: { + current: 1, + size: 6, + areaId: this.areaId + } + }).then(res => { + if (res.code == 0) { + this.activityList = res.data.records.map(v => { + return { + ...v, + url: v.url ? JSON.parse(v.url)[0].url : '' + } + }) + } + }) + } }, onShareAppMessage() { @@ -507,6 +586,67 @@ export default { } } + .album-list { + box-sizing: border-box; + padding: 0 32px 32px; + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 16px; + + .album { + position: relative; + width: 218px; + height: 240px; + background: #FFFFFF; + box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.02); + border-radius: 16px; + overflow: hidden; + + image { + position: absolute; + left: 0; + top: 0; + z-index: 1; + width: 100%; + height: 100%; + } + + .total { + display: flex; + position: absolute; + align-items: center; + justify-content: center; + right: 8px; + top: 8px; + z-index: 2; + width: 74px; + height: 40px; + background: rgba(0, 0, 0, .6); + border-radius: 8px; + font-size: 22px; + font-weight: 400; + color: #FFFFFF; + } + + .desc { + position: absolute; + bottom: 16px; + left: 0; + z-index: 2; + width: 100%; + height: 40px; + line-height: 40px; + padding: 0 12px; + font-size: 32px; + text-align: center; + color: #FFFFFF; + font-weight: 600; + box-sizing: border-box; + } + } + } + ::v-deep .AiArea { padding-top: 64px; height: 88px; diff --git a/src/project/huizhili/AppEnteringCommunity/AppPhotoAlbum.vue b/src/project/huizhili/AppEnteringCommunity/AppPhotoAlbum.vue new file mode 100644 index 0000000..1c24767 --- /dev/null +++ b/src/project/huizhili/AppEnteringCommunity/AppPhotoAlbum.vue @@ -0,0 +1,385 @@ + + + + + diff --git a/src/project/huizhili/AppMine/AppMine.vue b/src/project/huizhili/AppMine/AppMine.vue new file mode 100644 index 0000000..1b93268 --- /dev/null +++ b/src/project/huizhili/AppMine/AppMine.vue @@ -0,0 +1,353 @@ + + + diff --git a/src/project/huizhili/AppMine/me.png b/src/project/huizhili/AppMine/me.png new file mode 100644 index 0000000000000000000000000000000000000000..03b531e43c595fe513714a8a21f4a46145487440 GIT binary patch literal 993 zcmV<710MW|P)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91FrWhf1ONa40RR91FaQ7m0NXcg3;+NFOG!jQRA>e5S-)#jQ50^{1QIX~ zLI!IGp^K0qkYsZzxE1^{baQbLr6RbvivNIuSac|45jtcLg>FJ!+>$_sKo`M5>rm)m zg#_};?~6CkXWz+t=ib|BF&8fH-5=*W-*?V?H}}3QEX>P10{?de5S6@30miGzWb#R= zRN9Z28#(MO0OYTO{2O@6MS2TPID&}V5b-|Pt!pK9(}T0?_4-3R9&gdBB~PFnZHW;? z)wQfMz{ryTs#6f~ZVXXx*=E8@fO+Qk7)4#Y#MykDuGqX2R?#yrtS|CZl{1*4LTNyq z0WOujUhfM4qgETqr_?`4r_-0UORPErW}WvHd~r+cy9^Ar3Rf+_{8Cm`UgAxzYJY_Zs}?Xe!eIp0Bi?%|+{_VEU91Ff z*T};NUb>;$;~xgZFb5l})y+x(IdK1uW$%%T2-*_E_AEdi>fI=fj+Zliq@)l=kB1T5 zZlT6moj7NUHZG9|#<)0VU;@PJnfa`O$0m;x)Fz(c6zT&+(&`1|(G>5%OVmCxvH_ff z;{l0tug(CzBCLb-CY8?n|v*<@Q>X}St6(W9y`Ada$ zvJa7ej*B(Osu P00000NkvXXu0mjfs`RPk literal 0 HcmV?d00001 diff --git a/src/project/huizhili/AppMine/me_selected.png b/src/project/huizhili/AppMine/me_selected.png new file mode 100644 index 0000000000000000000000000000000000000000..dff9fcad51a427fe6d821489f29d35b1be45360f GIT binary patch literal 1035 zcmV+m1oZofP)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91FrWhf1ONa40RR91FaQ7m0NXcg3;+NFbxA})RA>e5Sifr&Q4pS&Un^)V zBv%+Mgfw8vg)5(Iw~*V)*JauU$OfS@4}gftPvpoMUaU~z>gNDw8lvGWhG5iB$o zcW2>gak(VVZ`R$z%k8_{ncZ9r-ooAP&c6BP`{uo!on4~d*2}>EodJ`k{K)HA@DX98H~iIM;Uo3@WGXlFttfY*TP&b6jqZ*R3qaXQ+`qUaYOuuu zxT|y#NNiVNiv@5?oS3KsK!Yt7!2NvC5<6(<%#6v{Qg5+<;7M7K28uDhAbkomrdR+w z@yiJAg(@GXvH{D-RDh`j_+2AjMo=|26)~G!d<?9ow(aUyN|w&q0{6d!SyW$Ih&$%DNSdXJc@fuDrfs zzPDceV{r<|E!utMGOb|PxXZaq_75W?lr84X&!~6DXl;5V3H4*E~|h{pf`002ovPDHLk FV1ghz#N+?~ literal 0 HcmV?d00001 diff --git a/src/project/huizhili/AppMine/myFamily.vue b/src/project/huizhili/AppMine/myFamily.vue new file mode 100644 index 0000000..a544cf9 --- /dev/null +++ b/src/project/huizhili/AppMine/myFamily.vue @@ -0,0 +1,180 @@ + + + diff --git a/src/project/huizhili/AppMine/myHometown.vue b/src/project/huizhili/AppMine/myHometown.vue new file mode 100644 index 0000000..82c3c97 --- /dev/null +++ b/src/project/huizhili/AppMine/myHometown.vue @@ -0,0 +1,123 @@ + + + + + diff --git a/src/project/huizhili/AppMine/userInfo.vue b/src/project/huizhili/AppMine/userInfo.vue new file mode 100644 index 0000000..6226418 --- /dev/null +++ b/src/project/huizhili/AppMine/userInfo.vue @@ -0,0 +1,222 @@ + + + diff --git a/src/project/huizhili/AppPolice/AppPolice.vue b/src/project/huizhili/AppPolice/AppPolice.vue new file mode 100644 index 0000000..3df8942 --- /dev/null +++ b/src/project/huizhili/AppPolice/AppPolice.vue @@ -0,0 +1,222 @@ + + + + +