我的
This commit is contained in:
parent
2e86312ba6
commit
5421deb2ee
@ -1,8 +1,65 @@
|
|||||||
.app {
|
.app {
|
||||||
|
background: #ffffff;
|
||||||
|
|
||||||
.titles {
|
.titles {
|
||||||
height: 80rpx;
|
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 {
|
.myorder {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
@ -158,7 +215,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0%;
|
top: 0%;
|
||||||
left: 0%;
|
left: 0%;
|
||||||
z-index: -1;
|
// z-index: -1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
<view class="phone">
|
<view class="phone">
|
||||||
{{appPersonallist.phone}}
|
{{appPersonallist.phone}}
|
||||||
</view>
|
</view>
|
||||||
<view class="switch btn">
|
<view class="switch btn" @tap='homeshow'>
|
||||||
切换家庭成员
|
切换家庭成员
|
||||||
</view>
|
</view>
|
||||||
<view class="manage btn" @click="gomanagefamily">
|
<view class="manage btn" @click="gomanagefamily">
|
||||||
@ -145,6 +145,22 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-toast ref="uToast" />
|
<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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -169,6 +185,7 @@
|
|||||||
appPersonallist: null, //获取个人信息
|
appPersonallist: null, //获取个人信息
|
||||||
timer: null,
|
timer: null,
|
||||||
list: {},
|
list: {},
|
||||||
|
showhome: false,//切换
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -223,10 +240,10 @@
|
|||||||
},
|
},
|
||||||
removes() {
|
removes() {
|
||||||
this.appPersonallist = null
|
this.appPersonallist = null
|
||||||
uni.removeStorageSync('patientId');
|
// uni.removeStorageSync('patientId');
|
||||||
uni.removeStorageSync('openid');
|
// uni.removeStorageSync('openid');
|
||||||
uni.removeStorageSync('phone');
|
// uni.removeStorageSync('phone');
|
||||||
uni.removeStorageSync('Refresh');
|
// uni.removeStorageSync('Refresh');
|
||||||
},
|
},
|
||||||
//获取个人信息
|
//获取个人信息
|
||||||
myInfo() {
|
myInfo() {
|
||||||
@ -351,12 +368,49 @@
|
|||||||
url: '/pagesB/Behaviorpoints/Behaviorpoints'
|
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() {
|
gomanagefamily() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pagesB/managefamily/managefamily'
|
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"]),
|
...mapActions(["integralopenPopup"]),
|
||||||
gointegral() {
|
gointegral() {
|
||||||
@ -390,7 +444,22 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesB/ExpertlookOrder/ExpertlookOrder"
|
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>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user