NurseStationApp/pages/homepage/homepage.vue
2022-10-13 16:02:25 +08:00

145 lines
2.5 KiB
Vue

<template>
<view class="app">
<view class="cards">
<view class="nursing item">
<image src="../../static/jjhl.png" mode=""></image>
<view class="title">
护理站
</view>
</view>
<view class="expert item">
<image src="../../static/zhuanjia.png" mode=""></image>
<view class="title">
就医
</view>
</view>
<view class="item knowledge">
<image src="../../static/zs.png" mode=""></image>
<view class="title">
健康知识
</view>
</view>
<view class="elderly item">
<image src="../../static/ylfw.png" mode=""></image>
<view class="title" style="font-size: 42rpx;">
国家老年病中心
</view>
</view>
<view class="smallitem">
<image src="../../static/pb.png" mode=""></image>
<view class="title">
体卫融合
</view>
</view>
<view style="width:56% ;">
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
.app {
background-color: #F4F5F7;
width: 100%;
height: 100vh;
position: relative;
.cards {
width: 94%;
box-shadow: 0px 0px 30rpx 0px rgba(108, 99, 255, 0.16);
background-color: #fff;
position: absolute;
top: 3%;
left: 3%;
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
padding: 40rpx 0 0 0;
border-radius: 25rpx;
.smallitem {
width: 30%;
height: 200rpx;
margin-bottom: 40rpx;
border-radius: 25rpx;
position: relative;
background: #9E4DD0;
.title {
width: 90%;
text-align: center;
font-size: 26rpx;
color: #FCFCFC;
position: absolute;
top: 60%;
left: 50%;
transform: translateX(-50%);
}
image {
width: 70rpx;
height: 70rpx;
position: absolute;
top: 20%;
left: 50%;
transform: translateX(-50%);
}
}
.item {
width: 43%;
height: 310rpx;
margin-bottom: 40rpx;
border-radius: 25rpx;
position: relative;
.title {
width: 80%;
text-align: center;
font-size: 46rpx;
color: #FCFCFC;
position: absolute;
top: 55%;
left: 50%;
transform: translateX(-50%);
}
image {
width: 100rpx;
height: 100rpx;
position: absolute;
top: 20%;
left: 50%;
transform: translateX(-50%);
}
}
.knowledge {
background-color: #E1AE3C;
}
.elderly {
background-color: #00C176;
}
.expert {
background-color: #D43953;
}
.nursing {
background: #4C7BC9;
}
}
}
</style>