diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue index 4ba42e3..bef6048 100644 --- a/components/tabBar/tabBar.vue +++ b/components/tabBar/tabBar.vue @@ -123,7 +123,7 @@ if(index == 1){ this.aindex = index uni.reLaunch({ - url:'/pages/index/synthesis' + url:'/pages/index/newindex' }); // uni.navigateTo({ // url:'/pages/index/index' @@ -132,7 +132,7 @@ if(index == 2){ this.aindex = index uni.reLaunch({ - url:'/pages/xiaoxi/xiaoxi' + url:'/pages/xiaoxi/notice' }) } diff --git a/pages.json b/pages.json index fb64984..099e077 100644 --- a/pages.json +++ b/pages.json @@ -148,6 +148,13 @@ "navigationStyle": "custom" } }, + { + "path": "pages/xiaoxi/notice", + "style": { + "navigationBarTitleText": "消息", + "navigationStyle": "custom" + } + }, { "path": "pages/xiaoxi/details", "style": { @@ -476,5 +483,33 @@ "navigationBarBackgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8" }, +// "tabBar": { +// "custom": true, +// "color": "#929292", +// "selectedColor": "#327DFB", +// "borderStyle": "black", +// "backgroundColor": "#F7F7F7", +// "list": [ +// { +// "pagePath": "pages/index/newindex", +// "text": "首页", +// "iconPath": "/static/tabBar/home.png", +// "selectedIconPath": "/static/tabBar/homex.png" +// }, +// { +// "pagePath": "pages/notice/notice", +// "text": "通知", +// "iconPath": "/static/tabBar/notice.png", +// "selectedIconPath": "/static/tabBar/noticex.png" +// }, +// { +// "pagePath": "pages/my/my", +// "text": "我的", +// "iconPath": "/static/tabBar/my.png", +// "selectedIconPath": "/static/tabBar/myx.png" +// } +// +// ] +// }, "uniIdRouter": {} } diff --git a/pages/Login/launcherPage.vue b/pages/Login/launcherPage.vue index 57207e6..65a221c 100644 --- a/pages/Login/launcherPage.vue +++ b/pages/Login/launcherPage.vue @@ -43,7 +43,7 @@ } else if(chooseIdx == 0){ uni.navigateTo({ - url:'/pages/index/synthesis' + url:'/pages/index/newindex' }) }else if(chooseIdx == 2){ uni.navigateTo({ diff --git a/pages/coupon/coupon.vue b/pages/coupon/coupon.vue index 2fbd078..941625c 100644 --- a/pages/coupon/coupon.vue +++ b/pages/coupon/coupon.vue @@ -214,8 +214,8 @@ display: flex; align-items: center; justify-content: center; - background: #0D2E8D; - color: white; + background: #327DFB; + color: white; position: fixed; bottom: 10px; transform: translate(-50%); diff --git a/pages/index/addStaff.vue b/pages/index/addStaff.vue index 9d4f01b..822928c 100644 --- a/pages/index/addStaff.vue +++ b/pages/index/addStaff.vue @@ -67,30 +67,30 @@ {{ roleName != null ? this.roleName : '请选择岗位' }} > - + 附件 - 上传附件 + 查看附件 - - - - - - 附件格式 jpg/png - 100KB - - + + + + + + + + + + + + + + + + + + @@ -230,10 +230,9 @@ export default { }, submit() { //判断是否是修改 - console.log(this.staff.fileList) if (this.userId) { this.update() - }else { + } else { this.add() } }, @@ -245,13 +244,17 @@ export default { } this.staff.userId = this.userId - console.log(this.staff) const data = { ...this.staff, - fileList: this.fileList1, + fileList: this.fileList1 + .map(item => { + item.url = item.url.replace(/^https?:\/\/[^/]+\/minio\//, ''); + return item; + }), // 去除域名和 minio/ driverLicenseType: this.driverLicenseTypeArrStr, driverLicenseTypeArr: this.driverLicenseTypeArr.map(item => item.id) } + request({ url: '/inspectionStaff/update', method: 'put', @@ -406,6 +409,34 @@ export default { this.showRole = false }, + goFile() { + if (!this.userId) { + uni.showToast({ + title: '请先新建员工', + icon: 'none' + }) + return + } + if (!this.staff.folderId) { + console.log('当前员工没有文件加') + //给当前员工创建一个文件夹 + request({ + url: '/inspectionStaff/addFolder', + method: 'post', + data: this.userId + }).then(res => { + this.staff.folderId = res.data + uni.navigateTo({ + url: '/pages/manage/deviceManage?type=staff&folderId=' + this.staff.folderId + }) + }) + }else { + uni.navigateTo({ + url: '/pages/manage/deviceManage?type=staff&folderId=' + this.staff.folderId + }) + } + + }, // 上传相关方法 handleUpload() { // 通过 ref 获取 u-upload 组件实例,并调用其上传方法 diff --git a/pages/index/homecar.vue b/pages/index/homecar.vue index 498c304..0b05e9d 100644 --- a/pages/index/homecar.vue +++ b/pages/index/homecar.vue @@ -9,7 +9,7 @@ 搜索 - + {{item.text}} diff --git a/pages/index/newindex.vue b/pages/index/newindex.vue index 379ce3c..bff09fa 100644 --- a/pages/index/newindex.vue +++ b/pages/index/newindex.vue @@ -1,575 +1,715 @@ diff --git a/pages/index/ordermanage.vue b/pages/index/ordermanage.vue index 3f6fd9a..5104401 100644 --- a/pages/index/ordermanage.vue +++ b/pages/index/ordermanage.vue @@ -2,16 +2,20 @@ + + diff --git a/static/tabBar/home.png b/static/tabBar/home.png new file mode 100644 index 0000000..4dad0d3 Binary files /dev/null and b/static/tabBar/home.png differ diff --git a/static/tabBar/homex.png b/static/tabBar/homex.png new file mode 100644 index 0000000..683cc86 Binary files /dev/null and b/static/tabBar/homex.png differ diff --git a/static/tabBar/my.png b/static/tabBar/my.png new file mode 100644 index 0000000..ebde622 Binary files /dev/null and b/static/tabBar/my.png differ diff --git a/static/tabBar/myx.png b/static/tabBar/myx.png new file mode 100644 index 0000000..2b1e4cd Binary files /dev/null and b/static/tabBar/myx.png differ diff --git a/static/tabBar/notice.png b/static/tabBar/notice.png new file mode 100644 index 0000000..40194f4 Binary files /dev/null and b/static/tabBar/notice.png differ diff --git a/static/tabBar/noticex.png b/static/tabBar/noticex.png new file mode 100644 index 0000000..1d22d91 Binary files /dev/null and b/static/tabBar/noticex.png differ diff --git a/static/tabBar/touxiang.png b/static/tabBar/touxiang.png new file mode 100644 index 0000000..6f8e427 Binary files /dev/null and b/static/tabBar/touxiang.png differ