From 7cc992fa74cca49040617c2e3f5e36a81aee9a27 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 11 Jun 2020 10:52:04 +0900 Subject: [PATCH] =?UTF-8?q?5.4=20=EB=B2=84=EC=A0=84=20=EC=87=BC=ED=95=91?= =?UTF-8?q?=EB=AA=B0=20=EC=8A=A4=ED=82=A8=20=ED=92=88=EC=A0=88=20=ED=91=9C?= =?UTF-8?q?=EC=8B=9C=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/skin/shop/basic/list.10.skin.php | 11 ++++++++++- mobile/skin/shop/basic/list.best.10.skin.php | 12 +++++++++++- mobile/skin/shop/basic/main.10.skin.php | 9 ++++++++- mobile/skin/shop/basic/main.20.skin.php | 9 ++++++++- mobile/skin/shop/basic/main.30.skin.php | 11 ++++++++++- mobile/skin/shop/basic/style.css | 3 +++ skin/shop/basic/main.10.skin.php | 8 ++++++++ skin/shop/basic/style.css | 1 + theme/basic/mobile/skin/shop/basic/list.10.skin.php | 11 ++++++++++- .../mobile/skin/shop/basic/list.best.10.skin.php | 12 +++++++++++- theme/basic/mobile/skin/shop/basic/main.10.skin.php | 9 ++++++++- theme/basic/mobile/skin/shop/basic/main.20.skin.php | 9 ++++++++- theme/basic/mobile/skin/shop/basic/main.30.skin.php | 11 ++++++++++- theme/basic/mobile/skin/shop/basic/style.css | 5 ++++- theme/basic/skin/shop/basic/main.10.skin.php | 8 ++++++++ theme/basic/skin/shop/basic/style.css | 1 + 16 files changed, 119 insertions(+), 11 deletions(-) diff --git a/mobile/skin/shop/basic/list.10.skin.php b/mobile/skin/shop/basic/list.10.skin.php index 990790403..cc21ed1b3 100644 --- a/mobile/skin/shop/basic/list.10.skin.php +++ b/mobile/skin/shop/basic/list.10.skin.php @@ -33,6 +33,7 @@ $item_link_href = shop_item_url($row['it_id']); // 상품링크 $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; //사용자후기 평균별점 + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 if ($i == 0) { if ($this->css) { @@ -59,7 +60,15 @@ } if ($this->href) { - echo "\n"; + echo ""; + + if ($this->view_it_icon) { + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + } + echo "\n"; } // 사용후기 평점표시 diff --git a/mobile/skin/shop/basic/list.best.10.skin.php b/mobile/skin/shop/basic/list.best.10.skin.php index b2eee5cf0..2186148fe 100644 --- a/mobile/skin/shop/basic/list.best.10.skin.php +++ b/mobile/skin/shop/basic/list.best.10.skin.php @@ -13,6 +13,8 @@ $slide_btn = ''; for ($i=0; $row=sql_fetch_array($result); $i++) { + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 + if($i == 0) { echo ''.PHP_EOL; echo '
'.PHP_EOL; @@ -40,7 +42,15 @@ } if ($this->href) { - echo ''.PHP_EOL; + echo ''; + + if ($this->view_it_icon) { + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + } + echo ''.PHP_EOL; } if ($this->view_it_id) { diff --git a/mobile/skin/shop/basic/main.10.skin.php b/mobile/skin/shop/basic/main.10.skin.php index 2c6b1f8bc..4600f2723 100644 --- a/mobile/skin/shop/basic/main.10.skin.php +++ b/mobile/skin/shop/basic/main.10.skin.php @@ -29,6 +29,7 @@ $item_link_href = shop_item_url($row['it_id']); $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 if ($i == 0) { if ($this->css) { @@ -53,7 +54,13 @@ } if ($this->href) { - echo "\n"; + echo ""; + + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + echo "\n"; } // 사용후기 평점표시 diff --git a/mobile/skin/shop/basic/main.20.skin.php b/mobile/skin/shop/basic/main.20.skin.php index 4d00f2c40..772588e63 100644 --- a/mobile/skin/shop/basic/main.20.skin.php +++ b/mobile/skin/shop/basic/main.20.skin.php @@ -30,6 +30,7 @@ $item_link_href = shop_item_url($row['it_id']); $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 if ($i == 0) { if ($this->css) { @@ -56,7 +57,13 @@ } if ($this->href) { - echo "\n"; + echo ""; + + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + echo "\n"; } // 사용후기 평점표시 diff --git a/mobile/skin/shop/basic/main.30.skin.php b/mobile/skin/shop/basic/main.30.skin.php index a20fcf4fa..a52474e5d 100644 --- a/mobile/skin/shop/basic/main.30.skin.php +++ b/mobile/skin/shop/basic/main.30.skin.php @@ -30,6 +30,7 @@ $item_link_href = shop_item_url($row['it_id']); $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 if ($i == 0) { if ($this->css) { @@ -56,7 +57,15 @@ } if ($this->href) { - echo "\n"; + echo ""; + + if ($this->view_it_icon) { + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + } + echo "\n"; } echo "
\n"; diff --git a/mobile/skin/shop/basic/style.css b/mobile/skin/shop/basic/style.css index a5495a4d6..52ab9fd3a 100644 --- a/mobile/skin/shop/basic/style.css +++ b/mobile/skin/shop/basic/style.css @@ -108,6 +108,9 @@ .sct_10 .sct_sns_bg {background:rgba(0,0,0,0.1);width:100%;height:100%} .sct_10 .sct_sns_cls {position:absolute;right:0;top:0;color:#b5b8bb;border:0;padding:12px 15px;font-size:16px;background:#fff;margin:0;height:50px} +.li_wr .sct_img{position:relative} +.shop_icon_soldout {position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);justify-content:center;display:flex;align-items:center;text-align:center;color:#fff;font-size:18px;font-weight:bold;letter-spacing:1px} + .sct_10 .sct_icon {margin:0 0 10px} .li_more {text-align:center} diff --git a/skin/shop/basic/main.10.skin.php b/skin/shop/basic/main.10.skin.php index 2796526da..c0d648eed 100644 --- a/skin/shop/basic/main.10.skin.php +++ b/skin/shop/basic/main.10.skin.php @@ -15,6 +15,7 @@ $item_link_href = shop_item_url($row['it_id']); $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상 if ($i%$this->list_mod == 0) $sct_last = 'sct_last'; // 줄 마지막 @@ -48,6 +49,13 @@ echo "\n"; } + if ($this->view_it_icon) { + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + } + echo "
\n"; if ($this->view_it_id) { diff --git a/skin/shop/basic/style.css b/skin/shop/basic/style.css index 8ecdb4aa0..e4f46ed55 100644 --- a/skin/shop/basic/style.css +++ b/skin/shop/basic/style.css @@ -165,6 +165,7 @@ .shop_icon_5 {background:#ff5081} .shop_icon_soldout {position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;background:#000;background:rgba(0,0,0,0.5);text-align:center;line-height:215px;color:#fff;font-size:18px;font-weight:bold;letter-spacing:1px} +.shop_icon_soldout.h160{line-height:160px} .shop_icon_coupon {background:#d45959} /* 재생/정지/이전/다음 버튼 */ diff --git a/theme/basic/mobile/skin/shop/basic/list.10.skin.php b/theme/basic/mobile/skin/shop/basic/list.10.skin.php index a0ef4afe4..608dca290 100644 --- a/theme/basic/mobile/skin/shop/basic/list.10.skin.php +++ b/theme/basic/mobile/skin/shop/basic/list.10.skin.php @@ -33,6 +33,7 @@ $item_link_href = shop_item_url($row['it_id']); // 상품링크 $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; //사용자후기 평균별점 + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 if ($i == 0) { if ($this->css) { @@ -59,7 +60,15 @@ } if ($this->href) { - echo "\n"; + echo ""; + + if ($this->view_it_icon) { + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + } + echo "\n"; } // 사용후기 평점표시 diff --git a/theme/basic/mobile/skin/shop/basic/list.best.10.skin.php b/theme/basic/mobile/skin/shop/basic/list.best.10.skin.php index b2eee5cf0..2186148fe 100644 --- a/theme/basic/mobile/skin/shop/basic/list.best.10.skin.php +++ b/theme/basic/mobile/skin/shop/basic/list.best.10.skin.php @@ -13,6 +13,8 @@ $slide_btn = ''; for ($i=0; $row=sql_fetch_array($result); $i++) { + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 + if($i == 0) { echo ''.PHP_EOL; echo '
'.PHP_EOL; @@ -40,7 +42,15 @@ } if ($this->href) { - echo ''.PHP_EOL; + echo ''; + + if ($this->view_it_icon) { + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + } + echo ''.PHP_EOL; } if ($this->view_it_id) { diff --git a/theme/basic/mobile/skin/shop/basic/main.10.skin.php b/theme/basic/mobile/skin/shop/basic/main.10.skin.php index 04b7160a7..f003b20cd 100644 --- a/theme/basic/mobile/skin/shop/basic/main.10.skin.php +++ b/theme/basic/mobile/skin/shop/basic/main.10.skin.php @@ -29,6 +29,7 @@ $item_link_href = shop_item_url($row['it_id']); $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 if ($i == 0) { if ($this->css) { @@ -53,7 +54,13 @@ } if ($this->href) { - echo "\n"; + echo ""; + + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + echo "\n"; } // 사용후기 평점표시 diff --git a/theme/basic/mobile/skin/shop/basic/main.20.skin.php b/theme/basic/mobile/skin/shop/basic/main.20.skin.php index 73b031d4c..566f683a8 100644 --- a/theme/basic/mobile/skin/shop/basic/main.20.skin.php +++ b/theme/basic/mobile/skin/shop/basic/main.20.skin.php @@ -30,6 +30,7 @@ $item_link_href = shop_item_url($row['it_id']); $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 if ($i == 0) { if ($this->css) { @@ -56,7 +57,13 @@ } if ($this->href) { - echo "\n"; + echo ""; + + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + echo "\n"; } // 사용후기 평점표시 diff --git a/theme/basic/mobile/skin/shop/basic/main.30.skin.php b/theme/basic/mobile/skin/shop/basic/main.30.skin.php index 44a7eedcb..f58f51a60 100644 --- a/theme/basic/mobile/skin/shop/basic/main.30.skin.php +++ b/theme/basic/mobile/skin/shop/basic/main.30.skin.php @@ -30,6 +30,7 @@ $item_link_href = shop_item_url($row['it_id']); $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 if ($i == 0) { if ($this->css) { @@ -56,7 +57,15 @@ } if ($this->href) { - echo "\n"; + echo ""; + + if ($this->view_it_icon) { + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + } + echo "\n"; } echo "
\n"; diff --git a/theme/basic/mobile/skin/shop/basic/style.css b/theme/basic/mobile/skin/shop/basic/style.css index a5495a4d6..164d339d6 100644 --- a/theme/basic/mobile/skin/shop/basic/style.css +++ b/theme/basic/mobile/skin/shop/basic/style.css @@ -90,7 +90,7 @@ .sct_10 {margin:10px} .sct_10 .sct_li {float:left;text-align:left;padding:5px;margin-bottom:10px} .sct_10 .sct_li .li_wr {position:relative} -.sct_10 .sct_img {margin-bottom:10px;font-size:0} +.sct_10 .sct_img {position:relative;margin-bottom:10px;font-size:0} .sct_10 .sct_img img {width:100%;height:auto} .sct_10 .sct_clear {clear:both} .sct_10 .sct_id {margin:5px 0;font-size:0.92em;color:#666} @@ -108,6 +108,9 @@ .sct_10 .sct_sns_bg {background:rgba(0,0,0,0.1);width:100%;height:100%} .sct_10 .sct_sns_cls {position:absolute;right:0;top:0;color:#b5b8bb;border:0;padding:12px 15px;font-size:16px;background:#fff;margin:0;height:50px} +.li_wr .sct_img{position:relative} +.shop_icon_soldout {position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);justify-content:center;display:flex;align-items:center;text-align:center;color:#fff;font-size:18px;font-weight:bold;letter-spacing:1px} + .sct_10 .sct_icon {margin:0 0 10px} .li_more {text-align:center} diff --git a/theme/basic/skin/shop/basic/main.10.skin.php b/theme/basic/skin/shop/basic/main.10.skin.php index 2796526da..c0d648eed 100644 --- a/theme/basic/skin/shop/basic/main.10.skin.php +++ b/theme/basic/skin/shop/basic/main.10.skin.php @@ -15,6 +15,7 @@ $item_link_href = shop_item_url($row['it_id']); $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상 if ($i%$this->list_mod == 0) $sct_last = 'sct_last'; // 줄 마지막 @@ -48,6 +49,13 @@ echo "\n"; } + if ($this->view_it_icon) { + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } + } + echo "
\n"; if ($this->view_it_id) { diff --git a/theme/basic/skin/shop/basic/style.css b/theme/basic/skin/shop/basic/style.css index 6747a379a..9622b3731 100644 --- a/theme/basic/skin/shop/basic/style.css +++ b/theme/basic/skin/shop/basic/style.css @@ -166,6 +166,7 @@ .shop_icon_5 {background:#ff5081} .shop_icon_soldout {position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;background:#000;background:rgba(0,0,0,0.5);text-align:center;line-height:215px;color:#fff;font-size:18px;font-weight:bold;letter-spacing:1px} +.shop_icon_soldout.h160{line-height:160px} .shop_icon_coupon {background:#d45959} /* 재생/정지/이전/다음 버튼 */