Commit e83456b4 authored by 卢均锐's avatar 卢均锐

fix: [21807] 新增竞价页面,设置竞价规则的点击起拍价的问号,展示的文案有误,正确:初始起拍价,首次报价要低于或等于起拍价

parent dddd0cdf
......@@ -126,10 +126,10 @@ const BidRequirement: React.FC<Iprops> = (props: any) => {
{ required: true, message: intl.formatMessage({ id: 'detail.purchase.message45' }) }, () => ({
async validator(_, value) {
let _exVal = await exRef.current.biddingTime();
if (_exVal[0] && moment(value[1]).isAfter(_exVal[0])) {
if (_exVal?.[0] && value?.[1] && moment(value?.[1]).isAfter(_exVal?.[0])) {
return Promise.reject(new Error(intl.formatMessage({ id: 'detail.purchase.message46' })));
}
if (!value[0] || !value[1]) {
if (!value?.[0] || !value?.[1]) {
return Promise.reject(new Error(intl.formatMessage({ id: 'detail.purchase.message45' })));
} else {
return Promise.resolve();
......
......@@ -116,10 +116,10 @@ const BidRules: React.FC<Iprops> = (props: any) => {
{ required: true, message: intl.formatMessage({ id: 'detail.purchase.message47' }) }, () => ({
async validator(_, value) {
let _exVal = await exRef.current.signUpTime();
if (_exVal[1] && moment(value[0]).isBefore(_exVal[1])) {
if (_exVal?.[1] && value?.[0] && moment(value?.[0]).isBefore(_exVal?.[1])) {
return Promise.reject(new Error(intl.formatMessage({ id: 'detail.purchase.message48' })));
}
if (!value[0] || !value[1]) {
if (!value?.[0] || !value?.[1]) {
return Promise.reject(new Error(intl.formatMessage({ id: 'detail.purchase.message47' })));
} else {
return Promise.resolve();
......@@ -139,7 +139,7 @@ const BidRules: React.FC<Iprops> = (props: any) => {
</Form.Item>
<Form.Item
name='isStartingPrice'
label={<Tooltip placement="right" title={intl.formatMessage({ id: 'ddetail.purchase.tips9' })}>{intl.formatMessage({ id: 'detail.purchase.startingPrice' })}<QuestionCircleOutlined style={{ marginLeft: '5px' }} /></Tooltip>}
label={<Tooltip placement="right" title={intl.formatMessage({ id: 'detail.purchase.tips9' })}>{intl.formatMessage({ id: 'detail.purchase.startingPrice' })}<QuestionCircleOutlined style={{ marginLeft: '5px' }} /></Tooltip>}
>
<Checkbox checked={isStartingPrice} onChange={(e) => { onCheckboxChange(e, setIsStartingPrice, 'startingPrice') }}>{intl.formatMessage({ id: 'detail.purchase.isStartingPrice' })}</Checkbox>
</Form.Item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment