Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93f0e9317c | ||
|
|
2c83b1ea60 | ||
|
|
872021eca5 | ||
|
|
6beda9f6f1 | ||
|
|
be0227c68b | ||
|
|
b981a57ef5 | ||
|
|
b836f3c979 | ||
|
|
a5c88f11bb | ||
|
|
9b64456854 | ||
|
|
658c0c7db2 | ||
|
|
698f98bee7 | ||
|
|
ec974ed55c | ||
|
|
41820ef796 | ||
|
|
2bb1885b37 | ||
|
|
fcf088a6f6 | ||
|
|
60836e19da | ||
|
|
1abb7ac605 | ||
|
|
2c94eee160 | ||
|
|
4bbc53a9aa | ||
|
|
5c821e1fc0 | ||
|
|
a84dd52eae | ||
|
|
4dc0e9b835 | ||
|
|
e18be51b77 | ||
|
|
c7cc6bfec4 | ||
|
|
0d862caff1 | ||
|
|
cf60d22074 | ||
|
|
d99b0d126f | ||
|
|
0249e0863d | ||
|
|
314ab0b729 | ||
|
|
24b94ebc8c | ||
|
|
21221c2196 | ||
|
|
adf68457fc | ||
|
|
94f536d304 | ||
|
|
47d30f220e | ||
|
|
ef4abf8e62 | ||
|
|
54041f0008 | ||
|
|
283d1a37a2 | ||
|
|
0d9c5fefee | ||
|
|
bed585ffdc | ||
|
|
55044c55d5 | ||
|
|
97bf33b316 | ||
|
|
23e066e752 | ||
|
|
2de215bd1f | ||
|
|
c44851f636 | ||
|
|
3b51a87ed1 | ||
|
|
138bd80bc3 | ||
|
|
1d8fd78a2b | ||
|
|
8b35675abc | ||
|
|
8bbdfb5ca5 | ||
|
|
040fbb268a | ||
|
|
1cb27fea3a | ||
|
|
61f2ae5a87 | ||
|
|
156d570595 | ||
|
|
c44f872d00 | ||
|
|
5c603618d3 | ||
|
|
9a9ac9f76e | ||
|
|
da73c933a0 | ||
|
|
45d95fe250 | ||
|
|
310b64f97c | ||
|
|
058ce2c72c | ||
|
|
ee8fdb16c4 | ||
|
|
7ff13628b5 | ||
|
|
eae60d1000 | ||
|
|
3a1e4a6ae2 | ||
|
|
5bd9db3165 | ||
|
|
fbce498e94 | ||
|
|
6ab2e0b1d7 | ||
|
|
001683f215 | ||
|
|
bb13a6e34e | ||
|
|
16d4425e07 | ||
|
|
a73434fd4d | ||
|
|
75d20beb77 | ||
|
|
9a21834741 | ||
|
|
749daae26e | ||
|
|
0fc0d33742 | ||
|
|
d1efe578d4 | ||
|
|
899ea612f4 | ||
|
|
5552b48ec4 | ||
|
|
56e56c7839 | ||
|
|
851a0e7260 | ||
|
|
d2f124e901 | ||
|
|
8bc734273b | ||
|
|
643ee2c5eb | ||
|
|
881ae7e47b | ||
|
|
d5af7692f8 | ||
|
|
aa52bd2f31 | ||
|
|
9df87ac518 | ||
|
|
8e20adbba3 | ||
|
|
cc083b7551 | ||
|
|
0a668e6f57 | ||
|
|
c2cc09aef1 | ||
|
|
037fbf74fb | ||
|
|
de252fceb2 | ||
|
|
6a53749cdc | ||
|
|
d71e3679ef | ||
|
|
c626aab606 | ||
|
|
7594e56cda | ||
|
|
95c8095518 | ||
|
|
0aa3630adb | ||
|
|
75eba22e9e | ||
|
|
a162c3fdcc | ||
|
|
33f4857427 | ||
|
|
432f35a403 | ||
|
|
ae0bd3b169 | ||
|
|
6b27859358 | ||
|
|
99edd5d431 | ||
|
|
9ac5860ef8 | ||
|
|
e56de7ff8b | ||
|
|
4a70d881b8 | ||
|
|
5de1efc5fb | ||
|
|
7b7e926f8a | ||
|
|
ba1cd9fcac | ||
|
|
3fe67c1015 | ||
|
|
cdc63e6c42 | ||
|
|
0e138e22f4 | ||
|
|
b5c5f24c49 | ||
|
|
d3d6226bcd | ||
|
|
a426b67a51 | ||
|
|
efe76bb675 | ||
|
|
de9d73a642 | ||
|
|
044813f411 | ||
|
|
b90b7ea89c | ||
|
|
4c02dcd075 | ||
|
|
3cd768b973 | ||
|
|
db6a3facae | ||
|
|
48ab0cfb52 | ||
|
|
c5176ebc02 | ||
|
|
f666d9bcb4 | ||
|
|
6864a1330f | ||
|
|
e373acb818 | ||
|
|
fe71adf6e3 | ||
|
|
b6d0ae476c | ||
|
|
c80a2f6e6b | ||
|
|
06e860592b | ||
|
|
afd9d570a4 | ||
|
|
3668ee7f0a | ||
|
|
abd4b2a84b | ||
|
|
815c94e81c | ||
|
|
ad1c6f1c9c | ||
|
|
b914dd9738 | ||
|
|
728fa2ccb2 | ||
|
|
abe17223af | ||
|
|
857f30c11f | ||
|
|
affe57159d | ||
|
|
cf45da3ef7 | ||
|
|
82d4c86936 | ||
|
|
8558eee259 | ||
|
|
d7242ab1a5 | ||
|
|
9c7ec8969e | ||
|
|
75f5dabf3d | ||
|
|
ee69ed0c2b | ||
|
|
b5f01b70b7 | ||
|
|
301babc54e | ||
|
|
88293b2089 | ||
|
|
8b94d8b689 | ||
|
|
0b49fd502a | ||
|
|
aea127d12b | ||
|
|
3cd7ff0318 | ||
|
|
ef8df96818 | ||
|
|
db26230208 | ||
|
|
eddabd68b4 | ||
|
|
22e6c58e65 | ||
|
|
678d4f6436 | ||
|
|
4f20dffc52 | ||
|
|
ab9402e591 | ||
|
|
88606bd31d | ||
|
|
397d234637 | ||
|
|
79ddd02342 | ||
|
|
f72304459c | ||
|
|
9bffcb22cb | ||
|
|
3fbd0b2769 | ||
|
|
23a9bf9e80 | ||
|
|
f9a29e81dc | ||
|
|
57d0e47c9b | ||
|
|
260eb01dcb | ||
|
|
4dbf2dc8c7 | ||
|
|
509ab301a2 | ||
|
|
546ec672c7 | ||
|
|
6926f1b140 | ||
|
|
104c6a33b5 | ||
|
|
48fe4d404f | ||
|
|
dde6c337e2 | ||
|
|
7e0455f695 | ||
|
|
082a3ab6b6 | ||
|
|
3ea4168b87 | ||
|
|
b349671004 | ||
|
|
b9ae7eef5d | ||
|
|
94051d88c0 | ||
|
|
1a9633106c | ||
|
|
0feee005d5 | ||
|
|
989e950f99 | ||
|
|
f0c3b499cc | ||
|
|
dc028cdfae | ||
|
|
e5554e17b5 | ||
|
|
bc0b666171 | ||
|
|
11ee4a031a | ||
|
|
905bfc0785 | ||
|
|
558e3e3e8c | ||
|
|
90c0852ace | ||
|
|
0155ff7e00 | ||
|
|
f76ce0a65f | ||
|
|
f3ca98b2ff | ||
|
|
0cdfab8de6 | ||
|
|
74fcbe55df | ||
|
|
27ad6d414d | ||
|
|
fe105df6c6 | ||
|
|
7afefb162c | ||
|
|
2810bb9c6f | ||
|
|
c7b49b5ffe | ||
|
|
f73927c01e | ||
|
|
ae711d5726 | ||
|
|
d498734739 | ||
|
|
938d6c9386 | ||
|
|
34d228099c | ||
|
|
9472933a68 | ||
|
|
d280b1bcd1 | ||
|
|
c1bdcae830 | ||
|
|
3a3d74ac69 | ||
|
|
91ce9fb3c7 | ||
|
|
1d491e501f | ||
|
|
2e6f855cf8 | ||
|
|
05e4df5751 | ||
|
|
c8964508f2 | ||
|
|
2a03a95963 | ||
|
|
5a236926d7 | ||
|
|
18bfc4517e | ||
|
|
ca6d1ef728 | ||
|
|
328874064a | ||
|
|
f5e0af4753 | ||
|
|
03df02174d | ||
|
|
22f76aaa73 | ||
|
|
d4485779c6 | ||
|
|
16321333d2 | ||
|
|
e01e7c44c1 | ||
|
|
7d42853f39 | ||
|
|
8b44ce326a | ||
|
|
eb34457173 | ||
|
|
252660c8a8 | ||
|
|
d008612675 | ||
|
|
5754e05a7f | ||
|
|
f8ad6a109b | ||
|
|
c71b1fc709 | ||
|
|
5371e43b53 | ||
|
|
76c6d6ef5b | ||
|
|
24f25635d5 | ||
|
|
d789e88b05 | ||
|
|
292e8bdfb1 | ||
|
|
4ca8385a36 | ||
|
|
b84d2a7767 | ||
|
|
6c1863efdf | ||
|
|
68d9a7b7b5 | ||
|
|
cfb032d8da | ||
|
|
406fba2615 | ||
|
|
1c1f62d99c | ||
|
|
54881a9c19 | ||
|
|
179dd8f18d | ||
|
|
b9c10e8df3 | ||
|
|
653a86cf00 | ||
|
|
ea5c817057 | ||
|
|
f88bddb65b | ||
|
|
34f968e596 | ||
|
|
4016d2b7c4 | ||
|
|
81a3b4b7a4 | ||
|
|
c93655976b | ||
|
|
d53bbbbe72 | ||
|
|
5ed64b07e3 | ||
|
|
e4a893815d | ||
|
|
45b910fdc4 | ||
|
|
2a5dad2211 | ||
|
|
8072894f97 | ||
|
|
e00db98396 | ||
|
|
8f43f46abf | ||
|
|
d2c4542a5e | ||
|
|
156b3f04db | ||
|
|
7158e4aa2a | ||
|
|
dfddc69c4a | ||
|
|
9f9450afc3 | ||
|
|
0272e06486 | ||
|
|
4a122818e5 | ||
|
|
5f2bd8d276 | ||
|
|
99789abddc | ||
|
|
009bd0b5ac | ||
|
|
4ebc40f93c | ||
|
|
b53a086862 | ||
|
|
0063828771 | ||
|
|
cd02c44fca | ||
|
|
43c1f76f82 | ||
|
|
f3a15b829f | ||
|
|
745c21341a | ||
|
|
2ab75039b9 | ||
|
|
304a1457dc | ||
|
|
422d1ce2ec | ||
|
|
147e10b342 |
@@ -22,3 +22,4 @@ pnpm-debug.log*
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
/yarn.lock
|
||||||
|
|||||||
@@ -9,10 +9,14 @@
|
|||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@vant/area-data": "^2.0.0",
|
||||||
"amfe-flexible": "^2.2.1",
|
"amfe-flexible": "^2.2.1",
|
||||||
"axios": "^1.4.0",
|
"axios": "^1.4.0",
|
||||||
"core-js": "^3.8.3",
|
"core-js": "^3.8.3",
|
||||||
|
"dayjs": "^1.8.14",
|
||||||
|
"decimal.js": "^10.4.3",
|
||||||
"echarts": "^5.2.2",
|
"echarts": "^5.2.2",
|
||||||
|
"element-ui": "^2.15.9",
|
||||||
"less": "^4.1.3",
|
"less": "^4.1.3",
|
||||||
"less-loader": "^11.1.3",
|
"less-loader": "^11.1.3",
|
||||||
"qs": "^6.11.2",
|
"qs": "^6.11.2",
|
||||||
@@ -21,9 +25,7 @@
|
|||||||
"vant": "^2.13.2",
|
"vant": "^2.13.2",
|
||||||
"vue": "^2.6.14",
|
"vue": "^2.6.14",
|
||||||
"vue-router": "^3.0.7",
|
"vue-router": "^3.0.7",
|
||||||
"vuex": "^3.6.2",
|
"vuex": "^3.6.2"
|
||||||
"element-ui": "^2.15.9",
|
|
||||||
"dayjs": "^1.8.14"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.12.16",
|
"@babel/core": "^7.12.16",
|
||||||
|
|||||||
@@ -26,16 +26,17 @@
|
|||||||
<van-number-keyboard safe-area-inset-bottom />
|
<van-number-keyboard safe-area-inset-bottom />
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window._AMapSecurityConfig = {
|
window._AMapSecurityConfig = {
|
||||||
serviceHost: 'https://api.sinoassist.com/_AMapService',
|
// serviceHost: 'https://api.sinoassist.com/_AMapService',
|
||||||
|
securityJsCode:'91ab1ebc492d5479a68b11527bd73dc9',
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="https://webapi.amap.com/maps?v=1.4.15&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.Polyline"></script>
|
<script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.AutoComplete,AMap.PlaceSearch,AMap.Geolocation,AMap.Geocoder,AMap.Marker,AMap.Driving"></script>
|
||||||
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>-->
|
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>-->
|
||||||
<script>
|
<script>
|
||||||
// VConsole 默认会挂载到 `window.VConsole` 上
|
// VConsole 默认会挂载到 `window.VConsole` 上
|
||||||
// let vConsole = new window.VConsole();
|
// let vConsole = new window.VConsole();
|
||||||
(function (doc, win) {
|
(function (doc, win) {
|
||||||
console.log("==window.location.pathname===",window.location.pathname)
|
// console.log("==window.location.pathname===",window.location.pathname)
|
||||||
let docEl = doc.documentElement
|
let docEl = doc.documentElement
|
||||||
let resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'
|
let resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'
|
||||||
recalc = function () {
|
recalc = function () {
|
||||||
|
|||||||
@@ -0,0 +1,78 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>免责声明</title>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
line-height: 1.6;
|
||||||
|
/*margin: 20px;*/
|
||||||
|
padding: 0;
|
||||||
|
/*background-color: #f9f9f9;*/
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
h3 {
|
||||||
|
text-align: center;
|
||||||
|
/*font-size: 24px;*/
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
h4 {
|
||||||
|
/*font-size: 20px;*/
|
||||||
|
margin-top: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
color: #555;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
margin: 10px 0;
|
||||||
|
text-indent: 2em;
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
margin: 10px 0;
|
||||||
|
padding-left: 40px;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
font-size: 14px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<h3>声明</h3>
|
||||||
|
<p>本平台为二手拖车买卖双方提供免费信息发布服务。在您使用本平台之前,请仔细阅读并理解本免责声明。一旦使用本平台,即视为您已阅读、理解并同意接受本免责声明的所有条款。</p>
|
||||||
|
|
||||||
|
<h4>一、平台性质</h4>
|
||||||
|
<p>1. 本平台仅为信息发布平台,不参与任何二手拖车交易环节,包括但不限于交易洽谈、合同签订、款项支付、车辆交付等,实际交易价格由买卖双方自行协商确定。</p>
|
||||||
|
<p>2. 本平台不对发布信息的真实性、准确性、完整性、合法性进行任何形式的担保或保证,用户应自行判断信息的真实性并承担由此产生的风险。</p>
|
||||||
|
|
||||||
|
<h4>二、用户责任</h4>
|
||||||
|
<p>1. 用户应保证发布的信息真实、准确、完整、合法,并对其发布的信息承担全部责任。</p>
|
||||||
|
<p>2. 用户不得发布任何虚假、违法、侵权、违反公序良俗的信息,包括但不限于:</p>
|
||||||
|
<ul>
|
||||||
|
<li>虚假车源信息</li>
|
||||||
|
<li>事故车、水泡车、火烧车等存在重大安全隐患的车辆信息</li>
|
||||||
|
<li>盗抢车辆信息</li>
|
||||||
|
<li>侵犯他人知识产权或其他合法权益的信息</li>
|
||||||
|
<li>含有淫秽、色情、赌博、暴力、恐怖等内容的信息</li>
|
||||||
|
<li>其他违反法律法规或平台规则的信息</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h4>三、免责条款</h4>
|
||||||
|
<p>1. 因用户发布的信息引起的任何纠纷或损失,本平台不承担任何责任。</p>
|
||||||
|
<p>2. 因不可抗力、计算机病毒、黑客攻击、系统不稳定、用户所在位置、用户关机以及其他任何网络、技术、通信线路等原因造成的服务中断或不能满足用户要求的风险,本平台不承担任何责任。</p>
|
||||||
|
<p>3. 本平台不对用户之间的交易行为承担任何责任,用户应自行承担交易风险。</p>
|
||||||
|
|
||||||
|
<h4>四、其他</h4>
|
||||||
|
<p>1. 本平台有权根据法律法规的变化或平台运营的需要,随时修改本免责声明,并在平台上公布,修改后的内容自公布之日起生效。</p>
|
||||||
|
<p>2. 本免责声明的解释权归中道救援股份有限公司所有。</p>
|
||||||
|
|
||||||
|
<p>请您在使用本平台前务必仔细阅读并理解本免责声明。</p>
|
||||||
|
<p>如果您对本免责声明有任何疑问,请联系我们。</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -27,6 +27,14 @@ export function getDriverStatisticsKpi(data){
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function querySupplierDriverStatisticsScore(data){
|
||||||
|
return request({
|
||||||
|
url: '/supplier/supplierKPI/querySupplierDriverStatisticsScore',
|
||||||
|
method:'POST',
|
||||||
|
// contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
// 各种详情数据
|
// 各种详情数据
|
||||||
export function getKpiDetailsData(data){
|
export function getKpiDetailsData(data){
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -308,3 +308,35 @@ export function ocrHandler(data){
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
///agg-api/tencent-ocr/unifiedOCRWithCompress
|
||||||
|
export function unifiedOCRWithCompress(data){
|
||||||
|
return request({
|
||||||
|
url:'/agg-api/tencent-ocr/unifiedOCRWithCompress',
|
||||||
|
method:'POST',
|
||||||
|
contentType:'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 服务商是否培训
|
||||||
|
export function jumpPage(data){
|
||||||
|
return request({
|
||||||
|
url:'/supplierAppV2/dispatchApp/user/jumpPage',
|
||||||
|
method:'POST',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//发送确认参保
|
||||||
|
export function sendInsuranceEmail(){
|
||||||
|
return request({
|
||||||
|
url:'/supplierAppV2/dispatchApp/user/sendInsuranceEmail',
|
||||||
|
method:'POST',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 判断服务商是否参保
|
||||||
|
export function isSendInsuranceEmail(){
|
||||||
|
return request({
|
||||||
|
url:'/supplierAppV2/dispatchApp/user/isSendInsuranceEmail',
|
||||||
|
method:'POST',
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -94,4 +94,61 @@ export function batteryDetailList (data){
|
|||||||
contentType:'application/json',
|
contentType:'application/json',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询未读告知函
|
||||||
|
export function selectUnReadNotifyBySupplier() {
|
||||||
|
return request({
|
||||||
|
url: '/supplierManage/correction/notify/selectUnReadNotifyBySupplier',
|
||||||
|
method:'POST',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 阅读告知函
|
||||||
|
export function correctionHandle(data) {
|
||||||
|
return request({
|
||||||
|
url: '/supplierManage/correction/record/correctionHandle',
|
||||||
|
method:'POST',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 获取报警列表
|
||||||
|
export function getAlarmList(data) {
|
||||||
|
return request({
|
||||||
|
url: '/supplierAppV2/dispatchApp/alarm/alarmList',
|
||||||
|
method:'POST',
|
||||||
|
contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取报警数目
|
||||||
|
export function getAlarmCount(data) {
|
||||||
|
return request({
|
||||||
|
url: '/supplierAppV2/dispatchApp/alarm/alarmCount',
|
||||||
|
method:'POST',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取报警详情
|
||||||
|
export function getAlarmByCode(data) {
|
||||||
|
return request({
|
||||||
|
url: '/supplierAppV2/dispatchApp/alarm/getAlarmByCode',
|
||||||
|
method:'POST',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 处理报警
|
||||||
|
export function dealWithAlarm(data) {
|
||||||
|
return request({
|
||||||
|
url: '/supplierAppV2/dispatchApp/alarm/handAlarm',
|
||||||
|
method:'POST',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
import request from '@/utils/http'
|
||||||
|
// 根据订单 获取报备类型
|
||||||
|
export function getReportListByOrder(key){
|
||||||
|
return request({
|
||||||
|
url: '/order/baseDriverReportConfigs/getByOrderId',
|
||||||
|
method:'GET',
|
||||||
|
params: key
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 添加报备
|
||||||
|
export function newOrderReporting(data){
|
||||||
|
return request({
|
||||||
|
url: '/supplierAppV2/dispatchApp/order/newOrderReporting',
|
||||||
|
method:'POST',
|
||||||
|
contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取报备列表
|
||||||
|
export function reportHistory(data){
|
||||||
|
return request({
|
||||||
|
url: '/supplierAppV2/dispatchApp/order/reportHistory',
|
||||||
|
method:'POST',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取订单信息
|
||||||
|
export function getOrderInfo(data){
|
||||||
|
return request({
|
||||||
|
url: '/supplierAppV2/dispatchApp/order/reportOrderDetail',
|
||||||
|
method:'POST',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -0,0 +1,115 @@
|
|||||||
|
import request from '@/utils/http'
|
||||||
|
// 车源/求购列表
|
||||||
|
export function appPageList(data){
|
||||||
|
return request({
|
||||||
|
url: '/toc-user/car-app/appPageList',
|
||||||
|
method:'POST',
|
||||||
|
contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 我的发布列表
|
||||||
|
export function minePublishPageList(data){
|
||||||
|
return request({
|
||||||
|
url: '/toc-user/car-app/minePublishPageList',
|
||||||
|
method:'POST',
|
||||||
|
contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 审核不通过数量
|
||||||
|
export function auditFailCount (data){
|
||||||
|
return request({
|
||||||
|
url: '/toc-user/car-app/auditFailCount ',
|
||||||
|
method:'POST',
|
||||||
|
// contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 信息详情查询
|
||||||
|
export function carInfoDetail(data){
|
||||||
|
return request({
|
||||||
|
url: '/toc-user/car-app/carInfoDetail',
|
||||||
|
method:'POST',
|
||||||
|
contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 发布编辑信息
|
||||||
|
export function publishCarInfo(data){
|
||||||
|
return request({
|
||||||
|
url: '/toc-user/car-app/publishCarInfo',
|
||||||
|
method:'POST',
|
||||||
|
contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 用户信息反馈
|
||||||
|
export function userFeedback(data){
|
||||||
|
return request({
|
||||||
|
url: '/toc-user/car-app/userFeedback',
|
||||||
|
method:'POST',
|
||||||
|
contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//二手拖车信息擦亮
|
||||||
|
export function usedCarPolish(data){
|
||||||
|
return request({
|
||||||
|
url: `/toc-user/car-app/usedCarPolish/${data}`,
|
||||||
|
method:'POST',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//二手拖车信息下架
|
||||||
|
export function usedCarRemove(data){
|
||||||
|
return request({
|
||||||
|
url: '/toc-user/car-app/usedCarRemove',
|
||||||
|
method:'POST',
|
||||||
|
contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//二手拖车信息重新上架
|
||||||
|
export function usedCarReShelf(data){
|
||||||
|
return request({
|
||||||
|
url: `/toc-user/car-app/usedCarReShelf/${data}`,
|
||||||
|
method:'POST',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//审批信息
|
||||||
|
export function auditCarInfo(data){
|
||||||
|
return request({
|
||||||
|
url: '/toc-user/car-admin/auditCarInfo',
|
||||||
|
method:'POST',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 保存信息记录
|
||||||
|
export function saveRecord(data){
|
||||||
|
return request({
|
||||||
|
url: '/toc-user/car-record/saveRecord',
|
||||||
|
method:'POST',
|
||||||
|
contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 审核不通过再次提交
|
||||||
|
export function auditCarInfoAgain(data){
|
||||||
|
return request({
|
||||||
|
url: '/toc-user/car-app/auditCarInfoAgain',
|
||||||
|
method:'POST',
|
||||||
|
contentType: 'application/json',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 我的发布列表
|
||||||
|
export function getAddressForService(data){
|
||||||
|
return request({
|
||||||
|
url: '/base/gaodeMap/getPlaceByAddress',
|
||||||
|
method:'GET',
|
||||||
|
params: data,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 785 B |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 770 B |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 589 B |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 1022 B |
|
After Width: | Height: | Size: 355 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 7.3 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 300 B |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 290 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 348 B |
|
After Width: | Height: | Size: 375 B |
|
After Width: | Height: | Size: 327 B |
|
After Width: | Height: | Size: 327 B |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 933 B |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 579 B |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 199 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 822 B |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 812 B |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
@@ -3,6 +3,8 @@ import VueRouter from "vue-router";
|
|||||||
Vue.use(VueRouter);
|
Vue.use(VueRouter);
|
||||||
import kpiRouter from './kpi-router'
|
import kpiRouter from './kpi-router'
|
||||||
import invoiceRouter from "@/router/invoice-router";
|
import invoiceRouter from "@/router/invoice-router";
|
||||||
|
import secondHandRouter from "@/router/second-hand-router";
|
||||||
|
import reportRouter from "@/router/report-router"
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
@@ -185,6 +187,14 @@ const routes = [
|
|||||||
title:'文档资料'
|
title:'文档资料'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/notificationList',
|
||||||
|
name: 'notificationList',
|
||||||
|
component:()=>import('@/views/index/notificationList'),
|
||||||
|
meta: {
|
||||||
|
title:'告知函'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/caseList',
|
path: '/caseList',
|
||||||
name: 'caseList',
|
name: 'caseList',
|
||||||
@@ -241,6 +251,22 @@ const routes = [
|
|||||||
title:'车辆维保'
|
title:'车辆维保'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/vehicleAlarmList',
|
||||||
|
name: 'vehicleAlarmList',
|
||||||
|
component:()=>import('@/views/vehicle-maintenance/vehicle-alarm-list.vue'),
|
||||||
|
meta: {
|
||||||
|
title:'车辆报警'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/vehicleAlarmDetail',
|
||||||
|
name: 'vehicleAlarmDetail',
|
||||||
|
component:()=>import('@/views/vehicle-maintenance/vehicle-alarm-detail.vue'),
|
||||||
|
meta: {
|
||||||
|
title:'报警详情'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/maintenanceApplication',
|
path: '/maintenanceApplication',
|
||||||
name: 'maintenanceApplication',
|
name: 'maintenanceApplication',
|
||||||
@@ -267,6 +293,8 @@ const routes = [
|
|||||||
},
|
},
|
||||||
...kpiRouter,
|
...kpiRouter,
|
||||||
...invoiceRouter,
|
...invoiceRouter,
|
||||||
|
...secondHandRouter,
|
||||||
|
...reportRouter
|
||||||
]
|
]
|
||||||
|
|
||||||
const router = new VueRouter({
|
const router = new VueRouter({
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
const reportRouter = [
|
||||||
|
{
|
||||||
|
path: '/reportIndex',
|
||||||
|
name: 'reportIndex',
|
||||||
|
component: () => import('@/views/report/reportIndex'),
|
||||||
|
meta:{
|
||||||
|
title: '道路救援',
|
||||||
|
cache: true,
|
||||||
|
modalState: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/addressMap',
|
||||||
|
name: 'addressMap',
|
||||||
|
component: () => import('@/views/report/addressMap'),
|
||||||
|
meta:{
|
||||||
|
title: '道路救援',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/insuredPage',
|
||||||
|
name: 'insuredPage',
|
||||||
|
component: () => import('@/views/liabilityInsurance/insuredPage'),
|
||||||
|
meta:{
|
||||||
|
title: '参保救援职业责任险',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
]
|
||||||
|
export default reportRouter
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
const secondHandCar = [
|
||||||
|
{
|
||||||
|
path: '/indexList',
|
||||||
|
name: 'indexList',
|
||||||
|
component: () => import('@/views/secondHandCar/indexList.vue'),
|
||||||
|
meta:{
|
||||||
|
title: '首页列表',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/carSource',
|
||||||
|
name: 'carSource',
|
||||||
|
component: () => import('@/views/secondHandCar/carSource.vue'),
|
||||||
|
meta:{
|
||||||
|
title: '车源发布',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/wantBuy',
|
||||||
|
name: 'wantBuy',
|
||||||
|
component: () => import('@/views/secondHandCar/wantBuy.vue'),
|
||||||
|
meta:{
|
||||||
|
title: '求购发布',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/forSale',
|
||||||
|
name: 'forSale',
|
||||||
|
component: () => import('@/views/secondHandCar/forSale.vue'),
|
||||||
|
meta:{
|
||||||
|
title: '查看车源',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/wantBuySale',
|
||||||
|
name: 'wantBuySale',
|
||||||
|
component: () => import('@/views/secondHandCar/wantBuySale.vue'),
|
||||||
|
meta:{
|
||||||
|
title: '查看求购',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/mineRelease',
|
||||||
|
name: 'mineRelease',
|
||||||
|
component: () => import('@/views/secondHandCar/mineRelease.vue'),
|
||||||
|
meta:{
|
||||||
|
title: '我的发布',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/privacyComponent',
|
||||||
|
name: 'privacyComponent',
|
||||||
|
component: () => import('@/views/secondHandCar/privacy.vue'),
|
||||||
|
meta:{
|
||||||
|
title: '免责声明',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/sellingInfo',
|
||||||
|
name: 'sellingInfo',
|
||||||
|
component: () => import('@/views/secondHandCar/sellingInfo.vue'),
|
||||||
|
meta:{
|
||||||
|
title: '售出信息',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
]
|
||||||
|
export default secondHandCar
|
||||||
@@ -45,7 +45,6 @@ select{
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
//@include fontWeightSize(400,14px);
|
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import qs from 'qs'
|
import qs from 'qs'
|
||||||
import { Toast } from 'vant'
|
import { Toast } from 'vant'
|
||||||
// console.log('process.env.VUE_APP_BASE_API', process.env.VUE_APP_BASE_API)
|
|
||||||
|
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
baseURL: process.env.VUE_APP_BASE_API,
|
baseURL: process.env.VUE_APP_BASE_API,
|
||||||
@@ -11,35 +10,32 @@ const service = axios.create({
|
|||||||
timeout: 10000
|
timeout: 10000
|
||||||
})
|
})
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
let token = urlParams.get('token') ;
|
let token = urlParams.get('token');
|
||||||
localStorage.setItem('token', token);
|
if( token ) {
|
||||||
|
localStorage.setItem('token', token);
|
||||||
|
} else {
|
||||||
|
localStorage.setItem('token', '');
|
||||||
|
}
|
||||||
service.interceptors.request.use(
|
service.interceptors.request.use(
|
||||||
config => {
|
config => {
|
||||||
// let reqUrl=config.url
|
let reqUrl=config.url
|
||||||
// console.log("reqUrl",reqUrl)
|
|
||||||
config.data = config.contentType ? config.data : qs.stringify(config.data)
|
config.data = config.contentType ? config.data : qs.stringify(config.data)
|
||||||
if (config.testFlag) {
|
if (config.testFlag) {
|
||||||
config.data = qs.stringify(config.data, {arrayFormat: 'indices', allowDots: true})
|
config.data = qs.stringify(config.data, {arrayFormat: 'indices', allowDots: true})
|
||||||
}
|
}
|
||||||
config.headers['Content-Type'] = config.contentType || 'application/x-www-form-urlencoded'
|
config.headers['Content-Type'] = config.contentType || 'application/x-www-form-urlencoded'
|
||||||
let token = localStorage.getItem('token');
|
let token = localStorage.getItem('token');
|
||||||
// let token='4099761587129c46b03c9316c9e866c9'
|
// let token='eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBTkNIQU5HIiwidXNlcklkIjo0NTY3MSwibmFtZSI6IuWuieeVhSIsInVzZXJOYW1lIjoiQU5DSEFORyIsInN1cHBsaWVySWQiOjExMjgsImlzWmQiOjAsImV4cCI6MTc1NTQyMjUyNX0.xzDZhaANJFnbeViIHJA0SEtOyTv7Ja3rKmXqRKRuFkc'
|
||||||
// let token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzb25nIiwiYXVkIjpbInN1cHBsaWVyLWFwcCJdLCJuYmYiOjE3MTI0NTQ5NTMsInVzZXJfaW5mbyI6eyJ1c2VySWQiOjU0NjU0LCJwaG9uZSI6IjE3NjMwMDM1NjU4IiwibmFtZSI6InNvbmciLCJzdXBwbGllck5hbWUiOiJDLeS4iua1t-a1i-ivleacjeWKoeWVhiIsInN1cHBsaWVySWQiOjMzMDQxLCJzdXBwbGllclR5cGUiOjIsInVzZXJuYW1lIjoic29uZyIsInVzZXJUeXBlIjoicmVzY3VlQXBwIiwiZGV2aWNlSWQiOiIyMmI0OWNhMjBmOWI4MzMwZDk4NzIxNzNmMzllYTY4YmMiLCJhdXRob3JpdGllcyI6W119LCJzY29wZSI6WyJhbGwiXSwiaXNzIjoiaHR0cHM6Ly9zaW5vYXNzaXN0LmNvbSIsImV4cCI6MTcxMjU0MTM1MywiaWF0IjoxNzEyNDU0OTUzfQ.sPU9_OD_TOWcTwqmlawEGyo4mCPrEaRYw2R02gnvYJw'
|
// let token='eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJTSEhQWEIiLCJ1c2VySWQiOjU0NzI2LCJuYW1lIjoiI-a1i-ivleWwj-eZveeZvSIsInVzZXJOYW1lIjoiU0hIUFhCIiwic3VwcGxpZXJJZCI6MTAwMDE2NSwiZXhwIjoxNzQ0NTEwNzkwfQ.JPk0OA7slYJN3FIi_uhW4Y0CiWRvl6R1dK8MRTbyhD8'
|
||||||
config.headers['token'] = `${token}`;
|
if(!(reqUrl=='/supplier/supplierTraining/trainingTask' || reqUrl=='/supplier/supplierTraining/normalList' || reqUrl=='/supplier/supplierTraining/trainingList')){
|
||||||
config.headers['Authorization'] = `${token}`;
|
if(token) {
|
||||||
/*if (reqUrl.includes("/driverApp")) {
|
config.headers['Authorization'] = `${token}`;
|
||||||
// console.log("司机app")
|
config.headers['token'] = `${token}`;
|
||||||
config.headers['token'] = `${token}`;
|
}
|
||||||
} else if(reqUrl.includes("/supplierApp") || reqUrl.includes("/supplierKPI") || reqUrl.includes('/supplier/select') || reqUrl.includes('/order') || reqUrl.includes('/order/taskInvoiceBatch') || reqUrl.includes('/supplier') ){
|
}
|
||||||
// console.log("调度app,服务商kpi")
|
|
||||||
config.headers['Authorization'] = `${token}`;
|
|
||||||
}else{
|
|
||||||
config.headers['token'] = `${token}`;
|
|
||||||
}*/
|
|
||||||
return config
|
return config
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
console.log(error)
|
|
||||||
return Promise.reject(error)
|
return Promise.reject(error)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -47,27 +43,17 @@ service.interceptors.request.use(
|
|||||||
service.interceptors.response.use(
|
service.interceptors.response.use(
|
||||||
response => {
|
response => {
|
||||||
const res = response.data
|
const res = response.data
|
||||||
// return res //请求响应数据
|
|
||||||
// if(res.code === 401){
|
|
||||||
// Toast('token不合法或过期')
|
|
||||||
// }else if(){
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
if ( res.code === 401 || res.code === 400 || res.code == 500) {
|
if ( res.code === 401 || res.code === 400 || res.code == 500) {
|
||||||
Toast(res.msg || 'Error')
|
Toast(res.msg || 'Error')
|
||||||
return Promise.reject(res.msg)
|
return Promise.reject(res.msg)
|
||||||
} else {
|
} else {
|
||||||
return res
|
return res
|
||||||
// if( res.code === 200 ) {
|
|
||||||
// return res.data
|
|
||||||
// } else {
|
|
||||||
// return res.data
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
console.log('err' + error)
|
if(error.message != 'Network Error'){
|
||||||
Toast(error.message)
|
Toast(error.message)
|
||||||
|
}
|
||||||
return Promise.reject(error)
|
return Promise.reject(error)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { getAddressForService } from "@/api/secondHandCar"
|
||||||
// 获取定位, 返回 经纬度
|
// 获取定位, 返回 经纬度
|
||||||
export function getLocal(mapContext) {
|
export function getLocal(mapContext) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@@ -36,6 +37,7 @@ export function getAddress(mapContext, lnglat) {
|
|||||||
} else {
|
} else {
|
||||||
console.log(result)
|
console.log(result)
|
||||||
alert(JSON.stringify(result))
|
alert(JSON.stringify(result))
|
||||||
|
reject(result)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -44,8 +46,20 @@ export function getAddress(mapContext, lnglat) {
|
|||||||
|
|
||||||
// 输入提示
|
// 输入提示
|
||||||
export function searchFun(mapContext, cityCode, keyword) {
|
export function searchFun(mapContext, cityCode, keyword) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve) => {
|
||||||
mapContext.plugin('AMap.AutoComplete', function(){
|
getAddressForService({
|
||||||
|
city: '',
|
||||||
|
address: keyword
|
||||||
|
}).then((res) => {
|
||||||
|
if(res.code == 200) {
|
||||||
|
resolve(res?.data?.pois || [])
|
||||||
|
} else {
|
||||||
|
resolve([])
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
resolve([])
|
||||||
|
})
|
||||||
|
/*mapContext.plugin('AMap.AutoComplete', function(){
|
||||||
var autoOptions = {
|
var autoOptions = {
|
||||||
city: cityCode || '全国',
|
city: cityCode || '全国',
|
||||||
};
|
};
|
||||||
@@ -57,10 +71,10 @@ export function searchFun(mapContext, cityCode, keyword) {
|
|||||||
if(result.info == 'OK') {
|
if(result.info == 'OK') {
|
||||||
resolve(result.tips)
|
resolve(result.tips)
|
||||||
} else {
|
} else {
|
||||||
reject(result)
|
resolve([])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})*/
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,6 +104,7 @@ export function getRoad( mapContext, startLng, startLat, endLng, endLat ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
function drawRoute(route, map) {
|
function drawRoute(route, map) {
|
||||||
let path = parseRouteToPath(route)
|
let path = parseRouteToPath(route)
|
||||||
|
|
||||||
@@ -106,3 +121,4 @@ function drawRoute(route, map) {
|
|||||||
|
|
||||||
map.add(routeLine);
|
map.add(routeLine);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
|
|
||||||
export const myMixins = {
|
export const myMixins = {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
touchStart: [],
|
|
||||||
touchEnd: [],
|
|
||||||
slideShow: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -72,12 +70,38 @@ export const myMixins = {
|
|||||||
methods();
|
methods();
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log("shengxiaoxi")
|
|
||||||
that.noClick = true;
|
that.noClick = true;
|
||||||
}, 3000)
|
}, 3000)
|
||||||
} else {
|
} else {
|
||||||
// 这里是重复点击的判断
|
// 这里是重复点击的判断
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
formatNumber(num) {
|
||||||
|
if (num < 10000) {
|
||||||
|
// 小于 5 位数,显示为 0.x 万
|
||||||
|
return `${(num / 10000).toFixed(1)}`;
|
||||||
|
} else {
|
||||||
|
// 大于或等于 5 位数,显示为 x 万,四舍五入到小数点后一位
|
||||||
|
return `${Math.round(num / 1000) / 10}`;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
isWebFunc(){
|
||||||
|
let res=false
|
||||||
|
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
||||||
|
if (!isMobile) {// 是移动端不变
|
||||||
|
res=true
|
||||||
|
}
|
||||||
|
return res
|
||||||
|
},
|
||||||
|
closeParentDialog() {
|
||||||
|
if (window.parent) {
|
||||||
|
const hasListener = window.parent.dispatchEvent(new Event('checkCloseDialog'));
|
||||||
|
if (hasListener) {
|
||||||
|
window.parent.postMessage('closeDialog', '*');
|
||||||
|
} else {
|
||||||
|
window.history.back();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ export default {
|
|||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
this.driverId = urlParams.get('driverId');
|
this.driverId = urlParams.get('driverId');
|
||||||
this.time=timeFormat(Date.now())
|
this.time=timeFormat(Date.now())
|
||||||
|
this.keyword=urlParams.get('keyWord') || ''
|
||||||
this.getTrainingList();
|
this.getTrainingList();
|
||||||
document.addEventListener('visibilitychange', async ( ) => {
|
document.addEventListener('visibilitychange', async ( ) => {
|
||||||
let state = document.visibilityState
|
let state = document.visibilityState
|
||||||
|
|||||||