xinelu-applet-ui/pagesB/managefamily/managefamily.vue

110 lines
2.7 KiB
Vue
Raw Normal View History

<template>
2023-09-20 12:06:32 +08:00
<view class="app">
<view class="forlist">
2023-10-18 10:56:01 +08:00
<view class="item" @tap='gofamilymemberdetail(item)' v-for="item in familyList">
2023-09-20 12:06:32 +08:00
<view class="namesigning">
<span class="name">
2023-10-17 17:26:09 +08:00
{{item.patientName}}
2023-09-20 12:06:32 +08:00
</span>
<view class="signing">
2023-10-18 10:56:01 +08:00
{{item.signNo==null ?"未签约":'已签约'}}
2023-09-20 12:06:32 +08:00
</view>
</view>
<view class="card">
2023-10-17 17:26:09 +08:00
{{item.cardNo}}
2023-09-20 12:06:32 +08:00
</view>
<view class="border"></view>
<view class="identityname">
2023-10-17 17:26:09 +08:00
{{item.householdRelationship=='1'?"户主本人":''}}
{{item.householdRelationship=='2'?"配偶":''}}
{{item.householdRelationship=='3'?"子女":''}}
{{item.householdRelationship=='4'?"(外)孙子女":''}}
{{item.householdRelationship=='5'?"父母":''}}
{{item.householdRelationship=='6'?"(外)祖父母":''}}
{{item.householdRelationship=='7'?"兄弟姐妹":''}}
{{item.householdRelationship=='8'?"儿媳":''}}
{{item.householdRelationship=='9'?"女婿":''}}
{{item.householdRelationship=='10'?"孙子女":''}}
{{item.householdRelationship=='11'?"侄子女":''}}
{{item.householdRelationship=='12'?"曾孙子女":''}}
{{item.householdRelationship=='13'?"祖父母":''}}
{{item.householdRelationship=='99'?"其他":''}}
2023-09-20 12:06:32 +08:00
</view>
</view>
</view>
<view class="bottom">
<view class="text">
每位微信用户最多可以绑定8名家庭成员
</view>
2023-10-13 15:34:14 +08:00
<view class="btn" @tap="add">
2023-09-20 12:06:32 +08:00
添加家庭成员
</view>
</view>
</view>
</template>
<script>
2023-10-17 17:26:09 +08:00
import {
getCurrentUser,
} from '@/api/pages/myinformation/myinformation.js';
export default {
data() {
return {
2023-10-17 17:26:09 +08:00
familyList:{}
2023-09-20 12:06:32 +08:00
};
2023-09-20 13:52:08 +08:00
},
2023-10-17 17:26:09 +08:00
onShow(){
this.valueopenid = uni.getStorageSync('openid');
this.getpersnoal()
},
2023-09-25 11:04:44 +08:00
methods: {
2023-10-17 17:26:09 +08:00
// 获取成员
getpersnoal(){
getCurrentUser(this.valueopenid).then(res => {
console.log(res)
this.familyList = res.data
})
},
2023-10-13 15:34:14 +08:00
// 添加家庭成员
add(){
uni.navigateTo({
url:'/pagesB/AddMembers/AddMembers'
})
},
2023-10-18 10:56:01 +08:00
gofamilymemberdetail(item) {
console.log((item))
2023-09-25 11:04:44 +08:00
uni.navigateTo({
2023-10-18 10:56:01 +08:00
url: `/pagesB/familymemberdetail/familymemberdetail?patientCode=${item.patientCode}`
2023-09-25 11:04:44 +08:00
})
}
},
2023-09-20 13:52:08 +08:00
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();
setTimeout(function() {
uni.stopPullDownRefresh();
}, 1000);
},
}
</script>
<style lang="scss">
2023-09-20 12:09:09 +08:00
@import './managefamily.scss';
2023-10-13 15:34:14 +08:00
</style>