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 e8c97f10
authored
Mar 13, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 轮巡竞拍测试问题修改
1 parent
7ed956d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
18 deletions
aus-front/app/src/components/RoundBidPopup.vue
aus-front/app/src/module/auction/AuctionVehiclePage.vue
aus-front/app/src/module/auction/roundBidBottom.vue
aus-front/app/src/components/RoundBidPopup.vue
View file @
e8c97f1
...
...
@@ -21,11 +21,11 @@
class=
"top-icon-image"
/>
</view>
<view
class=
"title"
>
竞拍已结束
</view>
<view
class=
"content"
>
{{
nextAucVehData
.
remainSecond
||
0
}}
s后将自动切换到下一台车
</view>
<view
class=
"content"
>
{{
Math
.
floor
(
nextAucVehData
.
remainSecond
||
0
)
}}
s后将自动切换到下一台车
</view>
<view
class=
"operation_but"
>
<view
class=
"operation_but_primary operation_but_2"
@
click=
"closePopup()"
>
取消
</view>
<view
class=
"operation_but_primary operation_but_1"
@
click=
"toNextAucVeh()"
>
确认(
{{
nextAucVehData
.
remainSecond
||
0
}}
s)
确认(
{{
Math
.
floor
(
nextAucVehData
.
remainSecond
||
0
)
}}
s)
</view>
</view>
</view>
...
...
aus-front/app/src/module/auction/AuctionVehiclePage.vue
View file @
e8c97f1
<
template
>
<page-meta
:page-style=
"'overflow:'+(show?'hidden':'visible')"
></page-meta>
<view
class=
"car-detail-container"
v-if=
"auctionVehicle"
>
<view
class=
"header-anchor"
>
<view
v-if=
"currentAnchorId && currentAnchorId != 'section0'"
class=
"header-anchor"
>
<view
class=
"header-anchor-list"
:class=
"
{ headerActive: currentAnchorId === 'section1' }" @click="scrollToSection('section1')">
车辆档案
<view
v-if=
"currentAnchorId === 'section1'"
class=
"header-anchor-absolute"
></view>
...
...
@@ -47,8 +47,10 @@
<!-- 车辆基本信息 -->
<view
class=
"vehicle-content"
>
<section
id=
"section0"
>
<view
class=
"car-basic-info"
v-if=
"auctionVehicle"
>
<view
class=
"auction-header"
v-if=
"auctionVehicle.auctionState==='SOLD'"
>
<view
v-if=
"auctionVehicle.auction.auctionMode != 2"
>
<view
class=
"auction-header"
v-if=
"auctionVehicle.auctionState==='SOLD'"
>
<text
class=
"auction-title"
>
已成交
</text>
</view>
<view
class=
"auction-header"
v-else-if=
"auctionVehicle.auctionState==='UNSOLD'"
>
...
...
@@ -66,6 +68,7 @@
<van-count-down
class=
"blue-count-down"
:time=
"bidEndRemaining"
format=
"HH:mm:ss"
@
finish=
"countDownBidEnd"
/>
</view>
</view>
</view>
<view
class=
"car-title"
>
【
{{
cityName
}}
】
{{
vehicle
.
baseInfo
.
carSeriesName
}}
{{
vehicle
.
baseInfo
.
carTypeName
}}
</view>
<view
class=
"car-tags"
>
<text
class=
"tag"
v-if=
"licensePlate"
>
{{
licensePlate
}}
</text>
...
...
@@ -87,7 +90,7 @@
</view>
</view>
</view>
</section>
<!-- 出价信息 -->
<!--
<view
class=
"section-card"
>
<view
class=
"bid-header"
>
...
...
@@ -369,7 +372,7 @@ export default class AuctionVehiclePage extends Vue {
/**
* 当前激活的锚点ID
*/
currentAnchorId
=
'
section1
'
;
currentAnchorId
=
''
;
/**
* 各个锚点的位置信息
...
...
@@ -584,8 +587,8 @@ export default class AuctionVehiclePage extends Vue {
onPageScroll
(
e
:
any
)
{
const
scrollTop
=
e
.
scrollTop
+
47
;
// 加上头部锚点的高度
// 遍历所有锚点位置,找到当前滚动位置对应的锚点
let
currentSection
=
'section
1
'
;
const
sections
=
[
'section1'
,
'section2'
,
'section3'
,
'section4'
,
'section5'
];
let
currentSection
=
'section
0
'
;
const
sections
=
[
'section
0'
,
'section
1'
,
'section2'
,
'section3'
,
'section4'
,
'section5'
];
for
(
let
i
=
sections
.
length
-
1
;
i
>=
0
;
i
--
)
{
const
sectionId
=
sections
[
i
];
if
(
this
.
anchorPositions
[
sectionId
]
&&
scrollTop
>=
this
.
anchorPositions
[
sectionId
])
{
...
...
@@ -638,7 +641,6 @@ export default class AuctionVehiclePage extends Vue {
AuctionOrderController
.
getAuctionOrderByVehicleId
(
this
.
axios
,
this
.
vehicle
.
vehicleId
).
then
(
res
=>
{
if
(
res
.
data
>
0
)
{
this
.
orderId
=
res
.
data
;
this
.
stopFetchOrderState
();
if
(
!
this
.
isHandleClose
)
{
AuctionOrderController
.
getNextAucVeh
(
this
.
axios
,
{
aucvehId
:
this
.
auctionVehicle
.
aucvehId
}).
then
(
res
=>
{
this
.
$refs
.
bidSuccessDialogRef
.
initData
(
res
.
data
?.
data
||
{});
...
...
@@ -956,7 +958,7 @@ export default class AuctionVehiclePage extends Vue {
* 更新所有锚点的位置信息
*/
updateAnchorPositions
()
{
const
sections
=
[
'section1'
,
'section2'
,
'section3'
,
'section4'
,
'section5'
];
const
sections
=
[
'section
0'
,
'section
1'
,
'section2'
,
'section3'
,
'section4'
,
'section5'
];
const
query
=
uni
.
createSelectorQuery
();
sections
.
forEach
(
sectionId
=>
{
...
...
aus-front/app/src/module/auction/roundBidBottom.vue
View file @
e8c97f1
...
...
@@ -60,7 +60,7 @@
<text
class=
"upBox_unit"
>
万
</text>
</view>
<view
class=
"upBox_add"
>
<view
class=
"upBox_second"
>
{{
pageData
.
r
emainSecond
}}
秒
</view>
<view
class=
"upBox_second"
>
{{
newR
emainSecond
}}
秒
</view>
<view
@
click=
"handleAddBid()"
class=
"progress-circle-up"
:style=
"
{ '--progress': progressValue + '%' }">
<view
class=
"progress-inner-up"
>
...
...
@@ -97,7 +97,7 @@
</view>
</view>
<view
class=
"downBox_right"
>
<view
class=
"downBox_second"
>
{{
pageData
.
r
emainSecond
}}
秒
</view>
<view
class=
"downBox_second"
>
{{
newR
emainSecond
}}
秒
</view>
<view
@
click=
"handleAddBid()"
class=
"progress-circle"
:style=
"
{ '--progress': progressValue + '%' }">
<view
class=
"progress-inner"
>
...
...
@@ -197,7 +197,7 @@ export default class roundBidBottom extends Vue {
auctionVehicle
:
any
;
//页面状态 认证 COMMON 充值 NOTOPUP 等待开始 PREVIEW 进行中 AUCTIONING 结束 END 结束自动跳转 JUMP
pageState
=
''
;
endState
=
'
1
'
;
// 1 未成交 2 已中拍 3 未中拍
endState
=
''
;
// 1 未成交 2 已中拍 3 未中拍
//页面显示数据
pageData
=
{
accountBidPrice
:
0
,
// 用户出价 价格
...
...
@@ -210,6 +210,9 @@ export default class roundBidBottom extends Vue {
reservePriceType
:
0
,
bidPriceType
:
0
,
};
newRemainSecond
=
0
;
// 新的剩余时间 单位秒
foldState
=
'UP'
;
//展开 UP 收起 DOWN
addPrice
=
'100'
;
//加价金额
remainingTime
=
'5'
;
//剩余时间
...
...
@@ -241,7 +244,7 @@ export default class roundBidBottom extends Vue {
if
(
this
.
auctionVehicle
.
auctionState
===
'SOLD'
)
{
this
.
pageState
=
'END'
;
//已经结束拍获取拍卖结果
this
.
getAccountBidResultData
();
this
.
getAccountBidResultData
(
'END'
);
}
else
{
this
.
getCheckDeposit
();
}
...
...
@@ -287,7 +290,7 @@ export default class roundBidBottom extends Vue {
this
.
getBidRemainSecData
();
}
else
{
//竞拍已结束SOLD
this
.
pageState
=
'END'
;
this
.
getAccountBidResultData
();
this
.
getAccountBidResultData
(
'END'
);
}
}
});
...
...
@@ -335,7 +338,7 @@ export default class roundBidBottom extends Vue {
if
(
this
.
pageData
.
over
)
{
this
.
pageState
=
'END'
;
setTimeout
(()
=>
{
this
.
getAccountBidResultData
();
this
.
getAccountBidResultData
(
'OVER'
);
},
1100
);
}
if
(
data
.
significantPriceIncrease
)
{
...
...
@@ -349,9 +352,31 @@ export default class roundBidBottom extends Vue {
},
1000
);
}
this
.
calcProgress
();
if
(
!
this
.
newRemainSecond
)
{
this
.
setNewRemainSecond
();
}
});
}
setNewRemainSecond
()
{
let
newTime
=
this
.
pageData
.
remainSecond
;
if
(
this
.
newRemainSecond
!=
newTime
&&
this
.
newRemainSecond
<
(
newTime
-
1
))
{
this
.
newRemainSecond
=
newTime
;
}
if
(
this
.
pageData
.
remainSecond
)
{
const
pages
=
getCurrentPages
();
const
currentPage
=
pages
[
pages
.
length
-
1
];
if
(
currentPage
.
route
==
'module/auction/AuctionVehiclePage'
)
{
setTimeout
(()
=>
{
this
.
newRemainSecond
=
Number
(
this
.
newRemainSecond
)
-
1
;
this
.
setNewRemainSecond
();
},
1000
);
}
}
else
{
this
.
newRemainSecond
=
0
;
}
}
//获取拍卖佣金
realCalcCommissionPriceData
()
{
AuctionOrderController
.
realCalcCommissionPrice
(
this
.
axios
,
{
aucvehId
:
this
.
auctionVehicle
.
aucvehId
}).
then
(
res
=>
{
...
...
@@ -394,12 +419,12 @@ export default class roundBidBottom extends Vue {
}
//获取拍卖结果
getAccountBidResultData
()
{
getAccountBidResultData
(
state
:
string
)
{
AuctionOrderController
.
getAccountBidResult
(
this
.
axios
,
{
aucvehId
:
this
.
auctionVehicle
.
aucvehId
}).
then
(
res
=>
{
const
data
=
res
.
data
?.
data
||
{};
this
.
endState
=
data
.
bidResult
?
String
(
Number
(
data
.
bidResult
)
+
1
)
:
'1'
;
this
.
resultPrice
=
(
Number
(
data
.
price
||
0
))
/
10000
;
if
(
this
.
endState
!=
'2'
&&
this
.
auctionVehicle
.
auctionState
!=
'SOLD'
&&
this
.
auctionVehicle
.
auctionState
!=
'UNSOLD
'
)
{
if
(
this
.
endState
!=
'2'
&&
state
==
'OVER
'
)
{
this
.
getNextAucVehData
();
}
});
...
...
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