Files

77 lines
1.3 KiB
Vue
Raw Permalink Normal View History

2024-03-28 13:32:46 +08:00
<template>
2024-04-23 11:03:51 +08:00
<view class="common-nav-container">
<u-grid :border="true" @click="gridCheck" col="4">
<u-grid-item v-for="(item,index) in gridItemList" :key="index" :name="item.url">
<u-icon :customStyle="{paddingTop:20+'rpx'}" :name="item.icon" :size="128"></u-icon>
<text class="grid-text">{{item.name}}</text>
</u-grid-item>
</u-grid>
2024-03-28 13:32:46 +08:00
</view>
</template>
<script>
export default {
data() {
return {
2024-04-23 11:03:51 +08:00
gridItemList: [
{
name: 'agv操作',
icon: 'grid-fill',
url: '/pages/agv/agv-action/agv-action'
2024-03-28 16:04:35 +08:00
},
{
2024-04-23 11:03:51 +08:00
name: '上料工单',
icon: 'grid-fill',
url: '/pages/agv/agv-in/agv-in'
2024-03-28 16:04:35 +08:00
},
]
2024-03-28 13:32:46 +08:00
}
},
methods: {
2024-04-23 11:03:51 +08:00
gridCheck(url) {
if (url === '') {
return;
2024-03-28 16:04:35 +08:00
}
2024-04-23 11:03:51 +08:00
uni.navigateTo({
url
});
},
2024-03-28 13:32:46 +08:00
}
}
</script>
2024-03-28 16:04:35 +08:00
<style scoped>
.background {
/* margin-top: 20px;
height: 692px; */
/* background-color: #4671d5; */
}
.title-box {
width: 100%;
height: 150px;
}
.grid-box {
width: 100%;
height: 100%;
}
.grid-box .item {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
2024-03-28 13:32:46 +08:00
2024-03-28 16:04:35 +08:00
.item {
background-color: rgba(128, 128, 128, 0.5);
}
.text {
font-size: 24px;
color: white;
}
</style>