商品編號:P0089900157701 原始貨號:FENIX E-LITE
分享

【FENIX】E-LITE 迷你 EDC手電筒 紅藍光 信號燈 帽燈 胸燈 ( E Lite ) / ML01 肩燈 可參考


藍警示
√ 多功能手電筒、信號燈
√ 輕量便攜,佩戴無感
√ 電子鎖定防誤觸

 
數量
$ 675 $ 750
  • 原價 : $ 750

現貨只剩0即將完售!

+

以優惠價格加購商品

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

商品特色

Fenix E-LITE是 四合一 多功能 EDC手電筒
可夾在帽子、衣肩、背包、自行車尾等部位。
正面為信號燈,提供紅藍兩色信號燈,用於警示照明;
頂面燈體可達5~150流明的亮度,滿足用戶EDC照明需求。

 

商品影片

商品規格

品名:FENIX E-LITE 多功能迷你EDC手電筒


◎最高亮度150流明,最遠射程40米
◎使用MATCH CA18 白光LED和億光2835紅光LED、億光2835藍光LED,壽命50000小時
◎內置275mAh鋰聚合物電池
◎多功能手電、信號燈,多場景適用
◎迷你尺寸,輕量便,佩戴無感
◎紅藍燈警示功能,夜跑夜騎更安心
◎電子鎖定防誤觸
◎尺寸(±10%):52(長)× 23(寬)× 20(高) 毫米
◎重量(±10%):18克(含電池)

0 FENIX E-LITE 迷你EDC手電筒 150流明 紅藍光 信號燈 帽燈 胸燈 USB-C充電 電量顯示【錸特光電】
操作說明


開機/關機
長按開關0.5秒打開/關閉手電。

光/
開機狀態,長按開關1.2秒進入紅光模式。

檔位切換

白光模式:單擊按鍵,即可按低亮檔→中亮檔→高亮檔順序循環調節亮度和檔位;
/光模式:單擊按鍵,即可按紅光檔→紅閃檔→藍光檔→藍閃檔順序循環調節亮度和檔位。

鎖定/解鎖

鎖定:關機未鎖定狀態下,雙擊按鍵鎖定。手電以低亮檔閃爍2次然後熄滅,代表手電進入鎖定關機狀態。
解鎖:鎖定狀態下雙擊按鍵解鎖,手電以低亮檔開機,代表手電已解鎖開機。
*鎖定狀態下,只響應雙擊解鎖操作,單擊或者長按開關,手電均會以低亮檔閃爍2次然後熄滅,提示目前處於鎖定狀態。



充電說明


充電時,應按如下步驟進行:
1、關閉手電,揭開手電尾部的防水帽,將充電線Type-C端口插入手電的充電接口;
2、接收到充電信號後,充電指示燈將會以紅色亮起,充滿後轉變為綠色;
3、停止充電後,應拔下充電線,將防水帽蓋回按緊,以保持手電的防水性能。隨後即可正常使用手電。

注:
1、從電量基本耗盡到完全充滿,耗時約1小時30分鐘。
2、由於電池會緩慢地自放電,建議長時間不使用手電時,仍然每四個月充電一次,以免電池受損。

電量顯示
關機狀態下,單擊開關,按鍵上方的電量指示燈會亮起3秒,顯示剩餘電量,不同狀態對應剩餘電量如下:

綠燈長亮(代表電量飽和):電量大約100%-80%
綠燈閃爍(代表電量充足):電量大約80%-50%
紅燈長亮(代表電量不足):電量大約50%-20%
紅燈閃爍(代表電量嚴重不足):電量大約20% -0%

溫控降檔
燈具長時間以高亮檔工作時會累積大量熱量,為避免外殼溫度過高影響使用舒適度,
當電路檢測到溫度到達60℃,會逐漸階梯降低當前檔位的亮度以避免手電迅速過熱,
待溫度降低後,會自動逐漸遞增亮度,直到恢復高亮檔的初始亮度。

智能溫控
燈具長時間以高亮檔工作時會累積大量熱量,為避免外殼溫度過高影響使用舒適度,當電路檢測到溫度到達60℃,會逐漸階梯降低當前檔位的亮度以避免手電迅速過熱,待溫度降低後,會自動逐漸遞增亮度,直到恢復高亮檔的初始亮度。

