管理家庭成员
This commit is contained in:
parent
81728643c7
commit
a0c54b7d99
@ -37,12 +37,12 @@ export function registerdata(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 获取当前注册居民
|
// 获取当前注册居民
|
||||||
export function getCurrentUser(openid, cityCode) {
|
export function getCurrentUser(openid) {
|
||||||
return request({
|
return request({
|
||||||
url: `/applet/register/getCurrentResident/${openid}/${cityCode}`,
|
url: `/applet/register/getList/${openid}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
header: {
|
header: {
|
||||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
// Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -257,7 +257,7 @@
|
|||||||
},
|
},
|
||||||
// 获取成员
|
// 获取成员
|
||||||
getpersnoal() {
|
getpersnoal() {
|
||||||
getCurrentUser(this.valueopenid, this.cityCode).then(res => {
|
getCurrentUser(this.valueopenid).then(res => {
|
||||||
this.familyList = res.data
|
this.familyList = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
{{item.cardNo}}
|
{{item.cardNo}}
|
||||||
</view>
|
</view>
|
||||||
<view class="border"></view>
|
<view class="border"></view>
|
||||||
<view class="identityname">
|
<view class="identityname" v-if="item.householdRelationship">
|
||||||
{{item.householdRelationship=='1'?"户主本人":''}}
|
{{item.householdRelationship=='1'?"户主本人":''}}
|
||||||
{{item.householdRelationship=='2'?"配偶":''}}
|
{{item.householdRelationship=='2'?"配偶":''}}
|
||||||
{{item.householdRelationship=='3'?"子女":''}}
|
{{item.householdRelationship=='3'?"子女":''}}
|
||||||
@ -51,7 +51,8 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
familyList:{}
|
familyList:{},
|
||||||
|
valueopenid:'',
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -84,16 +85,16 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom() { //下滑加载
|
// onReachBottom() { //下滑加载
|
||||||
if (this.couponlist.length >= this.total) {} else {
|
// if (this.couponlist.length >= this.total) {} else {
|
||||||
this.pageNum++;
|
// this.pageNum++;
|
||||||
selectCoupon(this.pageNum, this.pageSize, this.patientId, this.couponstatus).then(res => {
|
// selectCoupon(this.pageNum, this.pageSize, this.patientId, this.couponstatus).then(res => {
|
||||||
res.rows.forEach(e => {
|
// res.rows.forEach(e => {
|
||||||
this.couponlist.push(e)
|
// this.couponlist.push(e)
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
onPullDownRefresh() { //下拉刷新
|
onPullDownRefresh() { //下拉刷新
|
||||||
this.pageNum = 1;
|
this.pageNum = 1;
|
||||||
this.getlist();
|
this.getlist();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user