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/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{ 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 00000000..58a59c4d Binary files /dev/null and b/src/apps/AppPeopleList/components/img/right-icon.png differ