1. 新增钢卷详情、扫码页面与设备巡检组件 2. 调整首页跳转逻辑至扫码页面,更新tabBar配置 3. 隐藏旧的分条、其他操作模块,替换钢卷详情弹窗为页面跳转 4. 复用巡检组件到扫码页面与设备巡检页
80 lines
1.2 KiB
Vue
80 lines
1.2 KiB
Vue
<template>
|
|
<div></div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
hasJumped: false,
|
|
}
|
|
},
|
|
onShow() {
|
|
if (this.hasJumped) return;
|
|
|
|
this.$store.dispatch('GetInfo')
|
|
.then(() => {
|
|
uni.switchTab({
|
|
url: '/pages/scan/scan',
|
|
success: () => {
|
|
this.hasJumped = true;
|
|
},
|
|
fail: (err) => {
|
|
console.error('跳转失败:', err);
|
|
}
|
|
});
|
|
})
|
|
.catch(() => {
|
|
uni.reLaunch({ url: '/pages/login' })
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
/* 样式保持不变 */
|
|
.production-page {
|
|
min-height: 100vh;
|
|
background: #f6f6f6;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40rpx 30rpx 20rpx;
|
|
background: #fff;
|
|
border-bottom: 1rpx solid #e8e8e8;
|
|
|
|
.header-title {
|
|
font-size: 28rpx;
|
|
font-weight: 500;
|
|
color: #333;
|
|
letter-spacing: 2rpx;
|
|
padding: 0 30rpx;
|
|
}
|
|
|
|
.header-line {
|
|
height: 2rpx;
|
|
background: linear-gradient(90deg, transparent, #ddd, transparent);
|
|
flex: 1;
|
|
max-width: 100rpx;
|
|
|
|
&.line-left {
|
|
background: linear-gradient(90deg, transparent, #ddd);
|
|
}
|
|
|
|
&.line-right {
|
|
background: linear-gradient(90deg, #ddd, transparent);
|
|
}
|
|
}
|
|
}
|
|
|
|
.line-header {
|
|
background: #fff;
|
|
}
|
|
|
|
.content-wrapper {
|
|
padding: 0;
|
|
}
|
|
</style> |