From 76b0bb3decaabe48d1d7eafc3c90c176f4d32a3a Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Tue, 11 Jan 2022 16:08:58 +0800 Subject: [PATCH] 车辆认证 --- src/api/myCars/myCars.js | 39 +++++++++++++++++++++++++++++++++++++++ src/assets/css/reset.css | 33 +++++++++++++++++++++++++++++++++ src/main.js | 12 ++++++++---- src/utils/utils.js | 2 +- src/views/carManage/addCar.vue | 51 +++++++++++++++++++++++++++++++++++++++++++-------- src/views/carManage/certification.vue | 125 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------- src/views/carManage/myCars.vue | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------- 7 files changed, 329 insertions(+), 84 deletions(-) create mode 100644 src/api/myCars/myCars.js diff --git a/src/api/myCars/myCars.js b/src/api/myCars/myCars.js new file mode 100644 index 0000000..1710803 --- /dev/null +++ b/src/api/myCars/myCars.js @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +//车辆信息查询 +export function queryUserCars(params) { + return request({ + url: 'user/car/queryUserCars', + method: 'post', + data: params + }) +} + + + +//车辆信息维护 +export function userCarsInfoEdit(params) { + return request({ + url: 'user/car/userCarsInfoEdit', + method: 'post', + data: params + }) +} + +//车辆信息维护 +export function uploadPic(params) { + return request({ + url: 'pic/uploadPic', + method: 'post', + data: params, + // headers: { + // 'Content-Type': 'multipart/form-data' + // } + headers: { 'Content-Type': 'multipart/form-data;boundary = ' + new Date().getTime() }, + contentType: false + }) +} + + + + diff --git a/src/assets/css/reset.css b/src/assets/css/reset.css index 1ad44a8..c0690e3 100644 --- a/src/assets/css/reset.css +++ b/src/assets/css/reset.css @@ -61,3 +61,36 @@ body,html,#app .leftRightPadding{ padding: 0 10px; } + + +.carColor{ + width: 28px; + height: 17px; + display: inline-block; + vertical-align: middle; +} +.blueBg{ + background: url("../images/myCars/blue.png"); + background-size: 100% 100%; + +} +.yellowBg{ + background: url("../images/myCars/yellow.png"); + background-size: 100% 100%; + +} +.whiteBg{ + background: url("../images/myCars/white.png"); + background-size: 100% 100%; + +} +.blackBg{ + background: url("../images/myCars/black.png"); + background-size: 100% 100%; + +} +.greenBg{ + background: url("../images/myCars/green.png"); + background-size: 100% 100%; + +} diff --git a/src/main.js b/src/main.js index 6976b61..d58a22f 100644 --- a/src/main.js +++ b/src/main.js @@ -16,9 +16,9 @@ import 'mint-ui/lib/style.css' Vue.use(Mint); -// import { MessageBox } from 'mint-ui' -// // Vue.use(MessageBox) -// Vue.prototype.$msgbox = MessageBox +import { MessageBox } from 'mint-ui' +// Vue.use(MessageBox) +Vue.prototype.$msgbox = MessageBox // import { Indicator } from 'mint-ui'; // Vue.prototype.$Indicator = Indicator @@ -68,9 +68,10 @@ import { Confirm, Toast, dateFormat, - Loading + Loading, }from 'vux' + Vue.component('loading', Loading) Vue.component('Toast', Toast) Vue.component('Confirm', Confirm) @@ -98,6 +99,9 @@ Vue.use(LoadingPlugin) import { ToastPlugin } from 'vux' Vue.use(ToastPlugin) +import { ConfirmPlugin } from 'vux' +Vue.use(ConfirmPlugin) + router.beforeEach((to, from, next) => { if(to.meta.title){ document.title = to.meta.title diff --git a/src/utils/utils.js b/src/utils/utils.js index fc10acd..0bcb0a6 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -203,7 +203,7 @@ export default { deviceInfo: this.myDeviceInfo, salt: salt, sign_type: "md5", - token: sessionStorage.getItem("wx_Token"), + token: '7f61e743f9e24f86b1673e32c16e181e', //7f61e743f9e24f86b1673e32c16e181e sessionStorage.getItem("wx_Token") orgId: this.myOrgId }; return reqData; diff --git a/src/views/carManage/addCar.vue b/src/views/carManage/addCar.vue index 3f5b51a..e181678 100644 --- a/src/views/carManage/addCar.vue +++ b/src/views/carManage/addCar.vue @@ -271,6 +271,7 @@ @@ -77,15 +133,6 @@ export default { margin-top: 0; } - .carColor { - width: 28px; - height: 17px; - display: inline-block; - background: url("../../assets/images/myCars/black.png"); - background-size: 100% 100%; - vertical-align: middle; - } - .carPic { width: 100%; height: 160px; diff --git a/src/views/carManage/myCars.vue b/src/views/carManage/myCars.vue index 3302399..c3bb271 100644 --- a/src/views/carManage/myCars.vue +++ b/src/views/carManage/myCars.vue @@ -1,23 +1,34 @@ @@ -96,14 +184,7 @@ export default { box-shadow: 0 1px 3px #ddd; } } - .carColor{ - width: 28px; - height: 17px; - display: inline-block; - background: url("../../assets/images/myCars/black.png"); - background-size: 100% 100%; - vertical-align: middle; - } + .check-status { padding: 1px 8px; @@ -118,6 +199,12 @@ export default { border-radius: 15px; color: blue; } + .certification-status{ + padding: 2px 8px; + border: 1px solid red; + border-radius: 15px; + color: red; + } .top-border { margin-top: 6px; @@ -125,7 +212,7 @@ export default { border-top: 1px solid #ddd; } .tipWrap{ - padding: 0 15px; + padding: 15px 15px 0; p{ text-indent: 15px; } -- libgit2 0.21.4