parent
307178d1ce
commit
123557e255
|
@ -480,11 +480,12 @@ export default class addKnockGold extends Component {
|
|||
return false
|
||||
}
|
||||
|
||||
const limitBit = /^-?\d+\.?\d{0,2}$/
|
||||
if (
|
||||
!/([1-9]\d*\.?\d*)|(0\.\d*[1-9])/.test(this.state.model.denomination) ||
|
||||
!/([1-9]\d*\.?\d*)|(0\.\d*[1-9])/.test(this.state.model.reduce_amount)
|
||||
!limitBit.test(this.state.model.denomination) ||
|
||||
!limitBit.test(this.state.model.reduce_amount)
|
||||
) {
|
||||
Notify.error('请输入正确的面额金额或立减金额')
|
||||
Notify.error('请输入正确的面额金额或立减金额(保留两位小数)')
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
@ -94,6 +94,12 @@
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.isTitle {
|
||||
color: #cd4236;
|
||||
font-size: 15px !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.coupon-right .validity {
|
||||
width: 280px;
|
||||
transform: scale(0.85);
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* @Author: Wind
|
||||
* @Date: 2022-06-06 14:53:58
|
||||
* @LastEditors: Wind
|
||||
* @LastEditTime: 2022-07-12 10:54:07
|
||||
* @Description:
|
||||
* @FilePath: \frontend\src\components\knockGold\mobileCmponent.jsx
|
||||
*/
|
||||
import { Placeholder } from 'zent'
|
||||
import './index.less'
|
||||
const widths = [24, 100, 100, 100, 80, 24, 100, 100, 100, 80, 100, 100, 100, 80]
|
||||
|
@ -15,7 +23,8 @@ export default ({ data }) => {
|
|||
</p>
|
||||
</div>
|
||||
<div className='coupon-right'>
|
||||
<p className='title'>
|
||||
<p
|
||||
className={data.batch_goods_name.length < 20 ? 'title' : 'isTitle'}>
|
||||
{data.batch_goods_name ? data.batch_goods_name : 'xxx'}
|
||||
</p>
|
||||
<p>
|
||||
|
|
Loading…
Reference in New Issue