diff --git a/api/file.js b/api/file.js
index 486153d..fa09bf5 100644
--- a/api/file.js
+++ b/api/file.js
@@ -1,45 +1,50 @@
import {
- HTTP_REQUEST_URL_THREE,
- HEADER,
- TOKENNAME,
+ HTTP_REQUEST_URL_THREE,
+ HEADER,
+ TOKENNAME,
} from '@/config/app';
-import { Toast } from '../libs/uniApi';
+import {
+ Toast
+} from '../libs/uniApi';
// import { checkLogin } from '../libs/login';
import store from '../store';
function toLogin() {
- store.commit("LOGOUT");
- uni.showToast({
- title: '请登录',
- icon: 'none',
- duration: 1000
- });
+ store.commit("LOGOUT");
+ uni.showToast({
+ title: '请登录',
+ icon: 'none',
+ duration: 1000
+ });
}
function upLoad(url, data) {
- let Url = HTTP_REQUEST_URL_THREE,
- header = {}
- if (store.state.app.token) header[TOKENNAME] = store.state.app.token;
- return new Promise((reslove, reject) => {
- uni.uploadFile({
- url: Url + '/api' + url,
- filePath: data.filePath,
- name: data.name,
- success: (uploadFileRes) => {
- uploadFileRes.data = JSON.parse(uploadFileRes.data)
- if(uploadFileRes.data.code==1) reslove(uploadFileRes.data)
- else Toast('网络错误')
- },
- fail: (err) => {
- Toast('网络错误')
- }
- })
- });
+ let Url = HTTP_REQUEST_URL_THREE,
+ header = {}
+ if (store.state.app.token) header[TOKENNAME] = store.state.app.token;
+ return new Promise((reslove, reject) => {
+ uni.uploadFile({
+ url: Url + '/api' + url,
+ filePath: data.filePath,
+ name: data.name,
+ success: (uploadFileRes) => {
+ uploadFileRes.data = JSON.parse(uploadFileRes.data)
+ if (uploadFileRes.data.code == 1) reslove(uploadFileRes.data)
+ else Toast('网络错误')
+ },
+ fail: (err) => {
+ Toast('网络错误')
+ }
+ })
+ });
}
-export const upLoadImage = (data)=>{
- return upLoad('/upload/image', data)
+export const upLoadImage = (data) => {
+ return upLoad('/upload/image', data)
}
export const VIDEO_URL = HTTP_REQUEST_URL_THREE + '/api/upload/video'
-export const FILE_URL = HTTP_REQUEST_URL_THREE + '/api/upload/file'
\ No newline at end of file
+export const FILE_URL = HTTP_REQUEST_URL_THREE + '/api/upload/file'
+// im文件上传
+// export const VIDEO_URL_IM = HTTP_REQUEST_URL_THREE + '/api/upload/video'
+export const FILE_URL_IM = HTTP_REQUEST_URL_THREE + '/common/im/sendFileMsg'
\ No newline at end of file
diff --git a/api/property.js b/api/property.js
index 0d6cfbb..5e316fa 100644
--- a/api/property.js
+++ b/api/property.js
@@ -14,6 +14,10 @@ export const upVehicleApi = (data) => oahttp.post('/vehicle/rentApply', data)
export const applycarApi = (data) => oahttp.post('/vehicle/rentApply', data)
// 显示轨迹
export const locusApi = (data) => oahttp.post('/vehicle/vehicleTrack', data)
+// 获取可购买车辆列表
+export const canBuyCarListApi = (data) => oahttp.post('/vehicle/vehicleTrack', data)
+// 购买车辆
+export const buyCarApi = (data) => oahttp.post('/vehicle/vehicleTrack', data)
// 当前车辆位置信息
// export const locusApi = (data) => oahttp.post('/vehicle/vehicleTrack', data)
// api / getCarLocal
diff --git a/pages/oaLogin/oaLogin.vue b/pages/oaLogin/oaLogin.vue
index b9c5ba2..626e3d4 100644
--- a/pages/oaLogin/oaLogin.vue
+++ b/pages/oaLogin/oaLogin.vue
@@ -1,10 +1,10 @@
-
-
-
+
+
+
@@ -18,10 +18,10 @@
-
-
+
+
-
+
@@ -15,16 +14,17 @@
-
+
-
- {{item.content}}
-
-
- {{item.content}}
-
+
+ {{item.content}}
+
+
+ {{item.content}}
+
-
+
@@ -50,15 +52,15 @@
-
-
-
- {{item.content}}
-
-
- {{item.content}}
-
-
+
+
+
+ {{item.content}}
+
+
+ {{item.content}}
+
+
-
+
@@ -84,8 +88,8 @@
-
-
+
+
@@ -94,8 +98,8 @@
-
-
+
+
@@ -112,7 +116,7 @@
-
@@ -534,10 +548,11 @@
color: white;
top: 50%;
left: 50%;
- transform: translate(-50%,-50%);
+ transform: translate(-50%, -50%);
font-size: 24rpx;
}
+
.topflag {
height: 80rpx;
background-color: #F6F7FD;
@@ -548,6 +563,7 @@
min-height: 95vh;
background-color: #F6F7FD;
padding-top: 10rpx;
+
.task-li {
margin-bottom: 20rpx;
}
@@ -563,11 +579,13 @@
.task-li-content {
background-color: white;
- padding: 20rpx;
+ padding: 10rpx 20rpx;
+ line-height: 50rpx;
+ // line-height: 30rpx;
border-radius: 20rpx;
// color: white;
word-break: break-all;
- max-width: 60vw;
+ max-width: 535rpx;
overflow-wrap: break-word;
diff --git a/subpkg/property/buyCar.vue b/subpkg/property/buyCar.vue
index 9b6e8eb..4cccbac 100644
--- a/subpkg/property/buyCar.vue
+++ b/subpkg/property/buyCar.vue
@@ -1,144 +1,222 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 车牌号: {{item.lincense}}
+
+
+ 行驶里程: 1212KM
+
+
+ 当前状态: 平台公司闲置中
+
+
-
-
- 车牌号: 12121545454
+
+
+
+
+
+
+
-
- 行驶里程: 1212KM
+
+ 选择该车辆为监管车辆
-
- 当前状态: 平台公司闲置中
+
+
+
+
+
+
+ 已选择{{carCheckedArr.length}}辆车
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.lincense}}
+
+
+
+
+
+
-
-
- 选择该车辆为监管车辆
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 已选择2辆车
-
-
-
-
-
-
-
-
-
-
-
-
- dsfdsfdf
-
-
-
-
-
-
\ No newline at end of file
diff --git a/subpkg/property/index.vue b/subpkg/property/index.vue
index fb31876..8c719cc 100644
--- a/subpkg/property/index.vue
+++ b/subpkg/property/index.vue
@@ -8,23 +8,18 @@
-
-
-
-
+
+
+
-
-
-
-
@@ -70,7 +65,6 @@
-
你已提交解除申请,等待签约
...
@@ -90,7 +84,14 @@
...
+
+
+ 您的购车申请已经提交,我们正在加快审核中,请耐心等待,在此期间您可以继续使用车辆完成配送任务哦~
+ ...
+
+
+
@@ -170,7 +171,6 @@
申请用车
-
@@ -188,6 +188,7 @@
自有车辆 {{datas.self_num}}
+
@@ -276,7 +277,6 @@
-
数量超过上限
@@ -300,6 +300,9 @@