NurseStationApp/pages/homepage/homepage.vue

114 lines
1.9 KiB
Vue
Raw Normal View History

2022-10-12 16:54:34 +08:00
<template>
<view class="app">
<view class="cards">
2022-10-12 17:45:22 +08:00
<view class="nursing item">
2022-10-13 10:37:47 +08:00
<image src="../../static/jjhl.png" mode=""></image>
2022-10-12 17:45:22 +08:00
<view class="title">
护理站
</view>
</view>
2022-10-17 11:21:23 +08:00
<view class="expert item" @tap='gomedicine'>
2022-10-13 10:37:47 +08:00
<image src="../../static/zhuanjia.png" mode=""></image>
2022-10-12 17:45:22 +08:00
<view class="title">
就医
</view>
</view>
<view class="item knowledge">
2022-10-13 10:37:47 +08:00
<image src="../../static/zs.png" mode=""></image>
2022-10-12 17:45:22 +08:00
<view class="title">
健康知识
</view>
</view>
<view class="elderly item">
2022-10-13 10:37:47 +08:00
<image src="../../static/ylfw.png" mode=""></image>
2022-10-12 17:45:22 +08:00
<view class="title" style="font-size: 42rpx;">
国家老年病中心
</view>
</view>
<view class="smallitem">
2022-10-13 10:37:47 +08:00
<image src="../../static/pb.png" mode=""></image>
2022-10-12 17:45:22 +08:00
<view class="title">
体卫融合
</view>
</view>
<view style="width:56% ;">
2022-10-12 16:54:34 +08:00
</view>
</view>
2022-10-17 11:21:23 +08:00
2022-10-12 16:54:34 +08:00
</view>
</template>
<script>
export default {
data() {
2022-10-17 11:21:23 +08:00
return {};
},
methods: {
//跳转就医页面
gomedicine() {
uni.navigateTo({
url: '/pages/medicine/medicine'
})
},
2022-10-12 16:54:34 +08:00
}
}
</script>
<style lang="scss">
.app {
2022-10-17 11:21:23 +08:00
// background-color: #F4F5F7;
// width: 100%;
// height: 100vh;
// position: relative;
2022-10-12 16:54:34 +08:00
.cards {
2022-10-12 17:45:22 +08:00
.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%);
}
2022-10-13 10:37:47 +08:00
image {
2022-10-12 17:45:22 +08:00
width: 70rpx;
height: 70rpx;
position: absolute;
top: 20%;
left: 50%;
transform: translateX(-50%);
}
}
.knowledge {
background-color: #E1AE3C;
}
.elderly {
background-color: #00C176;
}
.expert {
background-color: #D43953;
}
.nursing {
background: #4C7BC9;
}
2022-10-12 16:54:34 +08:00
}
}
</style>