From 2f26ba8f2c8f5c67e5ed16f4e89baaef82d70a3b Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 30 五月 2025 13:29:49 +0800
Subject: [PATCH] 联调pda扫码功能,解决pda上面样式问题

---
 pages/sys/home/index.vue |   36 ++++++++++++++++++++++--------------
 1 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/pages/sys/home/index.vue b/pages/sys/home/index.vue
index 8ef7d48..94aa260 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/${baseListItem.icon}.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: '鍙栨秷鎶ュ伐'
+							icon: 'two'
 						},
 						{
 							name: '鎺ユ敹锛堥摐鏉嗭級',
 							url: '/',
-							icon: '鎺ユ敹锛堥摐鏉嗭級'
+							icon: 'three'
 						},
 						{
 							name: '杞﹂棿璁㈠崟涓嬪彂',
 							url: '/',
-							icon: '杞﹂棿璁㈠崟涓嬪彂'
+							icon: 'four'
 						},
 						{
 							name: '杞﹂棿鍙栨秷涓嬪彂',
 							url: '/',
-							icon: '杞﹂棿鍙栨秷涓嬪彂'
+							icon: 'five'
 						},
 					]
 				},
@@ -59,27 +60,27 @@
 						{
 							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: '鏍哥褰曞叆'
+							icon: 'eight'
 						},
 						{
 							name: '搴撳瓨浠剁洏鐐�',
 							url: '/pages/wareHouse/inventory/index',
-							icon: '搴撳瓨浠剁洏鐐�'
+							icon: 'nine'
 						},
 						{
 							name: '瀵间綋澶囪揣鐩樼偣',
 							url: '/pages/wareHouse/inventory/index',
-							icon: '瀵间綋澶囪揣鐩樼偣'
+							icon: 'ten'
 						},
 					]
 				},
@@ -89,12 +90,12 @@
 						{
 							name: '棰嗘枡',
 							url: '/pages/wareHouse/moveWareHouse/index',
-							icon: '棰嗘枡'
+							icon: 'eleven'
 						},
 						{
 							name: '鍙栨秷棰嗘枡',
 							url: '/pages/wareHouse/inventory/index',
-							icon: '鍙栨秷棰嗘枡'
+							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