diff --git a/components/colorui/components/cu-navbar.vue b/components/cu-navbar.vue similarity index 63% rename from components/colorui/components/cu-navbar.vue rename to components/cu-navbar.vue index def8557..07b988c 100644 --- a/components/colorui/components/cu-navbar.vue +++ b/components/cu-navbar.vue @@ -7,12 +7,32 @@ top:0; left:0; width:100%; - height:calc(var(--status-bar-height) + 100rpx); + box-sizing: content-box; + padding-top:var(--status-bar-height); + height:100rpx; background-color:var(--bg); color:var(--c); &>.left{ transform: rotate(180deg); padding:10rpx; + text.plant-youbian{ + font-size:45rpx; + } + } + &>.content{ + top:var(--status-bar-height); + } + &>.action /deep/{ + &>button{ + background:rgba(255, 255, 255, 0.1); + width:96rpx; + height:48rpx; + line-height: 48rpx; + text-align: center; + font-size:30rpx; + padding:0; + color:#fff; + } } } } @@ -24,7 +44,7 @@ - {{text||$root.$holder.navigationBarTitleText}} + {{text}} @@ -34,7 +54,6 @@ \ No newline at end of file diff --git a/main.js b/main.js index 2ab4fb6..33d2112 100644 --- a/main.js +++ b/main.js @@ -2,11 +2,16 @@ import Vue from 'vue' import App from './App' import store from './store' import uView from 'uview-ui'; -import colorUI from '@/components' +import cuNavbar from './components/cu-navbar.vue' +import dSearch from './components/search.vue' +import dForm from './components/form.vue' import {defineObj} from 'black-knight/lib/config/custom' Vue.use(uView) -Vue.use(colorUI) +Vue.component("cuNavbar", cuNavbar) +Vue.component("dSearch", dSearch) +Vue.component("dForm", dForm) + Vue.prototype.$store=store Vue.config.productionTip = false App.mpType = 'app' diff --git a/pages.js b/pages.js index fb3ff53..456f679 100644 --- a/pages.js +++ b/pages.js @@ -11,14 +11,14 @@ module.exports = hot((pagesJson)=>{ ...require('./router/stock.js'), ], tabBar:{ - iconfontSrc:"https://at.alicdn.com/t/c/font_3852037_qesfnqbc6t.ttf", color:"#999", selectedColor:"#10C176", backgroundColor:"#fff", + // iconWidth:"35rpx", list:[ - {pagePath:"pages/home/index",text:"首页",iconfont:{text:"\ue602",selectedText:"\ue602",fontSize:"30rpx",color:"#999",selectedColor:"#10C176"}}, - {pagePath:"pages/massif/index",text:"地块管理",iconfont:{text:"\ue866",selectedText:"\ue866",fontSize:"30rpx",color:"#999",selectedColor:"#10C176"}}, - {pagePath:"pages/home/my",text:"我的",iconfont:{text:"\ue941",selectedText:"\ue941",fontSize:"30rpx",color:"#999",selectedColor:"#10C176"}}, + {pagePath:"pages/home/index",text:"首页",iconPath: "/static/tab_home.png",selectedIconPath: "/static/tab_home_active.png"}, + {pagePath:"pages/massif/index",text:"地块管理",iconPath: "/static/tab_massif.png",selectedIconPath: "/static/tab_massif_active.png"}, + {pagePath:"pages/home/my",text:"我的",iconPath: "/static/tab_my.png",selectedIconPath: "/static/tab_my_active.png"}, ] }, } diff --git a/pages.json b/pages.json index 79c6a26..db5269b 100644 --- a/pages.json +++ b/pages.json @@ -12,6 +12,7 @@ "condition" : { //模式配置,仅开发期间生效 "current": 0, //当前激活的模式(list 的索引项) "list": [ + {"name": "登录","path": "pages/home/login","query": ""}, {"name": "首页","path": "pages/home/index","query": ""}, {"name": "仓库管理","path": "pages/warehouse/mana","query": ""}, {"name": "仓库基本信息","path": "pages/warehouse/info","query": ""}, diff --git a/pages/home/index.vue b/pages/home/index.vue index 2c8f741..3766c30 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -1,5 +1,5 @@