商品編號:P0089900257702 原始貨號:NITECORE LR40
分享

【NITECORE】LR40 復古氣氛露營燈 100流明 USB-C充電 營地燈

顏色:
  • 靜白
  • 暗綠
商品規格:
  • 原廠2年保固
數量
$ 779 $ 880
  • 原價 : $ 880

+

以優惠價格加購商品

付款方式:
線上刷卡 / 超商取貨付款 / LINE Pay
運送方式:
宅配 / 7-11超商-純取貨-(店到店) / 7-11超商-取貨付款-(店到店) / 香港Circle K便利店取貨 / 全家超商-純取貨-(店到店) / 全家超商-取貨付款

商品影片

商品規格

▄ 錸特光電 ▄ 專業代理 ▄ 品牌手電筒 ▄ 頭燈
↗錸特專業↗協助您↗視覺探索↗更高層次↗
         
✅ 展 售 中 心 __ 實 體 店 面 __ 好 停 車
✅捷運永寧站 2號出口 600公尺   (板南線)
✅土城交流道 2分鐘車程           (國道3號)

【NITECORE台灣總代理㊣ 錸特光電】
    #公司貨    #原廠保固   #安心售後


  1【錸特光電】NITECORE LR40 復古氣氛露營燈 360度照明 100流明 白光 紅光 USB-C充電 Multifunctional USB-C Rechargeable Camping Latern


 NITECORE 奈特科爾 營地燈 系列 新成員—— LR40 正式發佈 


潮流復古般的造型,賦予LR40多樣的使用場景,
既能用作營地燈,也可當成輔助照明燈、氛圍燈或個性裝飾燈使用。

LR40支持三光源360度全向照明與最高100流明亮度輸出,
除自然白光外,另設暖光檔位,仿鎢絲光效,戶外露營使用增添氛圍感。

在緊急情況下,還可開啟SOS紅光輸出,以提醒救援人員。
按鍵部分,LR40設有旋轉按鈕,集成開關與無極調光功能,亮度隨心而定。

續航上LR40內置4000mAh鋰電池,續航時間可達65小時,
配備有USB-C輸入與USB-A輸出接口,能為其他設備臨時補電,隨時充當應急行動電源使用。

LR40可立可提可掛,自帶凸型掛鉤,掛時更穩定,外殼為ABS材料製造,耐磨、抗衝擊抗,
燈體外設有金屬保護架,高硬度貼心防護。



【錸特光電】NITECORE LR40 復古氣氛露營燈 360度照明 100流明 白光 紅光 USB-C充電 Multifunctional USB-C Rechargeable Camping Latern (1)-down


 NITECORE LR40 


最大輸出 100流明
續航時間 65 h
特殊模式 SOS
色溫類型 白光, 暖光, 暖白光

產品尺寸 117mm × 96mm × 96mm
產品重量 222 g / 7.83 oz

產品特點 三光源輸出
應用場景 戶外/露營


【錸特光電】NITECORE LR40 復古氣氛露營燈 360度照明 100流明 白光 紅光 USB-C充電 LED營地燈 氣氛燈
  錸特光電 台灣總代理 OLIGHT NITECORE ACEBEAM KLARUS-down

揪!人來買

推薦親友來血拚 成功購買雙方皆可賺回饋金!
※ 詳細回饋金計畫與查詢請點我了解
'); p_desc_4.push(''); p_desc_5.push(''); p_desc_23.push('
'); p_exp_date.push(""); p_trace_class.push(""); /*付款方式*/ str_payment=""; str_payment += " 線上刷卡 "; str_payment += "/"; str_payment += " 超商取貨付款 "; str_payment += "/"; str_payment += " LINE Pay "; arr_payment.push(str_payment); /*運送方式*/ str_dvr=""; str_dvr += " 宅配 "; str_dvr += "/"; str_dvr += " 7-11超商-純取貨-(店到店) "; str_dvr += "/"; str_dvr += " 7-11超商-取貨付款-(店到店) "; str_dvr += "/"; str_dvr += " 香港Circle K便利店取貨 "; str_dvr += "/"; str_dvr += " 全家超商-純取貨-(店到店) "; str_dvr += "/"; str_dvr += " 全家超商-取貨付款 "; arr_dvr.push(str_dvr); arr_freeCariInfo.push(""); /*單品免運 字樣*/ m_arrAllProduct['P0089900257703'] = []; m_arrAllProduct['P0089900257703']['prod_uid'] = '257703'; m_arrAllProduct['P0089900257703']['cart_mode'] = '2'; m_arrAllProduct['P0089900257703']['prod_marketing'] = '1'; m_arrAllProduct['P0089900257703']['p_limit_sale'] = '0'; m_arrAllProduct['P0089900257703']['arrWebsiteMarketing'] = []; m_arrAllProduct['P0089900257703']['arrDsctRangeSetting'] = []; m_arrAllProduct['P0089900257703']['prod_limit_buy'] = '0'; m_arrAllProduct['P0089900257703']['prod_limit_buy_alltime'] = '0'; m_arrAllProduct['P0089900257703']['original_price'] = '$ 880'; m_arrAllProduct['P0089900257703']['arrDsctRangeSetting']['methods'] = [] m_arrAllProduct['P0089900257703']['arrDsctRangeSetting']['best_methods'] = []; m_arrAllProduct['P0089900257703']['p_wmkt_count'] = m_arrAllProduct['P0089900257703']['arrWebsiteMarketing'].length; m_arrAllProduct['P0089900257703']['prod_marketing_ticket_switch'] = '1'; m_arrAllProduct['P0089900257703']['prod_bonus_maxpct'] = '-1'; m_arrAllProduct['P0089900257703']['prod_emoney_switch'] = '1'; m_arrAllProduct['P0089900257703']['cartDesc'] = '加入購物車'; m_arrAllProduct['P0089900257703']['is_nostock_notify'] = ''; m_arrAllProduct['P0089900257703']['pdl_aMKT_cnt'] = '0'; m_arrAllProduct['P0089900257703']['sell_qty'] = '48'; m_arrAllProduct['P0089900257703']['scar_count'] = '48'; m_arrAllProduct['P0089900257703']['prod_sales_count_self_input'] = '0'; m_arrAllProduct['P0089900257703']['prod_sales_count'] = '1'; m_arrAllProduct['P0089900257703']['prod_stock'] = '48'; m_arrAllProduct['P0089900257703']['prod_safety_stock'] = '0'; m_arrAllProduct['P0089900257703']['product_pre_order'] = ''; /*是否為預購商品*/ m_arrAllProduct['P0089900257703']['pre_order_desc'] = ''; /*預購說明*/ m_arrAllProduct['P0089900257703']['pre_order_term'] = ''; /*預購條款*/ m_arrAllProduct['P0089900257703']['pre_order_sell_qty'] = ''; /*可預購數量*/ m_arrAllProduct['P0089900257703']['p_is_pre_order'] = 0; /*不顯示預購icon*/ /*免運活動*/ m_arrAllProduct['P0089900257703']['free_evt'] = []; p_no.push("P0089900257703"); p_uid.push("257703"); p_sticker_price.push(parseInt("880")); p_selling_price.push(parseInt("779")); p_name.push("【NITECORE】LR40 復古氣氛露營燈 100流明 USB-C充電 營地燈"); p_name_lang.push(""); p_sell_qty.push(parseInt("48")); p_stock.push(parseInt("48")); p_safety_stock.push(parseInt("0")); p_desc_1.push(''); p_desc_2.push(''); p_desc_3.push('▄ 錸特光電 ▄ 專業代理 ▄ 品牌手電筒 ▄ 頭燈
↗錸特專業↗協助您↗視覺探索↗更高層次↗
         
✅ 展 售 中 心 __ 實 體 店 面 __ 好 停 車
✅捷運永寧站 2號出口 600公尺   (板南線)
✅土城交流道 2分鐘車程           (國道3號)

