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 | 51 ++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 40 insertions(+), 11 deletions(-) diff --git a/pages/sys/home/index.vue b/pages/sys/home/index.vue index 114f6a3..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/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: '/', - icon: 'feeding' + url: '/pages/product/cancelReport/index', + icon: 'two' }, { name: '鎺ユ敹锛堥摐鏉嗭級', url: '/', - icon: 'feeding' + icon: 'three' + }, + { + name: '杞﹂棿璁㈠崟涓嬪彂', + url: '/', + icon: 'four' + }, + { + name: '杞﹂棿鍙栨秷涓嬪彂', + url: '/', + icon: 'five' }, ] }, @@ -49,17 +60,27 @@ { 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' + icon: 'eight' + }, + { + name: '搴撳瓨浠剁洏鐐�', + url: '/pages/wareHouse/inventory/index', + icon: 'nine' + }, + { + name: '瀵间綋澶囪揣鐩樼偣', + url: '/pages/wareHouse/inventory/index', + icon: 'ten' }, ] }, @@ -69,12 +90,12 @@ { name: '棰嗘枡', url: '/pages/wareHouse/moveWareHouse/index', - icon: 'feeding' + icon: 'eleven' }, { name: '鍙栨秷棰嗘枡', url: '/pages/wareHouse/inventory/index', - icon: 'feeding' + 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