[TQRCode] QRCode length error

This commit is contained in:
고동영
2024-06-12 18:19:00 +09:00
parent 0082b0f1d1
commit 61e891d23d
4 changed files with 13 additions and 9 deletions

View File

@@ -40,6 +40,7 @@ export default function TQRCode({
text: `${text}&entryMenu=${entryMenu}&nowMenu=${encodedNowMenu}&idx=${deviceInfo.dvcIndex}`,
width: scaleW(width),
height: scaleH(height),
correctLevel: window.QRCode.CorrectLevel.L,
});
}
}, [text, deviceInfo]);

View File

@@ -280,11 +280,11 @@ export default function HotelOption({
</div>
<div className={css.qrcodeContainer}>
{/* 호텔 QRCode 데이터만 서버에서 다르게 내려주고있어서 에러남 / 해결되면 주석제거 */}
{/* <TQRCode
<TQRCode
text={hotelInfos[selectedIndex]?.qrcodeUrl}
width="160"
height="160"
/> */}
/>
<div className={css.tooltip}>
<div className={css.tooltipBody}>{tooltipDes}</div>
</div>

View File

@@ -231,12 +231,16 @@ export default function UnableOption({
{/* QR */}
{!TYPE_CASE.case9 && (
<div className={css.qrWrapper}>
<TQRCode
text={productInfo?.qrcodeUrl}
menu={"DetailPage"}
width="252"
height="252"
/>
{productInfo?.qrImgUrl
? productInfo?.qrImgUrl
: productInfo?.qrcodeUrl && (
<TQRCode
text={productInfo?.qrcodeUrl}
width="252"
height="252"
/>
)}
<div className={css.tooltip}>
<div className={css.tooltipBody}>{tooltipDes}</div>
</div>

View File

@@ -210,7 +210,6 @@ export default function IndicatorOptions({
: productInfo?.qrcodeUrl && (
<TQRCode
text={productInfo?.qrcodeUrl}
menu={"DetailPage"}
width="160"
height="160"
/>