【NITECORE台灣總代理㊣ 錸特光電】
    #公司貨    #原廠保固   #安心售後


  \"1【錸特光電】NITECORE


 NITECORE 奈特科爾 營地燈 系列 新成員—— LR40 正式發佈 


潮流復古般的造型,賦予LR40多樣的使用場景,
既能用作營地燈,也可當成輔助照明燈、氛圍燈或個性裝飾燈使用。

LR40支持三光源360度全向照明與最高100流明亮度輸出,
除自然白光外,另設暖光檔位,仿鎢絲光效,戶外露營使用增添氛圍感。

在緊急情況下,還可開啟SOS紅光輸出,以提醒救援人員。
按鍵部分,LR40設有旋轉按鈕,集成開關與無極調光功能,亮度隨心而定。

續航上LR40內置4000mAh鋰電池,續航時間可達65小時,
配備有USB-C輸入與USB-A輸出接口,能為其他設備臨時補電,隨時充當應急行動電源使用。

LR40可立可提可掛,自帶凸型掛鉤,掛時更穩定,外殼為ABS材料製造,耐磨、抗衝擊抗,
燈體外設有金屬保護架,高硬度貼心防護。



\"【錸特光電】NITECORE


 NITECORE LR40 


最大輸出 100流明
續航時間 65 h
特殊模式 SOS
色溫類型 白光, 暖光, 暖白光

產品尺寸 117mm × 96mm × 96mm
產品重量 222 g / 7.83 oz

產品特點 三光源輸出
應用場景 戶外/露營


\"【錸特光電】NITECORE
 \"錸特光電'); p_desc_4.push(''); p_desc_5.push(''); p_desc_23.push('
