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 | 106 ++++++++++++++++++++++++++++------------------------ 1 files changed, 57 insertions(+), 49 deletions(-) diff --git a/pages/sys/home/index.vue b/pages/sys/home/index.vue index a89f48c..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,27 +30,27 @@ { name: '鎶ュ伐', url: '/pages/product/report/index', - icon: '鎶ュ伐' + icon: 'one' }, - { - name: '鍙栨秷鎶ュ伐', - url: '/pages/product/cancelReport/index', - icon: '鍙栨秷鎶ュ伐' - }, - { - name: '鎺ユ敹锛堥摐鏉嗭級', - url: '/', - icon: '鎺ユ敹锛堥摐鏉嗭級' - }, + // { + // name: '鍙栨秷鎶ュ伐', + // url: '/pages/product/cancelReport/index', + // icon: 'two' + // }, + // { + // name: '鎺ユ敹锛堥摐鏉嗭級', + // url: '/pages/product/receive/index', + // icon: 'three' + // }, { name: '杞﹂棿璁㈠崟涓嬪彂', - url: '/', - icon: '杞﹂棿璁㈠崟涓嬪彂' + url: '/pages/product/WorkshopOrderIssued/index', + icon: 'four' }, { name: '杞﹂棿鍙栨秷涓嬪彂', - url: '/', - icon: '杞﹂棿鍙栨秷涓嬪彂' + url: '/pages/product/WorkshopOrderCancellationIssued/index', + icon: 'five' }, ] }, @@ -59,45 +60,45 @@ { name: '绉诲簱', url: '/pages/wareHouse/moveWareHouse/index', - icon: '绉诲簱' + icon: 'six' }, { name: '鐩樼偣鎶ュ憡鐩樼偣', url: '/pages/wareHouse/inventory/index', - icon: '鐩樼偣鎶ュ憡鐩樼偣' + icon: 'seven' }, - { - name: '鏍哥褰曞叆', - url: '/pages/wareHouse/packing/registration', - icon: '鏍哥褰曞叆' - }, - { - name: '搴撳瓨浠剁洏鐐�', - url: '/pages/wareHouse/inventory/index', - icon: '搴撳瓨浠剁洏鐐�' - }, - { - name: '瀵间綋澶囪揣鐩樼偣', - url: '/pages/wareHouse/inventory/index', - icon: '瀵间綋澶囪揣鐩樼偣' - }, + // { + // 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: '棰嗘枡' - }, - { - name: '鍙栨秷棰嗘枡', - url: '/pages/wareHouse/inventory/index', - icon: '鍙栨秷棰嗘枡' - }, - ] - } + // { + // title: '浠撳簱绠$悊', + // list: [ + // { + // name: '棰嗘枡', + // url: '/pages/storeManagement/MaterialRequisition/index', + // icon: 'eleven' + // }, + // { + // name: '鍙栨秷棰嗘枡', + // url: '/pages/storeManagement/CancelMaterialRequisition/index', + // icon: 'twelve' + // }, + // ] + // } ] }; }, @@ -116,7 +117,7 @@ </script> <style lang="scss"> .wrap { - height: calc(100vh - 200rpx); + height: 100%; background: linear-gradient(to bottom, #e5f0ff, #f6f9ff); overflow-y: auto; } @@ -140,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