diff --git a/src/App.vue b/src/App.vue index 2e2c79b..2f87992 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,6 +2,7 @@ export default { onLaunch: function () { console.log('App Launch') + plus.screen.lockOrientation('portrait-primary') }, onShow: function () { console.log('App Show') diff --git a/src/components/tree-select/eselect.vue b/src/components/tree-select/eselect.vue index 90cb2e4..c5e7e5d 100644 --- a/src/components/tree-select/eselect.vue +++ b/src/components/tree-select/eselect.vue @@ -208,7 +208,7 @@ /* 下拉容器样式 外层 */ .ep-picker-content-wrap { - max-height: 30vh; + max-height: 48vh; width: 100%; position: absolute; top: 88rpx; @@ -224,7 +224,7 @@ padding: 3px 0; box-shadow: 0 0 20rpx 5rpx rgb(0 0 0 / 30%); border-radius: 5px; - max-height: 281px; + max-height: 46vh; } /* 下拉项通用样式 */ diff --git a/src/manifest.json b/src/manifest.json index a04fdd3..390a8e8 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,5 +1,5 @@ { - "name" : "材料站管理", + "name" : "智慧材料站管理系统", "appid" : "__UNI__AEEB2B7", "description" : "", "versionName" : "1.0.1", diff --git a/src/pages.json b/src/pages.json index db9bdec..f5c9c4e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -134,6 +134,34 @@ "navigationStyle": "custom" } }, + // 领料记录 + { + "path": "pages/teamLeaseRecord/teamLeaseRecord", + "style": { + "navigationStyle": "custom" + } + }, + // 领料退料工器具详情 + { + "path": "pages/teamLeaseRecord/equipmentDetails", + "style": { + "navigationStyle": "custom" + } + }, + // 退料记录 + { + "path": "pages/teamBackRecord/teamBackRecord", + "style": { + "navigationStyle": "custom" + } + }, + // 班组预警 + { + "path": "pages/teamWarning/teamWarning", + "style": { + "navigationStyle": "custom" + } + }, /* 新购及其页面 */ // 验收 { @@ -654,7 +682,8 @@ "selectedColor": "#1296db", "borderStyle": "black", "backgroundColor": "#FFFFFF", - "iconWidth": "24px", + "iconWidth": "28px", + "fontSize": "14px", "list": [ { "pagePath": "pages/index/index", diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 3e77840..e8e0140 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,172 +1,71 @@ @@ -246,8 +168,15 @@ onNavigationBarButtonTap((e) => { margin-bottom: 0; box-sizing: border-box; padding: 15rpx; - padding-top: 8vh; display: flex; + // 针对平板(如宽度大于等于768px)设置不同的 padding-top + @media (min-width: 768px) { + padding-top: 13%; + } + // 针对手机(如宽度小于768px)设置不同的 padding-top + @media (max-width: 767px) { + padding-top: 7%; + } .user-lef { width: 60px; height: 60px; @@ -271,16 +200,21 @@ onNavigationBarButtonTap((e) => { } view:first-child { font-size: 20px; + @media (min-width: 768px) { + font-size: 24px; + } } view:last-child { font-size: 14px; letter-spacing: 6rpx; + @media (min-width: 768px) { + font-size: 20px; + } } } } .sliders { width: 85%; - /* height: 5vh; */ margin: 4vh auto; margin-bottom: 2vh; border-radius: 15rpx 15rpx 0 0; @@ -290,7 +224,7 @@ onNavigationBarButtonTap((e) => { padding: 1.3vh 0; display: flex; view { - width: 25%; + width: 33.3%; height: 50px; border-right: 1px solid #cde2ff; display: flex; @@ -310,25 +244,24 @@ onNavigationBarButtonTap((e) => { } } .sections { - width: 90%; - margin: 15rpx auto; display: flex; + justify-content: space-around; flex-wrap: wrap; box-sizing: border-box; - padding-top: 2vh; - view { + padding-top: 6%; + .item { width: 25%; display: flex; - flex-direction: column; align-items: center; - margin-bottom: 2vh; - image { - width: 70px; - height: 70px; - margin-bottom: 10rpx; - } - span { - font-size: 20rpx; + justify-content: center; + margin-bottom: 1rem; + .item-icon { + width: 68px; + height: 68px; + @media (min-width: 768px) { + width: 120px; + height: 120px; + } } } } diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index d7a98de..7967649 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -4,7 +4,7 @@ /*#ifdef H5 */ - +