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 71728231
authored
Feb 05, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 前端自测问题修改
1 parent
2741ed8f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
16 deletions
aus-admin/src/main/resources/templates/main/index.html
aus-front/admin/src/views/finance/preference/PreferenceForm.vue
aus-front/admin/src/views/finance/preference/PreferencePage.vue
aus-front/app/src/components/ImprovePopup.vue
aus-front/app/src/module/preference/components/step-three.vue
aus-front/app/src/module/preference/selectVehicleBrand.vue
aus-front/app/src/pages/tabbar/HomePage.vue
aus-admin/src/main/resources/templates/main/index.html
View file @
7172823
...
...
@@ -6,7 +6,7 @@
<link
rel=
"icon"
href=
"/admin/main/favicon/favicon.ico"
type=
"image/x-icon"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<title>
专电优拍
</title>
<script
type=
"module"
crossorigin
src=
"https://aus.test.glsx.com.cn/assets/index-
B1uOQ9hD.js"
></script>
<script
type=
"module"
crossorigin
src=
"https://aus.test.glsx.com.cn/assets/index-
DC3mbaN5.js"
></script>
<link
rel=
"stylesheet"
crossorigin
href=
"https://aus.test.glsx.com.cn/assets/index-Y3L1Smzp.css"
>
</head>
<body>
...
...
aus-front/admin/src/views/finance/preference/PreferenceForm.vue
View file @
7172823
...
...
@@ -53,8 +53,10 @@
</a-form-item>
<a-form-item
label=
"品牌偏好"
name=
"vehicleBrand"
>
<a-select
v-model:value=
"pageData.vehicleBrand"
style=
"width: 100%;"
mode=
"multiple"
:max-tag-count=
"3"
:max-tag-text-length=
"10"
placeholder=
"请选择品牌偏好"
>
<a-select-option
v-for=
"(item, index) in brands"
:key=
"index"
:value=
"item.label"
>
:max-tag-count=
"3"
:max-tag-text-length=
"maxTagTextLength"
placeholder=
"请选择品牌偏好"
@
change=
"handleBrandChange"
>
<a-select-option
v-for=
"(item, index) in brands"
:key=
"index"
:value=
"item.label"
:disabled=
"pageData.vehicleBrand && pageData.vehicleBrand.length >= 10 && !pageData.vehicleBrand.includes(item.label)"
>
{{
item
.
label
}}
</a-select-option>
</a-select>
...
...
@@ -115,6 +117,7 @@ export default class PreferenceForm extends FormComponent<Venue> {
vehicleFuelTypeList
=
returnPreferenceList
(
'vehicleFuelTypeList'
);
vehicleTypeList
=
returnPreferenceList
(
'vehicleTypeList'
);
brands
:
DefaultOptionType
[]
=
[];
maxTagTextLength
=
10
;
created
():
void
{
//获取区域选择数据
...
...
@@ -189,6 +192,14 @@ export default class PreferenceForm extends FormComponent<Venue> {
this
.
$emit
(
'cancelExit'
);
}
// 处理品牌选择,限制最多选择10个
handleBrandChange
(
value
:
string
[])
{
if
(
value
&&
value
.
length
>
10
)
{
// 如果选择超过10个,只保留前10个
this
.
pageData
.
vehicleBrand
=
value
.
slice
(
0
,
10
);
}
}
}
</
script
>
...
...
@@ -204,4 +215,4 @@ export default class PreferenceForm extends FormComponent<Venue> {
.flex-form
.ant-form-item
{
width
:
33.33333%
;
}
</
style
>
</
style
>
\ No newline at end of file
aus-front/admin/src/views/finance/preference/PreferencePage.vue
View file @
7172823
<
template
>
<!--查询栏-->
<m-pagination-query-render
:fields=
"pagination.filterFields"
:form=
"pagination.queryForm"
@
onSearch=
"
p
ageReload"
<m-pagination-query-render
:fields=
"pagination.filterFields"
:form=
"pagination.queryForm"
@
onSearch=
"
handleP
ageReload"
@
onReset=
"handleReset"
:simpleFieldNum=
"4"
>
<template
#
cityCodeName=
"
{ record }">
<a-cascader
v-model:value=
"carProvinceCity"
:options=
"areaData"
@
change=
"handleChangeCity"
...
...
@@ -213,9 +213,17 @@ export default class PreferencePage extends PaginationComponent<Deposit> {
this
.
pagination
.
queryForm
.
cityCode
=
code
;
}
handlePageReload
()
{
this
.
selectIds
=
[];
this
.
selectedItems
=
[];
this
.
pageReload
();
}
//重置查询条件
handleReset
()
{
this
.
carProvinceCity
=
''
;
this
.
selectIds
=
[];
this
.
selectedItems
=
[];
this
.
pageReset
();
}
...
...
aus-front/app/src/components/ImprovePopup.vue
View file @
7172823
...
...
@@ -5,10 +5,12 @@
<view
class=
"wrapper"
>
<view
class=
"top-bg"
>
<view
class=
"top-icon"
>
<image
src=
"https://img02.glsx.com.cn/aus/images/preference/top-icon.png"
class=
"top-icon-image"
></image>
<image
src=
"https://img02.glsx.com.cn/aus/images/preference/top-icon.png"
class=
"top-icon-image"
></image>
</view>
<view
class=
"top-title"
>
<image
src=
"https://img02.glsx.com.cn/aus/images/preference/head-txt.png"
class=
"top-icon-title"
></image>
<image
src=
"https://img02.glsx.com.cn/aus/images/preference/head-txt.png"
class=
"top-icon-title"
></image>
</view>
<view
class=
"popup-content"
>
只需1分钟,我们将为您智能推荐最符合您需求的车辆,节省90%的找车时间!
</view>
<view
@
click=
"toIndexPage()"
class=
"popup-button-primary"
>
...
...
@@ -40,8 +42,13 @@ export default class ImprovePopup extends Vue {
onShow
(()
=>
{
//判断是否登录
const
authService
:
AuthService
=
this
.
$auth
;
const
accountInfo
=
authService
.
getAuthentication
();
if
(
authService
.
isLogin
())
{
this
.
getPreferencePopup
();
if
(
accountInfo
&&
accountInfo
.
accountType
===
'COMMON'
&&
accountInfo
.
certifiedState
!==
"CERTIFICATING"
)
{
console
.
log
(
'用户未认证,不能展示收车偏好弹窗弹窗'
)
}
else
{
this
.
getPreferencePopup
();
}
}
})
}
...
...
aus-front/app/src/module/preference/components/step-three.vue
View file @
7172823
...
...
@@ -2,7 +2,7 @@
<view
class=
"pageBox"
>
<view
class=
"width-calc"
>
<view
class=
"content-title"
>
品牌偏好
<span
>
(多选)
</span>
品牌偏好
<span
class=
"content-title-span"
>
(多选)
</span>
<view
v-if=
"vehicleBrandList.length"
@
click=
"handleClear()"
class=
"clearBox"
>
<uni-icons
type=
"trash"
size=
"13"
color=
"#141E34"
/>
<span
class=
"clear-text"
>
清空
</span>
...
...
@@ -98,6 +98,11 @@ export default class stepThree extends Vue {
position
:
relative
;
}
.content-title-span
{
color
:
#333333
;
font-size
:
14px
;
}
.reason-select
{
width
:
100%
;
height
:
52px
;
...
...
aus-front/app/src/module/preference/selectVehicleBrand.vue
View file @
7172823
...
...
@@ -74,6 +74,7 @@ export default class selectVehicleBrand extends Vue {
//获取品牌列表数据
loadData
():
void
{
uni
.
showLoading
({
title
:
'正在加载中...'
,
mask
:
true
});
const
cacheBrands
=
uni
.
getStorageSync
(
'cacheBrands'
);
if
(
cacheBrands
&&
cacheBrands
.
length
>
0
)
{
this
.
brands
=
cacheBrands
;
...
...
@@ -92,6 +93,10 @@ export default class selectVehicleBrand extends Vue {
item
.
selected
=
brandObj
.
id
?
true
:
false
;
return
item
;
});
this
.
selectedBrand
=
this
.
brands
.
filter
(
brand
=>
brand
.
selected
);
setTimeout
(()
=>
{
uni
.
hideLoading
();
},
600
);
}
getBrandsByLetter
(
letter
:
string
):
Brand
[]
{
...
...
@@ -206,7 +211,7 @@ export default class selectVehicleBrand extends Vue {
.check-icon
{
position
:
absolute
;
right
:
4
px
;
right
:
16
px
;
top
:
50%
;
transform
:
translateY
(
-50%
);
width
:
16px
;
...
...
aus-front/app/src/pages/tabbar/HomePage.vue
View file @
7172823
...
...
@@ -90,9 +90,8 @@
</van-dialog>
<!-- 完善收车偏好弹窗 -->
<div
v-if=
"isShowImprovePopup"
>
<improve-popup
ref=
"improvePopupRef"
/>
</div>
<improve-popup
ref=
"improvePopupRef"
/>
</template>
...
...
@@ -137,7 +136,6 @@ export default class HomePage extends Vue {
changeCity
:
any
;
showCertifyDialog
=
false
;
isShowImprovePopup
=
false
;
carousels
:
Carousel
[]
=
[];
carouselPhotos
:
FileInfo
[]
=
[];
...
...
@@ -303,8 +301,6 @@ export default class HomePage extends Vue {
setTimeout
(()
=>
{
this
.
showCertifyDialog
=
true
;
},
1000
);
}
else
{
this
.
isShowImprovePopup
=
true
}
}
...
...
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