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 16e918ae
authored
Mar 09, 2026
by
yancanhua
Committed by
章家宝
Mar 11, 2026
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:前端轮询出价功能开发
1 parent
f95dcca5
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
1296 additions
and
61 deletions
aus-front/admin/src/views/auction/auction/AuctionForm.vue
aus-front/admin/src/views/auction/auction/vehicle/ViewAuctionVehicle.vue
aus-front/admin/src/views/auction/control/AuctionVehiclePage.vue
aus-front/app/src/api/AuctionOrderController.ts
aus-front/app/src/components/AuctionVehicleItem.vue
aus-front/app/src/components/RoundBidPopup.vue
aus-front/app/src/module/auction/AuctionVehiclePage.vue
aus-front/app/src/module/auction/BidSuccessDialog.vue
aus-front/app/src/module/auction/roundBidBottom.vue
aus-front/app/src/module/order/BidPage.vue
aus-front/app/src/pages/tabbar/AuctionPage.vue
aus-front/app/src/pages/tabbar/ProfilePage.vue
aus-front/app/src/pages/tabbar/home/SmallVehicleItem.vue
aus-front/app/src/static/images/auction/auction-tool.png
aus-front/app/src/static/images/auction/auction_cover.png
aus-front/app/src/static/images/auction/favorite.png
aus-front/app/src/static/images/auction/un_favorite.png
aus-front/lib/src/entity/auction/entity/Auction.ts
aus-front/admin/src/views/auction/auction/AuctionForm.vue
View file @
16e918a
...
...
@@ -106,10 +106,12 @@
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
label=
"延时规则"
name=
"beforeEndMinute"
:rules=
"[{ required: true, message: '请输入延时规则!' }]"
:label-col=
"{span: 3}"
:wrapper-col=
"{span: 19}"
class=
"row-item"
>
<a-form-item
v-if=
"formState.auctionMode == '1'"
label=
"延时规则"
name=
"beforeEndMinute"
:rules=
"[{ required: true, message: '请输入延时规则!' }]"
:label-col=
"{span: 3}"
:wrapper-col=
"{span: 19}"
class=
"row-item"
>
<a-input-number
v-model:value=
"formState.beforeEndMinute"
addon-before=
"最后"
:min=
"0"
:step=
"1"
:max=
"9999"
:maxlength=
"4"
addon-after=
"分钟内的出价"
placeholder=
"请输入"
/>
<a-input-number
v-model:value=
"formState.delayMinute"
addon-before=
"自动延时"
:min=
"0"
:step=
"1"
:max=
"9999"
:maxlength=
"4"
addon-after=
"分钟"
placeholder=
"请输入"
/>
</a-form-item>
<a-form-item
label=
"可参拍城市"
name=
"cities"
:rules=
"[{ required: true, message: '请输入可参拍城市!' },{validator: verifyCities,message: '参拍城市不能超过20个'}]"
:label-col=
"{span: 3}"
:wrapper-col=
"{span: 19}"
class=
"row-item"
>
<a-cascader
v-model:value=
"formState.cities"
:options=
"areaData"
multiple
placeholder=
"请选择"
:show-checked-strategy=
"'SHOW_CHILD'"
@
change=
"handleCitiesChange"
/>
...
...
aus-front/admin/src/views/auction/auction/vehicle/ViewAuctionVehicle.vue
View file @
16e918a
...
...
@@ -32,6 +32,8 @@
<vehicle-browser-history-page
:aucveh-id=
"auctionVehicle.aucvehId"
></vehicle-browser-history-page>
</a-tab-pane>
</a-tabs>
</div>
</
template
>
<
script
lang=
"ts"
>
...
...
@@ -99,11 +101,15 @@ export default class ViewAuctionVehicle extends Vue {
const
data
=
response
.
data
||
{};
const
itemData
=
data
.
data
||
{};
that
.
auctionState
=
itemData
.
auctionState
||
''
;
that
.
formatTime
(
60
0
);
that
.
formatTime
(
itemData
.
remainSecond
||
0
);
if
(
that
.
auctionVehicle
.
auctionMode
==
2
&&
itemData
.
auctionState
==
'AUCTIONING'
&&
itemData
.
remainSecond
)
{
setTimeout
(()
=>
{
that
.
getBidRemainSecData
();
},
1000
);
//判断该组件是否销毁
// setTimeout(() => {
// that.getBidRemainSecData();
// }, 1000);
}
});
}
...
...
aus-front/admin/src/views/auction/control/AuctionVehiclePage.vue
View file @
16e918a
...
...
@@ -34,7 +34,7 @@
</
template
>
<a-button
v-else
v-sec=
"'control_7'"
type=
"link"
size=
"small"
@
click=
"cancelAuctionVehicle(record)"
>
中止
</a-button>
</template>
<a-button
type=
"link"
v-if=
"auction.auctionMode == '2'"
size=
"small"
@
click=
"handlePriceAdd(record)"
>
加价设置
</a-button>
<a-button
type=
"link"
v-if=
"auction.auctionMode == '2'
&& record.auctionState == 'AUCTIONING'
"
size=
"small"
@
click=
"handlePriceAdd(record)"
>
加价设置
</a-button>
</template>
</template>
<!--拍卖车辆列表end-->
...
...
aus-front/app/src/api/AuctionOrderController.ts
View file @
16e918a
...
...
@@ -89,6 +89,30 @@ export class AuctionOrderController {
return
axios
.
post
(
'order/uploadTransferAuctionOrder'
,
auctionOrder
);
}
static
checkDeposit
(
axios
:
AxiosStatic
,
signOrder
:
SignOrder
):
Promise
<
AxiosResponse
<
Contract
>>
{
return
axios
.
post
(
'auction/checkDeposit'
,
signOrder
);
}
static
getBidRemainSec
(
axios
:
AxiosStatic
,
signOrder
:
SignOrder
):
Promise
<
AxiosResponse
<
Contract
>>
{
return
axios
.
post
(
'auction/lightPolling/getBidRemainSec'
,
signOrder
);
}
static
realCalcCommissionPrice
(
axios
:
AxiosStatic
,
signOrder
:
SignOrder
):
Promise
<
AxiosResponse
<
Contract
>>
{
return
axios
.
post
(
'auction/realCalcCommissionPrice'
,
signOrder
);
}
static
getAccountBidResult
(
axios
:
AxiosStatic
,
signOrder
:
SignOrder
):
Promise
<
AxiosResponse
<
Contract
>>
{
return
axios
.
post
(
'auction/getAccountBidResult'
,
signOrder
);
}
static
getNextAucVeh
(
axios
:
AxiosStatic
,
signOrder
:
SignOrder
):
Promise
<
AxiosResponse
<
Contract
>>
{
return
axios
.
post
(
'auction/lightPolling/getNextAucVeh'
,
signOrder
);
}
// static checkDeposit(axios: AxiosStatic, signOrder: SignOrder): Promise<AxiosResponse<Contract>> {
// return axios.post('auction/checkDeposit', signOrder);
// }
// region 前端扩展代码区
// endregion
}
aus-front/app/src/components/AuctionVehicleItem.vue
View file @
16e918a
...
...
@@ -14,7 +14,7 @@
<text
class=
"feature-item"
v-if=
"vehicle.coreSpecs.rlxs==='纯电动'"
>
新能源
</text>
</view>
<view
class=
"car-price-container"
>
<image
src=
"
/static
/images/auction/auction-tool.png"
class=
"auction-icon"
mode=
"aspectFit"
></image>
<image
src=
"
https://img02.glsx.com.cn/aus
/images/auction/auction-tool.png"
class=
"auction-icon"
mode=
"aspectFit"
></image>
<text
class=
"car-price"
v-if=
"hasBidPrivilege"
>
{{
$filters
.
formatNumber
(
vehicle
.
startingBidPrice
/
10000
)
}}
</text>
<text
class=
"car-price"
v-else
>
{{
maskBidPrice
}}
</text>
<text
class=
"car-price car-price-unit"
>
万
</text>
...
...
@@ -24,8 +24,8 @@
</view>
</view>
<view
class=
"favorite-button"
v-if=
"showFavorite"
@
click
.
stop=
"toggleFavorite()"
>
<van-image
v-if=
"auctionVehicle.favorite"
use-error-slot
width=
"26"
fit=
"cover"
height=
"26"
src=
"
/static
/images/auction/favorite.png"
></van-image>
<van-image
v-else
use-error-slot
width=
"26"
fit=
"cover"
height=
"26"
src=
"
/static
/images/auction/un_favorite.png"
></van-image>
<van-image
v-if=
"auctionVehicle.favorite"
use-error-slot
width=
"26"
fit=
"cover"
height=
"26"
src=
"
https://img02.glsx.com.cn/aus
/images/auction/favorite.png"
></van-image>
<van-image
v-else
use-error-slot
width=
"26"
fit=
"cover"
height=
"26"
src=
"
https://img02.glsx.com.cn/aus
/images/auction/un_favorite.png"
></van-image>
</view>
</view>
</
template
>
...
...
aus-front/app/src/components/RoundBidPopup.vue
0 → 100644
View file @
16e918a
<
template
>
<view>
<uni-popup
ref=
"popupRef"
type=
"center"
background-color=
"#fff"
border-radius=
"24px"
z-index=
"10000"
:show-close=
"false"
:mask-click=
"false"
>
<view
class=
"wrapper"
v-if=
"endState == '1'"
>
<view
class=
"top-bg"
>
<view
class=
"top-icon"
>
<image
src=
"https://img02.glsx.com.cn/aus/images/roundBid/pop_icon1.png"
class=
"top-icon-image"
/>
</view>
<view
class=
"title"
>
竞拍结束
</view>
<view
class=
"content"
>
本场全部拍卖已结束
</view>
<view
class=
"popup-primary"
@
click=
"closePopup()"
>
好的
</view>
</view>
</view>
<view
class=
"wrapper"
v-if=
"endState == '2'"
>
<view
class=
"top-bg"
>
<view
class=
"top-icon"
>
<image
src=
"https://img02.glsx.com.cn/aus/images/roundBid/pop_icon1.png"
class=
"top-icon-image"
/>
</view>
<view
class=
"title"
>
竞拍已结束
</view>
<view
class=
"content"
>
{{
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)
</view>
</view>
</view>
</view>
</uni-popup>
</view>
</
template
>
<
script
lang=
"ts"
>
import
{
Ref
,
Component
,
Vue
}
from
"vue-facing-decorator"
;
@
Component
({})
export
default
class
RoundBidPopup
extends
Vue
{
@
Ref
popupRef
:
any
;
nextAucVehData
=
{};
// 下一辆车数据
endState
=
'1'
;
// 1 已结束没有下一辆车 2 已结束有下一辆车
isClose
=
false
;
created
():
void
{
}
//初始化数据
initData
(
data
:
any
)
{
this
.
nextAucVehData
=
data
||
{};
if
(
this
.
nextAucVehData
.
aucvehId
)
{
this
.
endState
=
'2'
;
this
.
isClose
=
false
;
}
else
{
this
.
endState
=
'1'
;
this
.
isClose
=
true
;
}
setTimeout
(()
=>
{
this
.
popupRef
.
open
(
'center'
);
this
.
setTimeoutSecond
();
},
1000
);
}
setTimeoutSecond
()
{
if
(
this
.
nextAucVehData
.
remainSecond
)
{
setTimeout
(()
=>
{
this
.
nextAucVehData
.
remainSecond
=
Number
(
this
.
nextAucVehData
.
remainSecond
)
-
1
;
this
.
setTimeoutSecond
();
},
1000
);
}
else
{
this
.
nextAucVehData
.
remainSecond
=
0
;
if
(
!
this
.
isClose
)
{
this
.
toNextAucVeh
();
}
}
}
//跳转到下一辆车
toNextAucVeh
()
{
this
.
popupRef
.
close
(
'center'
);
uni
.
navigateTo
({
url
:
'/module/auction/AuctionVehiclePage?aucvehId='
+
this
.
nextAucVehData
.
aucvehId
});
}
closePopup
()
{
this
.
isClose
=
true
;
this
.
popupRef
.
close
(
'center'
);
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.wrapper
{
width
:
310px
;
border-radius
:
24px
;
background
:
#ffffff
;
}
.top-bg
{
width
:
100%
;
height
:
300px
;
background-image
:
url("https://img02.glsx.com.cn/aus/images/preference/top-bg.png")
;
background-repeat
:
no-repeat
;
background-size
:
100%
;
border-radius
:
24px
;
}
.top-icon
{
width
:
100px
;
height
:
100px
;
float
:
left
;
margin-top
:
32px
;
margin-left
:
105px
;
}
.top-icon-image
{
width
:
100px
;
height
:
100px
;
z-index
:
-1
;
}
.title
{
width
:
100%
;
height
:
26px
;
float
:
left
;
line-height
:
26px
;
color
:
#141e34
;
font-size
:
22px
;
font-weight
:
500
;
font-family
:
"HarmonyOSSansSC"
;
text-align
:
center
;
margin-top
:
24px
;
}
.content
{
width
:
100%
;
height
:
22px
;
float
:
left
;
color
:
#676d7d
;
font-size
:
14px
;
font-weight
:
常规体
;
font-family
:
"苹方-简"
;
line-height
:
22px
;
text-align
:
center
;
margin-top
:
12px
;
}
.popup-primary
{
width
:
262px
;
height
:
40px
;
float
:
left
;
line-height
:
40px
;
border-radius
:
66px
;
background
:
#185efe
;
cursor
:
pointer
;
text-align
:
center
;
color
:
#ffffff
;
font-size
:
16px
;
font-weight
:
中黑体
;
font-family
:
"苹方-简"
;
margin-top
:
24px
;
margin-left
:
24px
;
margin-right
:
24px
;
}
.operation_but
{
width
:
262px
;
height
:
40px
;
float
:
left
;
margin-top
:
24px
;
margin-left
:
24px
;
margin-right
:
24px
;
}
.operation_but_primary
{
width
:
-webkit-calc
(
50%
-
6px
);
width
:
-moz-calc
(
50%
-
6px
);
width
:
calc
(
50%
-
6px
);
height
:
40px
;
float
:
left
;
line-height
:
40px
;
border-radius
:
66px
;
cursor
:
pointer
;
text-align
:
center
;
font-size
:
16px
;
font-weight
:
中黑体
;
font-family
:
"苹方-简"
;
}
.operation_but_1
{
background
:
#185efe
;
color
:
#ffffff
;
margin-left
:
12px
;
}
.operation_but_2
{
background
:
#f2f3f5
;
color
:
#666666
;
}
</
style
>
aus-front/app/src/module/auction/AuctionVehiclePage.vue
View file @
16e918a
...
...
@@ -54,7 +54,7 @@
<text
class=
"tag"
v-if=
"vehicle.coreSpecs.rlxs==='纯电动'"
>
新能源
</text>
</view>
<view
class=
"car-price"
>
<image
src=
"
/static
/images/auction/auction-tool.png"
class=
"auction-icon"
mode=
"aspectFit"
></image>
<image
src=
"
https://img02.glsx.com.cn/aus
/images/auction/auction-tool.png"
class=
"auction-icon"
mode=
"aspectFit"
></image>
<text
class=
"price-value"
v-if=
"hasBidPrivilege"
>
{{
$filters
.
formatNumber
(
this
.
vehicle
.
startingBidPrice
/
10000
)
}}
</text>
<text
class=
"price-value"
v-else
>
{{
maskBidPrice
}}
</text>
<text
class=
"price-unit"
>
万
</text>
...
...
@@ -161,24 +161,37 @@
<uni-icons
type=
"right"
size=
"14"
color=
"#999"
/>
</view>
</view>
<view
style=
"height: 60px"
>
<!-- 协议规则 -->
<view
class=
"protocolBox"
>
<view
class=
"protocolBox-title"
>
协议规则
</view>
<view
class=
"protocolBox-content"
>
参拍默认遵守
<text
class=
"protocolBox-rule"
@
click=
"navigateToAgreement('AUCTION')"
>
《竞拍规则》
</text>
<text
class=
"protocolBox-rule"
@
click=
"navigateToAgreement('VIOLATION')"
>
《违约扣款规则》
</text>
</view>
</view>
</view>
<view
:style=
"
{ height: auctionVehicle.auction.auctionMode == 2 ? '146px' : '60px' }">
</view>
</view>
<!-- 底部操作栏 -->
<
!--
<view
class=
"bottom-action-bar
"
>
<template
v-if=
"auctionVehicle.auctionState
===
'AUCTIONING'"
>
<
view
class=
"bottom-action-bar"
v-if=
"auctionVehicle.auction.auctionMode != 2
"
>
<template
v-if=
"auctionVehicle.auctionState
===
'AUCTIONING'"
>
<van-button
type=
"primary"
hairline
round
block
@
click=
"showBidPopup"
>
参与竞拍
</van-button>
</
template
>
<
template
v-if=
"auctionVehicle.auctionState
===
'PREVIEW'"
>
<
template
v-if=
"auctionVehicle.auctionState
===
'PREVIEW'"
>
<van-button
type=
"default"
hairline
round
block
>
预展中
</van-button>
</
template
>
<van-button
v-else
type=
"default"
hairline
round
block
>
竞拍已结束
</van-button>
</view>
-->
<!-- 轮询出价底部操作栏 -->
<roundBidBottom
ref=
"roundBidBottomRef"
:auctionVehicle=
"auctionVehicle"
/>
</view>
<!-- 轮询出价底部操作栏 -->
<view
v-if=
"auctionVehicle.auction.auctionMode == 2"
>
<roundBidBottom
ref=
"roundBidBottomRef"
:auctionVehicle=
"auctionVehicle"
@
nextAucVehData=
"nextAucVeh"
/>
</view>
<!-- 轮询出价确认弹窗 -->
<RoundBidPopup
ref=
"roundBidPopupRef"
/>
<uni-popup
class=
"popup-modal"
v-if=
"auctionVehicle&&(auctionVehicle.auctionState==='PREVIEW'||auctionVehicle.auctionState==='AUCTIONING')"
ref=
"bidPopup"
type=
"bottom"
background-color=
"#fff"
@
change=
"change"
>
...
...
@@ -279,7 +292,7 @@
<!-- <van-dialog id="van-dialog"/>-->
<van-dialog
use-slot
:show=
"showBidSuccessDialog"
:show-cancel-button=
"false"
:show-confirm-button=
"false"
>
<bid-success-dialog
:order-id=
"orderId"
@
close=
"closeBidSuccessDialog"
></bid-success-dialog>
<bid-success-dialog
:order-id=
"orderId"
:auctionVehicle=
"auctionVehicle"
@
close=
"closeBidSuccessDialog"
></bid-success-dialog>
</van-dialog>
</view>
</template>
...
...
@@ -305,9 +318,10 @@ import {Recharge} from "lib/src/entity/finance/entity/Recharge";
import
{
DepositController
}
from
"@/api/DepositController"
;
import
roundBidBottom
from
"@/module/auction/roundBidBottom.vue"
;
import
RoundBidPopup
from
"@/components/RoundBidPopup.vue"
;
@
Component
({
components
:
{
BidSuccessDialog
,
roundBidBottom
}
components
:
{
BidSuccessDialog
,
roundBidBottom
,
RoundBidPopup
}
})
export
default
class
AuctionVehiclePage
extends
Vue
{
amountStyle
=
{
'font-size'
:
'20px'
};
...
...
@@ -544,7 +558,10 @@ export default class AuctionVehiclePage extends Vue {
* 竞价结束回调
*/
noticeBidEnd
()
{
if
(
this
.
auctionVehicle
.
auctionState
===
'SOLD'
&&
this
.
$auth
.
isLogin
())
{
// 代码请求优化
const
pages
=
getCurrentPages
();
const
currentPage
=
pages
[
pages
.
length
-
1
];
if
(
this
.
auctionVehicle
.
auctionState
===
'SOLD'
&&
this
.
$auth
.
isLogin
()
&&
currentPage
.
route
==
'module/auction/AuctionVehiclePage'
)
{
this
.
intervalId
=
setInterval
(()
=>
{
AuctionOrderController
.
getAuctionOrderByVehicleId
(
this
.
axios
,
this
.
vehicle
.
vehicleId
).
then
(
res
=>
{
if
(
res
.
data
>
0
)
{
...
...
@@ -806,10 +823,14 @@ export default class AuctionVehiclePage extends Vue {
uni
.
navigateTo
({
url
:
url
});
}
navigateToAgreement
(
event
:
any
)
{
navigateToAgreement
(
value
:
string
)
{
// 手动阻止事件冒泡
event
.
stopPropagation
();
uni
.
navigateTo
({
url
:
'/module/profile/AgreementPage?key=AUCTION'
});
// event.stopPropagation();
uni
.
navigateTo
({
url
:
'/module/profile/AgreementPage?key='
+
value
});
}
nextAucVeh
(
data
:
any
)
{
this
.
$refs
.
roundBidPopupRef
.
initData
(
data
);
}
// 定义分享内容(必写)
...
...
@@ -839,6 +860,50 @@ export default class AuctionVehiclePage extends Vue {
</
script
>
<
style
lang=
"scss"
scoped
>
.protocolBox
{
width
:
-webkit-calc
(
100%
-
20px
);
width
:
-moz-calc
(
100%
-
20px
);
width
:
calc
(
100%
-
20px
);
height
:
90px
;
border-radius
:
10px
;
background
:
#ffffff
;
margin-left
:
10px
;
}
.protocolBox-title
{
height
:
26px
;
line-height
:
26px
;
color
:
#333333
;
font-size
:
18px
;
font-weight
:
中黑体
;
font-family
:
"苹方-简"
;
margin-top
:
16px
;
margin-left
:
12px
;
float
:
left
;
}
.protocolBox-content
{
width
:
-webkit-calc
(
100%
-
24px
);
width
:
-moz-calc
(
100%
-
24px
);
width
:
calc
(
100%
-
24px
);
height
:
22px
;
float
:
left
;
color
:
#666666
;
font-size
:
14px
;
font-weight
:
常规体
;
font-family
:
"苹方-简"
;
line-height
:
22px
;
margin-top
:
10px
;
margin-left
:
12px
;
}
.protocolBox-rule
{
color
:
#2c66f7
;
font-size
:
14px
;
cursor
:
pointer
;
}
.car-detail-container
{
//
min-height
:
100vh
;
background-color
:
#f5f5f5
;
...
...
aus-front/app/src/module/auction/BidSuccessDialog.vue
View file @
16e918a
...
...
@@ -6,15 +6,26 @@
<van-image
width=
"100"
height=
"100"
fit=
"cover"
src=
"https://img02.glsx.com.cn/aus/images/order/payment.png"
></van-image>
</view>
<view
class=
"dialog-header"
>
恭喜你中拍成功
恭喜你中拍成功
!
</view>
<view
class=
"dialog-content"
>
<view
v-if=
"auctionVehicle.auction.auctionMode != 2"
class=
"dialog-content"
>
<text>
请尽快签署购车协议,并支付款项以锁定车辆
</text>
</view>
<view
class=
"dialog-footer"
>
<van-button
type=
"default"
round
block
style=
"margin-bottom: 10px"
@
click=
"$emit('close')"
>
知道了
</van-button>
<van-button
type=
"primary"
hairline
round
block
@
click=
"signContract"
>
去签署购车协议
</van-button>
<view
v-if=
"auctionVehicle.auction.auctionMode == 2"
class=
"dialog-auctionMode"
>
<view
class=
"auctionMode-img"
>
<van-image
width=
"28"
height=
"28"
style=
"margin: 6px;float: left;"
fit=
"cover"
src=
"https://img02.glsx.com.cn/aus/images/roundBid/title_icon.png"
></van-image>
</view>
<view
class=
"auctionMode-text"
>
已中拍车辆可在【我的-购车订单】中进行付款与确认购车
<text
style=
"color: #185EFE;"
@
click=
"signContract"
>
前往购车确认
</text>
</view>
</view>
<view
class=
"dialog-footer"
>
<van-button
class=
"dialog-footer_but"
type=
"default"
round
block
@
click=
"$emit('close')"
>
知道了
</van-button>
<van-button
class=
"dialog-footer_but"
type=
"primary"
style=
"margin-left: 12px;"
hairline
round
block
@
click=
"signContract"
>
去签署购车协议
</van-button>
</view>
</view>
</view>
...
...
@@ -32,6 +43,9 @@ export default class BidSuccessDialog extends Vue {
@
Prop
({
type
:
Number
,
required
:
true
})
orderId
:
number
;
@
Prop
({
type
:
Object
,
required
:
true
})
auctionVehicle
:
any
;
signContract
():
void
{
this
.
$emit
(
'close'
);
uni
.
navigateTo
({
...
...
@@ -82,10 +96,46 @@ export default class BidSuccessDialog extends Vue {
}
.dialog-footer
{
margin-top
:
20px
;
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
gap
:
3px
;
;
width
:
100%
;
margin-top
:
24px
;
margin-bottom
:
24px
;
float
:
left
;
}
.dialog-footer_but
{
width
:
-webkit-calc
(
50%
-
6px
);
width
:
-moz-calc
(
50%
-
6px
);
width
:
calc
(
50%
-
6px
);
float
:
left
;
}
.dialog-auctionMode
{
width
:
100%
;
height
:
56px
;
border-radius
:
4px
;
background
:
linear-gradient
(
0deg
,
#edf6ff
0%
,
#f7fbff
100%
);
margin-top
:
16px
;
float
:
left
;
}
.auctionMode-img
{
width
:
40px
;
height
:
40px
;
background
:
linear-gradient
(
0deg
,
#cce5ff
0%
,
#e6f4fe00
100%
);
border-radius
:
50%
;
margin
:
8px
;
float
:
left
;
}
.auctionMode-text
{
width
:
-webkit-calc
(
100%
-
64px
);
width
:
-webkit-calc
(
100%
-
64px
);
width
:
-webkit-calc
(
100%
-
64px
);
float
:
left
;
color
:
#676d7d
;
font-size
:
12px
;
font-family
:
"苹方-简"
;
line-height
:
20px
;
margin
:
8px
0
;
}
</
style
>
aus-front/app/src/module/auction/roundBidBottom.vue
View file @
16e918a
<
template
>
<view>
<view
v-if=
"pageState == 'PREVIEW'"
class=
"bottom_action"
>
<view
class=
"awaitbut"
>
等待竞拍
</view>
</view>
<view
v-if=
"pageState != 'PREVIEW' && pageState != 'AUCTIONING'"
class=
"auction_action"
>
<view
v-if=
"pageState == 'COMMON'"
class=
"promptBox"
>
<view
class=
"promptBox_icon"
>
<image
class=
"promptBox_image"
src=
"https://img02.glsx.com.cn/aus/images/roundBid/prompt_icon2.png"
/>
</view>
<view
class=
"promptBox_title"
>
您没有权限参与出价!
</view>
<view
class=
"promptBox_but"
@
click=
"goCertification()"
>
获得参拍权
</view>
</view>
<view
v-if=
"pageState == 'NOTOPUP'"
class=
"promptBox"
>
<view
class=
"promptBox_icon"
>
<image
class=
"promptBox_image"
src=
"https://img02.glsx.com.cn/aus/images/roundBid/prompt_icon1.png"
/>
</view>
<view
class=
"promptBox_title"
>
您的可用保证金不足,无法出价!
</view>
<view
class=
"promptBox_but"
@
click=
"toRechargePage()"
>
去充值
</view>
</view>
<view
v-if=
"pageState == 'JUMP'"
class=
"promptBox"
>
<view
class=
"promptBox_icon"
>
<image
class=
"promptBox_image"
src=
"https://img02.glsx.com.cn/aus/images/roundBid/prompt_icon3.png"
/>
</view>
<view
class=
"promptBox_title"
>
当前车辆报价已结束,5s后将为您跳转到下一辆车
</view>
</view>
</view>
<!-- 轮询竞拍进行中 -->
<view
v-if=
"pageState == 'AUCTIONING'"
class=
"roundBidBox"
>
<view
class=
"navBox"
>
<view
class=
"navBox_icon"
>
<image
class=
"navBox_image"
src=
"https://img02.glsx.com.cn/aus/images/roundBid/prompt_icon3.png"
/>
</view>
<view
class=
"navBox_title"
>
出价
</view>
<view
v-if=
"pageData.reservePriceType == 1"
class=
"navBox_tag tag3"
>
接近保留价
</view>
<view
v-if=
"pageData.reservePriceType == 2"
class=
"navBox_tag tag3"
>
超过保留价
</view>
<view
v-if=
"pageData.bidPriceType == 0"
class=
"navBox_tag tag1"
>
等待加价
</view>
<view
v-if=
"pageData.bidPriceType == 1"
class=
"navBox_tag tag2"
>
出价被超过
</view>
<view
v-if=
"pageData.bidPriceType == 2"
class=
"navBox_tag tag4"
>
您为最高价
</view>
<view
v-if=
"foldState == 'UP'"
@
click=
"handleFoldState('DOWN')"
class=
"foldBox"
>
<text>
展开
</text>
<uni-icons
type=
"up"
size=
"14"
color=
"#185efe"
/>
</view>
<view
v-if=
"foldState == 'DOWN'"
@
click=
"handleFoldState('UP')"
class=
"foldBox"
>
<text>
收起
</text>
<uni-icons
type=
"down"
size=
"14"
color=
"#185efe"
/>
</view>
</view>
<view
class=
"bottom-action"
>
22222222222
</view>
<view
v-if=
"foldState == 'UP'"
class=
"upBox"
>
<view
class=
"upBox_amount"
>
合手价:
<text
class=
"upBox_money"
>
{{
resultPrice
}}
</text>
<text
class=
"upBox_unit"
>
万
</text>
</view>
<view
class=
"upBox_add"
>
<view
class=
"upBox_second"
>
{{
pageData
.
remainSecond
}}
秒
</view>
<view
class=
"border_solid"
>
<view
class=
"border_but"
@
click=
"handleAddBid()"
>
{{
addPrice
?
'+'
:
''
}}{{
addPrice
}}
</view>
</view>
</view>
</view>
<view
v-if=
"foldState == 'DOWN'"
class=
"downBox"
>
<view
class=
"downBox_content"
>
<view
class=
"downBox_left"
>
<view
class=
"downBox_list"
>
<view
class=
"downBox_title"
>
我的出价:
</view>
<view
class=
"downBox_money colorRed"
>
{{
(
Number
(
pageData
.
accountBidPrice
||
0
))
/
10000
}}
万元
</view>
</view>
<view
class=
"downBox_list"
>
<view
class=
"downBox_title"
>
当前价:
</view>
<view
class=
"downBox_money colorBlack"
>
{{
(
Number
(
pageData
.
price
||
0
))
/
10000
}}
万元
</view>
</view>
<view
class=
"downBox_list"
>
<view
class=
"downBox_title"
>
平台佣金:
</view>
<view
class=
"downBox_money colorBlack"
>
+
{{
(
Number
(
pageData
.
commissionPrice
||
0
))
/
10000
}}
万元
</view>
</view>
<view
class=
"downBox_list"
>
<view
class=
"downBox_title colorBlack"
>
合手价:
</view>
<view
class=
"downBox_money colorRed"
>
{{
resultPrice
}}
万元
</view>
</view>
</view>
<view
class=
"downBox_right"
>
<view
class=
"downBox_second"
>
{{
pageData
.
remainSecond
}}
秒
</view>
<view
class=
"downBox_border_solid"
>
<view
class=
"downBox_border_but"
@
click=
"handleAddBid()"
>
{{
addPrice
?
'+'
:
''
}}{{
addPrice
}}
</view>
</view>
</view>
</view>
<view
class=
"listButton"
>
<view
v-for=
"(item, index) in operationButList"
:key=
"index"
@
click=
"handleOperationBut(item.value)"
class=
"listButton_item"
:class=
"
{ 'listButton_active': item.value == addPrice || (item.value == '自定义'
&&
isShowCustom) }">
+
{{
item
.
value
}}
</view>
</view>
<view
v-if=
"isShowCustom"
class=
"downBox_custom"
>
<view
class=
"downBox_custom_title"
>
自定义加价金额
</view>
<view
class=
"downBox_custom_hand"
>
<view
class=
"downBox_custom_input"
>
<view
class=
"downBox_custom_unit"
>
¥
</view>
<van-field
:value=
"customBid"
style=
"height: 36px;"
type=
"digit"
placeholder=
"最低100"
/>
</view>
<view
class=
"downBox_custom_but"
@
click=
"handleCustomBidConfirm()"
>
确认
</view>
</view>
</view>
<view
style=
"width: 100%;height: 16px;float: left;"
></view>
</view>
</view>
<view
v-if=
"pageState == 'END'"
class=
"roundBidBox"
>
<view
class=
"navBox"
>
<view
class=
"navBox_icon"
>
<image
class=
"navBox_image"
src=
"https://img02.glsx.com.cn/aus/images/roundBid/prompt_icon3.png"
/>
</view>
<view
v-if=
"endState == '1'"
class=
"navBox_title"
>
<view
class=
"pointBox point_border1"
>
<view
class=
"pointBox_active point_bg1"
>
</view>
</view>
<view
class=
"pointBox_title color1"
>
未成交
</view>
</view>
<view
v-if=
"endState == '2'"
class=
"navBox_title"
>
<view
class=
"pointBox point_border2"
>
<view
class=
"pointBox_active point_bg2"
>
</view>
</view>
<view
class=
"pointBox_title color2"
>
已中拍
</view>
</view>
<view
v-if=
"endState == '3'"
class=
"navBox_title"
>
<view
class=
"pointBox point_border3"
>
<view
class=
"pointBox_active point_bg3"
>
</view>
</view>
<view
class=
"pointBox_title color3"
>
未中拍
</view>
</view>
</view>
<view
class=
"upBox"
>
<view
class=
"upBox_amount"
>
合手价
<text
class=
"upBox_money"
>
{{
resultPrice
}}
</text>
<text
class=
"upBox_unit"
>
万
</text>
<text
v-if=
"endState == '1'"
>
,此车未过保留价。
</text>
<text
v-if=
"endState == '2'"
>
,恭喜您中拍!
</text>
<text
v-if=
"endState == '3'"
>
,很遗憾您未中拍。
</text>
</view>
<view
v-if=
"endState == '2'"
class=
"promptBox_but"
@
click=
"signContract()"
style=
"margin-top: 22px;margin-right: 12px;"
>
签署购车合同
</view>
</view>
</view>
</view>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
}
from
"vue-facing-decorator"
;
import
{
onLoad
,
onShow
,
onUnload
}
from
"@dcloudio/uni-app"
;
import
{
AuctionOrderController
}
from
"@/api/AuctionOrderController"
;
import
{
AuthService
}
from
"@/common/AuthService"
;
import
{
BidController
}
from
"@/api/BidController"
;
@
Component
({
components
:
{}
...
...
@@ -21,52 +189,762 @@ export default class roundBidBottom extends Vue {
@
Prop
({
type
:
Object
,
required
:
true
})
auctionVehicle
:
any
;
pageData
:
{};
//页面显示数据
//页面状态 认证 COMMON 充值 NOTOPUP 等待开始 PREVIEW 进行中 AUCTIONING 结束 END 结束自动跳转 JUMP
pageState
=
'COMMON'
;
endState
=
'1'
;
// 1 未成交 2 已中拍 3 未中拍
//页面显示数据
pageData
=
{
accountBidPrice
:
0
,
// 用户出价 价格
nearReservePrice
:
false
,
over
:
true
,
// 是否结束
price
:
0
,
// 当前最新价格
remainSecond
:
0
,
// 剩余时间 单位秒
significantPriceIncrease
:
false
,
// 是否大幅度加价
commissionPrice
:
0
,
// 平台佣金
reservePriceType
:
0
,
bidPriceType
:
0
,
};
foldState
=
'UP'
;
//展开 UP 收起 DOWN
addPrice
=
'100'
;
//加价金额
remainingTime
=
'5'
;
//剩余时间
isShowCustom
=
false
;
//是否显示自定义输入框
customBid
=
''
;
//自定义出价
resultPrice
=
0
;
// 最终成交价
orderId
=
''
;
//自定义金额
operationButList
=
[{
value
:
'100'
,
},
{
value
:
'300'
,
},
{
value
:
'500'
,
},
{
value
:
'1000'
,
},
{
value
:
'自定义'
,
}];
created
():
void
{
console
.
log
(
'auctionVehicleauctionVehicleauctionVehicleauctionVehicle1111'
,
this
.
auctionVehicle
)
setTimeout
(()
=>
{
this
.
getAccountInfoData
();
},
1000
);
}
//获取用户信息
getAccountInfoData
()
{
const
authService
:
AuthService
=
this
.
$auth
;
if
(
authService
.
isLogin
())
{
//已登录
const
accountInfo
=
authService
.
getAuthentication
();
if
(
accountInfo
.
accountType
==
'COMMON'
)
{
// 未认证
this
.
pageState
=
'COMMON'
;
}
else
{
if
(
this
.
auctionVehicle
.
auctionState
===
'SOLD'
)
{
this
.
pageState
=
'END'
;
//已经结束拍获取拍卖结果
this
.
getAccountBidResultData
();
}
else
{
this
.
getCheckDeposit
();
}
}
}
else
{
//未登录
this
.
pageState
=
'COMMON'
;
}
}
//获得参拍权认证
goCertification
():
void
{
const
authService
:
AuthService
=
this
.
$auth
;
if
(
authService
.
isLogin
())
{
const
accountInfo
=
authService
.
getAuthentication
();
if
(
accountInfo
.
certifiedState
===
'CERTIFICATING'
)
{
uni
.
navigateTo
({
url
:
'/module/account/CertificationResult'
});
}
else
{
uni
.
navigateTo
({
url
:
'/module/account/PersonCertificationPage'
});
}
}
else
{
uni
.
showToast
({
title
:
'请先登录'
,
icon
:
'none'
,
duration
:
2000
,
complete
:
function
()
{
setTimeout
(()
=>
{
uni
.
navigateTo
({
url
:
'/pages/LoginPage'
});
},
2000
);
}
});
}
}
//是否需要充值
getCheckDeposit
()
{
AuctionOrderController
.
checkDeposit
(
this
.
axios
,
{
aucvehId
:
this
.
auctionVehicle
.
aucvehId
}).
then
(
res
=>
{
const
data
=
res
.
data
?.
data
||
{};
if
(
!
data
.
checkResult
)
{
this
.
pageState
=
'NOTOPUP'
;
}
else
{
if
(
this
.
auctionVehicle
.
auctionState
==
'PREVIEW'
)
{
//预展中
this
.
pageState
=
'PREVIEW'
;
}
else
if
(
this
.
auctionVehicle
.
auctionState
==
'AUCTIONING'
)
{
//竞拍中
this
.
pageState
=
'AUCTIONING'
;
this
.
getBidRemainSecData
();
}
else
{
//竞拍已结束SOLD
this
.
pageState
=
'END'
;
}
}
});
}
//跳转到充值页面
toRechargePage
()
{
uni
.
navigateTo
({
url
:
'/module/deposit/RechargePage'
});
}
//获取轮询拍卖详情
getBidRemainSecData
()
{
AuctionOrderController
.
getBidRemainSec
(
this
.
axios
,
{
aucvehId
:
this
.
auctionVehicle
.
aucvehId
}).
then
(
res
=>
{
const
data
=
res
.
data
?.
data
||
{};
//价格改变重新获取佣金
if
(
this
.
pageData
.
price
!=
data
.
price
)
{
this
.
realCalcCommissionPriceData
();
}
this
.
pageData
=
{
...
this
.
pageData
,
...
data
,
remainSecond
:
Math
.
floor
(
data
.
remainSecond
||
0
)
};
// 计算最终成交价
this
.
resultPrice
=
(
Number
(
this
.
pageData
.
price
||
0
)
+
Number
(
this
.
pageData
.
commissionPrice
||
0
))
/
10000
;
//拍卖结束后获取下一辆车及拍卖状态
if
(
this
.
pageData
.
over
)
{
this
.
pageState
=
'END'
;
this
.
getAccountBidResultData
();
}
onLoad
((
option
)
=>
{
console
.
log
(
'auctionVehicleauctionVehicleauctionVehicleauctionVehicle11111'
,
this
.
auctionVehicle
)
// 获取当前路由地址
const
pages
=
getCurrentPages
();
// 数组的最后一个元素就是当前正在显示的页面实例
const
currentPage
=
pages
[
pages
.
length
-
1
];
if
(
currentPage
.
route
==
'module/auction/AuctionVehiclePage'
&&
!
this
.
pageData
.
over
)
{
setTimeout
(()
=>
{
this
.
getBidRemainSecData
();
},
1000
);
}
});
}
onShow
((
option
)
=>
{
console
.
log
(
'auctionVehicleauctionVehicleauctionVehicleauctionVehicle22222'
,
this
.
auctionVehicle
)
//获取拍卖佣金
realCalcCommissionPriceData
()
{
AuctionOrderController
.
realCalcCommissionPrice
(
this
.
axios
,
{
aucvehId
:
this
.
auctionVehicle
.
aucvehId
}).
then
(
res
=>
{
const
data
=
res
.
data
?.
data
||
{};
this
.
pageData
.
commissionPrice
=
(
Number
(
data
.
commissionPrice
||
0
))
/
10000
;
});
}
onUnload
(()
=>
{
//点击提交价格
handleAddBid
()
{
if
(
!
this
.
addPrice
)
return
uni
.
showToast
({
title
:
'请输入加价金额'
,
icon
:
'none'
});
const
bidPrice
=
Number
(
this
.
pageData
.
price
||
0
)
+
Number
(
this
.
addPrice
);
const
bidRequest
=
{
aucvehId
:
this
.
auctionVehicle
.
aucvehId
,
bidPrice
:
bidPrice
};
uni
.
showLoading
({
title
:
'正在提交竞价信息...'
,
mask
:
true
});
BidController
.
addBid
(
this
.
axios
,
bidRequest
).
then
(
res
=>
{
setTimeout
(()
=>
{
uni
.
showToast
({
title
:
'出价成功'
,
icon
:
'success'
});
this
.
handleAudio
();
},
300
);
}).
finally
(()
=>
{
uni
.
hideLoading
();
});
}
handleAudio
()
{
console
.
log
(
'播放音频'
);
const
innerAudioContext
=
uni
.
createInnerAudioContext
();
innerAudioContext
.
autoplay
=
true
;
innerAudioContext
.
src
=
'https://img02.glsx.com.cn/aus/images/roundBid/notice.mp3'
;
innerAudioContext
.
onEnded
(()
=>
{
innerAudioContext
.
destroy
();
console
.
log
(
'音频播放完成'
);
});
}
//循环
roundBid
()
{
const
that
=
this
;
setTimeout
(()
=>
{
console
.
log
(
'auctionVehicleauctionVehicleauctionVehicleauctionVehicle'
,
this
.
auctionVehicle
)
// that.roundBid();
},
1000
);
//获取拍卖结果
getAccountBidResultData
()
{
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
.
getNextAucVehData
();
if
(
this
.
pageState
!=
'END'
){
this
.
noticeBidEnd
();
}
}
});
}
//获取拍卖订单号
noticeBidEnd
()
{
AuctionOrderController
.
getAuctionOrderByVehicleId
(
this
.
axios
,
this
.
auctionVehicle
.
vehicle
.
vehicleId
).
then
(
res
=>
{
if
(
res
.
data
>
0
)
{
this
.
orderId
=
res
.
data
;
}
});
}
//签署购车合同
signContract
()
{
uni
.
navigateTo
({
url
:
'/module/order/contract/ContractPage?orderId='
+
this
.
orderId
});
}
//获取下一辆车
getNextAucVehData
()
{
AuctionOrderController
.
getNextAucVeh
(
this
.
axios
,
{
aucvehId
:
this
.
auctionVehicle
.
aucvehId
}).
then
(
res
=>
{
this
.
$emit
(
'nextAucVehData'
,
res
.
data
?.
data
||
{});
});
}
//展开收起
handleFoldState
(
state
:
string
)
{
this
.
foldState
=
state
;
if
(
state
==
'UP'
&&
!
this
.
addPrice
)
{
this
.
addPrice
=
'100'
;
}
}
//金额操作按钮
handleOperationBut
(
value
:
string
)
{
if
(
value
!=
'自定义'
)
{
this
.
addPrice
=
value
;
this
.
isShowCustom
=
false
;
this
.
handleAddBid
();
}
else
{
this
.
addPrice
=
''
;
this
.
customBid
=
''
;
this
.
isShowCustom
=
true
;
}
}
//自定义确认出价
handleCustomBidConfirm
()
{
if
(
!
this
.
customBid
)
{
uni
.
showToast
({
title
:
'请输入自定义加价金额'
,
icon
:
'none'
})
}
else
{
this
.
addPrice
=
this
.
customBid
;
this
.
handleAddBid
();
}
}
//自定义金额输入框
handleCustomBidInput
(
value
:
any
)
{
let
numStr
=
String
(
value
?.
detail
?.
value
||
''
).
replace
(
/
\D
/g
,
''
);
let
num
=
parseInt
(
numStr
,
10
);
if
(
num
>
0
)
{
num
=
Math
.
floor
(
num
/
100
)
*
100
;
if
(
num
<
100
)
num
=
100
;
this
.
customBid
=
num
.
toString
();
}
else
{
this
.
customBid
=
'100'
;
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
/* 底部操作栏 */
.bottom
-
action
{
.bottom
_
action
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
right
:
0
;
height
:
50px
;
background-color
:
#fff
;
padding
:
1
0px
15
px
;
z-index
:
2
;
padding
:
1
6
px
;
z-index
:
99
;
box-shadow
:
0
-2px
10px
rgba
(
0
,
0
,
0
,
0.1
);
}
.awaitbut
{
width
:
100%
;
height
:
48px
;
line-height
:
48px
;
border-radius
:
48px
;
border
:
0
solid
#979797
;
background
:
#cccccc
;
color
:
#ffffff
;
font-size
:
16px
;
font-weight
:
500
;
font-family
:
"HarmonyOSSansSC"
;
text-align
:
center
;
cursor
:
pointer
;
}
.auction_action
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
right
:
0
;
background-color
:
#fff
;
padding
:
16px
;
z-index
:
99
;
border-radius
:
16px
16px
0
0
;
background
:
linear-gradient
(
180deg
,
#e0eefe
0%
,
#ffffff
100%
);
box-shadow
:
0
-2px
4px
0
#7a9bcc40
;
}
.promptBox
{
width
:
100%
;
float
:
left
;
height
:
40px
;
line-height
:
40px
;
margin-bottom
:
12px
;
}
.promptBox_icon
{
width
:
40px
;
height
:
40px
;
float
:
left
;
margin-right
:
6px
;
}
.promptBox_image
{
width
:
40px
;
height
:
40px
;
z-index
:
-1
;
}
.promptBox_title
{
color
:
#333333
;
font-size
:
14px
;
font-weight
:
中黑体
;
font-family
:
"苹方-简"
;
float
:
left
;
}
.promptBox_but
{
padding
:
0
16px
;
height
:
36px
;
line-height
:
36px
;
border-radius
:
48px
;
background
:
#185efe
;
text-align
:
center
;
color
:
#ffffff
;
font-size
:
14px
;
font-weight
:
中黑体
;
font-family
:
"苹方-简"
;
float
:
right
;
cursor
:
pointer
;
}
.roundBidBox
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
right
:
0
;
background-color
:
#fff
;
padding
:
10px
7px
;
z-index
:
99
;
border-radius
:
16px
16px
0
0
;
background
:
linear-gradient
(
180deg
,
#e0effe
0%
,
#f8f9fb
100%
);
box-shadow
:
0
-4px
8px
0
#7a9bcc40
;
}
.navBox
{
width
:
100%
;
height
:
20px
;
line-height
:
20px
;
float
:
left
;
}
.navBox_icon
{
width
:
20px
;
height
:
20px
;
float
:
left
;
margin-left
:
9px
;
}
.navBox_image
{
width
:
20px
;
height
:
20px
;
z-index
:
-1
;
}
.navBox_title
{
color
:
#333333
;
font-size
:
14px
;
font-weight
:
中黑体
;
font-family
:
"苹方-简"
;
float
:
left
;
margin
:
0
4px
;
}
.navBox_tag
{
padding
:
0
6px
;
height
:
20px
;
line-height
:
20px
;
float
:
left
;
border-radius
:
4px
;
color
:
#ffffff
;
font-size
:
11px
;
font-weight
:
常规体
;
font-family
:
"苹方-简"
;
margin-right
:
4px
;
}
.tag1
{
background
:
linear-gradient
(
90deg
,
#fdb66f
0%
,
#ff8d1a
100%
);
}
.tag2
{
background
:
linear-gradient
(
-45deg
,
#f5603c
0%
,
#fea68d
100%
);
}
.tag3
{
background
:
linear-gradient
(
-45deg
,
#5685f9
0%
,
#85c3ff
100%
);
}
.tag4
{
background
:
linear-gradient
(
90deg
,
#92d6a7
0%
,
#2bce5d
100%
);
}
.foldBox
{
margin-right
:
9px
;
float
:
right
;
color
:
#185efe
;
font-size
:
12px
;
font-weight
:
常规体
;
font-family
:
"苹方-简"
;
}
.upBox
{
width
:
100%
;
height
:
80px
;
line-height
:
80px
;
float
:
left
;
margin-top
:
10px
;
border-radius
:
12px
;
background
:
#ffffff
;
margin-bottom
:
16px
;
}
.upBox_amount
{
height
:
80px
;
line-height
:
80px
;
margin-left
:
16px
;
float
:
left
;
color
:
#333333
;
font-size
:
14px
;
font-weight
:
常规体
;
font-family
:
"苹方-简"
;
}
.upBox_money
{
color
:
#ee3140
;
font-size
:
20px
;
font-weight
:
500
;
font-family
:
"D-DIN-PRO-Medium"
;
}
.upBox_unit
{
color
:
#ee3140
;
font-size
:
14px
;
font-weight
:
常规体
;
font-family
:
"苹方-简"
;
padding-left
:
2px
;
}
.upBox_add
{
float
:
right
;
height
:
80px
;
margin-right
:
24px
;
}
.upBox_second
{
height
:
80px
;
line-height
:
80px
;
float
:
left
;
color
:
#333333
;
font-size
:
13px
;
font-weight
:
500
;
font-family
:
"D-DIN-PRO"
;
}
.border_solid
{
width
:
58px
;
height
:
58px
;
float
:
left
;
border
:
3px
solid
#e3ebf4
;
background
:
#f4f8ff
;
border-radius
:
50%
;
margin-top
:
8px
;
margin-left
:
8px
;
margin-bottom
:
8px
;
}
.border_but
{
width
:
48px
;
height
:
48px
;
float
:
left
;
margin
:
5px
;
line-height
:
48px
;
text-align
:
center
;
background
:
linear-gradient
(
148.6deg
,
#7aa3fe
0%
,
#185efe
100%
);
box-shadow
:
0
2px
4px
0
#8ab5e640
;
border-radius
:
50%
;
color
:
#ffffff
;
font-size
:
14px
;
font-weight
:
700
;
font-family
:
"D DIN PRO"
;
cursor
:
pointer
;
}
.downBox
{
width
:
100%
;
min-height
:
80px
;
float
:
left
;
margin-top
:
10px
;
border-radius
:
12px
;
background
:
#ffffff
;
margin-bottom
:
16px
;
}
.downBox_content
{
width
:
100%
;
float
:
left
;
margin-bottom
:
16px
;
}
.downBox_left
{
width
:
-webkit-calc
(
46%
-
16px
);
width
:
-moz-calc
(
46%
-
16px
);
width
:
calc
(
46%
-
16px
);
float
:
left
;
margin-left
:
16px
;
margin-top
:
12px
;
}
.downBox_right
{
float
:
right
;
}
.downBox_second
{
margin-top
:
16px
;
height
:
108px
;
line-height
:
108px
;
float
:
left
;
color
:
#333333
;
font-size
:
13px
;
font-weight
:
500
;
font-family
:
"D-DIN-PRO"
;
margin-right
:
4px
;
}
.downBox_border_solid
{
width
:
100px
;
height
:
100px
;
float
:
left
;
border
:
4px
solid
#e3ebf4
;
background
:
#f4f8ff
;
border-radius
:
50%
;
margin-right
:
40px
;
margin-top
:
16px
;
}
.downBox_border_but
{
width
:
76px
;
height
:
76px
;
float
:
left
;
margin
:
12px
;
line-height
:
76px
;
text-align
:
center
;
background
:
linear-gradient
(
148.6deg
,
#7aa3fe
0%
,
#185efe
100%
);
box-shadow
:
0
2px
4px
0
#8ab5e640
;
border-radius
:
50%
;
color
:
#ffffff
;
font-size
:
18px
;
font-weight
:
500
;
font-family
:
"D DIN PRO"
;
}
.downBox_list
{
width
:
100%
;
height
:
20px
;
float
:
left
;
margin-top
:
8px
;
line-height
:
20px
;
color
:
#999999
;
font-size
:
14px
;
font-weight
:
常规体
;
font-family
:
"苹方-简"
;
}
.downBox_title
{
float
:
left
;
}
.downBox_money
{
float
:
right
;
}
.colorRed
{
color
:
#ee3140
!important
;
}
.colorBlack
{
color
:
#333333
!important
;
}
.listButton
{
width
:
-webkit-calc
(
100%
-
32px
);
width
:
-moz-calc
(
100%
-
32px
);
width
:
calc
(
100%
-
32px
);
height
:
30px
;
float
:
left
;
margin
:
0
16px
;
}
.listButton_item
{
width
:
60.4px
;
height
:
28px
;
float
:
left
;
margin-left
:
8px
;
line-height
:
28px
;
border-radius
:
4px
;
background
:
#f8f9fc
;
color
:
#333333
;
font-size
:
14px
;
font-family
:
"D DIN PRO"
;
text-align
:
center
;
border
:
1px
solid
#f8f9fc
;
cursor
:
pointer
;
}
.listButton_active
{
border
:
1px
solid
#185efe
!important
;
color
:
#185efe
!important
;
}
.downBox_custom
{
width
:
100%
;
float
:
left
;
margin-top
:
12px
;
}
.downBox_custom_title
{
width
:
-webkit-calc
(
100%
-
32px
);
width
:
-moz-calc
(
100%
-
32px
);
width
:
calc
(
100%
-
32px
);
margin
:
0
16px
;
height
:
18px
;
color
:
#333333
;
font-size
:
13px
;
font-weight
:
中黑体
;
font-family
:
"苹方-简"
;
line-height
:
18px
;
}
.downBox_custom_hand
{
width
:
-webkit-calc
(
100%
-
32px
);
width
:
-moz-calc
(
100%
-
32px
);
width
:
calc
(
100%
-
32px
);
height
:
44px
;
float
:
left
;
margin-left
:
16px
;
margin-right
:
16px
;
}
.downBox_custom_input
{
width
:
-webkit-calc
(
100%
-
66px
);
width
:
-moz-calc
(
100%
-
66px
);
width
:
calc
(
100%
-
66px
);
border-bottom
:
1px
solid
#e6ebf5
;
display
:
flex
;
float
:
left
;
}
.downBox_custom_unit
{
height
:
44px
;
line-height
:
44px
;
color
:
#000000
;
font-size
:
16px
;
font-weight
:
500
;
font-family
:
"D DIN PRO"
;
float
:
left
;
}
.downBox_custom_but
{
width
:
54px
;
height
:
32px
;
float
:
right
;
line-height
:
32px
;
text-align
:
center
;
border-radius
:
48px
;
background
:
#185efe
;
color
:
#ffffff
;
font-size
:
13px
;
font-weight
:
中黑体
;
font-family
:
"苹方-简"
;
margin
:
6px
0
;
cursor
:
pointer
;
}
.pointBox
{
width
:
4px
;
height
:
4px
;
float
:
left
;
border-radius
:
50%
;
margin-top
:
3px
;
}
.pointBox_active
{
width
:
4px
;
height
:
4px
;
float
:
left
;
border-radius
:
50%
;
}
.point_bg1
{
background
:
#555555
;
}
.point_border1
{
border
:
5px
solid
;
border-color
:
rgba
(
85
,
85
,
85
,
0.1
);
}
.point_bg2
{
background
:
#27cd5a
;
}
.point_border2
{
border
:
5px
solid
;
border-color
:
rgba
(
39
,
205
,
90
,
0.1
);
}
.point_bg3
{
background
:
#F15662
;
}
.point_border3
{
border
:
5px
solid
;
border-color
:
rgba
(
241
,
86
,
98
,
0.1
);
}
.pointBox_title
{
float
:
left
;
font-size
:
13px
;
font-weight
:
常规体
;
font-family
:
"苹方-简"
;
margin-left
:
5px
;
}
.color1
{
color
:
#555555
!important
;
}
.color2
{
color
:
#27CD5A
!important
;
}
.color3
{
color
:
#F15662
!important
;
}
</
style
>
\ No newline at end of file
aus-front/app/src/module/order/BidPage.vue
View file @
16e918a
...
...
@@ -27,8 +27,8 @@
<text
class=
"car-specs"
>
出价时间:
{{
bid
.
createTime
}}
</text>
</view>
<view
class=
"favorite-button"
@
click
.
stop=
"toggleFavorite(bid)"
>
<van-image
v-if=
"bid.auctionVehicle.favorite"
use-error-slot
width=
"26"
fit=
"cover"
height=
"26"
src=
"
/static
/images/auction/favorite.png"
></van-image>
<van-image
v-else
use-error-slot
width=
"26"
fit=
"cover"
height=
"26"
src=
"
/static
/images/auction/un_favorite.png"
></van-image>
<van-image
v-if=
"bid.auctionVehicle.favorite"
use-error-slot
width=
"26"
fit=
"cover"
height=
"26"
src=
"
https://img02.glsx.com.cn/aus
/images/auction/favorite.png"
></van-image>
<van-image
v-else
use-error-slot
width=
"26"
fit=
"cover"
height=
"26"
src=
"
https://img02.glsx.com.cn/aus
/images/auction/un_favorite.png"
></van-image>
</view>
</view>
</
template
>
...
...
aus-front/app/src/pages/tabbar/AuctionPage.vue
View file @
16e918a
...
...
@@ -11,7 +11,7 @@
<uni-search-bar
v-else
v-model=
"searchText"
placeholder=
"搜索车型名称"
radius=
"60"
@
clear=
"onDarkCancel"
@
confirm=
"onDarkSearch"
cancelButton=
"none"
@
cancel=
"onDarkCancel"
bgColor=
"#fff"
class=
"search-bar"
/>
<view
class=
"favorite-icon"
@
click=
"navigateTo('/module/profile/FavoritePage')"
>
<image
src=
"
/static/images/comm
on/favorite.png"
></image>
<image
src=
"
https://img02.glsx.com.cn/aus/images/aucti
on/favorite.png"
></image>
</view>
</view>
<!-- 拍卖类型切换 -->
...
...
@@ -446,7 +446,7 @@ export default class AuctionPage extends PaginationComponent<Auction> {
.auction-left
{
width
:
120px
;
margin-right
:
20
rpx
;
background-image
:
url("
../../static
/images/auction/auction_cover.png")
;
background-image
:
url("
https://img02.glsx.com.cn/aus
/images/auction/auction_cover.png")
;
background-repeat
:
no-repeat
;
background-size
:
100%
;
padding
:
14px
12px
12px
12px
;
...
...
aus-front/app/src/pages/tabbar/ProfilePage.vue
View file @
16e918a
...
...
@@ -95,7 +95,7 @@
</view>
<view
class=
"tool-item"
@
click=
"navigateTo('/module/profile/FavoritePage')"
>
<view
class=
"tool-icon"
>
<image
src=
"
/static/images/profile
/favorite.png"
mode=
"aspectFill"
class=
"tools-image"
/>
<image
src=
"
https://img02.glsx.com.cn/aus/images/auction
/favorite.png"
mode=
"aspectFill"
class=
"tools-image"
/>
</view>
<text
class=
"tool-name"
>
我的收藏
</text>
</view>
...
...
aus-front/app/src/pages/tabbar/home/SmallVehicleItem.vue
View file @
16e918a
...
...
@@ -38,7 +38,7 @@
</view>
<view
class=
"car-price"
>
<image
src=
"
/static
/images/auction/auction-tool.png"
class=
"auction-icon"
mode=
"aspectFit"
></image>
<image
src=
"
https://img02.glsx.com.cn/aus
/images/auction/auction-tool.png"
class=
"auction-icon"
mode=
"aspectFit"
></image>
<text
class=
"price-text"
>
<
template
v-if=
"hasBidPrivilege"
>
{{
$filters
.
formatNumber
(
this
.
vehicle
.
startingBidPrice
/
10000
)
}}
...
...
aus-front/app/src/static/images/auction/auction-tool.png
deleted
100644 → 0
View file @
f95dcca
1.74 KB
aus-front/app/src/static/images/auction/auction_cover.png
deleted
100644 → 0
View file @
f95dcca
15.2 KB
aus-front/app/src/static/images/auction/favorite.png
deleted
100644 → 0
View file @
f95dcca
1.32 KB
aus-front/app/src/static/images/auction/un_favorite.png
deleted
100644 → 0
View file @
f95dcca
1.52 KB
aus-front/lib/src/entity/auction/entity/Auction.ts
View file @
16e918a
...
...
@@ -131,6 +131,7 @@ export class Auction extends AuditingEntity {
resetDelayDuration
:
string
;
resetDelayDurationUnit
:
string
;
extraJson
:
string
;
aucvehDuration
:
string
;
}
/**
...
...
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