diff --git a/project/sanjianxi/AppNeighborLinkage/addLinkage.vue b/project/sanjianxi/AppNeighborLinkage/addLinkage.vue
index 5d8e50f..afd0699 100644
--- a/project/sanjianxi/AppNeighborLinkage/addLinkage.vue
+++ b/project/sanjianxi/AppNeighborLinkage/addLinkage.vue
@@ -3,7 +3,7 @@
@@ -44,7 +44,7 @@ export default {
},
isShowDate: false,
form: {
- id: '',
+ residentId: '',
linksageDate: '',
description: '',
},
@@ -72,7 +72,7 @@ export default {
})
},
confirm() {
- if(!this.form.id) {
+ if(!this.form.residentId) {
return this.$u.toast('请选择四邻对象')
}
if(!this.form.linksageDate) {
@@ -82,7 +82,7 @@ export default {
return this.$u.toast('请输入事件描述')
}
- this.$instance.post('/app/apppartyfourlinkage/addOrUpdate',{
+ this.$instance.post('/app/apppartyfourlinkage/addByWxApplet',{
...this.form
}).then(res => {
if(res.code == 0) {
diff --git a/project/sanjianxi/AppNeighborLinkage/memberInfo.vue b/project/sanjianxi/AppNeighborLinkage/memberInfo.vue
index 47e9dac..2a39c05 100644
--- a/project/sanjianxi/AppNeighborLinkage/memberInfo.vue
+++ b/project/sanjianxi/AppNeighborLinkage/memberInfo.vue
@@ -2,14 +2,15 @@
-
李白
-
42068219980502252X
+
{{ data.name }}
+
{{ data.idNumber.replace(/(.{6}).*(.{4})/, '$1********$2') }}
-
- 户主
+
+ {{ $dict.getLabel('householdRelation',data.householdRelation) }}
@@ -17,60 +18,57 @@
个人基本信息
家庭住址
-
安徽省黄山市歙县郑村镇潭渡村黎明4组11
+
{{ data.householdAreaName }}
- 身份证号42068219980502252X
+ 性别{{ $dict.getLabel('sex',data.sex) }}
- 性别男
+ 年龄{{ data.age }}
- 年龄18
+ 民族{{ $dict.getLabel('nation',data.nation) }}
- 民族汉族
+ 文化程度{{ $dict.getLabel('education',data.education) }}
- 文化程度初中
+ 婚姻状况{{ $dict.getLabel('maritalStatus',data.maritalStatus) }}
- 婚姻状况未婚
+ 政治面貌{{ $dict.getLabel('politicsStatus',data.politicsStatus) }}
- 政治面貌党员
+ 兵役状况{{ $dict.getLabel('militaryStatus',data.militaryStatus) }}
- 兵役状况未服兵役
+ 宗教信仰{{ $dict.getLabel('faithType',data.faithType) }}
- 宗教信仰无
-
-
- 职业工人
+ 职业{{ $dict.getLabel('job',data.job) }}
@@ -82,11 +80,28 @@ export default {
appName: "家庭详情",
data() {
return {
-
+ id: '',
+ data: {},
}
},
- onShow() {},
- methods: {},
+ onLoad(o) {
+ this.$dict.load('sex','householdRelation','nation','education','maritalStatus','politicsStatus','faithType','job')
+ this.id = o.id
+ this.getUserInfo()
+ },
+ methods: {
+ getUserInfo() {
+ this.$instance.post('/app/appresident/detailForWx',null,{
+ params: {
+ id: this.id
+ }
+ }).then(res => {
+ if(res.code ==0) {
+ this.data = res.data.resident
+ }
+ })
+ },
+ },
}