管理家庭成员

This commit is contained in:
shidongli 2023-10-17 17:26:09 +08:00
parent 817214fae8
commit 7e62289957
5 changed files with 53 additions and 27 deletions

View File

@ -225,13 +225,18 @@
} else {
that.appPersonallist = null
}
// getCurrentUser(this.valueopenid).then(res => {
// console.log(res)
// this.familyList = res.data
// })
this.getpersnoal()
},
methods: {
//
getpersnoal(){
getCurrentUser(this.valueopenid).then(res => {
console.log(res)
this.familyList = res.data
})
},
//
changeFamilyInfo(e) {
console.log(e,'000')

View File

@ -49,7 +49,6 @@
<text v-if="!householdRelationship">请选择与户主关系</text>
<text v-else class="testitem">{{householdRelationship}}</text>
<image src="../../static/huijiantou.png" mode=""></image>
</view>
</view>
@ -337,17 +336,6 @@
message: '请输入正确的身份证号',
trigger: ['blur'],
}],
householdRelationship:[{
message: '请输入户主身份证号',
trigger: ['change', 'blur'],
}, {
validator: (rule, value, callback) => {
return uni.$u.test.idCard(value);
},
message: '请输入正确的身份证号',
trigger: ['blur'],
}]
}
}
},

View File

@ -336,7 +336,6 @@
},
onLoad(options) {
console.log(this.address, '546545454');
this.form.openid = uni.getStorageSync('openid')
},
@ -450,7 +449,7 @@
background: #FFFFFF;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 5rpx;
margin: 15rpx auto;
margin: 0 auto;
position: relative;
::v-deep .u-input {
@ -492,7 +491,8 @@
display: flex;
// align-items: center;
// justify-content: center;
width: 42%;
//
width: 47%;
margin: 23rpx 30rpx 0 55rpx;
color: rgb(23, 20, 22);
@ -534,7 +534,9 @@
position: relative;
left: 50%;
transform: translateX(-50%);
top: 4%;
margin-top: 100rpx;
bottom: 27rpx;
}
.contentbottom {

View File

@ -41,7 +41,7 @@
position: relative;
.identityname {
width: 100rpx;
// width: 100rpx;
height: 40rpx;
line-height: 40rpx;
text-align: center;

View File

@ -1,21 +1,34 @@
<template>
<view class="app">
<view class="forlist">
<view class="item" @tap='gofamilymemberdetail'>
<view class="item" @tap='gofamilymemberdetail' v-for="item in familyList">
<view class="namesigning">
<span class="name">
张三
{{item.patientName}}
</span>
<view class="signing">
未签约
{{}}
</view>
</view>
<view class="card">
37029828873746473
{{item.cardNo}}
</view>
<view class="border"></view>
<view class="identityname">
户主
{{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'?"其他":''}}
</view>
</view>
</view>
@ -31,13 +44,31 @@
</template>
<script>
import {
getCurrentUser,
} from '@/api/pages/myinformation/myinformation.js';
export default {
data() {
return {
familyList:{}
};
},
onShow(){
this.valueopenid = uni.getStorageSync('openid');
this.getpersnoal()
},
methods: {
//
getpersnoal(){
getCurrentUser(this.valueopenid).then(res => {
console.log(res)
this.familyList = res.data
})
},
//
add(){
uni.navigateTo({