6.8 修改样式,增加提示

This commit is contained in:
jl-zhoujl2
2022-06-08 09:19:54 +08:00
parent cb764d7bcb
commit 1dc62ba98f
2 changed files with 19 additions and 9 deletions

View File

@ -366,11 +366,15 @@ const AuctionViewAuctions: React.FC = () => {
* 我要参拍
*/
const toParticipate = () => {
setIsModalVisible(true);
form.setFieldsValue({
"organizationName": userData.organizationName,
"biddersCpr": userData.fullName,
});
if (isParticipant()) {//有权限
setIsModalVisible(true);
form.setFieldsValue({
"organizationName": userData.organizationName,
"biddersCpr": userData.fullName,
});
} else {
message.info("您好,您不具有参拍人权限,无法参与竞拍出价,您可联系省分接口人配置参拍权限。");
}
}
//参与竞拍
const handleOk = () => {
@ -458,9 +462,9 @@ const AuctionViewAuctions: React.FC = () => {
{overFlag ? '最终价:' : '当前价:'}<span>{digitalConversionAmount(String(currentPrice), 2)}</span>
</div>
{
(!overFlag && isParticipant()) && (
!overFlag && (
viewStatus === '1' ? (
startFlag && <div className="saleBlock">
startFlag ? (<div className="saleBlock">
<>
<span></span>
<Input type="text" maxLength={15} value={offerAPrice} autoComplete='off'
@ -480,7 +484,11 @@ const AuctionViewAuctions: React.FC = () => {
}}>+{range}</button>
</>
</div>
</div>) : (
<div className="auction-not-started">
<span></span>
</div>
)
) : (
<div style={{ marginBottom: 12 }}>
<Button type='primary' key="participate" onClick={() => toParticipate()}></Button>

View File

@ -45,9 +45,11 @@ ul.small-img-ul li.img.active{ border-color:#b30000; }
.saleBlock{ height: 56px;}
.saleBlock span{ font-size: 24px; font-weight: bold; color: #b30000;}
.saleBlock input[type="text"]{ padding: 2px; width: 200px; height: 28px; border: 1px solid #ddd; border-radius: 2px;}
.saleBlock button{ width: 64px; height: 32px; line-height: 32px; text-align: center; background: #b30000; color: #fff; border-radius: 3px; cursor: pointer;}
.saleBlock button{ width: 64px; height: 32px; line-height: 32px; text-align: center; background: #b30000; color: #fff; border-radius: 3px; cursor: pointer;margin: 0px;padding: 0px;border: 1px solid #fff;}
.otherInform{}
.otherInform span{ display:inline-block; float: left; width: 49%; line-height: 2;}
.contentParts .rightInform{ position: absolute; top: 10px; right: 15px; width: 280px;}
.contentParts .rightInform ul{}
.contentParts .rightInform ul li{ margin: 2px 0 8px; line-height: 1.8; color: #999;}
.auction-not-started{ height: 48px;}
.auction-not-started span{ font-size: 20px; font-weight: bold; color: #b30000;}