管理家庭成员
This commit is contained in:
parent
817214fae8
commit
7e62289957
@ -225,13 +225,18 @@
|
|||||||
} else {
|
} else {
|
||||||
that.appPersonallist = null
|
that.appPersonallist = null
|
||||||
}
|
}
|
||||||
// getCurrentUser(this.valueopenid).then(res => {
|
this.getpersnoal()
|
||||||
// console.log(res)
|
|
||||||
// this.familyList = res.data
|
|
||||||
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 获取成员
|
||||||
|
getpersnoal(){
|
||||||
|
getCurrentUser(this.valueopenid).then(res => {
|
||||||
|
console.log(res)
|
||||||
|
this.familyList = res.data
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
// 切换成员
|
// 切换成员
|
||||||
changeFamilyInfo(e) {
|
changeFamilyInfo(e) {
|
||||||
console.log(e,'000')
|
console.log(e,'000')
|
||||||
|
|||||||
@ -49,7 +49,6 @@
|
|||||||
<text v-if="!householdRelationship">请选择与户主关系</text>
|
<text v-if="!householdRelationship">请选择与户主关系</text>
|
||||||
<text v-else class="testitem">{{householdRelationship}}</text>
|
<text v-else class="testitem">{{householdRelationship}}</text>
|
||||||
|
|
||||||
|
|
||||||
<image src="../../static/huijiantou.png" mode=""></image>
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -337,17 +336,6 @@
|
|||||||
message: '请输入正确的身份证号',
|
message: '请输入正确的身份证号',
|
||||||
trigger: ['blur'],
|
trigger: ['blur'],
|
||||||
}],
|
}],
|
||||||
householdRelationship:[{
|
|
||||||
|
|
||||||
message: '请输入户主身份证号',
|
|
||||||
trigger: ['change', 'blur'],
|
|
||||||
}, {
|
|
||||||
validator: (rule, value, callback) => {
|
|
||||||
return uni.$u.test.idCard(value);
|
|
||||||
},
|
|
||||||
message: '请输入正确的身份证号',
|
|
||||||
trigger: ['blur'],
|
|
||||||
}]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -336,7 +336,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
console.log(this.address, '546545454');
|
|
||||||
this.form.openid = uni.getStorageSync('openid')
|
this.form.openid = uni.getStorageSync('openid')
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -450,7 +449,7 @@
|
|||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
||||||
border-radius: 5rpx;
|
border-radius: 5rpx;
|
||||||
margin: 15rpx auto;
|
margin: 0 auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
::v-deep .u-input {
|
::v-deep .u-input {
|
||||||
@ -492,7 +491,8 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
// align-items: center;
|
// align-items: center;
|
||||||
// justify-content: center;
|
// justify-content: center;
|
||||||
width: 42%;
|
//
|
||||||
|
width: 47%;
|
||||||
margin: 23rpx 30rpx 0 55rpx;
|
margin: 23rpx 30rpx 0 55rpx;
|
||||||
|
|
||||||
color: rgb(23, 20, 22);
|
color: rgb(23, 20, 22);
|
||||||
@ -534,7 +534,9 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
top: 4%;
|
margin-top: 100rpx;
|
||||||
|
bottom: 27rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.contentbottom {
|
.contentbottom {
|
||||||
|
|||||||
@ -41,7 +41,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.identityname {
|
.identityname {
|
||||||
width: 100rpx;
|
// width: 100rpx;
|
||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@ -1,21 +1,34 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="forlist">
|
<view class="forlist">
|
||||||
<view class="item" @tap='gofamilymemberdetail'>
|
<view class="item" @tap='gofamilymemberdetail' v-for="item in familyList">
|
||||||
<view class="namesigning">
|
<view class="namesigning">
|
||||||
<span class="name">
|
<span class="name">
|
||||||
张三
|
{{item.patientName}}
|
||||||
</span>
|
</span>
|
||||||
<view class="signing">
|
<view class="signing">
|
||||||
未签约
|
{{}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="card">
|
<view class="card">
|
||||||
37029828873746473
|
{{item.cardNo}}
|
||||||
</view>
|
</view>
|
||||||
<view class="border"></view>
|
<view class="border"></view>
|
||||||
<view class="identityname">
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -31,13 +44,31 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {
|
||||||
|
getCurrentUser,
|
||||||
|
|
||||||
|
} from '@/api/pages/myinformation/myinformation.js';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
familyList:{}
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onShow(){
|
||||||
|
this.valueopenid = uni.getStorageSync('openid');
|
||||||
|
this.getpersnoal()
|
||||||
|
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 获取成员
|
||||||
|
getpersnoal(){
|
||||||
|
getCurrentUser(this.valueopenid).then(res => {
|
||||||
|
console.log(res)
|
||||||
|
this.familyList = res.data
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
// 添加家庭成员
|
// 添加家庭成员
|
||||||
add(){
|
add(){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user