This commit is contained in:
BianLzhaoMin 2025-06-15 15:28:56 +08:00
parent 637528d037
commit 02afa160c8
1 changed files with 29 additions and 27 deletions

View File

@ -84,7 +84,7 @@
v-for="(item, index) in partList" v-for="(item, index) in partList"
> >
<image :src="item.iconSrc" mode="scaleToFill" /> <image :src="item.iconSrc" mode="scaleToFill" />
<text style="white-space: nowrap;font-size: 26rpx;"> <text style="white-space: nowrap; font-size: 26rpx">
{{ item.title }} {{ item.title }}
</text> </text>
</view> </view>
@ -95,16 +95,19 @@
<div></div> <div></div>
<div class="purchase-title">标准箱管理</div> <div class="purchase-title">标准箱管理</div>
</div> </div>
<view class="purchase-item" :key="index" <view
class="purchase-item"
:key="index"
@tap="onNavigateTo(item.url)" @tap="onNavigateTo(item.url)"
v-for="(item, index) in boxList"> v-for="(item, index) in boxList"
>
<image :src="item.iconSrc" mode="scaleToFill" /> <image :src="item.iconSrc" mode="scaleToFill" />
<text> <text>
{{ item.title }} {{ item.title }}
</text> </text>
</view> </view>
</view> </view>
<!-- <view class="new-purchase"> <!-- <view class="new-purchase">
<view class="purchase-item" :key="index" <view class="purchase-item" :key="index"
@tap="onNavigateTo(item.url)" @tap="onNavigateTo(item.url)"
v-for="(item, index) in searchList"> v-for="(item, index) in searchList">
@ -146,7 +149,7 @@ const newInfoList = ref([
url: '', url: '',
iconSrc: '../../static/workbench/panDian.png', iconSrc: '../../static/workbench/panDian.png',
}, },
{ {
title: '铭牌更新', title: '铭牌更新',
url: '', url: '',
iconSrc: '../../static/workbench/minPai.png', iconSrc: '../../static/workbench/minPai.png',
@ -228,10 +231,10 @@ const partList = ref([
// //
const repairList = ref([ const repairList = ref([
{ {
title: '机具定损', title: '机具定损',
url: '/pages/repair/equipAssessment/index', url: '/pages/repair/equipAssessment/index',
iconSrc: '../../static/workbench/repair.png', iconSrc: '../../static/workbench/repair.png',
}, },
{ {
title: '维修', title: '维修',
url: '/pages/repair/repairManage/index', url: '/pages/repair/repairManage/index',
@ -247,11 +250,11 @@ const repairList = ref([
// url: '/pages/repair/testedInBound/index', // url: '/pages/repair/testedInBound/index',
// iconSrc: '../../static/workbench/fix.png', // iconSrc: '../../static/workbench/fix.png',
// }, // },
{ {
title: '报废审核', title: '报废审核',
url: '/pages/repair/scrapExamine/index', url: '/pages/repair/scrapExamine/index',
iconSrc: '../../static/workbench/repair.png', iconSrc: '../../static/workbench/repair.png',
}, },
]) ])
// //
@ -303,6 +306,7 @@ const boxList = ref([
// ]) // ])
const onNavigateTo = (url) => { const onNavigateTo = (url) => {
uni.setStorageSync('scrollTop', null)
uni.navigateTo({ url }) uni.navigateTo({ url })
} }
</script> </script>
@ -310,14 +314,13 @@ const onNavigateTo = (url) => {
<style lang="scss"> <style lang="scss">
page { page {
overflow: hidden; overflow: hidden;
overflow-y: auto; overflow-y: auto;
} }
.content { .content {
padding: 24rpx; padding: 24rpx;
min-height: 100vh; min-height: 100vh;
background-color: #f7f8fa; background-color: #f7f8fa;
// //
.new-purchase { .new-purchase {
background-color: #fff; background-color: #fff;
@ -353,7 +356,6 @@ page {
background-color: #2d73cf; background-color: #2d73cf;
} }
// //
.purchase-item { .purchase-item {
width: 25%; width: 25%;