Commit 9a4f93eb authored by GuanHua's avatar GuanHua

fix:修改积分商品积分区间的显示

parent f495d88b
......@@ -76,7 +76,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
renderPrice(item)
}
<div className={styles.goods_name}>{item.name}</div>
<div className={styles.count}>已售: {numFormat(item.sold) || 0}</div>
<div className={styles.count}>已售: {numFormat(item.sold) || 0} {item.unitName}</div>
<div className={styles.company_info}>
<div className={styles.goods_name}>{item.memberName}</div>
<div className={styles.credit}>
......@@ -108,7 +108,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
<div className={styles.info_box_content}>
<div className={styles.name}>{item.name}</div>
<div className={styles.price}><span></span>{priceFormat(item.min)}</div>
<div className={styles.count}>已售: {numFormat(item.sold) || 0}</div>
<div className={styles.count}>已售: {numFormat(item.sold) || 0} {item.unitName}</div>
</div>
<ul className={styles.tags_list}>
{
......
......@@ -3,6 +3,7 @@ import cx from 'classnames'
import { Skeleton } from 'antd'
import { LAYOUT_TYPE } from '@/constants'
import { PostSearchShopEnterpriseGetCommodityListResponseDetail } from '@/services/SearchApi'
import { numFormat } from '@/utils/numberFomat'
import styles from './list.less'
interface CommodityListPropsType {
......@@ -41,7 +42,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
</div>
<div className={styles.info_box}>
<div className={styles.goods_price}>
{item.min}~{item.max}积分
{item.min === item.max ? `${numFormat(item.min)}` : `${numFormat(item.min)}~${numFormat(item.max)}`}积分
</div>
<div className={styles.goods_name}>{item.name}</div>
<div className={styles.count}>库存:{item.sold || 0}</div>
......
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