diff --git a/App.vue b/App.vue index f40fb27..760453e 100644 --- a/App.vue +++ b/App.vue @@ -15,14 +15,14 @@ @import "uview-ui/index.scss"; /*每个页面公共css */ - // page { - // background-color: #F4F5F7; - // } + page { + background-color: #F4F5F7; + } - // .app { - // width: 100%; - // height: 100%; - // text-align: justify; - // color: #000000; - // } - + .app { + width: 100%; + height: 100%; + text-align: justify; + color: #000000; + } + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 46cc286..72d5d66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,7 @@ "license": "ISC", "dependencies": { "uview-ui": "^1.8.8" - }, - "devDependencies": {} + } }, "node_modules/uview-ui": { "version": "1.8.8", diff --git a/pages.json b/pages.json index 48983eb..df56d40 100644 --- a/pages.json +++ b/pages.json @@ -3,22 +3,20 @@ "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { - "path": "pages/index/index", - "style": { - "navigationBarTitleText": "", - "enablePullDownRefresh": false, - "navigationStyle": "custom" - } - }, - { "path": "pages/homepage/homepage", + "style": { + "enablePullDownRefresh": false, + "navigationBarTitleText": "工单" + } + }, { + "path": "pages/index/index", "style": { "enablePullDownRefresh": false, "navigationStyle": "custom" } - }, + }, + // { // "path": "pages/login/login", // "style": { @@ -31,24 +29,22 @@ "path": "pages/myinformation/myinformation", "style": { "navigationBarTitleText": "我的", - "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#4ac4ab" - + "enablePullDownRefresh": false // "navigationStyle": "custom" } } ], "globalStyle": { - "navigationBarTextStyle": "black", + "navigationBarTextStyle": "white", "navigationBarTitleText": "", - "navigationBarBackgroundColor": "#F8F8F8", + "navigationBarBackgroundColor": "#18CBB3", "backgroundColor": "#F8F8F8" }, "uniIdRouter": {}, "tabBar": { "color": "#7A7E83", "selectedColor": "#435950", - "borderStyle": "black", + "borderStyle": "white", "backgroundColor": "#ffffff", "list": [{ "pagePath": "pages/homepage/homepage", @@ -56,7 +52,6 @@ "selectedIconPath": "static/homepage.png", "text": "首页" }, - { "pagePath": "pages/myinformation/myinformation", "iconPath": "static/myinformation.png", @@ -65,4 +60,4 @@ } ] } -} +} \ No newline at end of file diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue index 7cadeb5..5ae8826 100644 --- a/pages/homepage/homepage.vue +++ b/pages/homepage/homepage.vue @@ -1,7 +1,16 @@ @@ -10,16 +19,130 @@ export default { data() { return { + tabslist: [{ + name: '全部工单' + }, { + name: '我的工单' + }, { + name: '已完成工单', + }], + tabscurrent: 0, + optionindex: 1, + optionname: '待处理', + options: [{ + label: '待处理', + value: 1, + }, { + label: '已完成', + value: 2, + }], + query: { + label: '', + } } }, onLoad() { - + }, methods: { - + tabschange(index) { + this.tabscurrent = index; + }, + dropitemchange(e) { + this.optionname = this.options.find(m => m.value === e).label + console.log(e) + }, } } \ No newline at end of file diff --git a/static/sousuo.png b/static/sousuo.png new file mode 100644 index 0000000..fe3d92b Binary files /dev/null and b/static/sousuo.png differ