'); p_exp_date.push(""); p_trace_class.push(""); /*付款方式*/ str_payment=""; str_payment += " 線上刷卡 "; str_payment += "/"; str_payment += " 超商取貨付款 "; str_payment += "/"; str_payment += " LINE Pay "; arr_payment.push(str_payment); /*運送方式*/ str_dvr=""; str_dvr += " 宅配 "; str_dvr += "/"; str_dvr += " 7-11超商-純取貨-(店到店) "; str_dvr += "/"; str_dvr += " 7-11超商-取貨付款-(店到店) "; str_dvr += "/"; str_dvr += " 香港Circle K便利店取貨 "; str_dvr += "/"; str_dvr += " 全家超商-純取貨-(店到店) "; str_dvr += "/"; str_dvr += " 全家超商-取貨付款 "; arr_dvr.push(str_dvr); arr_freeCariInfo.push(""); /*單品免運 字樣*/ if( check_obj > 0 && track_obj >0 )alert("追蹤清單新增成功");/*追蹤清單新增成功*/ if( check_obj > 0 && notify_obj >0 )alert("貨到通知新增成功");/*貨到通知新增成功*/ var index_pno = p_no.indexOf(prod_no); $(document).ready(function(){ /*掛載元件 550 商品問與答*/ if ($('#it550').length) { $("#prod_q_and_a").html($('#it550').show()); var desc_count = 0; if(m_arrAllProduct[prod_no].p_is_pre_order == 1) desc_count ++; /*預購說明*/ if(p_desc_3[index_pno]) desc_count ++; if(p_desc_4[index_pno]) desc_count ++; if(p_desc_5[index_pno]) desc_count ++; if($("#qa_list_count").val() == 0 && desc_count == 0){ $(".qa_title").hide(); }else{ $(".qa_title").show(); } } /*商品圖切換&放大*/ scrollpic(prod_uid); scrollpicBottom(prod_uid); magnifierScroll(prod_uid); setStyle_dsct_range(prod_no); $(".jqzoom").imagezoom(); $(".pd_dt_joo4_itembox .imgbox a.img_hover .change_img").hide(); $(".pd_dt_joo4_itembox .imgbox a.img_hover").hover(function(){ $(this).find(".now_img").hide(); $(this).find(".change_img").show(); },function(){ $(this).find(".now_img").show(); $(this).find(".change_img").hide(); }); $("a[rel=group]").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none', 'titlePosition' : 'over' }); // if($(".Lightbox_thumblist>li").indexOf(".nowPic")==0){ // $(".Lightbox .small_product_btnT").css("opacity":"0.3") // } $(".no_discountbox").hide(); if( m_arrAllProduct[prod_no]['prod_marketing_ticket_switch'] == '0' || m_arrAllProduct[prod_no]['prod_bonus_maxpct'] == '0' || m_arrAllProduct[prod_no]['prod_emoney_switch'] == '0'){ $(".no_discountbox").show(); } /*貨到通知*/ $('#notify').click(function() { /*check*/ if( check_obj > 0 ){ $.ajax({ url: "api/api.product_notify.php", type: "POST", dataType: "json", data: {uid : prod_uid,myAct:"add",prod_no:prod_no,mem_uid:check_obj}, success: function(Jdata){ if( Jdata.error == 'C00' ){ alert("貨到通知新增成功");/*貨到通知新增成功*/ }else{ /* 頁面過期,請重新整理! */ alert( '頁面過期,請重新整理! ( ' + Jdata.error + ' )' ); } } }); }else{ $.ajax({ url: "api/api.product_notify.php", type: "POST", dataType: "json", data: {myAct:"check"}, success: function(Jdata){ if( Jdata.error == 'C00' ){ alert("請先登入會員!");/*請先登入會員*/ window.location.href = login_url; } } }); } }); if(typeof(google_adwords) == 'function'){ var prodNo = 'P0089900257702'; var prodAmt = '779'; google_adwords(prodNo, prodAmt); } if(typeof(criteo_viewItem) == 'function'){ var prodNo = 'P0089900257702'; criteo_viewItem(prodNo); } /* */ $('.theme-login').click(function(){ $('.theme-popover-mask').fadeIn(100); $('.theme-popover').slideDown(0); }); $('.joo_BeeDelete .close').click(function(){ $('.theme-popover-mask').fadeOut(100); $('.theme-popover').slideUp(0); }); $('.joo_Rec_shareurl').click(function(){ $(this).select(); }); /* */ $('.theme-login_rec').click(function(){ $('.theme-popover-mask').fadeIn(100); $('.theme-popover_rec').slideDown(0); }); $('.joo_RecDelete .close').click(function(){ $('.theme-popover-mask').fadeOut(100); $('.theme-popover_rec').slideUp(0); }); $('.discountboxinner > li').hide() $('.discountbox').each(function(k,v){ let prod_no = $(v).attr('prod_no') if($(v).find('.discountboxinner > li').length <= 5) { $('div[prod_no="'+ prod_no +'"] .discountbox_togglebtn').hide(); $('div[prod_no="'+ prod_no +'"] .discountboxinner > li:lt(5)').show(); }else{ $('div[prod_no="'+ prod_no +'"] .discountbox_togglebtn').show(); $('div[prod_no="'+ prod_no +'"] .discountboxinner > li:lt(5)').show(); } }) $('.discountbox_togglebtn').click(function() { $(this).toggleClass('discountbox_open'); $(this).children('span').text($(this).children('span').text() == 'more' ? 'close' : 'more'); if($(this).hasClass('discountbox_open')) { $('div[prod_no="'+ prod_no +'"] .discountboxinner > li').hide(); $('div[prod_no="'+ prod_no +'"] .discountboxinner > li').show(); }else { $('div[prod_no="'+ prod_no +'"] .discountboxinner > li').hide(); $('div[prod_no="'+ prod_no +'"] .discountboxinner > li:lt(5)').show(); } }); if(p_name.length == 1){ setProdStyle(p_no[0]); } }); $('.colorbox_li, .size, .cust_spec').click(function(){ prod_no = $(this).attr('prod_no'); setProdStyle(prod_no); var seleted_color_name = typeof $(this).attr('color_name') != 'undefined' ? $(this).attr('color_name') : $(`.specBox li[prod_no="${prod_no}"]`).parent().attr('color_name'); var seleted_size_name = $(`.specBox li[prod_no="${prod_no}"]`).parent().attr('size_name'); setProductSpecactive($(this)); if (typeof seleted_color_name != 'undefined' && typeof seleted_size_name != 'undefined') { setChildProdSize(seleted_color_name, seleted_size_name); } else if (typeof seleted_color_name != 'undefined') { setChildProdSize(seleted_color_name); } /*贈品效果*/ $('.Product_gift').css('display','none'); $('#Product_gift_'+prod_no).css('display','block'); /*加購效果*/ $('.Product_addbox_main').css('display','none'); $('.Product_addbox_main .add_checkbox_input').attr('name','none'); $('#Product_addbox_'+prod_no).css('display','block'); $('#Product_addbox_'+prod_no+' .add_checkbox_input').attr('name','pmkt_uid_2[]'); /*商品數量效果*/ $('.Product_number .main_product_number').attr('name','none'); $('.Product_number').css('display','none'); $('#Product_color_'+prod_no).css('display','block'); $('#Product_color_'+prod_no+' .main_product_number').attr('name','scar_count[]'); /*要加入購物車的商品編號*/ $('#goshopping_product').attr('value',prod_no); /*數量顯示class*/ setCanHover(prod_no); }); $(".num").click(function(){ $(this).children(".main_pd_dt_joo4_product_number").focus(); $(this).children(".main_pd_dt_joo4_product_number").select(); }); $(".main_pd_dt_joo4_product_number").keydown(function(event){ if ((event.keyCode < 48 || event.keyCode > 57) && event.keyCode != 8 && event.keyCode != 46) { return false; } }); $(".main_pd_dt_joo4_product_number").change(function(){ if (parseInt($(this).attr('sell_qty')) == 0) { $(this).val('-'); } else if (parseInt($(this).val()) > parseInt($(this).attr('sell_qty'))) { alert('超過可購買的最大數量,已自動調整為最大可購買數量'); $(this).val($(this).attr('sell_qty')); } else if ($(this).val() == '' || parseInt($(this).val()) <= 0) { alert('最低購買數量為1'); $(this).val(1); } else { $(this).val(parseInt($(this).val())); } setCanHover(); }); function clickAdd(_p_uid, _p_num='') { NumInput = $("#Product_color_"+prod_no).find(".main_pd_dt_joo4_product_number"); if(_p_num != ''){ NumInput.val(_p_num); } if (parseInt(NumInput.attr('sell_qty')) != 0 && (parseInt(NumInput.val()) < parseInt(NumInput.attr('sell_qty')))) { NumInput.val(parseInt(NumInput.val()) + 1); } else { alert('超過可購買的最大數量,已自動調整為最大可購買數量'); NumInput.val(NumInput.attr('sell_qty')); } $("#dsct_addcart_num_" + _p_uid).val(NumInput.val()) setSellingPrice_dsct_fancybox(_p_uid, NumInput.val()); setSellingPrice(_p_uid,NumInput.val()); setCanHover(prod_no); } function clickMinus(_p_uid, _p_num='') { NumInput = $("#Product_color_"+prod_no).find(".main_pd_dt_joo4_product_number"); if(_p_num != ''){ NumInput.val(_p_num); } if (parseInt(NumInput.attr('sell_qty')) != 0 && parseInt(NumInput.val()) > 1) { NumInput.val(parseInt(NumInput.val()) - 1); } else{ alert('最低購買數量為1'); NumInput.val(1); } $("#dsct_addcart_num_" + _p_uid).val(NumInput.val()) setSellingPrice_dsct_fancybox(_p_uid, NumInput.val()); setSellingPrice(_p_uid, NumInput.val()); setCanHover(prod_no); } function setCanHover(prod_no) { NumInput = $("#Product_color_"+prod_no).find(".main_pd_dt_joo4_product_number"); li_add = $("#Product_color_"+prod_no).find(".add"); li_minus = $("#Product_color_"+prod_no).find(".minus"); if (parseInt(NumInput.attr('sell_qty')) <= 1) { li_add.removeClass('can_hover'); li_minus.removeClass('can_hover'); } else if (parseInt(NumInput.val()) >= parseInt(NumInput.attr('sell_qty'))) { li_add.removeClass('can_hover'); li_minus.addClass('can_hover'); } else if (parseInt(NumInput.val()) <= 1) { li_minus.removeClass('can_hover'); li_add.addClass('can_hover'); } else { li_add.addClass('can_hover'); li_minus.addClass('can_hover'); } } setCanHover(); function isPositiveInteger(obj) { /*判斷是否為正整數*/ return typeof obj === 'number' && obj%1 === 0 && obj > 0; } function setProductSpecactive(element){ $(element).addClass("active").siblings().removeClass("active"); } function setChildProdSize(color_name, size_name) { var $color_ul = $('ul[color_name="'+color_name+'"]'); if ($color_ul.length > 0) { $('ul[color_name]').hide(); if (typeof size_name === 'undefined') { $color_ul.show(); } else { $color_ul.each(function(){ if ($(this).find('.cust_spec') && $(this).attr('size_name') == size_name) { $(this).show(); // 顯示對應的 sizeBox $('.sizeBox[color_name="'+color_name+'"]').show(); } }); } setProductSpecactive($('li[value="'+prod_no+'"]')); } } function setProd(){ prod_uid = m_arrAllProduct[prod_no]['prod_uid']; temp_login_url = login_url.split('prod_no%3D'); login_url = temp_login_url[0] + 'prod_no%3D' + prod_no; } function setMktLightBox(pno, p_wmkt_count, cart_mode, p_limit_slae) { var html_str = "
此商品適用下列優惠,請點選連結至活動頁選購
"; for (var i = 0; i < p_wmkt_count; i++) { var wmkt_title = m_arrAllProduct[pno]['arrWebsiteMarketing'][i]['wmkt_title']; var wmkt_url = m_arrAllProduct[pno]['arrWebsiteMarketing'][i]['wmkt_url']; html_str += "

"+wmkt_title+"

