277 lines
5.2 KiB
Vue
277 lines
5.2 KiB
Vue
<template>
|
|
<view>
|
|
<u-navbar :is-back="false" title="WMS PDA" :background="background"></u-navbar>
|
|
<scroll-view scroll-y class="page">
|
|
<view class="nav-list">
|
|
<view class="row-flex">
|
|
<view v-if="$menuLimit(item.id)" v-for="(item, i) in elements" :key="i" class="nav-view">
|
|
<navigator hover-class="none" :url="'/pages/product/features/' + item.name" class="nav-a nav-li"
|
|
navigateTo :class="'bg-'+item.color">
|
|
<view class="nav-title">{{item.title}}</view>
|
|
<view class="nav-name">{{item.en_name}}</view>
|
|
<text :class="'cuIcon-' + item.cuIcon"></text>
|
|
</navigator>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
<u-gap height="70"></u-gap>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
// var globalEvent = uni.requireNativePlugin('globalEvent');
|
|
// plus.globalEvent.addEventListener('myEvent', function(e) {
|
|
// console.log('myEvent'+JSON.stringify(e));
|
|
// });
|
|
import {
|
|
removeZeros
|
|
} from "@/utils/utils"
|
|
export default {
|
|
data() {
|
|
return {
|
|
title: 'Hello',
|
|
background: {
|
|
backgroundImage: 'linear-gradient(45deg, rgb(28, 187, 180), rgb(141, 198, 63))'
|
|
},
|
|
elements: [
|
|
// {
|
|
// title: '组托',
|
|
// name: 'Setto/index',
|
|
// en_name:'Setto',
|
|
// color: 'red',
|
|
// cuIcon: 'cascades',
|
|
// label: '组托'
|
|
// } ,
|
|
|
|
// {
|
|
// title: '空托盘入库',
|
|
// name: 'LibarayEmptyPallets/index',
|
|
// en_name:'LibarayEmptyPallets',
|
|
// color: 'pink',
|
|
// cuIcon: 'exit',
|
|
// label: '预约确认 '
|
|
// },{
|
|
// title: '立库空托盘出库',
|
|
// name: 'LibararyEmptyPalletsOut/index',
|
|
// en_name:'LibararyEmptyPalletsOut',
|
|
// color: 'pink',
|
|
// cuIcon: 'exit',
|
|
// label: '预约确认 '
|
|
// },
|
|
{
|
|
title: '立库入库',
|
|
name: 'LIbraryStockInOpt/index',
|
|
en_name: 'LIbraryStockInOpt',
|
|
color: 'darkorange',
|
|
cuIcon: 'exit',
|
|
label: '立库入库 ',
|
|
id:'300001'
|
|
}, {
|
|
title: '立库出库',
|
|
name: 'LIbraryStockOutOpt/index',
|
|
en_name: 'LIbraryStockOutOpt',
|
|
color: 'darkorange',
|
|
cuIcon: 'exit',
|
|
label: '立库出库',
|
|
id:'300002'
|
|
}, {
|
|
title: '立库转库',
|
|
name: 'LIbraryStockTransfer/index',
|
|
en_name: 'LIbraryStockTransfer',
|
|
color: 'darkorange',
|
|
cuIcon: 'exit',
|
|
label: '立库转库',
|
|
id:'300003'
|
|
},
|
|
{
|
|
title: '托盘库出库确认',
|
|
name: 'Dismantling/index',
|
|
en_name: 'Dismantling',
|
|
color: 'red',
|
|
cuIcon: 'cascades',
|
|
label: '托盘库出库确认',
|
|
id:'300004'
|
|
}
|
|
],
|
|
filterElements: []
|
|
}
|
|
},
|
|
computed: {
|
|
tabbar() {
|
|
return store.vuex_tabbar
|
|
}
|
|
},
|
|
// onShow() {
|
|
// const globalEvent = uni.requireNativePlugin('globalEvent');
|
|
// let that = this
|
|
// plus.globalEvent.addEventListener('tagDataEvent', function(e) {
|
|
// console.log('tagDataEvent'+JSON.stringify(e));
|
|
// let rifd = removeZeros(e.tagData[0].tagID)
|
|
// uni.$emit('rifdscan', {
|
|
// rifd: rifd
|
|
// })
|
|
// });
|
|
// },
|
|
created() {
|
|
|
|
},
|
|
mounted() {
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.demo-layout {
|
|
height: 80rpx;
|
|
border-radius: 8rpx;
|
|
}
|
|
|
|
.bg-purple {
|
|
background: #d3dce6;
|
|
}
|
|
|
|
.mt-10 {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.row-flex {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
.nav-view {
|
|
width: 45%;
|
|
margin: 2.5%;
|
|
// display: contents;
|
|
}
|
|
.nav-li {
|
|
// width: 45%;
|
|
width: 100%;
|
|
// margin: 0 2.5% 40upx;
|
|
background-image: url('../../static/img/background.png');
|
|
background-size: cover;
|
|
background-position: center;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
.nav-a {
|
|
padding: 30upx;
|
|
border-radius: 12upx;
|
|
}
|
|
|
|
.nav-li::after {
|
|
content: "";
|
|
position: absolute;
|
|
z-index: -1;
|
|
background-color: inherit;
|
|
width: 100%;
|
|
height: 100%;
|
|
left: 0;
|
|
bottom: -10%;
|
|
border-radius: 10upx;
|
|
opacity: 0.2;
|
|
transform: scale(0.9, 0.9);
|
|
}
|
|
|
|
.nav-li.cur {
|
|
color: #fff;
|
|
background: rgb(94, 185, 94);
|
|
box-shadow: 4upx 4upx 6upx rgba(94, 185, 94, 0.4);
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 32upx;
|
|
font-weight: 300;
|
|
}
|
|
|
|
.nav-title::first-letter {
|
|
font-size: 40upx;
|
|
margin-right: 4upx;
|
|
}
|
|
|
|
.nav-name {
|
|
font-size: 28upx;
|
|
text-transform: Capitalize;
|
|
margin-top: 20upx;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-name::before {
|
|
content: "";
|
|
position: absolute;
|
|
display: block;
|
|
width: 40upx;
|
|
height: 6upx;
|
|
background: #fff;
|
|
bottom: 0;
|
|
right: 0;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.nav-name::after {
|
|
content: "";
|
|
position: absolute;
|
|
display: block;
|
|
width: 100upx;
|
|
height: 1px;
|
|
background: #fff;
|
|
bottom: 0;
|
|
right: 40upx;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.nav-name::first-letter {
|
|
font-weight: bold;
|
|
font-size: 36upx;
|
|
margin-right: 1px;
|
|
}
|
|
|
|
.nav-li text {
|
|
position: absolute;
|
|
right: 30upx;
|
|
top: 30upx;
|
|
font-size: 52upx;
|
|
width: 60upx;
|
|
height: 60upx;
|
|
text-align: center;
|
|
line-height: 60upx;
|
|
}
|
|
|
|
.text-light {
|
|
font-weight: 300;
|
|
}
|
|
|
|
@keyframes show {
|
|
0% {
|
|
transform: translateY(-50px);
|
|
}
|
|
|
|
60% {
|
|
transform: translateY(40upx);
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0px);
|
|
}
|
|
}
|
|
|
|
@-webkit-keyframes show {
|
|
0% {
|
|
transform: translateY(-50px);
|
|
}
|
|
|
|
60% {
|
|
transform: translateY(40upx);
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0px);
|
|
}
|
|
}
|
|
</style> |