From 983443dc674fcd638ef02a7c00f2442c8e3db348 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 14 Mar 2022 16:41:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B1=85=E6=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppPeopleList/Add.vue | 355 ++++++++++++++++++ src/apps/AppPeopleList/PeopleList.vue | 20 +- .../components/img/right-icon.png | Bin 0 -> 258 bytes 3 files changed, 374 insertions(+), 1 deletion(-) create mode 100644 src/apps/AppPeopleList/Add.vue create mode 100644 src/apps/AppPeopleList/components/img/right-icon.png diff --git a/src/apps/AppPeopleList/Add.vue b/src/apps/AppPeopleList/Add.vue new file mode 100644 index 00000000..b2155043 --- /dev/null +++ b/src/apps/AppPeopleList/Add.vue @@ -0,0 +1,355 @@ + + + + + diff --git a/src/apps/AppPeopleList/PeopleList.vue b/src/apps/AppPeopleList/PeopleList.vue index ca9fd85b..c6a353bd 100644 --- a/src/apps/AppPeopleList/PeopleList.vue +++ b/src/apps/AppPeopleList/PeopleList.vue @@ -39,6 +39,8 @@ +
+
新增居民
@@ -78,6 +80,9 @@ export default { onLoad() { this.areaId = this.user.areaId this.areaName = this.user.areaName + uni.$on('reload',()=>{ + this.getList() + }) this.getList() }, onShow() { @@ -86,7 +91,6 @@ export default { methods: { getList() { var residentType = ['', 0, 1][this.currentTabs] - console.log(residentType) this.$http .post('/app/appresident/list', null, { params: { @@ -135,6 +139,9 @@ export default { this.current = 1 this.getList() }, + toAdd() { + uni.navigateTo({url:'./Add'}) + } }, onReachBottom() { this.current = this.current + 1 @@ -231,5 +238,16 @@ uni-page-body { background: #f5f5f5; margin: 0; } + .addBtn { + width: 100%; + height: 112px; + line-height: 112px; + background: #1365DD; + text-align: center; + color: #FFF; + font-size: 32px; + position: fixed; + bottom: 0; + } } diff --git a/src/apps/AppPeopleList/components/img/right-icon.png b/src/apps/AppPeopleList/components/img/right-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..58a59c4d9c06a9f430ce26cefa3b350b3f53de06 GIT binary patch literal 258 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}dpunnLn7SY zUUTGPGUQ>s@WktE?v=R}T7}E+sqGC?dEnI2sPZ{m(CRhc|B2f&XQjK8B%Z*1@Qk`(rHj%ujA?hRTWn7jivC>A#ylm+^O!PC{xWt~$( F69684UPu4{ literal 0 HcmV?d00001 From 964e2b9576c0d2b9acd63b38143c5b99b6309424 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 14 Mar 2022 17:13:28 +0800 Subject: [PATCH 2/2] css --- src/apps/AppPeopleList/DetailPeople.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/apps/AppPeopleList/DetailPeople.vue b/src/apps/AppPeopleList/DetailPeople.vue index 342417aa..183ae40f 100644 --- a/src/apps/AppPeopleList/DetailPeople.vue +++ b/src/apps/AppPeopleList/DetailPeople.vue @@ -32,10 +32,9 @@ -

{{item.name}}

-

{{item.applicationName}}

+

{{item.applicationName}}

@@ -307,6 +306,12 @@ export default { margin-top: 8px; } } + .type { + padding: 0 10px; + overflow: hidden; + text-overflow: ellipsis; + white-space:nowrap; + } .active{ background-color: #357CE3; p{