diff --git a/src/apps/AppResidentFile/AppResidentFile.vue b/src/apps/AppResidentFile/AppResidentFile.vue
index 55459323..fe2c6d4b 100644
--- a/src/apps/AppResidentFile/AppResidentFile.vue
+++ b/src/apps/AppResidentFile/AppResidentFile.vue
@@ -2,7 +2,7 @@
-
+
-
1
+
+
-
2
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+

+
+
+
+
{{ item.name }}
+
+ {{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1****$2') }}
+
+ {{ item.phone }}
+
+
+
+
+
+
+
+
+
+
2
@@ -117,6 +149,19 @@ export default {
],
Echarts1: null,
Echarts2: null,
+ areaId: '',
+ currentPeople: 0,
+ tabPeopleList: [
+ {
+ name: '本地居民',
+ },
+ {
+ name: '流动人员',
+ },
+ ],
+ current: 1,
+ keyword: '',
+ data: [],
}
},
computed: {
@@ -125,11 +170,31 @@ export default {
watch: {},
onLoad() {
this.getEchart()
+ this.areaId = this.user.areaId
},
mounted() {
this.Echarts1 = echarts.init(document.getElementById('echarts1'))
},
methods: {
+ getList() {
+ this.$http
+ .post('/app/appresident/list', null, {
+ params: {
+ size: 10,
+ current: this.current,
+ areaId: this.areaId,
+ con: this.keyword,
+ residentType: this.currentPeople == 0 ? '0' : '1',
+ },
+ })
+ .then((res) => {
+ if (res.code == 0) {
+ this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
+ this.pages = res.data.pages
+ }
+ })
+ },
+
getEchart() {
this.$http.post(`/app/appresident/queryCustInfoByAreaId?areaId=${this.user.areaId}`).then((res) => {
if (res.code === 0) {
@@ -233,8 +298,33 @@ export default {
options && this.Echarts2.setOption(options)
},
+ toDetailCard(item) {
+ uni.navigateTo({ url: `./DetailCard?id=${item.id}` })
+ },
+
+ areaSelect(e) {
+ console.log(e)
+ this.areaId = e.id
+ this.getList()
+ },
+
+ handerSearch(e) {
+ this.keyword = e
+ this.current = 1
+ this.getList()
+ },
+
+ handerClear() {
+ this.keyword = ''
+ this.current = 1
+ this.getList()
+ },
+
changeTab(e) {
this.currentTabBar = e
+ if (this.currentTabBar == 1) {
+ this.getList()
+ }
},
change(index) {
@@ -247,14 +337,16 @@ export default {
}
this.getEchart()
})
+ },
- // this.getList()
- // this.getEchart()
+ changePeople(e) {
+ this.currentPeople = e
+ this.getList()
},
},
onReachBottom() {
- // this.current = this.current + 1
- // this.getList()
+ this.current = this.current + 1
+ this.getList()
},
}
@@ -265,72 +357,125 @@ uni-page-body {
}
.AppResidentFile {
height: 100%;
- .peopleGroup,
- .people {
- .topcard {
- position: relative;
- background: url(http://respub.sinoecare.net/20211221/4-20211221095551.png) no-repeat;
- // background: url(http://respub.sinoecare.net/20211221/44-20211221095613.png) no-repeat;
- background-size: 100% 100%;
- height: 320px;
- .cards {
- box-sizing: border-box;
- position: absolute;
- bottom: -35px;
- width: 92%;
- box-sizing: border-box;
- margin: 0 32px;
- height: 232px;
- background: #ffffff;
- border-radius: 8px;
- z-index: 999;
- display: flex;
- justify-content: space-around;
- align-items: center;
- .items {
+ .currentTabBar0 {
+ .peopleGroup,
+ .people {
+ .topcard {
+ position: relative;
+ background: url(http://respub.sinoecare.net/20211221/4-20211221095551.png) no-repeat;
+ // background: url(http://respub.sinoecare.net/20211221/44-20211221095613.png) no-repeat;
+ background-size: 100% 100%;
+ height: 320px;
+ .cards {
+ box-sizing: border-box;
+ position: absolute;
+ bottom: -35px;
+ width: 92%;
+ box-sizing: border-box;
+ margin: 0 32px;
+ height: 232px;
+ background: #ffffff;
+ border-radius: 8px;
+ z-index: 999;
display: flex;
- flex-direction: column;
+ justify-content: space-around;
align-items: center;
- span {
- font-size: 30px;
- font-weight: 500;
- color: #999999;
- }
- .items1 {
- font-size: 40px;
- font-weight: bold;
- color: #354fc7;
- }
- .items2 {
- font-size: 40px;
- font-weight: bold;
- color: #868686;
- }
- .items3 {
- font-size: 40px;
- font-weight: bold;
- color: #5fba95;
- }
- .items4 {
- font-size: 40px;
- font-weight: bold;
- color: #f09535;
+ .items {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ span {
+ font-size: 30px;
+ font-weight: 500;
+ color: #999999;
+ }
+ .items1 {
+ font-size: 40px;
+ font-weight: bold;
+ color: #354fc7;
+ }
+ .items2 {
+ font-size: 40px;
+ font-weight: bold;
+ color: #868686;
+ }
+ .items3 {
+ font-size: 40px;
+ font-weight: bold;
+ color: #5fba95;
+ }
+ .items4 {
+ font-size: 40px;
+ font-weight: bold;
+ color: #f09535;
+ }
}
}
}
+
+ .echartes {
+ margin-top: 64px;
+ height: 616px;
+ background: #fff;
+ box-sizing: border-box;
+
+ .echartss {
+ margin: 0 32px;
+ height: 100%;
+ padding-top: 16px;
+ box-sizing: border-box;
+ }
+ }
+ }
+ }
+
+ .currentTabBar1 {
+ height: 100%;
+ background: #fff;
+ .AiAreaPicker {
+ padding: 16px 0 14px 12px;
}
- .echartes {
- margin-top: 64px;
- height: 616px;
- background: #fff;
- box-sizing: border-box;
+ .line {
+ height: 16px;
+ background: #f5f5f5;
+ }
- .echartss {
- margin: 0 32px;
- height: 100%;
- padding-top: 16px;
- box-sizing: border-box;
+ .peopleCard {
+ background: #fff;
+ .seachObj {
+ border-bottom: 2px solid #f5f5f5;
+ border-top: 2px solid #f5f5f5;
+ padding: 20px 32px;
+ }
+ .datas {
+ .datass {
+ display: flex;
+ padding: 24px 32px;
+ .left {
+ img {
+ width: 80px;
+ height: 80px;
+ border-radius: 50%;
+ }
+ }
+ .right {
+ display: flex;
+ flex-direction: column;
+ margin-left: 32px;
+ width: 100%;
+ .rightTop {
+ font-size: 32px;
+ font-weight: 500;
+ color: #333333;
+ }
+ .rightBottom {
+ display: flex;
+ justify-content: space-between;
+ margin-top: 8px;
+ }
+ }
+ }
}
}
}
diff --git a/src/apps/AppResidentFile/DetailCard.vue b/src/apps/AppResidentFile/DetailCard.vue
new file mode 100644
index 00000000..e7910196
--- /dev/null
+++ b/src/apps/AppResidentFile/DetailCard.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+
家庭地址
+
+
+
+ {{ currentAreaName }}
+
+
+
+
+
家庭成员
+
+
+
+
+
![]()
+

+
+
+
+
+
+ {{ item.name }}
+ 户主
+
+ {{ $dict.getLabel('householdRelation', item.householdName) }}
+
+
+
+
+
+
+
+
+
+ 身份证号:
+ {{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1****$2') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/apps/AppResidentFile/DetailPeople.vue b/src/apps/AppResidentFile/DetailPeople.vue
new file mode 100644
index 00000000..e9cd6a9e
--- /dev/null
+++ b/src/apps/AppResidentFile/DetailPeople.vue
@@ -0,0 +1,44 @@
+
+ DetailPeople
+
+
+
+
+
diff --git a/src/apps/AppResidentFile/components/img/4.png b/src/apps/AppResidentFile/components/img/4.png
new file mode 100644
index 00000000..d7cee623
Binary files /dev/null and b/src/apps/AppResidentFile/components/img/4.png differ
diff --git a/src/apps/AppResidentFile/components/img/44.png b/src/apps/AppResidentFile/components/img/44.png
new file mode 100644
index 00000000..ae49d85f
Binary files /dev/null and b/src/apps/AppResidentFile/components/img/44.png differ
diff --git a/src/apps/AppResidentFile/components/img/装饰.png b/src/apps/AppResidentFile/components/img/装饰.png
new file mode 100644
index 00000000..41c8ce0d
Binary files /dev/null and b/src/apps/AppResidentFile/components/img/装饰.png differ
diff --git a/src/apps/AppResidentFile/components/img/装饰@2x.png b/src/apps/AppResidentFile/components/img/装饰@2x.png
new file mode 100644
index 00000000..5f29baaa
Binary files /dev/null and b/src/apps/AppResidentFile/components/img/装饰@2x.png differ