Commit efaa63d7 authored by GuanHua's avatar GuanHua

fix:店铺积分商品列表数据不对的问题

parent ecc45c58
...@@ -49,6 +49,7 @@ const InputNumber: React.FC<InputNumberPropsType> = (props) => { ...@@ -49,6 +49,7 @@ const InputNumber: React.FC<InputNumberPropsType> = (props) => {
const handleChange = (e) => { const handleChange = (e) => {
const { value } = e.target; const { value } = e.target;
const reg = /^\d*([.]?\d{0,3})$/ const reg = /^\d*([.]?\d{0,3})$/
// console.log(reg.test(value), value)
if (reg.test(value)) { if (reg.test(value)) {
onChange(value, 'change') onChange(value, 'change')
} }
...@@ -78,7 +79,7 @@ const InputNumber: React.FC<InputNumberPropsType> = (props) => { ...@@ -78,7 +79,7 @@ const InputNumber: React.FC<InputNumberPropsType> = (props) => {
return ( return (
<div className={styles.input_number}> <div className={styles.input_number}>
<div className={cx(styles.input_number_item, styles.reduce, value <= minCount ? styles.disable : '')} onClick={handleReduce}><MinusOutlined /></div> <div className={cx(styles.input_number_item, styles.reduce, value <= minCount ? styles.disable : '')} onClick={handleReduce}><MinusOutlined /></div>
<input disabled={disabled} maxLength={8} className={styles.input_number_input} value={value} onChange={handleChange} onBlur={handleBlur} /> <input disabled={disabled} maxLength={12} className={styles.input_number_input} value={value} onChange={handleChange} onBlur={handleBlur} />
<div className={cx(styles.input_number_item, styles.add, value >= maxCount ? styles.disable : '')} onClick={handleAdd}><PlusOutlined /></div> <div className={cx(styles.input_number_item, styles.add, value >= maxCount ? styles.disable : '')} onClick={handleAdd}><PlusOutlined /></div>
</div> </div>
) )
......
...@@ -93,6 +93,10 @@ const PointsMall: React.FC<CommodityPropsType> = (props) => { ...@@ -93,6 +93,10 @@ const PointsMall: React.FC<CommodityPropsType> = (props) => {
param.priceType = 3 param.priceType = 3
getFn = PublicApi.postSearchShopChannelGetCommodityList getFn = PublicApi.postSearchShopChannelGetCommodityList
break break
case LAYOUT_TYPE.shop:
param.storeId = shopId
getFn = PublicApi.postSearchShopScoreGetCommodityList
break
default: default:
getFn = PublicApi.postSearchShopScoreGetCommodityList getFn = PublicApi.postSearchShopScoreGetCommodityList
break break
......
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