Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 294330a3
authored
Mar 25, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 车辆检测功能开发
1 parent
5cabd398
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
309 additions
and
3 deletions
aus-front/app/src/api/AuctionController.ts
aus-front/app/src/module/auction/AuctionVehiclePage.vue
aus-front/app/src/module/auction/InspectionPreview.vue
aus-front/app/src/module/auction/InspectionReport.vue
aus-front/app/src/pages.json
aus-front/app/src/static/images/glsk.png
aus-front/app/src/api/AuctionController.ts
View file @
294330a
...
...
@@ -100,6 +100,11 @@ export class AuctionController {
static
SEARCH_AUCTION_VEHICLE
=
'auction/searchAuctionVehicle'
;
static
reportVehicleData
(
axios
:
AxiosStatic
,
vehicleId
:
number
):
Promise
<
AxiosResponse
<
AuctionVehicle
>>
{
return
axios
.
get
(
'inspect/report/vehicle/'
+
vehicleId
,
{});
}
// region 前端扩展代码区
// endregion
}
aus-front/app/src/module/auction/AuctionVehiclePage.vue
View file @
294330a
...
...
@@ -155,7 +155,7 @@
<!-- 检测报告 -->
<section
id=
"section3"
>
<view
class=
"section-card"
>
<
!--
<
view
class=
"section-card"
>
<view
class=
"section-title"
>
检测报告
</view>
<van-row
:gutter=
"12"
>
<van-col
span=
"8"
>
...
...
@@ -171,7 +171,13 @@
<text
class=
"condition-label"
>
火烧
</text>
</van-col>
</van-row>
</view>
-->
<!-- 检测报告 -->
<view
class=
"section-card"
style=
"background: linear-gradient(90deg, #c8dcf7 10%, #ffffff 100%);"
>
<InspectionReport
:auctionVehicle=
"auctionVehicle"
/>
</view>
</section>
<!-- 车辆图片展示 -->
...
...
@@ -354,10 +360,10 @@ import {DepositController} from "@/api/DepositController";
import
roundBidBottom
from
"@/module/auction/roundBidBottom.vue"
;
import
RoundBidPopup
from
"@/components/RoundBidPopup.vue"
;
import
customNav
from
"@/module/auction/customNav.vue"
;
import
InspectionReport
from
"@/module/auction/InspectionReport.vue"
;
@
Component
({
components
:
{
BidSuccessDialog
,
roundBidBottom
,
RoundBidPopup
,
customNav
}
components
:
{
BidSuccessDialog
,
roundBidBottom
,
RoundBidPopup
,
customNav
,
InspectionReport
}
})
export
default
class
AuctionVehiclePage
extends
Vue
{
...
...
aus-front/app/src/module/auction/InspectionPreview.vue
0 → 100644
View file @
294330a
<
template
>
<view>
<web-view
:src=
"h5Url"
/>
</view>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"vue-facing-decorator"
;
import
{
onLoad
}
from
"@dcloudio/uni-app"
;
@
Component
({
components
:
{}
})
export
default
class
InspectionPreview
extends
Vue
{
h5Url
:
string
=
''
;
created
():
void
{
onLoad
((
option
)
=>
{
this
.
h5Url
=
option
.
h5Url
||
''
;
});
}
}
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
\ No newline at end of file
aus-front/app/src/module/auction/InspectionReport.vue
0 → 100644
View file @
294330a
<
template
>
<view
class=
"reportBox"
:class=
"
{ 'height152': !reportData.h5Url }">
<view
class=
"reportTitle"
>
综合评分
</view>
<view
v-if=
"reportData.h5Url"
>
<view
class=
"glskBox"
>
<image
src=
"/static/images/glsk.png"
fit=
"cover"
style=
"width:74px;height: 74px"
/>
</view>
<view
class=
"averageHand"
>
<view
class=
"average"
>
{{
reportData
.
overallScore
||
'-'
}}
</view>
<view
class=
"averageUnit"
>
分
</view>
<!-- 优秀 90-100分 -->
<view
v-if=
"reportData.overallScore >= 90"
class=
"averageBox averageBox_bg1"
>
优秀
</view>
<view
v-if=
"reportData.overallScore >= 80 && reportData.overallScore
<
= 89"
class="averageBox averageBox_bg2">
良好
</view>
<view
v-if=
"reportData.overallScore >= 60 && reportData.overallScore
<
= 79"
class="averageBox averageBox_bg3">
中
</view>
<view
v-if=
"reportData.overallScore
< 60
"
class=
"averageBox"
>
差
</view>
<view
v-if=
"!reportData.overallScore"
>
-
</view>
</view>
<view
class=
"rating"
>
<text>
外观
</text>
<text
class=
"ratingValue"
:class=
"Number(reportData.exteriorScore || 0) >= 80 ? 'value_color1' : Number(reportData.exteriorScore || 0) >= 60 && Number(reportData.exteriorScore || 0)
< 80
?
'
value_color2
'
:
''"
>
{{
reportData
.
exteriorScore
||
'-'
}}
</text>
<text>
骨架
</text>
<text
class=
"ratingValue"
:class=
"reportData.skeletonLevel == 'A' ? 'value_color1' : reportData.skeletonLevel == 'B' ? 'value_color2' : reportData.skeletonLevel == 'C' ? 'value_color3' : ''"
>
{{
reportData
.
skeletonLevel
||
'-'
}}
</text>
<text>
内饰
</text>
<text
class=
"ratingValue"
:class=
"reportData.interiorLevel == 'A' ? 'value_color1' : reportData.interiorLevel == 'B' ? 'value_color2' : reportData.interiorLevel == 'C' ? 'value_color3' : ''"
>
{{
reportData
.
interiorLevel
||
'-'
}}
</text>
</view>
<view
class=
"accident"
>
<text
v-if=
"reportData.accident != 1"
>
无事故
</text>
<text
v-if=
"reportData.burn != 1"
class=
"accidentSeparator"
>
|
</text>
<text
v-if=
"reportData.burn != 1"
>
无火烧
</text>
<text
v-if=
"reportData.wade != 1"
class=
"accidentSeparator"
>
|
</text>
<text
v-if=
"reportData.wade != 1"
>
无水泡
</text>
</view>
<view
class=
"reportBtn"
@
click=
"handleTapp"
>
查看完整检测报告
</view>
</view>
<view
v-else
>
<view
class=
"noReport"
>
车辆需现场看车,暂无检测报告
</view>
</view>
</view>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
}
from
'vue-facing-decorator'
;
import
{
AuctionController
}
from
"@/api/AuctionController"
;
import
{
AuthService
}
from
"@/common/AuthService"
;
@
Component
({})
export
default
class
InspectionReport
extends
Vue
{
@
Prop
({
type
:
Object
,
required
:
true
})
auctionVehicle
:
any
;
reportData
=
{};
created
():
void
{
const
that
=
this
;
setTimeout
(()
=>
{
that
.
getReportVehicleData
();
},
1000
);
}
getReportVehicleData
():
void
{
if
(
this
.
auctionVehicle
.
vehicle
.
vehicleId
)
{
AuctionController
.
reportVehicleData
(
this
.
axios
,
this
.
auctionVehicle
.
vehicle
.
vehicleId
).
then
(
res
=>
{
this
.
reportData
=
res
.
data
||
{};
});
}
}
handleTapp
()
{
const
authService
:
AuthService
=
this
.
$auth
;
if
(
!
authService
.
isLogin
())
{
uni
.
showToast
({
title
:
'请先登录'
,
icon
:
'none'
,
duration
:
2000
,
complete
:
function
()
{
setTimeout
(()
=>
{
uni
.
navigateTo
({
url
:
'/pages/LoginPage'
});
},
2000
);
}
});
return
console
.
log
(
'请先登录'
);
}
const
h5Url
=
this
.
reportData
.
h5Url
||
''
;
uni
.
navigateTo
({
url
:
'/module/auction/InspectionPreview?h5Url='
+
h5Url
});
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.reportBox
{
width
:
100%
;
height
:
208px
;
border-radius
:
8px
;
background
:
#ffffff
;
position
:
relative
;
background
:
linear-gradient
(
90deg
,
#c8dcf7
10%
,
#ffffff
100%
);
}
.height152
{
height
:
152px
!important
;
}
.noReport
{
width
:
100%
;
height
:
32px
;
float
:
left
;
line-height
:
32px
;
color
:
#676d7d
;
font-size
:
13px
;
text-align
:
center
;
margin-top
:
64px
;
}
.glskBox
{
width
:
74px
;
height
:
74px
;
position
:
absolute
;
top
:
2px
;
right
:
2px
;
z-index
:
99
;
}
.reportTitle
{
width
:
100%
;
height
:
26px
;
float
:
left
;
margin-top
:
16px
;
color
:
#333333
;
font-size
:
18px
;
line-height
:
26px
;
}
.averageHand
{
width
:
100%
;
height
:
32px
;
line-height
:
32px
;
float
:
left
;
margin-top
:
8px
;
}
.average
{
float
:
left
;
color
:
#333333
;
font-size
:
32px
;
font-weight
:
600
;
}
.averageUnit
{
height
:
22px
;
line-height
:
22px
;
color
:
#333333
;
font-size
:
14px
;
float
:
left
;
margin-left
:
4px
;
margin-top
:
11px
;
}
.averageBox
{
width
:
34px
;
height
:
20px
;
float
:
left
;
line-height
:
20px
;
border-radius
:
2px
;
font-size
:
12px
;
text-align
:
center
;
margin-left
:
12px
;
margin-top
:
12px
;
}
.averageBox_bg1
{
background
:
#27cd5a1
a
;
color
:
#27cd5a
;
}
.averageBox_bg2
{
background
:
#27cd5a1
a
;
color
:
#F5AE18
;
}
.averageBox_bg3
{
background
:
#27cd5a1
a
;
color
:
#EE3140
;
}
.rating
{
width
:
100%
;
height
:
18px
;
float
:
left
;
color
:
#666666
;
font-size
:
12px
;
line-height
:
18px
;
margin-top
:
16px
;
}
.ratingValue
{
padding-left
:
6px
;
padding-right
:
40px
;
font-size
:
18px
;
font-weight
:
600
;
}
.value_color1
{
color
:
#27cd5a
;
}
.value_color2
{
color
:
#faba32
;
}
.value_color3
{
color
:
#ee3140
;
}
.accident
{
width
:
100%
;
height
:
16px
;
float
:
left
;
margin-top
:
12px
;
color
:
#666666
;
font-size
:
12px
;
line-height
:
16px
;
}
.accidentSeparator
{
padding
:
0
8px
;
}
.reportBtn
{
width
:
100%
;
height
:
40px
;
float
:
left
;
margin-top
:
16px
;
line-height
:
40px
;
border-radius
:
40px
;
border
:
1px
solid
#e6ebf5
;
font-size
:
14px
;
text-align
:
center
;
cursor
:
pointer
;
}
</
style
>
aus-front/app/src/pages.json
View file @
294330a
...
...
@@ -121,6 +121,13 @@
"navigationBarTitleText"
:
"竞价记录"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"InspectionPreview"
,
"style"
:
{
"navigationBarTitleText"
:
"检测报告"
,
"enablePullDownRefresh"
:
false
}
}
]
},
...
...
aus-front/app/src/static/images/glsk.png
0 → 100644
View file @
294330a
34.3 KB
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment