diff --git a/App.vue b/App.vue
index 8c2b732..cb73e6d 100644
--- a/App.vue
+++ b/App.vue
@@ -14,4 +14,12 @@
diff --git a/components/form.vue b/components/form.vue
new file mode 100644
index 0000000..a19fe84
--- /dev/null
+++ b/components/form.vue
@@ -0,0 +1,180 @@
+
+
+
+
+
+ {{/^\d+$/.test(value)&&columns[0][value][keyName]||placeholder||`请选择${label}`}}
+
+
+ 添加照片
+
+
+
+
+ {{value[0]||startPlaceholder||'开始时间'}}
+ -
+ {{value[1]||endPlaceholder||'结束时间'}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/main.js b/main.js
index 1083f8e..0af7f25 100644
--- a/main.js
+++ b/main.js
@@ -2,6 +2,7 @@ import Vue from 'vue'
import App from './App'
import store from './store'
import uView from 'uview-ui';
+import {defineObj} from 'black-knight/lib/config/custom'
Vue.use(uView)
Vue.prototype.$store=store
diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
index 8f40ee2..d03381b 100644
--- a/node_modules/.package-lock.json
+++ b/node_modules/.package-lock.json
@@ -4,6 +4,11 @@
"lockfileVersion": 2,
"requires": true,
"packages": {
+ "node_modules/black-knight": {
+ "version": "1.3.25",
+ "resolved": "https://registry.npmjs.org/black-knight/-/black-knight-1.3.25.tgz",
+ "integrity": "sha512-cIUMwiGO4Gsn9cD/lXy5RHlxAxR9aLZp2S5RyD76sGLFGNqWsc5rSFutpTJolwC/mvO9EOfMETo/6iVPetUdxQ=="
+ },
"node_modules/callsites": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
diff --git a/node_modules/uview-ui/components/u-navbar/u-navbar.vue b/node_modules/uview-ui/components/u-navbar/u-navbar.vue
index 2b206b7..710a42c 100644
--- a/node_modules/uview-ui/components/u-navbar/u-navbar.vue
+++ b/node_modules/uview-ui/components/u-navbar/u-navbar.vue
@@ -5,8 +5,7 @@
v-if="fixed && placeholder"
:style="{
height: $u.addUnit($u.getPx(height) + $u.sys().statusBarHeight,'px'),
- }"
- >
+ }" >
+ @tap="leftClick" >
+ @tap="rightClick" >
{
...pagesJson,
pages:[
{
- "path":"pages/index/index",
+ "path":"pages/index",
"style":{
"navigationBarTitleText":"种植管理",
+ "app-plus":{
+ "titleNView":false
+ }
+ }
+ },
+ {
+ "path":"pages/warehouseMana",
+ "style":{
+ "navigationBarTitleText":"仓库管理",
+ "app-plus":{
+ "titleNView":false
+ }
+ }
+ },
+ {
+ "path":"pages/warehouseInfo",
+ "style":{
+ "navigationBarTitleText":"仓库基本信息",
+ "navigationBarBackgroundColor":"#10C176",
+ "navigationBarTextStyle":"white",
+ "app-plus":{
+ "titleNView":true
+ }
+ }
+ },
+ {
+ "path":"pages/warehouseDetail",
+ "style":{
+ "navigationBarTitleText":"仓库详情",
+ "navigationBarBackgroundColor":"#10C176",
+ "navigationBarTextStyle":"white",
+ "app-plus":{
+ "titleNView":true
+ }
+ }
+ },
+ {
+ "path":"pages/massifMana",
+ "style":{
+ "navigationBarTitleText":"地块管理",
+ "app-plus":{
+ "titleNView":false
+ }
+ }
+ },
+ {
+ "path":"pages/massifDetail",
+ "style":{
+ "navigationBarTitleText":"地块详情",
+ "navigationBarBackgroundColor":"#10C176",
+ "navigationBarTextStyle":"white",
+ "app-plus":{
+ "titleNView":true
+ }
+ }
+ },
+ {
+ "path":"pages/massifInfo",
+ "style":{
+ "navigationBarTitleText":"地块基本信息",
+ "navigationBarBackgroundColor":"#10C176",
+ "navigationBarTextStyle":"white",
"app-plus":{
"titleNView":true
}
}
- }
+ },
]
}
})
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 49980e8..d2dbc0e 100644
--- a/pages.json
+++ b/pages.json
@@ -8,5 +8,15 @@
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
- "uniIdRouter": {}
+ "uniIdRouter": {},
+ "condition" : { //模式配置,仅开发期间生效
+ "current": 0, //当前激活的模式(list 的索引项)
+ "list": [
+ {
+ "name": "首页", //模式名称
+ "path": "pages/index", //启动页面,必选
+ "query": "" //启动参数,在页面的onLoad函数里面得到
+ }
+ ]
+ }
}
diff --git a/pages/index.vue b/pages/index.vue
new file mode 100644
index 0000000..29cf830
--- /dev/null
+++ b/pages/index.vue
@@ -0,0 +1,332 @@
+
+
+
+
+
+
+ 326
+
+
+
+ 566.23
+
+
+
+ 422.25
+
+
+
+ 12
+
+
+
+
+
+
+ 地块管理 更多>>
+
+
+ 西南角一号地块 35亩
+
+
+ 西南角一号地块 35亩
+
+
+ 西南角一号地块 35亩
+
+
+
+
+ 仓库管理 更多>>
+
+
+ 东方红一号仓库 23㎡
+
+
+ 东方红一号仓库 23㎡
+
+
+ 东方红一号仓库 23㎡
+
+
+
+
+
+ 库存管理
+
+ 农资库存
+ 农产品库存
+
+
+ 采购申请
+
+ 入库管理
+ 出库管理
+
+
+
+
+ 基地管理 新建
+
+
+ 农事记录
+ 投入品
+
+
+
+ 农事 [示例]今日完成了草莓园浇水任务。
+
+
+ 投入品 [示例]今日完成了草莓园浇水任务。
+
+
+ 投入品 [示例]今日完成了草莓园浇水任务。
+
+
+
+
+
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
deleted file mode 100644
index 49d1331..0000000
--- a/pages/index/index.vue
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
- {{title}}
-
-
- 主要按钮
-
-
-
-
diff --git a/pages/massifDetail.vue b/pages/massifDetail.vue
new file mode 100644
index 0000000..be1b60d
--- /dev/null
+++ b/pages/massifDetail.vue
@@ -0,0 +1,107 @@
+
+
+
+
+ 基本信息
+
+
+ 基地名称 A122323
+
+
+ 地块编号 东方红壹号基地
+
+
+ 地块面积 45亩
+
+
+ 实际面积 44亩
+
+
+ 地块图片
+
+
+
+
+
+
+
+ 使用日期 2021-10-15 至 2026-12-23
+
+
+ 经纬度 东经97°31′,北纬21°8′
+
+
+ 详细地址
+
+ 这里是地址信息这里是地址信息这里是地址信息这里是地址信息
+
+
+
+
+
+
diff --git a/pages/massifInfo.vue b/pages/massifInfo.vue
new file mode 100644
index 0000000..1d3e1e0
--- /dev/null
+++ b/pages/massifInfo.vue
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/massifMana.vue b/pages/massifMana.vue
new file mode 100644
index 0000000..f3280d8
--- /dev/null
+++ b/pages/massifMana.vue
@@ -0,0 +1,132 @@
+
+
+
+
+ 仓库管理
+
+
+
+
+
+
+
+
+
+
+
+
+ 西南角1号仓库
+ 编号:A000001
+ 地块面积:652亩
+
+ 453 (在用面积)
+
+
+ 修改
+ 删除
+ 地块管理
+
+
+
+
+
+
diff --git a/pages/warehouseDetail.vue b/pages/warehouseDetail.vue
new file mode 100644
index 0000000..90ea823
--- /dev/null
+++ b/pages/warehouseDetail.vue
@@ -0,0 +1,62 @@
+
+
+
+
+ 基本信息
+
+
+ 仓库名称 东方红一号仓库
+
+
+ 仓库位置 东方红一号基地进门右边冷库
+
+
+ 仓库容量 12
+
+
+ 仓库类型 冷库
+
+
+ 仓库管理员 张小红
+
+
+ 库管员电话 12323443434
+
+
+
+
+
diff --git a/pages/warehouseInfo.vue b/pages/warehouseInfo.vue
new file mode 100644
index 0000000..137f35c
--- /dev/null
+++ b/pages/warehouseInfo.vue
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+ 确认提交
+
+
+
diff --git a/pages/warehouseMana.vue b/pages/warehouseMana.vue
new file mode 100644
index 0000000..32ac075
--- /dev/null
+++ b/pages/warehouseMana.vue
@@ -0,0 +1,121 @@
+
+
+
+
+ 仓库管理
+
+
+
+
+
+
+
+
+
+
+
+
+ 西南角1号仓库
+ 种植基地进门右手边第3个
+
+ 库存种类:x种 库存量:xkg 453㎡
+
+
+ 修改
+ 删除
+ 查看库存
+
+
+
+
+
+
diff --git a/static/banner.png b/static/banner.png
new file mode 100644
index 0000000..8113f91
Binary files /dev/null and b/static/banner.png differ
diff --git a/store/index.js b/store/index.js
index 3a7484e..c4da33e 100644
--- a/store/index.js
+++ b/store/index.js
@@ -4,7 +4,9 @@ Vue.use(Vuex)
export default new Vuex.Store({
state:{},
- getters:{},
+ getters:{
+
+ },
mutations:{
},
diff --git a/uni.scss b/uni.scss
index 3bedfa4..6cb7603 100644
--- a/uni.scss
+++ b/uni.scss
@@ -75,4 +75,39 @@ $uni-font-size-subtitle:26px;
$uni-color-paragraph: #3F536E; // 文章段落颜色
$uni-font-size-paragraph:15px;
-@import 'uview-ui/theme.scss'
\ No newline at end of file
+@import 'uview-ui/theme.scss';
+@import url('//at.alicdn.com/t/c/font_3852037_axalwpoybj5.css');
+[class*=plant-]{
+ font-family: "plantMana" !important;
+ font-size: 16px;
+ font-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.card{
+ background:#fff;
+ border-radius: 12px;
+ margin:15px;
+ padding:15px;
+ box-shadow: 0 3px 6px 1px rgba(0,0,0,0.1);
+}
+view{
+ box-sizing: border-box;
+}
+
+.over{
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+}
+
+.u-form.inline /deep/{
+ margin:0;
+ .u-form-item__body{
+ flex-direction: column!important;
+ .u-form-item__body__left__content__required{
+ top:0;
+ }
+ }
+}
\ No newline at end of file