管理家庭成员
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({
|
||||
url: `/applet/register/getCurrentResident/${openid}/${cityCode}`,
|
||||
url: `/applet/register/getList/${openid}`,
|
||||
method: 'GET',
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
// Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@ -256,8 +256,8 @@
|
||||
}
|
||||
},
|
||||
// 获取成员
|
||||
getpersnoal() {
|
||||
getCurrentUser(this.valueopenid, this.cityCode).then(res => {
|
||||
getpersnoal() {
|
||||
getCurrentUser(this.valueopenid).then(res => {
|
||||
this.familyList = res.data
|
||||
})
|
||||
},
|
||||
|
||||
@ -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'?"子女":''}}
|
||||
@ -46,19 +46,20 @@
|
||||
<script>
|
||||
import {
|
||||
getCurrentUser,
|
||||
|
||||
|
||||
} from '@/api/pages/myinformation/myinformation.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
familyList:{}
|
||||
familyList:{},
|
||||
valueopenid:'',
|
||||
|
||||
};
|
||||
},
|
||||
onShow(){
|
||||
this.valueopenid = uni.getStorageSync('openid');
|
||||
this.getpersnoal()
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
// 获取成员
|
||||
@ -66,7 +67,7 @@
|
||||
getCurrentUser(this.valueopenid).then(res => {
|
||||
console.log(res)
|
||||
this.familyList = res.data
|
||||
|
||||
|
||||
})
|
||||
},
|
||||
// 添加家庭成员
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user