Merge branch '20220707-内拍出价校验错误' into 'release_20220708'

7.8 内拍出价校验错误

See merge request eshop/fe_service_ebtp_frontend!170
This commit is contained in:
周建龙
2022-07-08 16:51:43 +08:00
2 changed files with 11 additions and 11 deletions

View File

@ -324,11 +324,11 @@ const AuctionViewAuctions: React.FC = () => {
return; return;
} }
// let differ = (Number(value) - Number(currentPrice)) % range // let differ = (Number(value) - Number(currentPrice)) % range
let differ = (value * 1000 - currentPrice * 1000) % (range * 1000) // let differ = (value * 1000 - currentPrice * 1000) % (range * 1000)
if (differ !== 0) { // if (differ !== 0) {
message.info('请增加加价幅度整数倍的金额!'); // message.info('请增加加价幅度整数倍的金额!');
return; // return;
} // }
//出价 //出价
confirmBidOrNot(tpId, value); confirmBidOrNot(tpId, value);
} }

View File

@ -303,11 +303,11 @@ const AuctionViewAuctions: React.FC = () => {
return; return;
} }
// let differ = (Number(value) - Number(currentPrice)) % range // let differ = (Number(value) - Number(currentPrice)) % range
let differ = (value * 1000 - currentPrice * 1000) % (range * 1000) // let differ = (value * 1000 - currentPrice * 1000) % (range * 1000)
if (differ !== 0) { // if (differ !== 0) {
message.info('请增加加价幅度整数倍的金额!'); // message.info('请增加加价幅度整数倍的金额!');
return; // return;
} // }
//出价 //出价
confirmBidOrNot(tpId, value); confirmBidOrNot(tpId, value);
} }