Commit 24b3d90c authored by Bill's avatar Bill

fix: 修改活动页原价与活动价bug

parent 515b94a7
......@@ -9,7 +9,7 @@ import WebLayout from '../../components/WebDesignPanel/components/WebLayout';
/** 组件注册 */
const originalComponents = { ...LxUI, ...CustomLayouts, WebLayout };
/** 组件schema 注册 */
/** 组件schema 注册, 所有组件在 components/Layouts 下 */
const componentSchemasMap = { ...schema, ...HTML, ...webScheam };
// /**
......
......@@ -14,12 +14,12 @@ const Price: React.FC<Iprops> = (props: Iprops) => {
<div className={styles.price}>
<div className={styles.originalPrice}>
<span className={styles.currency}>{getIntl().formatMessage({ id: 'common.money' })}</span>
<span>{originalPrice || discountPrice}/{unit}</span>
<span>{discountPrice || originalPrice}/{unit}</span>
</div>
{
(originalPrice !== discountPrice || !originalPrice) && (
<div className={styles.discountPrice}>
{getIntl().formatMessage({ id: 'common.money' })}{discountPrice}/{unit}
{getIntl().formatMessage({ id: 'common.money' })}{originalPrice}/{unit}
</div>
) || null
}
......
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