114 lines
2.7 KiB
Vue
Raw Normal View History

2024-05-14 18:16:51 +08:00
<template>
<view class="specialOperations">
<headers class="fixedheader" :themeType="true" :showBack="true">
<view class="headerName">
特种作业
</view>
</headers>
<view class="sp-menu">
2024-05-16 21:22:59 +08:00
<view class="menu-item" @click="handleNavigateTo(1)">
2024-05-16 04:10:40 +08:00
<view class="item-icon">
2024-05-16 21:22:59 +08:00
<image src="@/static/specialOperations/fireWork.png"></image>
2024-05-16 04:10:40 +08:00
</view>
<view class="item-text">
<text>动火作业</text>
</view>
2024-05-14 18:16:51 +08:00
</view>
2024-05-16 21:22:59 +08:00
<!-- <view class="menu-item" @click="handleNavigateTo(2)">
2024-05-16 16:54:07 +08:00
<view class="item-icon">
2024-05-16 21:22:59 +08:00
<image src="@/static/specialOperations/limitSpaceWork.png"></image>
2024-05-16 16:54:07 +08:00
</view>
<view class="item-text">
<text>受限空间作业</text>
</view>
</view> -->
2024-05-16 21:22:59 +08:00
<!-- <view class="menu-item" style="margin-left: 60rpx;"></view>
2024-05-14 18:16:51 +08:00
<view class="menu-item" style="margin-left: 60rpx;"></view>
<view class="menu-item" style="margin-right: 60rpx;"></view>
<view class="menu-item" style="margin-left: 60rpx;"></view>
<view class="menu-item" style="margin-right: 60rpx;"></view>
<view class="menu-item" style="margin-left: 60rpx;"></view>
2024-05-16 21:22:59 +08:00
<view class="menu-item" style="margin-right: 60rpx;"></view> -->
2024-05-14 18:16:51 +08:00
</view>
</view>
</template>
<script>
import headers from '../../../components/headers/headers.vue'
export default {
navigationBarTitleText: '页面标题',
data() {
return {
};
},
methods:{
handleNavigateTo(val){
2024-05-16 16:54:07 +08:00
if(val === 1) uni.navigateTo({ url: "./fireWork/checkList" })
if(val === 2) uni.navigateTo({ url: "./limitSpaceWork/checkList" })
2024-05-14 18:16:51 +08:00
}
}
}
</script>
<style lang="scss">
.specialOperations{
.fixedheader{
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 2;
}
.sp-menu{
2024-05-16 21:22:59 +08:00
margin: 0 38rpx;
2024-05-14 18:16:51 +08:00
margin-top: 138rpx;
// height: 1200rpx;
// height: 1000rpx;
// background-color: darkred;
display: grid;
2024-05-16 21:22:59 +08:00
grid-gap: 24rpx;
2024-05-14 18:16:51 +08:00
grid-template-columns: repeat(2, 1fr);
// grid-template-columns: repeat(auto-fill, 220rpx);
2024-05-16 21:22:59 +08:00
// place-items: center;
// justify-content: center;
2024-05-14 18:16:51 +08:00
.menu-item{
2024-05-16 21:22:59 +08:00
// width: 220rpx;
2024-05-14 18:16:51 +08:00
height: 274rpx;
// background-color: darkblue;
2024-05-16 21:22:59 +08:00
box-shadow: 0px 8rpx 15rpx 0px rgba(219,229,255,0.6);
border-radius: 10rpx;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
2024-05-16 04:10:40 +08:00
.item-icon{
2024-05-16 21:22:59 +08:00
// width: 220rpx;
// height: 220rpx;
2024-05-16 04:10:40 +08:00
display: flex;
justify-content: center;
align-items: center;
2024-05-16 21:22:59 +08:00
margin-bottom: 14rpx;
2024-05-16 04:10:40 +08:00
image{
2024-05-16 21:22:59 +08:00
width: 66rpx;
height: 86rpx;
2024-05-16 04:10:40 +08:00
}
2024-05-14 18:16:51 +08:00
}
2024-05-16 04:10:40 +08:00
.item-text{
align-items: center;
width: 220rpx;
height: 54rpx;
2024-05-14 18:16:51 +08:00
display: flex;
justify-content: center;
2024-05-16 04:10:40 +08:00
align-items: center;
text{
text-align: center;
display: flex;
justify-content: center;
}
2024-05-14 18:16:51 +08:00
}
}
}
}
</style>