From 949fd62f6b2b831437fa97c02147b740523bea99 Mon Sep 17 00:00:00 2001 From: lgyg <1370861456@qq.com> Date: Sat, 9 Sep 2023 23:07:16 +0800 Subject: [PATCH] new --- src/App.vue | 96 +++- .../yn-select-input-list.vue | 82 +++ src/main.js | 3 +- src/pages.json | 10 + src/pages/device/index.vue | 533 ++++++++++++++++-- src/pages/estate/estate-price.vue | 505 +++++++++++++++++ src/pages/index/index.vue | 2 + 7 files changed, 1178 insertions(+), 53 deletions(-) create mode 100644 src/components/yn-select-input-list/yn-select-input-list.vue create mode 100644 src/pages/estate/estate-price.vue diff --git a/src/App.vue b/src/App.vue index e45f06a..8bee5e7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -29,6 +29,9 @@ .mt24{ margin-top: 24rpx; } + .mt12{ + margin-top: 12rpx; + } .mt20{ margin-top: 20rpx; } @@ -163,7 +166,9 @@ padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); } - + .status_bar_top { + padding-top: var(--status-bar-height); + } .input-placeholder,.textarea-placeholder{ color: #c3c3c3; } @@ -178,9 +183,7 @@ background: url('./static/img/my_arrow_right.png') no-repeat center; background-size: 100%; } - .uni-input-input:disabled{ - background-color: #f8f8f8; - } + .bg_colorf8{ background-color: #f8f8f8; } @@ -493,6 +496,7 @@ .buttom_section{ display: flex; padding: 30rpx; + justify-content: space-around; .btn{ width: 240rpx; } @@ -543,6 +547,88 @@ padding: 20rpx; } } - + .search-box{ + background-color: #fff; + padding: 20rpx; + .search-input-vh{ + padding: 12rpx 20rpx; + border-radius: 30rpx; + font-size: 28rpx; + &::after{ + border-radius: 30rpx; + border-color: #ddd; + } + .placeholder_text{ + color: #c3c3c3; + } + } + } + .popup-screen-groups{ + padding-top: 46px; + background-color: #fff; + height: 100%; + display: flex; + flex-direction: column; + .row_ul{ + padding-top: 30rpx; + } + .row_list{ + padding: 0 20rpx; + margin-bottom: 16rpx; + .label_tit{ + width: 120rpx; + text-align: right; + margin-right: 20rpx; + &.small{ + width: 90rpx; + } + } + } + .scroll-y{ + flex: 1; + flex-shrink: 0; + min-height: 1px; + } + .buttom_section{ + display: flex; + justify-content: space-around; + padding: 30rpx 24rpx; + .btn{ + width: 220rpx; + &.small_btn{ + width: 300rpx; + height: 64rpx; + } + } + } + } + .scrollY{ + width: 100%; + height: 100%; + } + .u-select-input-list{ + position: relative; + flex: 1; + display: flex; + flex-direction: row; + border-radius: 8rpx; + min-height: 72rpx; + border: 1px solid #dcdfe6; + padding: 0 20rpx; + .select_wrapper{ + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + font-size: 28rpx; + color: #000; + } + .right-icon{ + .u-icon__icon{ + margin-left: 10rpx; + color: rgb(192, 196, 204); + } + } + } diff --git a/src/components/yn-select-input-list/yn-select-input-list.vue b/src/components/yn-select-input-list/yn-select-input-list.vue new file mode 100644 index 0000000..6c7fa3b --- /dev/null +++ b/src/components/yn-select-input-list/yn-select-input-list.vue @@ -0,0 +1,82 @@ + + + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 0b8bfe4..a959308 100644 --- a/src/main.js +++ b/src/main.js @@ -6,7 +6,8 @@ Vue.use(uView); import {http,getFullUrl} from '@/api/index.js' import store from './store/index.js' Vue.config.productionTip = false - +import ynSelectInputList from "@/components/yn-select-input-list/yn-select-input-list.vue" +Vue.component('ynSelectInputList', ynSelectInputList) Vue.prototype.$http = http Vue.prototype.$getFullUrl = getFullUrl App.mpType = 'app' diff --git a/src/pages.json b/src/pages.json index 3354395..df9a09a 100644 --- a/src/pages.json +++ b/src/pages.json @@ -129,6 +129,16 @@ } } + ,{ + "path" : "pages/estate/estate-price", + "style" : + { + "navigationBarTitleText": "稻虾价格", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + + } ], "globalStyle": { "navigationBarTextStyle": "white", diff --git a/src/pages/device/index.vue b/src/pages/device/index.vue index 073d925..d1eaab5 100644 --- a/src/pages/device/index.vue +++ b/src/pages/device/index.vue @@ -6,12 +6,17 @@ 新增 - - + + + + 筛选条件 + + + 监控点:{{ item.monitoring_point }} - 状态:{{item.status}} + 状态: + @@ -43,8 +50,8 @@ mode="center" :closeable="true" :mask-close-able="false" z-index="910"> - 编辑账号 - 新增账号 + 编辑设备 + 新增设备 @@ -56,7 +63,14 @@ - + + {{setInfo.type_name}} + 请选择 + + + + @@ -66,7 +80,14 @@ - + + {{setInfo.base_name}} + 请选择 + + + + @@ -75,13 +96,28 @@ + - + + {{setInfo.supplier_name}} + 请选择 + + + + - + - + + {{setInfo.project_name}} + 请选择 + + + + @@ -89,6 +125,39 @@ + + @@ -131,29 +200,94 @@ 设备厂商 - {{formInfo.supplier}} + {{formInfo.supplier?formInfo.supplier.name:'-'}} 设备项目 - {{formInfo.project}} + {{formInfo.project?formInfo.project.name:'-'}} 状态 - {{formInfo.status}} + + + - - + + + + + + + + + + + + + + + + + 基地 + + + + 类型 + + + + 状态 + + + + 监控点 + + + + 设备编号 + + + + 设备厂商 + + + + 项目 + + + + + + 重置 + 查询 + + + + + diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 91a65c7..ec15cd9 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -70,6 +70,7 @@ }, { label:'稻虾价格', + url:'/pages/estate/estate-price' }, { label:'稻虾每周价格', @@ -157,6 +158,7 @@ align-items: center; justify-content: center; padding: 10rpx 15rpx; + height: 100%; } } }