diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index f0656ebd..c18cf274 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -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 } diff --git a/src/components/knockGold/index.less b/src/components/knockGold/index.less index 3f878773..45489f78 100644 --- a/src/components/knockGold/index.less +++ b/src/components/knockGold/index.less @@ -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); diff --git a/src/components/knockGold/mobileCmponent.jsx b/src/components/knockGold/mobileCmponent.jsx index 8abe9277..3db76966 100644 --- a/src/components/knockGold/mobileCmponent.jsx +++ b/src/components/knockGold/mobileCmponent.jsx @@ -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 }) => {

-

+

{data.batch_goods_name ? data.batch_goods_name : 'xxx'}