From 0dfc714c8188ab8a7562e4975c5f6051c16cd80b Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Wed, 1 Mar 2023 16:06:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 59 +++++++++- pages/massif/myPlant.vue | 234 +++++++++++++++++++++++++++++++++++++++ router/massif.js | 11 ++ store/index.js | 1 - uni.scss | 2 +- 5 files changed, 300 insertions(+), 7 deletions(-) create mode 100644 pages/massif/myPlant.vue diff --git a/pages/home/index.vue b/pages/home/index.vue index 543c6ba..582561d 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -65,6 +65,41 @@ } } .card{ + &.area{ + position:relative; + z-index: 20; + table{ + width:100%; + border-bottom:2rpx solid rgba(216, 216, 216, 0.2); + tr{ + &.title{ + font-size:24rpx; + } + &.value{ + color:#10C176; + font-size:32rpx; + font-weight: bold; + } + } + } + .article{ + display:flex; + align-items: center; + padding-top:20rpx; + text{ + &:before{ + color:#31C888; + margin-right:14rpx; + } + &.line{ + width:5rpx; + height: 52rpx; + background:rgba(216, 216, 216, 0.2); + margin:0 30rpx 0 auto; + } + } + } + } &.mana{ width:calc(50% - 46rpx); flex-shrink: 0; @@ -272,7 +307,21 @@ - + + + + +
地块个数(个)地块面积(亩)在种品种(种)在种面积(亩)
{{massif.plotNum}}{{massif.totalArea}}{{massif.plantArea}}{{massif.productCount}}
+ + + + + 库存 + 采购 + +
+ + @@ -318,7 +367,7 @@ - + {{$store.state.baseInfo.name||'基地管理'}} 切换基地 @@ -362,7 +411,7 @@ \ No newline at end of file diff --git a/router/massif.js b/router/massif.js index 6051dba..76bcd91 100644 --- a/router/massif.js +++ b/router/massif.js @@ -143,4 +143,15 @@ module.exports=[ } } }, + { + path:"pages/massif/myPlant", + style:{ + navigationBarTitleText:"我的种植", + navigationBarBackgroundColor:"#10C176", + navigationBarTextStyle:"white", + "app-plus":{ + titleNView:true, + } + } + }, ] \ No newline at end of file diff --git a/store/index.js b/store/index.js index 5f57f90..7de52c5 100644 --- a/store/index.js +++ b/store/index.js @@ -6,7 +6,6 @@ export default new Vuex.Store({ state:{ userInfo:{}, token:"", - plantBaseInfoId:"", baseInfo:{ id:"", name:"", diff --git a/uni.scss b/uni.scss index 4e15ff2..00efe57 100644 --- a/uni.scss +++ b/uni.scss @@ -77,7 +77,7 @@ $uni-font-size-paragraph:15px; @import '@/common/main.css'; @import 'uview-ui/theme.scss'; -@import url('https://at.alicdn.com/t/c/font_3852037_8frcz777lb4.css'); +@import url('https://at.alicdn.com/t/c/font_3852037_huussxt3ujw.css'); [class*=plant-]{ font-family: "plantMana" !important; font-size: 16px;