|
@@ -216,15 +216,27 @@ function useGiftcard(result) {
|
|
|
let useGiftcard = giftcardUseList[i];
|
|
let useGiftcard = giftcardUseList[i];
|
|
|
tmtbHtml += ' <li> ';
|
|
tmtbHtml += ' <li> ';
|
|
|
tmtbHtml += ' <div> ';
|
|
tmtbHtml += ' <div> ';
|
|
|
- tmtbHtml += ' <span class="tag deepgray">차감</span> ';
|
|
|
|
|
- tmtbHtml += ' <span class="tag_name">상품구매</span> ';
|
|
|
|
|
|
|
+ if (useGiftcard.gfcdAmt<0) {
|
|
|
|
|
+ tmtbHtml += ' <span class="tag deepgray">차감</span> ';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ tmtbHtml += ' <span class="tag primary">적립</span>';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ tmtbHtml += ' <span class="tag_name">'+useGiftcard.occurDtlDesc+'</span> ';
|
|
|
tmtbHtml += ' <span class="txt_content">' + useGiftcard.goodsNm + '</span> ';
|
|
tmtbHtml += ' <span class="txt_content">' + useGiftcard.goodsNm + '</span> ';
|
|
|
tmtbHtml += ' <span class="txt_time">'+useGiftcard.regDt+'</span> ';
|
|
tmtbHtml += ' <span class="txt_time">'+useGiftcard.regDt+'</span> ';
|
|
|
tmtbHtml += ' </div> ';
|
|
tmtbHtml += ' </div> ';
|
|
|
tmtbHtml += ' <div> ';
|
|
tmtbHtml += ' <div> ';
|
|
|
- tmtbHtml += ' <span class="amount_minus"> ';
|
|
|
|
|
- tmtbHtml += ' <em>'+useGiftcard.gfcdAmt.addComma()+'</em>원 ';
|
|
|
|
|
- tmtbHtml += ' </span> ';
|
|
|
|
|
|
|
+ if (useGiftcard.gfcdAmt<0) {
|
|
|
|
|
+ tmtbHtml += ' <span class="amount_minus"> ';
|
|
|
|
|
+ tmtbHtml += ' <em>'+useGiftcard.gfcdAmt.addComma()+'</em>원 ';
|
|
|
|
|
+ tmtbHtml += ' </span> ';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ tmtbHtml += ' <span class="amount_plus"> ';
|
|
|
|
|
+ tmtbHtml += ' <em>'+useGiftcard.gfcdAmt.addComma()+'</em>원 ';
|
|
|
|
|
+ tmtbHtml += ' </span> ';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
tmtbHtml += ' </div> ';
|
|
tmtbHtml += ' </div> ';
|
|
|
tmtbHtml += ' </li> ';
|
|
tmtbHtml += ' </li> ';
|
|
|
}
|
|
}
|