[지라이슈없음] 결제가능상품 QRCode URL 변경(QRCode 스캔 시 ShopTime 앱으로 이동시킬 수 있는 URL로 변경)

This commit is contained in:
고동영
2024-11-19 13:50:44 +09:00
parent 81d761ca94
commit 31d075b2b3
3 changed files with 3 additions and 27 deletions

View File

@@ -7,7 +7,6 @@ import { scaleH, scaleW } from "../../utils/helperMethods";
export default function TQRCode({
ariaLabel,
isBillingProductVisible,
text,
width = "128",
height = "128",
@@ -44,9 +43,7 @@ export default function TQRCode({
}
const qrcode = new window.QRCode(qrcodeRef.current, {
text: isBillingProductVisible
? text
: `${text}&entryMenu=${encodeEntryMenu}&nowMenu=${encodedNowMenu}&idx=${idx}`,
text: `${text}&entryMenu=${encodeEntryMenu}&nowMenu=${encodedNowMenu}&idx=${idx}`,
width: scaleW(width),
height: scaleH(height),
correctLevel: window.QRCode.CorrectLevel.L,

View File

@@ -118,10 +118,6 @@ export default function SingleOption({
couponInfo = partnerCoupon[0];
}
// if (shoptimeCoupon && shoptimeCoupon.length > 0) {
// couponInfo = shoptimeCoupon[0];
// }
const { catCd, catNm, patncNm, patnrId, prdtId, prdtNm, priceInfo } =
productData;
const { cpnSno, cpnTtl } = couponInfo || {};
@@ -132,7 +128,6 @@ export default function SingleOption({
"";
return {
// cartTpSno: `${userId}_${prdtId}`,
cpnSno: String(cpnSno) ?? "",
cpnTtl: cpnTtl ?? "",
dcAftrPrc: priceInfo.split("|")[1],
@@ -149,23 +144,13 @@ export default function SingleOption({
}
return {};
}, [
partnerCoupon,
productData,
productOptionInfos,
quantity,
// shoptimeCoupon,
]);
}, [partnerCoupon, productData, productOptionInfos, quantity]);
useEffect(() => {
const newPromotions = [];
if (partnerCoupon && partnerCoupon.length > 0) {
newPromotions.push($L("SPECIAL PROMOTION"));
}
// if (shoptimeCoupon && shoptimeCoupon.length > 0) {
// newPromotions.push($L("SHOPTIME PROMOTION"));
// }
setPromotions(newPromotions);
}, [partnerCoupon]);
@@ -558,7 +543,6 @@ export default function SingleOption({
cpnAplyEndDtt,
shptmDcTpCd,
currSign,
duplDwldYn,
downloadYn,
cpnSno,
dcAmt,

View File

@@ -275,12 +275,7 @@ export default function IndicatorOptions({
{productInfo?.qrImgUrl ? (
productInfo?.qrImgUrl
) : (
<TQRCode
text={qrCodeUrl}
isBillingProductVisible={isBillingProductVisible}
width="160"
height="160"
/>
<TQRCode text={qrCodeUrl} width="160" height="160" />
)}
<div className={css.tooltip}>
<div className={css.tooltipBody}>{tooltipDes}</div>