前往活動頁
"; } $(".addcar_box").html(html_str); if (cart_mode == 2 && p_limit_slae != 1) { $("#box_button").attr("href", "javascript:void(0);").attr("onclick", "javascript:closeLightBox();").html('不需優惠,直接加入購物車').show(); } else if (cart_mode == 1 && p_limit_slae != 1) { $("#box_button").attr("href", "javascript:void(0);").attr("onclick", "buy_now('" + pno + "')").html('不需優惠,直接購買').show(); } else { $("#box_button").hide(); } } function deside_cart_mode(pno , first = false) { var prod_marketing = m_arrAllProduct[pno]['prod_marketing']; var p_wmkt_count = parseInt(m_arrAllProduct[pno]['p_wmkt_count']); /*參與活動數*/ var p_limit_slae = m_arrAllProduct[pno]['p_limit_sale']; /*是否可單獨銷售*/ var p_sell_qty = m_arrAllProduct[pno]['sell_qty']; var prod_dsct_range_setting_count = m_arrAllProduct[pno]['arrDsctRangeSetting']['methods'].length; var cartDesc = m_arrAllProduct[pno]['cartDesc']; var is_nostock_notify = m_arrAllProduct[pno]['is_nostock_notify']; if (p_limit_slae == 1 && p_wmkt_count == 0) { $('div.Product_btnbox a.shop').hide(); $('div.Product_btnbox a.buy').hide(); $('div.Product_btnbox a.rfq').hide(); if(is_nostock_notify){ $('div.Product_btnbox a.notify').show(); $('div.Product_btnbox a.go_marketing').hide(); }else{ $('div.Product_btnbox a.notify').hide(); if(p_wmkt_count > 0){ $('div.Product_btnbox a.go_marketing').attr("href", "#CAR1").attr("onclick", "").text(cartDesc).show(); $('div.marketing_close').html(""); setMktLightBox(pno, p_wmkt_count); }else{ $('div.Product_btnbox a.go_marketing').text(cartDesc).show(); } } } else if(p_sell_qty <= 0){ $('div.Product_btnbox a.shop').hide(); $('div.Product_btnbox a.buy').hide(); $('div.Product_btnbox a.rfq').hide(); if(is_nostock_notify){ $('div.Product_btnbox a.notify').show(); $('div.Product_btnbox a.go_marketing').hide(); }else{ $('div.Product_btnbox a.notify').hide(); if(p_wmkt_count > 0){ $('div.Product_btnbox a.go_marketing').attr("href", "#CAR1").attr("onclick", "").text(cartDesc).show(); $('div.marketing_close').html(""); setMktLightBox(pno, p_wmkt_count); }else{ $('div.Product_btnbox a.go_marketing').text(cartDesc).show(); } } } else if (prod_marketing == 1) { var cart_mode = m_arrAllProduct[pno]['cart_mode']; if (p_limit_slae == 1 && p_wmkt_count > 0) { $('div.Product_btnbox a.shop').hide(); $('div.Product_btnbox a.buy').hide(); $('div.Product_btnbox a.notify').hide(); if(!first)$('div.Product_btnbox a.go_marketing').text(cartDesc).show(); $('div.Product_btnbox a.rfq').hide(); if (p_wmkt_count == 1) { $('.go_marketing').attr("href", m_arrAllProduct[pno]['arrWebsiteMarketing'][0]['wmkt_url']); } else { $('.go_marketing').attr("href", "#CAR1"); setMktLightBox(pno, p_wmkt_count, cart_mode, p_limit_slae); } } else { if (cart_mode==2) { $('div.Product_btnbox a.shop').text(cartDesc).show(); $('div.Product_btnbox a.buy').hide(); $('div.Product_btnbox a.notify').hide(); $('div.Product_btnbox a.go_marketing').hide(); $('div.Product_btnbox a.rfq').hide(); $('#shopping_form').attr("action","index.php?action=shopping_cart&web_cart_myAct=SHOPPING_CART"); if(prod_dsct_range_setting_count){ //測試顯示商品級距的lightbox $("#add_cart").attr("href", "#fancybox_Product_range_"+pno).attr("onclick", "javascript:return false;");; }else{ if (p_wmkt_count > 0) { $("#add_cart").attr("href", "#CAR1").attr("onclick", ""); setMktLightBox(pno, p_wmkt_count, cart_mode); }else{ $("#add_cart").attr("href", "javascript:void(0);").attr("onclick", "javascript:goCartMain();"); } } //正常程序加入購物車 // else } else if (cart_mode==1) { $('div.Product_btnbox a.shop').hide(); $('div.Product_btnbox a.buy').text(cartDesc).show(); $('div.Product_btnbox a.notify').hide(); $('div.Product_btnbox a.go_marketing').hide(); $('div.Product_btnbox a.rfq').hide(); $('#shopping_form').attr("action","index.php?action=shopping_cart&web_cart_myAct=CHECK_OUT"); if (p_wmkt_count > 0) { $("#buy_now").attr("href", "#CAR1").attr("onclick", ""); setMktLightBox(pno, p_wmkt_count, cart_mode); } else { $("#buy_now").attr("href", "javascript:void(0);").attr("onclick", "buy_now('" + pno + "')"); } }else{ $('div.Product_btnbox a.shop').hide(); $('div.Product_btnbox a.buy').hide(); $('div.Product_btnbox a.notify').hide(); if(!first)$('div.Product_btnbox a.rfq').text(cartDesc).show(); $('div.Product_btnbox a.go_marketing').hide(); $('#shopping_form').attr("action","index.php?action=shopping_cart_rfq"); } } } else { $('div.Product_btnbox a.shop').hide(); $('div.Product_btnbox a.buy').hide(); $('div.Product_btnbox a.rfq').hide(); if(is_nostock_notify){ $('div.Product_btnbox a.notify').show(); $('div.Product_btnbox a.go_marketing').hide(); }else{ $('div.Product_btnbox a.notify').hide(); if(p_wmkt_count > 0){ $('div.Product_btnbox a.go_marketing').attr("href", "#CAR1").attr("onclick", "").text(cartDesc).show(); $('div.marketing_close').html(""); setMktLightBox(pno, p_wmkt_count); }else{ $('div.Product_btnbox a.go_marketing').text(cartDesc).show(); } } } } deside_cart_mode(prod_no , true); //立即購買 function buy_now(pno) { if(m_arrAllProduct[pno]['p_is_pre_order'] == 1 && m_arrAllProduct[pno]['pre_order_term'] != "") {//若為預購商品 let agree_pre_order_term = confirm(m_arrAllProduct[pno]['pre_order_term']); if(agree_pre_order_term == true) { document.shopping_form.submit(); }else { return false; } }else if(m_arrAllProduct[pno]['p_is_pre_order'] == 1 && m_arrAllProduct[pno]['pre_order_term'] == "") { document.shopping_form.submit(); }else if(m_arrAllProduct[pno]['p_is_pre_order'] == 0) { document.shopping_form.submit(); } } /*加贈加購*/ function Prod_Gift_Change(pno) { $(".Product_Gift").hide(); /*加贈*/ $(".Product_plus, .Product_plus_list").hide(); /*加購*/ /*判斷有無加贈商品*/ if($("#Product_Gift_"+pno+" li").length > 0){ $("#Product_Gift_"+pno).show(); } /*判斷有無加購商品*/ if($("#Product_plus_list_"+pno+" li").length > 0){ $(".Product_plus").show(); $("#Product_plus_list_"+pno).show(); } } Prod_Gift_Change(prod_no); function closeLightBox() { goCartMain(); $(".fancybox-close").click(); /*關閉 light box*/ } /*選擇商品規格要跟著更動的項目*/ function setProdStyle(pno) { index_pno = p_no.indexOf(pno); setProd(); Prod_Gift_Change(pno); /*要加入購物車的商品編號*/ $('#goshopping_product').attr('value',prod_no); /*贈品部分效果*/ $('.Product_gift').css('display','none'); $('.Product_gift_'+prod_no).css('display','block'); /*商品名稱*/ $(".Product_name").html(p_name[index_pno]+""+p_name_lang[index_pno]+""); /*放大鏡內商品名稱*/ $(".Lightbox-title").html(p_name[index_pno]+""+p_name_lang[index_pno]+""); /*有效日期*/ $(".Product_lastday").html(p_exp_date[index_pno]); /*數量*/ setProdCount(); /*價錢*/ setPrice(p_selling_price[index_pno], (p_stock[index_pno]-p_safety_stock[index_pno]), m_arrAllProduct[pno]['prod_marketing']); if(p_sticker_price[index_pno] > p_selling_price[index_pno]){ $(".now_price").attr("class", "now_price jooPC_price03 "); var price = p_sticker_price[index_pno]; var symbol = dollar_sign; if ('TWD' != 'TWD') { price = formatCurrencyPrice(price); symbol = 'TWD$'; } $(".jooPC_price02").addClass("was_price").html(''+symbol+''+addCommas(price)); }else{ $(".now_price").attr("class", "now_price jooPC_price01 "); $(".jooPC_price02").removeClass("was_price").html(""); } setStyle_dsct_range(pno); /*圖片部分效果*/ // $('div[class="pd_dt_joo4_productimg"]').hide(); // $('div[class="pd_dt_joo4_productimg"][prod_no="'+ pno +'"]').show(); $(".pd_dt_joo4_productimg").hide(); $('div[prod_no="'+ pno +'"]').show(); var big_prod_file = $("#prod_file"+index_pno).attr('big'); $("#thumblist_jqzoom"+pno).attr('src', big_prod_file).attr('rel', big_prod_file); /*組合商品*/ $(".Combination").hide(); $('div[class="pd_dt_joo4_Imgbox"][prod_no="'+ pno +'"]').show(); $("#comb_prod_"+pno).show(); if ($("#single_prod"+pno)[0]) $("#single_prod"+pno)[0].checked = true; /*加入追蹤顯示*/ $(".tbs_button_like").attr("class", "tbs_button_like"+p_trace_class[index_pno]); /*商品說明*/ if(p_desc_1[index_pno]){ var _htm = p_desc_1[index_pno]; if(p_desc_3[index_pno] == "" && p_desc_4[index_pno] == "" && p_desc_5[index_pno] == ""){ }else{ _htm += ""; } $(".Product_notesbox").show(); $(".Product_notes").html(_htm); }else{ $(".Product_notesbox").hide(); } /*文章*/ $(".brands_article").hide(); $("#article_"+pno).show(); /*單品免運字樣*/ if(arr_freeCariInfo[index_pno]){ $(".p_kind01").show(); }else{ $(".p_kind01").hide(); } /*免運活動*/ if(m_arrAllProduct[pno]['free_evt']){ $('.free_events').html(m_arrAllProduct[pno]['free_evt']); }else{ $('.free_events').html(''); } /*預購說明*/ if(m_arrAllProduct[pno].p_is_pre_order == 1){ $(".p_kind02").show(); $(".pre_order_desc").show(); $("#content0").html(m_arrAllProduct[pno].pre_order_desc); }else{ $(".p_kind02").hide(); $(".pre_order_desc").hide(); } /*商品說明,商品影片,商品介紹、使用說明、注意事項*/ $("#desc_1, #desc_2, #desc_3, #desc_7, #desc_8").hide(); $(".contentBox1, .contentBox2, .contentBox3, .contentBox7").hide(); if(p_desc_3[index_pno]){ $("#desc_1").show(); $(".contentBox1").show(); $("#content1").html(p_desc_3[index_pno]); } if(p_desc_4[index_pno]){ $("#desc_2").show(); $(".contentBox2").show(); $("#content2").html(p_desc_4[index_pno]); } if(p_desc_5[index_pno]){ $("#desc_3").show(); $(".contentBox3").show(); $("#content3").html(p_desc_5[index_pno]); } if(p_desc_2[index_pno]){ $("#desc_7").show(); $(".contentBox7").show(); $("#content7").html(p_desc_2[index_pno]); } if(p_desc_23[index_pno]){ $("#desc_8").show(); $(".contentBox8").show(); $("#content8").html(p_desc_23[index_pno]); } /*商品問與答*/ if ($('#it550').length) { $.ajax({ url: "index.php?action=product_qa", type: "POST", dataType: "html", data: {prod_no : pno, act:"_ajax", 'nti_JUIzJUIweiVCMyVCMHklQjYlQUElQjYlQjIlQUIlQkQlQjglN0QlODElQkQlQkIlQTklQUIlQjMlQUElN0UlQUQlQjYlN0IlN0U' : 'MTc1MDAxNTI1NFdxM2xBdlZ6cE9CZkw1Y3huTjVMQWRHNWlPOXA1Y01l'}, success: function(Jdata){ $("#prod_q_and_a").html(Jdata); $("#s_prod_no").val(pno); var desc_count = 0; if(m_arrAllProduct[pno].p_is_pre_order == 1) desc_count ++; /*預購說明*/ if(p_desc_3[index_pno]) desc_count ++; if(p_desc_4[index_pno]) desc_count ++; if(p_desc_5[index_pno]) desc_count ++; if($("#qa_list_count").val() == 0 && desc_count == 0){ $(".qa_title").hide(); }else{ $(".qa_title").show(); } } }); } /*評論*/ if("0" == 1 && "2" == 2 && typeof $.fn.commentItem == "function") { $("#comment").commentItem({prod_no:pno}); $(".desc_tab4").show(); } //各種優惠 if( m_arrAllProduct[pno]['prod_marketing_ticket_switch'] == '0' || m_arrAllProduct[pno]['prod_bonus_maxpct'] == '0' || m_arrAllProduct[pno]['prod_emoney_switch'] == '0'){ $(".no_discountbox").show(); } //可使用折價券 if(m_arrAllProduct[pno]['prod_marketing_ticket_switch'] == '0'){ $(".no_discountbox_coupon",".no_discountbox").show(); }else{ $(".no_discountbox_coupon").hide(); } //可使用紅利 if(m_arrAllProduct[pno]['prod_bonus_maxpct'] == '0'){ $(".no_discountbox_bonus",".no_discountbox").show(); }else{ $(".no_discountbox_bonus").hide(); } //可使用抵用金 if(m_arrAllProduct[pno]['prod_emoney_switch'] == '0'){ $(".no_discountbox_emoney",".no_discountbox").show(); }else{ $(".no_discountbox_emoney").hide(); } $('.discountbox').hide(); if(m_arrAllProduct[pno]['arrWebsiteMarketing'].length > 0 || m_arrAllProduct[pno]['pdl_aMKT_cnt'] > 0) { $('#Product_marketing_'+p_uid[index_pno]).show(); } // 本商品適用活動 if($('div[class="pd_dt_joo4_productimg"][prod_no="'+ pno +'"] .discountboxinner > li').length > 5){ $('div[class="pd_dt_joo4_productimg"][prod_no="'+ pno +'"] .discountboxinner > li').show(); $('div[class="pd_dt_joo4_productimg"][prod_no="'+ pno +'"] .discountboxinner > li:gt(4)').hide(); $('div[class="pd_dt_joo4_productimg"][prod_no="'+ pno +'"] .discountbox_togglebtn').show(); }else{ $('div[class="pd_dt_joo4_productimg"][prod_no="'+ pno +'"] .discountboxinner > li:lt(5)').show(); $('div[class="pd_dt_joo4_productimg"][prod_no="'+ pno +'"] .discountbox_togglebtn').hide(); } $('div[class="pd_dt_joo4_productimg"][prod_no="'+ pno +'"] .discountbox_togglebtn').removeClass('discountbox_open'); $('div[class="pd_dt_joo4_productimg"][prod_no="'+ pno +'"] .discountbox_togglebtn').children('span').text('more'); scrollpic(p_uid[index_pno]); scrollpicBottom(p_uid[index_pno]); magnifierScroll(p_uid[index_pno]); deside_cart_mode(pno); $("#pay_method").html(arr_payment[index_pno]); $("#delivery_method").html(arr_dvr[index_pno]); //限時活動 $('.detail_timebox').hide(); $('#timebox_'+prod_uid).show(); //推薦商品 $('.it504').hide(); $('#it504_'+prod_uid).show(); //超值最低價 $('.original').html(m_arrAllProduct[prod_no]['original_price']); $('#discount_amt').html('$' + m_arrAllProduct[prod_no]['arrDsctRangeSetting']['best_methods']['discount_amt']); $('#price_per').html(m_arrAllProduct[prod_no]['arrDsctRangeSetting']['best_methods']['price_per']); //級距折價 $('.lightbox_Product_range').hide(); $('#lightbox_product_range_'+prod_no).show(); $('#fancybox_lightbox_Product_range_'+prod_no).show(); } function setProdCount() { $('.Product_num').hide(); if (m_arrAllProduct[prod_no]['p_limit_sale'] == 1) { /*不可單獨銷售*/ $(".pd_dt_joo4_number > div.color_name").hide(); $(".old_price").html(""); } else { $(".pd_dt_joo4_number > div.color_name").show(); $('.Product_num .main_pd_dt_joo4_product_number').attr('name','none'); $('#Product_color_'+prod_no+' .main_pd_dt_joo4_product_number').attr('name','scar_count[]'); $('#Product_color_'+prod_no).show(); var sell_qty = (typeof(p_sell_qty[index_pno]) == 'number') ? p_sell_qty[index_pno] : parseInt('49'); var count_val = (sell_qty > 0 && m_arrAllProduct[prod_no]['prod_marketing'] == 1) ? 1 : '-'; $("#Product_color_"+prod_no).find(".main_pd_dt_joo4_product_number").val(count_val).attr("sell_qty", sell_qty); setCanHover(prod_no); } } setProdCount(); function setCombinationProduct(cp_no, cp_sell_qty, cp_selling_price, cp_cart_mode, cp_uid, cp_qty, cp_sticker_price) { if (cp_no == prod_no) { setProdStyle(prod_no); setCanHover(); } else { $('#goshopping_product').attr('value', cp_no); /*加入購物車商品編號*/ $(".Product_Gift").hide(); /*加贈*/ $(".Product_plus, .Product_plus_list").hide(); /*加購*/ /*商品圖*/ var big_prod_file = $("#prod_file"+cp_uid).attr('big'); $("#thumblist_jqzoom"+cp_no).attr('src', big_prod_file).attr('rel', big_prod_file); $('div[class="pd_dt_joo4_productimg"]').hide(); $("#productimg"+cp_no).show(); scrollpic(cp_uid); scrollpicBottom(cp_uid); magnifierScroll(cp_uid); /*數量*/ $(".pd_dt_joo4_number > div.color_name").show(); $("#Product_color_"+prod_no).show().find(".main_pd_dt_joo4_product_number").val(1).attr("sell_qty", cp_sell_qty); setCanHover(); /*價錢*/ setPrice(cp_selling_price, cp_qty, "", cp_sticker_price); /*購買按鈕*/ if (cp_cart_mode == 1) { $('div.Product_btnbox a.shop').hide(); $('div.Product_btnbox a.buy').show(); $('div.Product_btnbox a.notify').hide(); $('div.Product_btnbox a.go_marketing').hide(); $('#shopping_form').attr("action","index.php?action=shopping_cart&web_cart_myAct=CHECK_OUT"); $("#buy_now").attr("href", "javascript:void(0);").attr("onclick", "javascript:document.shopping_form.submit();"); } else if (cp_cart_mode == 2) { $('div.Product_btnbox a.shop').show(); $('div.Product_btnbox a.buy').hide(); $('div.Product_btnbox a.notify').hide(); $('div.Product_btnbox a.go_marketing').hide(); $('#shopping_form').attr("action","index.php?action=shopping_cart&web_cart_myAct=SHOPPING_CART"); $("#add_cart").attr("href", "javascript:void(0);").attr("onclick", "javascript:goCartMain('"+cp_no+"','"+cp_selling_price+"');"); } /*商品問與答*/ if ($('#it550').length) { index_pno = p_no.indexOf(cp_no); $.ajax({ url: "index.php?action=product_qa", type: "POST", dataType: "html", data: {prod_no : cp_no, act:"_ajax", 'nti_JUIzJUIweiVCMyVCMHklQjYlQUElQjYlQjIlQUIlQkQlQjglN0QlODElQkQlQkIlQTklQUIlQjMlQUElN0UlQUQlQjYlN0IlN0U' : 'MTc1MDAxNTI1NFdxM2xBdlZ6cE9CZkw1Y3huTjVMQWRHNWlPOXA1Y01l'}, success: function(Jdata){ $("#prod_q_and_a").html(Jdata); $("#s_prod_no").val(cp_no); var desc_count = 0; if(m_arrAllProduct[cp_no].p_is_pre_order == 1) desc_count ++; /*預購說明*/ if(p_desc_3[index_pno]) desc_count ++; if(p_desc_4[index_pno]) desc_count ++; if(p_desc_5[index_pno]) desc_count ++; if($("#qa_list_count").val() == 0 && desc_count == 0){ $(".qa_title").hide(); }else{ $(".qa_title").show(); } } }); } } } function setPrice(selling_price, qty, prod_marketing, sticker_price) { var symbol = dollar_sign; var se_price = addCommas(selling_price.toString()); if (sticker_price) var st_price = addCommas(sticker_price.toString()); if ('TWD' != 'TWD') { symbol = 'TWD$'; se_price = formatCurrencyPrice(selling_price); if (sticker_price) st_price = formatCurrencyPrice(sticker_price); } $('.now_price').html(''+symbol+''+se_price); var last_sell_qty_str = (qty <= 10 && qty > 0 && $("#Product_color_"+prod_no).find(".main_pd_dt_joo4_product_number").val() != '-' && prod_marketing) ? '現貨只剩'+qty+'件即將完售!' : ""; $('.old_price').html(last_sell_qty_str); if(sticker_price > selling_price){ $(".now_price").attr("class", "now_price jooPC_price03 "); $(".was_price").html(''+symbol+'' + st_price); }else{ $(".now_price").attr("class", "now_price jooPC_price01 "); $(".was_price").html(""); } } /*主商品加入購物車*/ function goCartMain(pno, psprice) { let login_alert = ''; if(m_arrAllProduct[prod_no]['prod_limit_buy'] != '0' && m_arrAllProduct[prod_no]['prod_limit_buy_alltime'] == '0' ) { login_alert = '此商品為限定購買商品,結帳前請先登入/註冊會員'; }else if(m_arrAllProduct[prod_no]['prod_limit_buy'] == '0' && m_arrAllProduct[prod_no]['prod_limit_buy_alltime'] != '0' ) { login_alert = '此商品為限量購買商品,結帳前請先登入/註冊會員'; } if (window.is_login == 0 && login_alert != '') { if(confirm(login_alert)){ window.location = 'https://www.liteled.com.tw/liteled/index.php?action=member_login&r_byeurl=liteled&b_action=product_detail%26prod_no%3DP0089900257702'; }else{ return false; } }else { // $(".loadingMask").fadeIn(500); var dataString = "myAct=ajaxadd&nti_JUIzJUIweiVCMyVCMHklQjYlQUElQjYlQjIlQUIlQkQlQjglN0QlODElQkQlQkIlQTklQUIlQjMlQUElN0UlQUQlQjYlN0IlN0U=MTc1MDAxNTI1NFdxM2xBdlZ6cE9CZkw1Y3huTjVMQWRHNWlPOXA1Y01l&utm_source=&utm_medium=&" + $("#shopping_form").serialize(); $.ajax({ url: "api/api.shopping_cart.php", type: "POST", dataType: "json", data: {myAct: "check" ,nti_JUIzJUIweiVCMyVCMHklQjYlQUElQjYlQjIlQUIlQkQlQjglN0QlODElQkQlQkIlQTklQUIlQjMlQUElN0UlQUQlQjYlN0IlN0U : 'MTc1MDAxNTI1NFdxM2xBdlZ6cE9CZkw1Y3huTjVMQWRHNWlPOXA1Y01l'}, success: function (Jdata) { if (Jdata.error == 'C00') { $.ajax({ url: 'index.php?action=shopping_cart&web_cart_myAct=SHOPPING_CART', type: "POST", dataType: "json", data: dataString, success: function (response) { if (response.error == 'C00') { /*FB Pixel 加入購物車*/ if (typeof(fb_AddToCart) == 'function') { pno = pno ? pno : prod_no; psprice = psprice ? psprice : p_selling_price[index_pno]; fb_AddToCart(pno, response.fbValue, response.fbContents); } // $(".loadingMask").fadeOut(500); $('.addCartMask').delay(300).fadeIn(300).delay(300).fadeOut(800); //alert("購物車新增成功");/*購物車新增成功*/ top_refresh(response.scar_no); } else if (response.error.indexOf('E') == 0) { // $(".loadingMask").fadeOut(500); alert(response.error + ': ' + response.err_alert); } } }); } } }); } } /*商品加入詢價單*/ function goRfq(){ // $(".loadingMask").fadeIn(500); const scarcountElement = document.getElementsByName('scar_count[]'); const scarcount = scarcountElement[0].value; $.ajax({ url: "index.php?action=shopping_cart_rfq", type: "POST", dataType: "json", data: { prod_no : prod_no, scar_count : scarcount, nti_JUIzJUIweiVCMyVCMHklQjYlQUElQjYlQjIlQUIlQkQlQjglN0QlODElQkQlQkIlQTklQUIlQjMlQUElN0UlQUQlQjYlN0IlN0U : 'MTc1MDAxNTI1NFdxM2xBdlZ6cE9CZkw1Y3huTjVMQWRHNWlPOXA1Y01l' }, complete:function(){ top_refresh(); } }); // $(".loadingMask").fadeOut(500); $('.addCartMask').delay(300).fadeIn(300).delay(300).fadeOut(800); //alert("詢價車新增成功"); } /*追蹤清單*/ function add2trace() { /*check*/ if (window.is_login == 0) { if(typeof(mem_login) == 'function'){ mem_login(); }else{ if(confirm('請先登入會員!')){ window.location = 'https://www.liteled.com.tw/liteled/index.php?action=member_login&r_byeurl=liteled&b_action=product_detail%26prod_no%3DP0089900257702'; }else{ return false; } } }else{ $.ajax({ url: "https://www.liteled.com.tw/liteled/api/api.product_trace_list.php", type: "POST", dataType: "json", data: { uid: prod_uid, myAct: "add", prod_no: prod_no, remove : true }, success: function (Jdata) { if (Jdata.error == 'C00') { if (Jdata.status == "1") { /*FB Pixel 加到願望清單*/ if (typeof(fb_AddToWishlist) == 'function') { prod_selling_price = p_selling_price[index_pno]; fb_AddToWishlist(prod_no, prod_selling_price); } /*新增class*/ $(".tbs_button_like").addClass("tbs_button_like_on"); p_trace_class[index_pno] = " tbs_button_like_on "; alert("追蹤清單新增成功");/*追蹤清單新增成功*/ } else { $(".tbs_button_like").removeClass('tbs_button_like_on'); p_trace_class[index_pno] = ""; } } else { /*頁面過期,請重新整理!*/ alert('頁面過期,請重新整理! ( ' + Jdata.error + ' )'); } } }); } } function setSellingPrice(pid, count){ $.ajax({ url: "https://www.liteled.com.tw/liteled/api/api.shopping_cart.php", type: "POST", dataType: "json", data: { prod_uid: pid, myAct: "getProdDiscountByNum", prod_count: count, nti_JUIzJUIweiVCMyVCMHklQjYlQUElQjYlQjIlQUIlQkQlQjglN0QlODElQkQlQkIlQTklQUIlQjMlQUElN0UlQUQlQjYlN0IlN0U : 'MTc1MDAxNTI1NFdxM2xBdlZ6cE9CZkw1Y3huTjVMQWRHNWlPOXA1Y01l' }, success: function (Jdata) { var se_price = addCommas(Jdata.selling_price.toString()); $('.now_price').html(''+dollar_sign+' '+se_price); } }); } /*左側小圖輪播*/ function scrollpic(uid){ /*如果小图过多,则出现滚动条在一行展示*/ var btnNext = $("#BottomArrow"+uid); var btnPrev = $("#TopArrow"+uid); var ul = btnPrev.next().find('ul'); var len = ul.find('li').length; var i = 0 ; if (len > 4) { btnNext.addClass("BottomArrowF").removeClass("BottomArrowT"); ul.css("height", 85 * len); $("#TopArrow"+uid+",#BottomArrow"+uid).show(); btnNext.click(function(e) { if(i>=len-4){ return; } i++; if(i == len-4){ btnNext.addClass("BottomArrowT").removeClass("BottomArrowF"); } btnPrev.addClass("TopArrowF").removeClass("TopArrowT"); moveS(i); }); btnPrev.click(function(e) { if(i<=0){ return; } i--; if(i==0){ btnPrev.addClass("TopArrowT").removeClass("TopArrowF"); } btnNext.addClass("BottomArrowF").removeClass("BottomArrowT"); moveS(i); }); } function moveS(i) { ul.animate({top:-95 * i}, 500) } $("#thumblist"+uid+" li a").mouseover(function(){ $("#thumblist_jqzoom"+$(this).attr('value')).attr('src',$(this).find("img").attr("mid")).attr('rel',$(this).find("img").attr("big")); //需要控制滑到第一張圖片才出現播放圖示 }); } /*下方小圖輪播*/ function scrollpicBottom(uid){ /*如果小图过多,则出现滚动条在一行展示*/ var btnNextB = $("#RightArrow"+uid); var btnPrevB = $("#LeftArrow"+uid); var ulB = btnPrevB.next().find('ul'); var lenB = ulB.find('li').length; var j = 0 ; if (lenB > 4) { btnNextB.addClass("RightArrowF").removeClass("RightArrowT"); ulB.css("width", 85 * lenB); $("#LeftArrow"+uid+",#RightArrow"+uid).show(); btnNextB.click(function(e) { if(j>=lenB-4){ return; } j++; if(j == lenB-4){ btnNextB.addClass("RightArrowT").removeClass("RightArrowF"); } btnPrevB.addClass("LeftArrowF").removeClass("LeftArrowT"); moveSBottom(j); }); btnPrevB.click(function(e) { if(j<=0){ return; } j--; if(j==0){ btnPrevB.addClass("LeftArrowT").removeClass("LeftArrowF"); } btnNextB.addClass("RightArrowF").removeClass("RightArrowT"); moveSBottom(j); }); } function moveSBottom(j) { ulB.animate({left:-95 * j}, 500) } $("#thumblist"+uid+" li a").mouseover(function(){ $("#thumblist_jqzoom"+$(this).attr('value')).attr('src',$(this).find("img").attr("mid")).attr('rel',$(this).find("img").attr("big")); //若滑到第一張圖且播放按鈕存在的話,才顯示播放按鈕 if($(".vedioPlayIcon")) { if($("#thumblist"+uid+" li a").index(this) == 0) { $(".vedioPlayIcon").show() }else { $(".vedioPlayIcon").hide() } } }); } /*商品放大鏡內容*/ function magnifierScroll(uid) { var li_eq0 = $("#Lightbox_thumblist"+uid+" li").eq(0); /*紀錄li index*/ var lenL = $("#Lightbox_thumblist"+uid).find('li').length; var z = 1; $("#Lightbox_thumblist"+uid+"> li").each(function(){ $(this).attr("index_no", z); z ++; }); //開啟 Lightbox $("#button"+uid).click(function(){ $("#Lightbox"+uid).css({"display": "flex","z-index": "10000"}); $("body").css({"overflow":"hidden"}); $("#Larrow_Lightbox"+uid).addClass("disabled"); if(lenL == 1) $("#Rarrow_Lightbox"+uid).addClass("disabled"); /*選取圖片*/ li_eq0.addClass("nowPic"); //重置放大圖 $("#thumblist_Lightbox"+uid).attr('src', li_eq0.find("img").attr("mid")).attr('rel', li_eq0.find("img").attr("big")); }); $("#Lightbox_thumblist"+uid+" li a").click(function(){ //點擊下方小圖,大圖scr抓小圖 $("#thumblist_Lightbox"+uid).attr('src',$(this).find("img").attr("mid")).attr('rel',$(this).find("img").attr("big")); $(this).parent().addClass("nowPic").siblings("li").removeClass("nowPic"); //重置 class => disabled $(".small_product_btnT").removeClass("disabled"); $(".small_product_btnB").removeClass("disabled"); if($("#Lightbox_thumblist"+uid).find('.nowPic').attr("index_no") == 1 ){ $("#Larrow_Lightbox"+uid).addClass("disabled"); }else if($("#Lightbox_thumblist"+uid).find('.nowPic').attr("index_no") == lenL){ $("#Rarrow_Lightbox"+uid).addClass("disabled"); } }); //關閉 Lightbox $("#btn_close"+uid).click(function(){ $("#Lightbox"+uid).css({"display": "none"}); $("body").css({"overflow":"scroll"}); //重置 class => disabled $(".small_product_btnT").removeClass("disabled"); $(".small_product_btnB").removeClass("disabled"); $(".Lightbox_thumblist > li").each(function(){ $(this).removeClass("nowPic"); }); }); } $(function(){ //往前1個 $(".small_product_btnT").click(function(){ var item_prod_uid = $(this).parents().data("prod_uid"); var show_nowPic_prev = $("#Lightbox_thumblist"+item_prod_uid).find('.nowPic').prev("li"); if(typeof show_nowPic_prev.attr("index_no") == 'undefined') show_nowPic_prev = $("#Lightbox_thumblist"+item_prod_uid).find('li').eq(0); //重置 class => disabled $(".small_product_btnT").removeClass("disabled"); $(".small_product_btnB").removeClass("disabled"); if(show_nowPic_prev.attr("index_no") == 1){ $("#Larrow_Lightbox"+item_prod_uid).addClass("disabled"); } $(".Lightbox .big_product img").attr("src", show_nowPic_prev.find("img").attr("big")); show_nowPic_prev.addClass("nowPic").siblings("li").removeClass("nowPic"); }); //往後1個 $(".small_product_btnB").click(function(){ var item_prod_uid = $(this).parents().data("prod_uid"); var lenL = $("#Lightbox_thumblist"+item_prod_uid).find('li').length; var show_nowPic_next = $("#Lightbox_thumblist"+item_prod_uid).find('.nowPic').next("li"); if(typeof show_nowPic_next.attr("index_no") == 'undefined') show_nowPic_next = $("#Lightbox_thumblist"+item_prod_uid).find('li').eq(lenL-1); //重置 class => disabled $(".small_product_btnT").removeClass("disabled"); $(".small_product_btnB").removeClass("disabled"); if(show_nowPic_next.attr("index_no") == lenL){ $("#Rarrow_Lightbox"+item_prod_uid).addClass("disabled"); } $(".Lightbox .big_product img").attr("src", show_nowPic_next.find("img").attr("big")); show_nowPic_next.addClass("nowPic").siblings("li").removeClass("nowPic"); }); $(".various-group").fancybox({ width : 690, fitToView : false, autoSize : false }); $(".various-car").fancybox({ width : 600, fitToView : false, autoSize : false, title : false }); $("#add_cart").fancybox({ width : 800, fitToView : false, autoSize : false, title : false }); $(window).scroll(function(){ var full = $('.pd_dt_joo4_topbox').outerHeight(true)+50; if( $(window).scrollTop() > full ){ $(".pd_dt_joo4_productbar").addClass("pd_dt_joo4_fixed"); }else{ $(".pd_dt_joo4_productbar").removeClass("pd_dt_joo4_fixed"); } }); $('a[href*="#section"]').eq(0).parents('li').addClass('jooshop_mem_word'); $('a[href="#section0"]').click(function() { $(this).parents('li').addClass('jooshop_mem_word'); $(this).parents('li').siblings('li').removeClass('jooshop_mem_word'); $("html,body").animate({ scrollTop:$("#section0").offset().top-141 }, "show"); return false; }); $('a[href="#section1"]').click(function() { $(this).parents('li').addClass('jooshop_mem_word'); $(this).parents('li').siblings('li').removeClass('jooshop_mem_word'); $("html,body").animate({ scrollTop:$("#section1").offset().top-141 }, "show"); return false; }); $('a[href="#section2"]').click(function() { $(this).parents('li').addClass('jooshop_mem_word'); $(this).parents('li').siblings('li').removeClass('jooshop_mem_word'); $("html,body").animate({ scrollTop:$("#section2").offset().top-141 }, "show"); return false; }); $('a[href="#section3"]').click(function() { $(this).parents('li').addClass('jooshop_mem_word'); $(this).parents('li').siblings('li').removeClass('jooshop_mem_word'); $("html,body").animate({ scrollTop:$("#section3").offset().top-141 }, "show"); return false; }); $('a[href="#section4"]').click(function() { $(this).parents('li').addClass('jooshop_mem_word'); $(this).parents('li').siblings('li').removeClass('jooshop_mem_word'); /*顯示 元件 550*/ if ($('#it550').length) { $("#prod_q_and_a").html($('#it550').show()); $("html,body").animate({ scrollTop:$("#section4").offset().top-141 }, "show"); return false; } }); $('a[href="#section7"]').click(function() { $(this).parents('li').addClass('jooshop_mem_word'); $(this).parents('li').siblings('li').removeClass('jooshop_mem_word'); $("html,body").animate({ scrollTop:$("#section7").offset().top-141 }, "show"); return false; }); $('a[href="#section8"]').click(function() { $(this).parents('li').addClass('jooshop_mem_word'); $(this).parents('li').siblings('li').removeClass('jooshop_mem_word'); $("html,body").animate({ scrollTop:$("#section8").offset().top-141 }, "show"); return false; }); $(".pd_dt_joo4_seemoreSwitch a").click(function(){ $('.Product_notes').toggleClass("showDetail"); $(this).toggleClass("seemore_arrow_up"); }); /*評價*/ if("0" == 1 && "2" == 2 && typeof $.fn.commentItem == "function") { $("#comment").commentItem(); $(".desc_tab4").show(); $('a[href="#section6"]').click(function() { $(this).parents('li').addClass('jooshop_mem_word'); $(this).parents('li').siblings('li').removeClass('jooshop_mem_word'); $("html,body").animate({ scrollTop:$("#section6").offset().top-141 }, "show"); return false; }); } }); /*行銷活動展開*/ $(".tbs_share_box").click(function(){ $('.pd_dt_joo4_socialbox').stop().toggleClass("is-pulldown"); $('.discountbox').stop().toggleClass("is-pulldown"); $('.imageBox').stop().toggleClass("shareBoxOpen"); }); /*千分位 加逗號*/ function addCommas(val) { return val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } /*加購商品加入購物車*/ $(".Product_plus_item input[type=radio]").click(function(){ if( $(this).attr("checked") == "checked" ){ $(this).attr("checked",false); } }); var tempradio= null; function cancel(checkedRadio) { if(tempradio== checkedRadio){ tempradio.checked=false; tempradio=null; }else{ tempradio= checkedRadio; } } /*移動到 商品說明區塊*/ function moveToProdDescBox() { $('html, body').animate({ scrollTop: $("#hidden_anchor").offset().top }, 1000); return false; } //領取折價券 function receive_ticket(mktmf_uid) { if( check_obj > 0 ) { $.ajax({ url: '', type: 'post', dataType: 'json', async: false, data: { mktmf_uid: mktmf_uid, myAct: "RECEIVE_TICKET", nti_JUIzJUIweiVCMyVCMHklQjYlQUElQjYlQjIlQUIlQkQlQjglN0QlODElQkQlQkIlQTklQUIlQjMlQUElN0UlQUQlQjYlN0IlN0U : 'MTc1MDAxNTI1NFdxM2xBdlZ6cE9CZkw1Y3huTjVMQWRHNWlPOXA1Y01l' }, success: function (response) { alert(response.ImData['in_msg']); if(response.ImData['in_code'] != 'E001')location.reload(); return false; } }); }else{ alert("請先登入會員!");//請先登入會員 window.location.href = login_url; } }