From 9167b4f1f1febbffe970c0ce5cc09567d9882210 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 16 Jul 2024 13:48:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E6=B0=91=E6=A1=A3=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/weiyang/AppPeopleList/AddTag.vue | 112 ++++++++ .../weiyang/AppPeopleList/AppPeopleList.vue | 6 +- .../weiyang/AppPeopleList/PeopleList.vue | 244 +++++++++++++++--- src/project/weiyang/AppPeopleList/TagList.vue | 112 ++++++++ 4 files changed, 432 insertions(+), 42 deletions(-) create mode 100644 src/project/weiyang/AppPeopleList/AddTag.vue create mode 100644 src/project/weiyang/AppPeopleList/TagList.vue diff --git a/src/project/weiyang/AppPeopleList/AddTag.vue b/src/project/weiyang/AppPeopleList/AddTag.vue new file mode 100644 index 0000000..f228f14 --- /dev/null +++ b/src/project/weiyang/AppPeopleList/AddTag.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/src/project/weiyang/AppPeopleList/AppPeopleList.vue b/src/project/weiyang/AppPeopleList/AppPeopleList.vue index 5a04c7d..c7a91b1 100644 --- a/src/project/weiyang/AppPeopleList/AppPeopleList.vue +++ b/src/project/weiyang/AppPeopleList/AppPeopleList.vue @@ -21,13 +21,13 @@ export default { return { bannerList: [ { - img: require('./components/img/blue-bg.png'), + img: 'https://cdn.sinoecare.com/i/2024/07/16/66960741d6338.png', title: '查看居民档案', linkUrl: './PeopleList' }, { - img: require('./components/img/green-bg.png'), - title: '居民档案审核', + img: 'https://cdn.sinoecare.com/i/2024/07/16/66960746d79c9.png', + title: '居民标签管理', linkUrl: './ExamineList' } ], diff --git a/src/project/weiyang/AppPeopleList/PeopleList.vue b/src/project/weiyang/AppPeopleList/PeopleList.vue index 98dd38a..4f71138 100644 --- a/src/project/weiyang/AppPeopleList/PeopleList.vue +++ b/src/project/weiyang/AppPeopleList/PeopleList.vue @@ -1,7 +1,7 @@ @@ -123,10 +145,24 @@ export default { 'bottom': '-4px', 'background': '#026AF2' }, + statusBarHeight: uni.getSystemInfoSync().statusBarHeight, + checkImg: 'https://cdn.sinoecare.com/i/2024/07/16/6695ddf91113c.png', + circleImg: 'https://cdn.sinoecare.com/i/2024/07/16/6695ddf890b1e.png', + userImg: 'https://cdn.sinoecare.com/i/2024/07/16/6695e2a0d95c9.png', + showTag: false } }, computed: { ...mapState(['user']), + showBtn() { + var btn = false + this.datas.map((item) => { + if(item.isCheck) { + btn = true + } + }) + return btn + } }, watch: {}, onLoad() { @@ -160,6 +196,9 @@ export default { }) .then((res) => { if (res.code == 0) { + res.data.records.map((item) => { + item.isCheck = false + }) this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records this.pages = res.data.pages @@ -212,6 +251,9 @@ export default { }) }).catch(() => { }) + }, + clickCheck(index) { + this.datas[index].isCheck = !this.datas[index].isCheck } }, onReachBottom() { @@ -224,6 +266,7 @@ export default { diff --git a/src/project/weiyang/AppPeopleList/TagList.vue b/src/project/weiyang/AppPeopleList/TagList.vue new file mode 100644 index 0000000..df99eff --- /dev/null +++ b/src/project/weiyang/AppPeopleList/TagList.vue @@ -0,0 +1,112 @@ + + + + +