From b9e6d07a48ea146709a51800024a1f3907089755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Tue, 21 Dec 2021 17:42:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E6=B0=91=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppResidentFile/AppResidentFile.vue | 176 +++++++++- src/apps/AppResidentFile/DetailPeople.vue | 175 +++++++++- src/apps/AppResidentFile/GroupList.vue | 317 +++++++++++++++++++ src/apps/AppResidentFile/tagManage.vue | 92 ++++++ 4 files changed, 754 insertions(+), 6 deletions(-) create mode 100644 src/apps/AppResidentFile/GroupList.vue create mode 100644 src/apps/AppResidentFile/tagManage.vue diff --git a/src/apps/AppResidentFile/AppResidentFile.vue b/src/apps/AppResidentFile/AppResidentFile.vue index fe2c6d4b..594913e2 100644 --- a/src/apps/AppResidentFile/AppResidentFile.vue +++ b/src/apps/AppResidentFile/AppResidentFile.vue @@ -1,6 +1,6 @@ @@ -115,7 +141,7 @@ export default { props: {}, data() { return { - list: [ + lists: [ { iconPath: 'home', selectedIconPath: 'home-fill', @@ -162,6 +188,10 @@ export default { current: 1, keyword: '', data: [], + + page: { current: 1, size: 10, total: 0 }, + search: { name: '' }, + list: [], } }, computed: { @@ -176,6 +206,39 @@ export default { this.Echarts1 = echarts.init(document.getElementById('echarts1')) }, methods: { + getList2() { + this.$http + .post('/app/wxcp/wxgroup/list', null, { + params: { ...this.page, ...this.search }, + }) + .then((res) => { + if (res?.data) { + let meta = res.data.records?.map((e) => ({ + ...e, + avatar: e?.avatar || this.$cdn + 'groupAvatar.png', + })) + if (this.page.current > 1) { + this.list = [...this.list, ...meta] + } else this.list = meta + this.page.total = res.data.total + } + }) + }, + + reachBottom() { + if (this.page.total > this.list.length) { + this.page.current++ + this.getList2() + } + }, + + toGroupList(item) { + console.log(1, item.id) + uni.navigateTo({ + url: `./GroupList?id=${item.id}`, + }) + }, + getList() { this.$http .post('/app/appresident/list', null, { @@ -325,6 +388,9 @@ export default { if (this.currentTabBar == 1) { this.getList() } + if (this.currentTabBar == 2) { + this.getList2() + } }, change(index) { @@ -479,5 +545,107 @@ uni-page-body { } } } + + .currentTabBar2 { + ::v-deep .AiTopFixed { + b.title { + color: #333; + font-size: 32px; + + & > i { + color: #267fce; + font-style: normal; + margin: 0 4px; + } + } + } + + ::v-deep .mainPane { + background: #fff; + padding: 0 32px; + + .AiCell { + align-items: center; + height: 230px; + justify-content: flex-start; + + .content { + flex: 1; + min-width: 0; + height: 100%; + max-width: unset; + border-bottom: 1px solid rgba(221, 221, 221, 1); + } + } + + .card { + height: 100%; + justify-content: center; + + b { + font-size: 36px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .tag { + justify-content: center; + background: #f3f4f7; + border-radius: 4px; + padding: 0 16px; + font-size: 28px; + font-weight: 400; + color: #333; + margin-left: 16px; + height: 56px; + } + + .groupName { + width: 100%; + text-align: left; + } + + .owner, + .trends { + margin-top: 8px; + font-size: 28px; + font-weight: 400; + color: #999; + } + + .personCount { + flex-shrink: 0; + font-size: 30px; + font-weight: 400; + color: #666; + } + + .trends { + * + * { + margin-left: 24px; + } + + em { + font-style: normal; + color: #5fba95; + } + + p { + color: #f09535; + } + } + } + + .AiImage { + margin-right: 24px; + + image { + width: 112px; + height: 112px; + } + } + } + } } diff --git a/src/apps/AppResidentFile/DetailPeople.vue b/src/apps/AppResidentFile/DetailPeople.vue index e9cd6a9e..79d164dd 100644 --- a/src/apps/AppResidentFile/DetailPeople.vue +++ b/src/apps/AppResidentFile/DetailPeople.vue @@ -1,5 +1,111 @@ + + diff --git a/src/apps/AppResidentFile/tagManage.vue b/src/apps/AppResidentFile/tagManage.vue new file mode 100644 index 00000000..46870cca --- /dev/null +++ b/src/apps/AppResidentFile/tagManage.vue @@ -0,0 +1,92 @@ + + + + +