프로모션 뱃지 할인금액으로 수정
This commit is contained in:
@@ -212,7 +212,6 @@ export const postLog = (params, url) => (dispatch, getState) => {
|
||||
*/
|
||||
export const sendLogDeepLinkFlag = (params) => (dispatch, getState) => {
|
||||
const { deeplinkId, flag } = params;
|
||||
|
||||
dispatch(postLog({ deeplinkId, flag }, URLS.LOG_DEEPLINK));
|
||||
};
|
||||
|
||||
|
||||
@@ -339,6 +339,7 @@ function Indicator({
|
||||
<img src={playImg} alt="Play" />
|
||||
</h3>
|
||||
)}
|
||||
|
||||
{promotionPrcie?.promotionCode &&
|
||||
(!productInfo.prdtMediaUrl || autoPlaying) && (
|
||||
<div className={css.promotionImage}>
|
||||
@@ -346,7 +347,22 @@ function Indicator({
|
||||
<p className={css.badgeTitle}>{$L("Promo Code")}</p>
|
||||
<p className={css.badgeDate}>{promotionPrcie?.promotionDate}</p>
|
||||
<h5>
|
||||
{promotionPrcie?.discountRate} <br /> <span>{$L("OFF")}</span>
|
||||
{(() => {
|
||||
const originalPrice = parseFloat(
|
||||
promotionPrcie?.originalPrice?.replace(
|
||||
/[^0-9.-]+/g,
|
||||
""
|
||||
) || 0
|
||||
);
|
||||
const discountedPrice = parseFloat(
|
||||
promotionPrcie?.discountedPrice?.replace(
|
||||
/[^0-9.-]+/g,
|
||||
""
|
||||
) || 0
|
||||
);
|
||||
const priceDifference = originalPrice - discountedPrice;
|
||||
return `$${priceDifference}`;
|
||||
})()}
|
||||
</h5>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -91,6 +91,7 @@ import WelcomeEventPanel from "../WelcomeEventPanel/WelcomeEventPanel";
|
||||
import OptionalTermsConfirm from "../../components/Optional/OptionalTermsConfirm";
|
||||
import OptionalTermsConfirmBottom from "../../components/Optional/OptionalTermsConfirmBottom";
|
||||
import css from "./MainView.module.less";
|
||||
import { use } from "react";
|
||||
|
||||
const preloadImages = [
|
||||
LoadingPreloadImage,
|
||||
@@ -380,7 +381,6 @@ export default function MainView({ className, initService }) {
|
||||
[dispatch]
|
||||
);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
document.addEventListener("cursorStateChange", cursorStateChange, false);
|
||||
if (platform.platformName !== "webos") {
|
||||
@@ -672,8 +672,10 @@ export default function MainView({ className, initService }) {
|
||||
}
|
||||
}, [dispatch, popupData, activePopup, topPanel?.name]);
|
||||
|
||||
|
||||
|
||||
// 딥링크 확인 테스트
|
||||
// const contentTarget = useSelector(
|
||||
// (state) => state.common.deepLinkInfo.contentTarget
|
||||
// );
|
||||
return (
|
||||
<div
|
||||
className={classNames(css.mainViewWrap, className)}
|
||||
@@ -690,11 +692,7 @@ export default function MainView({ className, initService }) {
|
||||
errorCode !== 602 &&
|
||||
errorCode !== 603 &&
|
||||
loadingComplete && (
|
||||
<div
|
||||
className={classNames(
|
||||
css.container
|
||||
)}
|
||||
>
|
||||
<div className={classNames(css.container)}>
|
||||
<div className={classNames(css.mainlayout)}>{renderTopPanel()}</div>
|
||||
<TabLayout
|
||||
topPanelName={topPanelName}
|
||||
@@ -830,6 +828,21 @@ export default function MainView({ className, initService }) {
|
||||
onClick={handleAgree}
|
||||
/>
|
||||
)} */}
|
||||
{/* /딥링크 테스트 */}
|
||||
{/* <div
|
||||
style={{
|
||||
position: "fixed",
|
||||
left: "0",
|
||||
bottom: "0",
|
||||
color: "#fff",
|
||||
fontSize: "13px",
|
||||
opacity: ".5",
|
||||
zIndex: "999",
|
||||
}}
|
||||
>
|
||||
deepLinkInfo
|
||||
<p>{contentTarget}</p>
|
||||
</div> */}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user