From 55e991a9ce96d65f76f53af7dcd11b293f3e9c59 Mon Sep 17 00:00:00 2001 From: yyb <995253665@qq.com> Date: 星期一, 21 七月 2025 10:54:19 +0800 Subject: [PATCH] 上线前隐藏未开发菜单 --- pages/sys/home/index.vue | 95 +++++++++++++++++++++++++++++++---------------- 1 files changed, 62 insertions(+), 33 deletions(-) diff --git a/pages/sys/home/index.vue b/pages/sys/home/index.vue index 114f6a3..aa7c38c 100644 --- a/pages/sys/home/index.vue +++ b/pages/sys/home/index.vue @@ -11,7 +11,8 @@ <u-grid :border="false"> <u-grid-item v-for="(baseListItem, baseListIndex) in item.list" :key="baseListIndex" @click="navTo(baseListItem.url)"> - <img :src="require(`@/static/custom/home/feed.png`)" alt=""> + <view class="img" :style="`background: url(../../../static/custom/home/${baseListItem.icon}.png) no-repeat;`"> + </view> <text class="grid-text">{{ baseListItem.name }}</text> </u-grid-item> </u-grid> @@ -29,17 +30,27 @@ { name: '鎶ュ伐', url: '/pages/product/report/index', - icon: 'feeding' + icon: 'one' + }, + // { + // name: '鍙栨秷鎶ュ伐', + // url: '/pages/product/cancelReport/index', + // icon: 'two' + // }, + // { + // name: '鎺ユ敹锛堥摐鏉嗭級', + // url: '/pages/product/receive/index', + // icon: 'three' + // }, + { + name: '杞﹂棿璁㈠崟涓嬪彂', + url: '/pages/product/WorkshopOrderIssued/index', + icon: 'four' }, { - name: '鍙栨秷鎶ュ伐', - url: '/', - icon: 'feeding' - }, - { - name: '鎺ユ敹锛堥摐鏉嗭級', - url: '/', - icon: 'feeding' + name: '杞﹂棿鍙栨秷涓嬪彂', + url: '/pages/product/WorkshopOrderCancellationIssued/index', + icon: 'five' }, ] }, @@ -49,35 +60,45 @@ { name: '绉诲簱', url: '/pages/wareHouse/moveWareHouse/index', - icon: 'feeding' + icon: 'six' }, { name: '鐩樼偣鎶ュ憡鐩樼偣', url: '/pages/wareHouse/inventory/index', - icon: 'feeding' + icon: 'seven' }, - { - name: '鏍哥褰曞叆', - url: '/pages/wareHouse/packing/registration', - icon: 'feeding' - }, + // { + // name: '鏍哥褰曞叆', + // url: '/pages/wareHouse/nuclearScale/index', + // icon: 'eight' + // }, + // { + // name: '搴撳瓨浠剁洏鐐�', + // url: '/pages/wareHouse/InventoryCountStockItems/index', + // icon: 'nine' + // }, + // { + // name: '瀵间綋澶囪揣鐩樼偣', + // url: '/pages/wareHouse/InventoryCheckConductiveMterials/index', + // icon: 'ten' + // }, ] }, - { - title: '浠撳簱绠$悊', - list: [ - { - name: '棰嗘枡', - url: '/pages/wareHouse/moveWareHouse/index', - icon: 'feeding' - }, - { - name: '鍙栨秷棰嗘枡', - url: '/pages/wareHouse/inventory/index', - icon: 'feeding' - }, - ] - } + // { + // title: '浠撳簱绠$悊', + // list: [ + // { + // name: '棰嗘枡', + // url: '/pages/storeManagement/MaterialRequisition/index', + // icon: 'eleven' + // }, + // { + // name: '鍙栨秷棰嗘枡', + // url: '/pages/storeManagement/CancelMaterialRequisition/index', + // icon: 'twelve' + // }, + // ] + // } ] }; }, @@ -96,8 +117,9 @@ </script> <style lang="scss"> .wrap { - height: calc(100vh - 200rpx); + height: 100%; background: linear-gradient(to bottom, #e5f0ff, #f6f9ff); + overflow-y: auto; } .work-stage-title { @@ -119,4 +141,11 @@ .u-grid-item { background: transparent !important; } + +.img { + width: 96rpx; + height: 96rpx; + background-size: contain !important; + background-position: center !important; +} </style> \ No newline at end of file -- Gitblit v1.9.3