低壓警示
燈具檢測到電池電壓過低時,會逐步的自動降低當前工作檔位,並從高到低依次屏蔽掉可切換的檔位,直到僅剩下低亮檔為止;如果檢測到電池在最低亮度檔位時仍然電壓過低,電量指示燈開始紅閃,以提醒用戶及時充電。

使用與維護
◎請勿拆卸燈具密封部件,否則將會導致保修失效並可能損壞燈具。
◎由於採用了長按開關開機設計,燈具放在包裏時可能會因為擠壓而誤點亮。如果希望避免此問題,您可以在把燈具裝入包中前,雙擊開關鎖定。

包裝清單
Fenix E-LITE手電、USB Type-C充電線、鑰匙圈、產品說明書、產品小折頁、保修卡。

警告
◎本產品亮度極高,請勿直視發光體,以免造成視力損傷
◎本產品長時間工作後會累積大量熱量,造成產品外殼溫度高,請在使用時注意安全,以免燙傷
◎此燈具的光源是不可替換的;當光源到其壽終時,應替換整個燈具
◎本說明書上提供的所有信息若有更改,將以新版說明書為準;隨附產品說明書版本如是舊版說明書,不再另行補發,敬請諒解!

揪!人來買

推薦親友來血拚 成功購買雙方皆可賺回饋金!
※ 詳細回饋金計畫與查詢請點我了解

操作說明


開機/關機
長按開關0.5秒打開/關閉手電。

光/
開機狀態,長按開關1.2秒進入紅光模式。

檔位切換

白光模式:單擊按鍵,即可按低亮檔→中亮檔→高亮檔順序循環調節亮度和檔位;
/光模式:單擊按鍵,即可按紅光檔→紅閃檔→藍光檔→藍閃檔順序循環調節亮度和檔位。

鎖定/解鎖

鎖定:關機未鎖定狀態下,雙擊按鍵鎖定。手電以低亮檔閃爍2次然後熄滅,代表手電進入鎖定關機狀態。
解鎖:鎖定狀態下雙擊按鍵解鎖,手電以低亮檔開機,代表手電已解鎖開機。
*鎖定狀態下,只響應雙擊解鎖操作,單擊或者長按開關,手電均會以低亮檔閃爍2次然後熄滅,提示目前處於鎖定狀態。



充電說明


充電時,應按如下步驟進行:
1、關閉手電,揭開手電尾部的防水帽,將充電線Type-C端口插入手電的充電接口;
2、接收到充電信號後,充電指示燈將會以紅色亮起,充滿後轉變為綠色;
3、停止充電後,應拔下充電線,將防水帽蓋回按緊,以保持手電的防水性能。隨後即可正常使用手電。

注:
1、從電量基本耗盡到完全充滿,耗時約1小時30分鐘。
2、由於電池會緩慢地自放電,建議長時間不使用手電時,仍然每四個月充電一次,以免電池受損。

電量顯示
關機狀態下,單擊開關,按鍵上方的電量指示燈會亮起3秒,顯示剩餘電量,不同狀態對應剩餘電量如下:

綠燈長亮(代表電量飽和):電量大約100%-80%
綠燈閃爍(代表電量充足):電量大約80%-50%
紅燈長亮(代表電量不足):電量大約50%-20%
紅燈閃爍(代表電量嚴重不足):電量大約20% -0%

溫控降檔
燈具長時間以高亮檔工作時會累積大量熱量,為避免外殼溫度過高影響使用舒適度,
當電路檢測到溫度到達60℃,會逐漸階梯降低當前檔位的亮度以避免手電迅速過熱,
待溫度降低後,會自動逐漸遞增亮度,直到恢復高亮檔的初始亮度。

智能溫控
燈具長時間以高亮檔工作時會累積大量熱量,為避免外殼溫度過高影響使用舒適度,當電路檢測到溫度到達60℃,會逐漸階梯降低當前檔位的亮度以避免手電迅速過熱,待溫度降低後,會自動逐漸遞增亮度,直到恢復高亮檔的初始亮度。

低壓警示
燈具檢測到電池電壓過低時,會逐步的自動降低當前工作檔位,並從高到低依次屏蔽掉可切換的檔位,直到僅剩下低亮檔為止;如果檢測到電池在最低亮度檔位時仍然電壓過低,電量指示燈開始紅閃,以提醒用戶及時充電。

