Files
FT541-WMS/RuoYi-App-master/pages/pandian/menu.vue
2025-10-16 14:37:22 +08:00

105 lines
2.1 KiB
Vue

<template>
<view class="container">
<view class="function-list">
<view class="function-item" @click="navigateTo('/pages/pandian/confirm')">
<view class="icon-box blue">
<image src="/static/images/tabbar/tray121.png" mode="aspectFit" class="icon-image" style="width: 40rpx; height: 40rpx;"></image>
</view>
<view class="function-text">
<text class="title">{{ $t('stocktaking.confirm.title') }}</text>
<text class="desc">{{ $t('stocktaking.confirm.desc') }}</text>
</view>
</view>
<view class="function-item" @click="navigateTo('/pages/pandian/pkconfirm')">
<view class="icon-box blue">
<image src="/static/images/tabbar/tray121.png" mode="aspectFit" class="icon-image" style="width: 40rpx; height: 40rpx;"></image>
</view>
<view class="function-text">
<text class="title">{{ $t('stocktaking.confirmPK.title') }}</text>
<text class="desc">{{ $t('stocktaking.confirmPK.desc') }}</text>
</view>
</view>
</view>
</view>
</template>
<script>
import tab from '@/plugins/tab'
export default {
data() {
return {}
},
methods: {
navigateTo(url) {
tab.navigateTo(url)
}
}
}
</script>
<style lang="scss" scoped>
.container {
padding: 20rpx;
background-color: #f5f7fa;
min-height: 100vh;
}
.function-list {
display: flex;
flex-direction: column;
gap: 24rpx;
}
.function-item {
display: flex;
align-items: center;
background-color: #fff;
padding: 32rpx;
border-radius: 16rpx;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
&:hover {
transform: translateY(-4rpx);
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.12);
}
&:active {
transform: translateY(0);
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
}
}
.icon-box {
width: 80rpx;
height: 80rpx;
border-radius: 16rpx;
display: flex;
align-items: center;
justify-content: center;
margin-right: 24rpx;
&.blue {
background-color: rgba(59, 127, 255, 0.1);
}
}
.function-text {
flex: 1;
.title {
font-size: 32rpx;
color: #333;
font-weight: 500;
display: block;
margin-bottom: 8rpx;
}
.desc {
font-size: 24rpx;
color: #666;
display: block;
}
}
</style>