NurseStationApp/pages/shopping/shopping.vue

102 lines
2.0 KiB
Vue
Raw Normal View History

2022-10-12 16:54:34 +08:00
<template>
2022-10-12 17:45:22 +08:00
<view class="app">
<view class="cards">
<view class="item" style="background-color: #00C176;" @tap='goProductList(1)'>
2022-10-13 16:02:25 +08:00
<image src="../../static/sp.png" mode=""></image>
2022-10-12 17:45:22 +08:00
<view class="title">
特医食品
</view>
</view>
<view class=" item" style="background-color: #D43953;">
2022-10-13 10:37:47 +08:00
<image src="../../static/yyss.png" mode=""></image>
2022-10-12 17:45:22 +08:00
<view class="title">
营养膳食
</view>
</view>
<view class="item" style="background-color: #E1AE3C;">
2022-10-13 10:37:47 +08:00
<image src="../../static/znsb.png" mode=""></image>
2022-10-12 17:45:22 +08:00
<view class="title" style="font-size: 42rpx;">
可穿戴医疗设备
</view>
</view>
<view class="item" style="background: #4C7BC9;">
2022-10-13 10:37:47 +08:00
<image src="../../static/cp.png" mode=""></image>
2022-10-12 17:45:22 +08:00
<view class="title" style="font-size: 42rpx;">
适老化改造
</view>
</view>
</view>
2022-10-12 16:54:34 +08:00
</view>
</template>
<script>
export default {
data() {
2022-10-13 16:02:25 +08:00
return {};
2022-10-12 17:45:22 +08:00
},
methods: {
//跳转到商品列表页面
goProductList(number) {
if (number == 1) {
var titlename = '特医食品'
2022-10-13 10:37:47 +08:00
uni.navigateTo({
2022-10-12 17:45:22 +08:00
url: `/pages/ProductList/ProductList?title=${titlename}`
})
}
},
},
2022-10-12 16:54:34 +08:00
}
</script>
<style lang="scss">
2022-10-12 17:45:22 +08:00
.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 200rpx 0;
border-radius: 25rpx;
.item {
width: 43%;
2022-10-13 16:02:25 +08:00
height: 300rpx;
2022-10-12 17:45:22 +08:00
margin-bottom: 40rpx;
border-radius: 25rpx;
position: relative;
2022-10-12 16:54:34 +08:00
2022-10-12 17:45:22 +08:00
.title {
2022-10-13 16:02:25 +08:00
width: 70%;
2022-10-12 17:45:22 +08:00
text-align: center;
font-size: 46rpx;
color: #FCFCFC;
position: absolute;
2022-10-13 16:02:25 +08:00
top: 58%;
2022-10-12 17:45:22 +08:00
left: 50%;
transform: translateX(-50%);
}
2022-10-13 10:37:47 +08:00
image {
2022-10-12 17:45:22 +08:00
width: 100rpx;
height: 100rpx;
position: absolute;
top: 20%;
left: 50%;
transform: translateX(-50%);
}
}
}
}
2022-10-12 16:54:34 +08:00
</style>