管理家庭成员

This commit is contained in:
shidongli 2023-10-30 14:56:03 +08:00
parent 81728643c7
commit a0c54b7d99
3 changed files with 21 additions and 20 deletions

View File

@ -37,12 +37,12 @@ export function registerdata(data) {
})
}
// 获取当前注册居民
export function getCurrentUser(openid, cityCode) {
export function getCurrentUser(openid) {
return request({
url: `/applet/register/getCurrentResident/${openid}/${cityCode}`,
url: `/applet/register/getList/${openid}`,
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
// Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}

View File

@ -257,7 +257,7 @@
},
//
getpersnoal() {
getCurrentUser(this.valueopenid, this.cityCode).then(res => {
getCurrentUser(this.valueopenid).then(res => {
this.familyList = res.data
})
},

View File

@ -14,7 +14,7 @@
{{item.cardNo}}
</view>
<view class="border"></view>
<view class="identityname">
<view class="identityname" v-if="item.householdRelationship">
{{item.householdRelationship=='1'?"户主本人":''}}
{{item.householdRelationship=='2'?"配偶":''}}
{{item.householdRelationship=='3'?"子女":''}}
@ -51,7 +51,8 @@
export default {
data() {
return {
familyList:{}
familyList:{},
valueopenid:'',
};
},
@ -84,16 +85,16 @@
})
}
},
onReachBottom() { //
if (this.couponlist.length >= this.total) {} else {
this.pageNum++;
selectCoupon(this.pageNum, this.pageSize, this.patientId, this.couponstatus).then(res => {
res.rows.forEach(e => {
this.couponlist.push(e)
})
})
}
},
// onReachBottom() { //
// if (this.couponlist.length >= this.total) {} else {
// this.pageNum++;
// selectCoupon(this.pageNum, this.pageSize, this.patientId, this.couponstatus).then(res => {
// res.rows.forEach(e => {
// this.couponlist.push(e)
// })
// })
// }
// },
onPullDownRefresh() { //
this.pageNum = 1;
this.getlist();