From f28e95ea2d909b26f5d8d679d9586690e888b821 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Tue, 11 Oct 2022 17:03:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- common/style/layout.css | 124 ++++++++++++++++------- common/style/reset.css | 3 + components/NavBar.vue | 45 +++++++- pages.json | 54 ++-------- pages/ProductManage/EmptyPipeInStore.vue | 70 +++++++++++-- pages/ProductManage/ZjCasing.vue | 6 +- pages/ProductManage/ZjDelivery.vue | 6 +- pages/ProductManage/ZjOutStore.vue | 6 +- pages/home/home.vue | 16 +-- pages/login/login.vue | 9 +- pages/login/setup.vue | 45 +++++--- vuex/modules/user.js | 4 +- 13 files changed, 262 insertions(+), 128 deletions(-) diff --git a/App.vue b/App.vue index a307597..8c2d7c0 100644 --- a/App.vue +++ b/App.vue @@ -3,7 +3,7 @@ onLaunch: function() { // #ifdef APP-PLUS // plus.screen.lockOrientation('landscape-primary'); - // plus.navigator.setFullscreen(true); + plus.navigator.setFullscreen(true); // #endif }, onHide: function() { diff --git a/common/style/layout.css b/common/style/layout.css index f2bc634..0ae7c97 100644 --- a/common/style/layout.css +++ b/common/style/layout.css @@ -1,10 +1,10 @@ page { - background-color: #F5F5F5 !important; + background-color: #f6f6f6 !important; min-height: 100% !important; height: 100% !important; } uni-page-body { - background-color: #F5F5F5 !important; + background-color: #f6f6f6 !important; min-height: 100% !important; height: 100% !important; } @@ -42,27 +42,83 @@ uni-page-body { color: #ff6a00; border: 1rpx solid #ff6a00; } - - -/* .open_icon::before { - content: '\ec0c' -} */ +.icon_back { + font-size: 52rpx; + line-height: 52rpx; + color: #fff; +} +.icon_home { + font-size: 52rpx; + line-height: 52rpx; + color: #fff; +} /** 内容 */ +.container { + width: 100%; + height: 100%; +} .content { width: 100%; height: 100%; - padding: 0 24rpx; + padding: 92rpx 15rpx 82rpx 14rpx; } -.container { +.wrapper { width: 100%; - height: calc(100% - 110rpx); + height: auto; + background-color: #fff; + border-radius: 24rpx; + padding: 14rpx; + margin-bottom: 20rpx; +} +.filter_item { + display: flex; + width: 100%; + margin-bottom: 10rpx; +} +.filter_item:last-child { + margin-bottom: 0; +} +.filter_label_wraper { + flex: none; + width: 140rpx; + text-align:justify; + text-align-last: justify; + text-justify: inter-ideograph;/*兼容ie*/ +} +.filter_label { + display: block; + width: 140rpx; + line-height: 80rpx; + font-size: 28rpx; + color: #323232; + text-align:justify; + text-align-last: justify; + text-justify: inter-ideograph;/*兼容ie*/ +} +.filter_input_wraper { + flex: 1; + height: 80rpx; + padding: 5rpx 0; + margin-left: 30rpx; +} +.filter_input { + width: 100%; + height: 70rpx; + line-height: 70rpx; + border-bottom: 1px solid #dcdfe6; + padding: 0 15rpx; + font-size: 28rpx; + color: #606266; + border-radius: 4rpx; } .grid-wraper { width: 100%; +} +.slide_new { + width: 100%; height: 100%; - padding-top: 15rpx; - overflow-y: scroll; + overflow-y: auto; } .slide_new table { table-layout: fixed; @@ -104,43 +160,37 @@ uni-page-body { background: #fff; } -/** 按钮 **/ -.btn { - font-size: 28rpx; - line-height: 60rpx; - color: #fff; - text-align: center; - padding: 0 2rpx; - background-color: #e74f1a; - border-radius: 5px; - cursor: pointer; -} -.btn&:disabled { - background-color: #c9c9c9 !important -} -.btn-disabled { - background-color: #c9c9c9 !important -} /** 提交栏 **/ .submit-bar { display: flex; - justify-content: space-between; + flex-wrap: wrap; + justify-content: flex-end; align-items: center; position: fixed; bottom: 0; left: 0; width: 100%; + z-index: 100; background-color: #fff; - box-shadow: 0 0 20px 0 rgba(160,160,160,0.9); + padding-top: 15rpx; + box-shadow: 0 0 20rpx 0 rgba(160,160,160,0.7); } .submit-button { - flex: 1; - font-size: 28rpx; - line-height: 80rpx; - color: #fff; + font-size: 30rpx; + line-height: 52rpx; + color: #ff6a00; text-align: center; - margin: 15rpx; - background-color: $red; + letter-spacing: 1rpx; + padding: 0 22rpx; + background-color: #fff; + border: 1px solid #ff6a00; + margin: 0 20rpx 15rpx 0; + border-radius: 30rpx; +} +.btn-disabled { + background-color: #c9c9c9; + border: 1px solid #c9c9c9; + color: #fff; } /** 弹窗 */ diff --git a/common/style/reset.css b/common/style/reset.css index 3b9c682..bbb9eb5 100644 --- a/common/style/reset.css +++ b/common/style/reset.css @@ -24,6 +24,9 @@ input[type="button"], input[type="submit"], input[type="search"], input[type="re .hide { display: none; } +.vhide { + visibility:hidden; +} .show { display: block; } diff --git a/components/NavBar.vue b/components/NavBar.vue index 9a5f5cf..b3c6174 100644 --- a/components/NavBar.vue +++ b/components/NavBar.vue @@ -1,8 +1,8 @@ @@ -10,8 +10,40 @@ export default { data() { return { - }; + }, + props: { + title: String, + inner: { + type: Boolean, + default: false + }, + inner2: { + type: Boolean, + default: false + }, + show1: { + type: Boolean, + default: true + } + }, + methods: { + goBack () { + if (this.inner) { + uni.navigateBack() + } else if (this.inner2) { + this.$emit('goIn') + } else { + uni.redirectTo({ + url: '/pages/home/home' + }) + } + }, + backHome () { + uni.redirectTo({ + url: '/pages/home/home' + }) + } } } @@ -21,7 +53,10 @@ .header _fj() position fixed - _wh(100%, 86rpx) + _wh(100%, 72rpx) background-color $red z-index 100 + padding 0 20rpx +.page_name + _font(32rpx, 32rpx, #fff,700,center) diff --git a/pages.json b/pages.json index 60bc8c6..6b8a10b 100644 --- a/pages.json +++ b/pages.json @@ -14,11 +14,9 @@ } ,{ "path" : "pages/login/setup", - "style" : { - "navigationBarTitleText": "设置", - "navigationStyle": "default", - "enablePullDownRefresh": false - } + "style": { + "navigationStyle": "custom" + } } ,{ "path" : "pages/ProductManage/SboProdProgress", @@ -60,50 +58,20 @@ } ,{ "path" : "pages/ProductManage/ZjCasing", - "style" : { - "navigationBarTitleText": "子卷套管", - "app-plus": { - "titleNView": { - "buttons":[ - { - "type":"home" - } - ] - } - }, - "enablePullDownRefresh": false - } + "style": { + "navigationStyle": "custom" + } } ,{ "path" : "pages/ProductManage/ZjDelivery", - "style" : { - "navigationBarTitleText": "子卷配送", - "app-plus": { - "titleNView": { - "buttons":[ - { - "type":"home" - } - ] - } - }, - "enablePullDownRefresh": false - } + "style": { + "navigationStyle": "custom" + } } ,{ "path" : "pages/ProductManage/ZjOutStore", - "style" : { - "navigationBarTitleText": "子卷出站", - "app-plus": { - "titleNView": { - "buttons":[ - { - "type":"home" - } - ] - } - }, - "enablePullDownRefresh": false + "style": { + "navigationStyle": "custom" } } ,{ diff --git a/pages/ProductManage/EmptyPipeInStore.vue b/pages/ProductManage/EmptyPipeInStore.vue index d9c079f..20d2053 100644 --- a/pages/ProductManage/EmptyPipeInStore.vue +++ b/pages/ProductManage/EmptyPipeInStore.vue @@ -1,32 +1,80 @@ diff --git a/pages/ProductManage/ZjCasing.vue b/pages/ProductManage/ZjCasing.vue index 239d03a..349e738 100644 --- a/pages/ProductManage/ZjCasing.vue +++ b/pages/ProductManage/ZjCasing.vue @@ -1,11 +1,15 @@