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 @@ + + + + \ 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 @@ + + + + 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 @@ - - - - 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 @@ + + + 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 @@ + + + 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 @@ + + + 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 @@ + + + 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