使用與維護
◎請勿拆卸燈具密封部件,否則將會導致保修失效並可能損壞燈具。
◎由於採用了長按開關開機設計,燈具放在包裏時可能會因為擠壓而誤點亮。如果希望避免此問題,您可以在把燈具裝入包中前,雙擊開關鎖定。

包裝清單
Fenix E-LITE手電、USB Type-C充電線、鑰匙圈、產品說明書、產品小折頁、保修卡。

警告
◎本產品亮度極高,請勿直視發光體,以免造成視力損傷
◎本產品長時間工作後會累積大量熱量,造成產品外殼溫度高,請在使用時注意安全,以免燙傷
◎此燈具的光源是不可替換的;當光源到其壽終時,應替換整個燈具
◎本說明書上提供的所有信息若有更改,將以新版說明書為準;隨附產品說明書版本如是舊版說明書,不再另行補發,敬請諒解!'); 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 = 'P0089900157701'; var prodAmt = '675'; google_adwords(prodNo, prodAmt); } if(typeof(criteo_viewItem) == 'function'){ var prodNo = 'P0089900157701'; 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_JUJFJUFDJUIyJUJEJUJDJUIzJUI2JUI3JUI0JUIzJUIyJUJBJUJDJUFFJUJCJTdEJTgwJUJBeiU3Q3glN0YlQjElQUYlN0J5' : 'MTc0OTk4NzQ1N1JMbnJSdGJPaHJWbndRdFpnNE5QMHNTSG1vNjV6N01P'}, 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('0'); 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_JUJFJUFDJUIyJUJEJUJDJUIzJUI2JUI3JUI0JUIzJUIyJUJBJUJDJUFFJUJCJTdEJTgwJUJBeiU3Q3glN0YlQjElQUYlN0J5' : 'MTc0OTk4NzQ1N1JMbnJSdGJPaHJWbndRdFpnNE5QMHNTSG1vNjV6N01P'}, 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%3DP0089900157701'; }else{ return false; } }else { // $(".loadingMask").fadeIn(500); var dataString = "myAct=ajaxadd&nti_JUJFJUFDJUIyJUJEJUJDJUIzJUI2JUI3JUI0JUIzJUIyJUJBJUJDJUFFJUJCJTdEJTgwJUJBeiU3Q3glN0YlQjElQUYlN0J5=MTc0OTk4NzQ1N1JMbnJSdGJPaHJWbndRdFpnNE5QMHNTSG1vNjV6N01P&utm_source=&utm_medium=&" + $("#shopping_form").serialize(); $.ajax({ url: "api/api.shopping_cart.php", type: "POST", dataType: "json", data: {myAct: "check" ,nti_JUJFJUFDJUIyJUJEJUJDJUIzJUI2JUI3JUI0JUIzJUIyJUJBJUJDJUFFJUJCJTdEJTgwJUJBeiU3Q3glN0YlQjElQUYlN0J5 : 'MTc0OTk4NzQ1N1JMbnJSdGJPaHJWbndRdFpnNE5QMHNTSG1vNjV6N01P'}, 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_JUJFJUFDJUIyJUJEJUJDJUIzJUI2JUI3JUI0JUIzJUIyJUJBJUJDJUFFJUJCJTdEJTgwJUJBeiU3Q3glN0YlQjElQUYlN0J5 : 'MTc0OTk4NzQ1N1JMbnJSdGJPaHJWbndRdFpnNE5QMHNTSG1vNjV6N01P' }, 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%3DP0089900157701'; }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_JUJFJUFDJUIyJUJEJUJDJUIzJUI2JUI3JUI0JUIzJUIyJUJBJUJDJUFFJUJCJTdEJTgwJUJBeiU3Q3glN0YlQjElQUYlN0J5 : 'MTc0OTk4NzQ1N1JMbnJSdGJPaHJWbndRdFpnNE5QMHNTSG1vNjV6N01P' }, 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_JUJFJUFDJUIyJUJEJUJDJUIzJUI2JUI3JUI0JUIzJUIyJUJBJUJDJUFFJUJCJTdEJTgwJUJBeiU3Q3glN0YlQjElQUYlN0J5 : 'MTc0OTk4NzQ1N1JMbnJSdGJPaHJWbndRdFpnNE5QMHNTSG1vNjV6N01P' }, 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; } }