83 lines
1.9 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">
<view class="menu-item" style="margin-left: 60rpx;">
2024-05-15 18:15:05 +08:00
<image @click="handleNavigateTo(1)" src="@/static/specialOperations/fireWork.png" style="width: 50rpx;height: 70rpx;"></image>
2024-05-14 18:16:51 +08:00
<text>动火作业</text>
</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>
<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>
</view>
</template>
<script>
import headers from '../../../components/headers/headers.vue'
export default {
navigationBarTitleText: '页面标题',
data() {
return {
};
},
methods:{
handleNavigateTo(val){
if(val === 1){
uni.navigateTo({
url: "./fireWork/fireWork"
})
}
}
}
}
</script>
<style lang="scss">
.specialOperations{
.fixedheader{
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 2;
}
.sp-menu{
margin-top: 138rpx;
width: 100%;
// height: 1200rpx;
// height: 1000rpx;
// background-color: darkred;
display: grid;
grid-gap: 10rpx;
grid-template-columns: repeat(2, 1fr);
// grid-template-columns: repeat(auto-fill, 220rpx);
place-items: center;
justify-content: center;
.menu-item{
width: 220rpx;
height: 274rpx;
// background-color: darkblue;
image{
width: 220rpx;
height: 220rpx;
}
text{
text-align: center;
display: flex;
justify-content: center;
}
}
}
}
</style>