This commit is contained in:
shidongli 2023-10-16 11:33:36 +08:00
parent 2e86312ba6
commit 5421deb2ee
2 changed files with 134 additions and 8 deletions

View File

@ -1,7 +1,64 @@
.app {
background: #ffffff;
.titles {
height: 80rpx;
}
.mask {
position: fixed;
bottom: 0;
width: 100%;
height: 100%;
opacity: 0.9;
background-color: #6A6A6A;
text-align: center;
line-height: 68rpx;
.masktext {}
.maskcontent {
position: absolute;
width: 100%;
bottom: 120rpx;
}
.add {
width: 80%;
height: 68rpx;
background-color: #ffffff;
border-radius: 10rpx;
border: solid 1rpx #60cee3;
position: absolute;
color: #60cee3;
bottom: 50rpx;
left: 10%;
}
.p2 {
left: 10%;
width: 80%;
height: 68rpx;
background-color: #ffffff;
border-radius: 10rpx;
border: solid 1rpx #ffffff;
opacity: 1;
margin: 0 auto;
margin-bottom: 30rpx;
}
.p1 {
opacity: 1;
color: #ffffff;
left: 10%;
width: 80%;
height: 68rpx;
background-color: #55d0df;
margin: 0 auto;
border-radius: 10rpx;
margin-bottom: 30rpx;
}
}
.myorder {
position: relative;
@ -158,7 +215,7 @@
position: absolute;
top: 0%;
left: 0%;
z-index: -1;
// z-index: -1;
width: 100%;
height: 100%;
}

View File

@ -18,7 +18,7 @@
<view class="phone">
{{appPersonallist.phone}}
</view>
<view class="switch btn">
<view class="switch btn" @tap='homeshow'>
切换家庭成员
</view>
<view class="manage btn" @click="gomanagefamily">
@ -145,6 +145,22 @@
</view>
</view>
<u-toast ref="uToast" />
<view class="mask" v-show="showhome" @click='maskhome'>
<view class="masktext" @tap.stop=''>
<view class="maskcontent">
<template v-for="item in familyList">
<view :class="item.identity === userInfo.identity ? 'p1' : 'p2'" @tap="changeFamilyInfo(item)">
<text>{{item.residentName}}</text>
<text>{{item.identity.substring(0,4)}}************{{item.identity.substring(16,18)}}</text>
</view>
</template>
</view>
<view class="add" @tap="addFamilyItem">
添加家庭成员
</view>
</view>
</view>
</view>
</template>
@ -169,6 +185,7 @@
appPersonallist: null, //
timer: null,
list: {},
showhome: false,//
};
},
@ -223,10 +240,10 @@
},
removes() {
this.appPersonallist = null
uni.removeStorageSync('patientId');
uni.removeStorageSync('openid');
uni.removeStorageSync('phone');
uni.removeStorageSync('Refresh');
// uni.removeStorageSync('patientId');
// uni.removeStorageSync('openid');
// uni.removeStorageSync('phone');
// uni.removeStorageSync('Refresh');
},
//
myInfo() {
@ -351,12 +368,49 @@
url: '/pagesB/Behaviorpoints/Behaviorpoints'
})
},
//
//
homeshow() {
// this.getSetting()
// this.listquery.bindingCity = uni.getStorageSync('userInfo').bindingCity
// getFamilyList(this.listquery).then(res => {
// this.familyList = res.data.data
// // })
this.showhome = true
},
//
gomanagefamily() {
uni.navigateTo({
url: '/pagesB/managefamily/managefamily'
})
},
//
addFamilyItem() {
uni.navigateTo({
url:'/pagesB/AddMembers/AddMembers'
})
// if (!this.userInfo) {
// uni.showModal({
// title: "",
// content: "",
// confirmText: '',
// cancelText: '',
// success(res) {
// if (res.confirm) {
// uni.redirectTo({
// url: "/pages/login/login?mode="
// })
// } else {
// wx.exitMiniProgram()
// }
// },
// })
// } else {
// this.getSetting()
// uni.navigateTo({
// url: '/pages/login/login'
// });
// }
},
//
...mapActions(["integralopenPopup"]),
gointegral() {
@ -390,7 +444,22 @@
uni.navigateTo({
url: "/pagesB/ExpertlookOrder/ExpertlookOrder"
})
}
},
// getSetting() {
// uni.getSetting({
// withSubscriptions: true,
// success(res) {
// // console.log(res.subscriptionsSetting.itemSettings);
// let itemSettings = res.subscriptionsSetting.itemSettings
// if (!itemSettings || itemSettings['8InV9jXDT5sMj9OWfXEvlLQGlw2UaWfZ9OBMFxufmfk'] != 'accept') {
// uni.requestSubscribeMessage({
// tmplIds: ['8InV9jXDT5sMj9OWfXEvlLQGlw2UaWfZ9OBMFxufmfk']
// })
// return
// }
// }
// })
// }
}
}
</script>