0) { data = obj; }else{ data = null; } return data; }, initEvent: function(html){ html.each(function(index, ele){ var that = $(ele); var totalpage = that.find("li"); var li = that.find('img'); if(li.length > 4) { var pages = Math.ceil(li.length/4); var prev = that.find("a.btn_l"); var next = that.find("a.btn_r"); var pagenum = 1; prev.addClass('btn_l_unable'); $(prev).bind('click', function(){ if(next.hasClass('btn_r_unable')) { next.removeClass('btn_r_unable'); } if(--pagenum < 1) { //左翻頁置灰 pagenum = 1; return false; } if(pagenum <= 1){ if(!prev.hasClass('btn_l_unable')) { prev.addClass('btn_l_unable'); } } $.category.showpage(that, totalpage, pagenum); }); $(next).bind('click', function(){ if(prev.hasClass('btn_l_unable')) { prev.removeClass('btn_l_unable'); } if(++pagenum > pages){ //右翻頁置灰 pagenum = pages; return false; } if(pagenum >= pages){ if(!next.hasClass('btn_r_unable')) { next.addClass('btn_r_unable'); } } $.category.showpage(that,totalpage,pagenum); }); }else{ that.find("a.btn_l").hide(); that.find("a.btn_r").hide(); } $.category.bigimg(li, that, li); }); }, bigimg: function(li, pp, allimg){ $(li).each(function(index,el){ var flag = $(this).attr('data-flag'); if(flag == 0){//flag在這里是string "0"代表商品有小圖 or string "1"代表商品無小圖只有對應色塊 $(this).bind('click', function(){ //小圖高亮顯示 $(allimg).each(function(index, ele){ if($(ele.parentNode).hasClass('on')){ $(ele.parentNode).removeClass('on'); } }); var spu = $(this).parents('li').parents('li').attr('id'); //var sku = skudata[spu][index]; var sku = $(this).parents('li').attr('sku'); $(this).parents('li').parents('li').attr('sku',sku); var spu_link = $(this).parents('li').parents('li').find('a.pic').attr('href'); var sku_link = spu_link.replace(/\d+(?=.html)/,sku); $(this).parents('li').parents('li').find('a.pic').attr('href',sku_link); $(this).parents('li').parents('li').find('a.name').attr('href',sku_link); $(this).parents('li').parents('li').find('p.name').find('a').attr('href',sku_link); $(this.parentNode).addClass('on'); var b = pp.parent().find("a.pic"); //這里span的作用主要是加載圖片慢時提示loading圖片 var s = document.createElement("span"); $(s).addClass('pic'); b.empty().append(s); var img = new Image(); $(img).bind('load', function(){ b.empty().append(img); }); img.src = this.src.replace(/_x/, "_b"); //src賦值處理放在這個位置,可以解決ie8 7 6下的bug 加載緩沖區太快 onload事件沒來及處理 $(img).attr({'height':200,'width':200}); }); } }); }, showpage: function(parent, total, page){ var ul = parent.find("ul").empty(); var curnum = parseInt((page-1)*4); var jumnum = curnum + 4; var cur = total.slice(curnum, jumnum); var li = cur.find("img"); var allimg = total.find("img"); this.bigimg(li, parent, allimg); ul.append(cur); } }); $.category.main(); })(jQuery); $(function(){ $(".all_product").toggle(function(){ $(this).find(".drop_down").removeClass("drop_up"); $(this).parents(".show_on").find(".bottom").hide(); $(this).parents(".show_on").removeClass("hover_on"); },function(){ $(this).find(".drop_down").addClass("drop_up"); $(this).parents(".show_on").find(".bottom").show(); $(this).parents(".show_on").addClass("hover_on"); }); $(".cloth_bigimg>li").hover( function () { $(this).find("div>.star").css("display","block"); $(this).find("div>.link").css("display","block"); $(this).addClass("hover"); }, function () { $(this).find("div>.link").css("display","none"); $(this).removeClass("hover"); }); $('.cloth_list_page>li').hover(function(){ $(this).addClass('hover'); },function(){ $(this).removeClass('hover'); }); $(".cloth_good_left").attr("dd_name", "商品區域"); $(".search-btn").click(function () { //獲取cookie var productId = $(this).parents('li').attr('sku'); addtocart(productId); }); }); $(document).ready(function(){ var bgurl = $("#att_noresult").attr("bgurl"); var bgdesc = $("#att_noresult").attr("bgdesc"); var component_html_data = 'Array'; var filte = 0; if(bgurl != undefined && bg_desc != undefined ){ if(component_html_data.length == 0 && filte == 1 && bgurl != 0 && bgdesc.length != 0){ $("#bg_url").css("background","url("+bgurl+") no-repeat 0 0"); $("#bg_desc").html(bgdesc); } } var Icon = { c:false, pids : [], top : [], redline:['1001','1002','1003','1004','1006','1008','1009','2010','2020'], url : '%2Fcid4011149.html', l:'3be0f0f337420ec131412did="qyaeg">
鍒嗛绡╅伕
鍒嗛绡╅伕:

鍏矾绠$悊璜栨枃椤岀洰

鐗堟瑠锛鍘熷壍妯欒鏈珯鍘熷壍 鏄熺礆:鈽呪槄鈽鈽呪槄3.0 绱氬垾锛氱稉鍏稿琛撹珫鏂 鑼冪枃锛氬皥绉戞湡鏈珫鏂 璜栨枃鑼冩枃绶ㄨ櫉锛歭wtm021618 鏈熷垔鐧艰〃锛氭瑕忓垔铏 鍏ㄦ枃瀛楁暩锛5000瀛 鎶曠ǹ浣滆咃細uoevqq 瀵╃ǹ绶ㄨ集锛氳憲鍚嶅鑰 闁辫畝娆℃暩锛56525

娴烽噺鏂扮⿴鐨勫叕璺鐞嗚珫鏂囬鐩緵鎮ㄥ弮鑰冿紝鍔╂偍瑙f焙鍏矾绠$悊灏堟キ璜栨枃椤岀洰鎬庢ǎ鎿殑鐩搁棞闆i.

鍏矾绠$悊璜栨枃椤岀洰

涓銆佹渶鏂板叕璺鐞嗚珫鏂囬伕椤屽弮鑰

1銆侀珮閫熷叕璺鐞嗘ā寮忕爺绌

2銆佹棩鏈珮閫熷叕璺鐞嗗拰鎿村缓鎶琛

3銆侀仼鐢ㄤ簬鍏矾缍茶鍔冨拰鍏矾绠$悊鐨勫湴鐞嗕俊鎭郴绲(HGIS)

4銆佹泛璜囨剰澶у埄楂橀熷叕璺鐞嗛珨鍒

5銆侀珮閫熷叕璺鐞嗚ō鏂界郴绲辫⿻鍍规寚妯欓珨绯诲強娆婇噸瑷堢畻鏂规硶鐮旂┒

6銆侀棞浜庨珮閫熷叕璺鐞嗛珨鍒惰ō缃柟妗堢殑鎺㈢储

7銆佹垜鍦嬫敹璨诲叕璺鐞嗗晱椤屽強鏀归潻寤鸿

8銆侀珮閫熷叕璺鐞嗗晱椤屽垎鏋愬強灏嶇瓥鐮旂┒

9銆佹垜鍦嬮珮閫熷叕璺鐞嗙爺绌

10銆佽静鏉戝叕璺鐞嗛璀峰伐浣滅壒榛炲強灏嶇瓥鎬濊

11銆侀珮閫熷叕璺鐞嗕俊鎭寲鑸囨櫤鑳藉寲鍙婇暦涓夎鎳夊皪绛栫暐

12銆佹泛璜囨垜鍦嬮珮閫熷叕璺鐞嗗拰鐧煎睍鐨勫晱椤

13銆佸埄鐢∕apInfo瀵︾従鍏矾绠$悊鐨勮嚜鍕曞寲

14銆侀珮閫熷叕璺鐞嗕紒妤枃鍖栧缓瑷従鐙鍙婂皪绛栫爺绌

15銆佹泛璜囧叕璺鐞嗛珨鍒舵敼闈

16銆侀珮閫熷叕璺鐞嗕腑鍦扮悊淇℃伅鎶琛撶殑鍒嗘瀽鐮旂┒

17銆佸叕璺鐞嗙┖闁撴暩鎿氬夊韩澶氱董鍒嗘瀽妯″瀷鍙婂叾瀵︾従

18銆佸熀浜嶹eb Services鐨勫叕璺鐞嗕俊鎭郴绲遍泦鎴愮爺绌

19銆佹垜鍦嬮珮閫熷叕璺鐞嗛珨鍒剁殑鍙嶆濊垏妲嬪缓

20銆侀噸鎱跺競楂橀熷叕璺鐞嗘ā寮忕爺绌

浜屻佸叕璺鐞嗚珫鏂囬鐩ぇ鍏

1銆佹垜鍦嬪叕璺鐞嗛珨鍒舵敼闈╂ā寮忕爺绌

2銆侀珮閫熷叕璺鐞嗛珨鍒舵敼闈╃櫦灞曞垎鏋

3銆佸熀浜庢姇璩囧鍏冨寲鐨勯珮閫熷叕璺鐞嗕竴楂斿寲鐮旂┒

4銆佽鏁撮珮閫熷叕璺鐞嗘ā寮忕殑鎬濊矾

5銆佸畬鍠勬垜鍦嬮珮閫熷叕璺鐞嗛珨鍒剁殑鎰忚

6銆侀棞浜庡叕璺鐞嗛珨鍒跺晱椤岀殑鎺㈣◣

7銆佸唬鏉辩渷楂橀熷叕璺鐞嗗拰鐧煎睍鐨勭従鐙鑸囨濊

8銆佹瓙娲查珮閫熷叕璺鐞嗚鑱

9銆侀珮閫熷叕璺鐞嗛珨鍒剁殑鎺㈣◣

10銆佹泛璜囨垜鍦嬮珮閫熷叕璺鐞嗙従鐙鑸囨敼闈

11銆佸熀浜嶹ebGIS鐨勫叕璺鐞嗕俊鎭郴绲辨柟妗

12銆佺暥浠d腑鍦嬮珮閫熷叕璺鐞嗛珨鍒剁殑鐝剧媭鍙婃敼鍠勫皪绛栫爺绌

13銆佸洓宸濋珮閫熷叕璺鐞嗙爺绌

14銆佹剰澶у埄楂橀熷叕璺鐞嗚冨療鑸囧熼憭

15銆佸熀浜嶹eb鐠板涓嬬殑楂橀熷叕璺鐞嗙恫涓婁俊鎭郴绲辩殑鐮旂櫦

16銆佽珫鎴戝湅楂橀熷叕璺鐞嗗強鍏剁ぞ鏈冪稉婵熸晥鐩

17銆佸叕璺鐞嗘暩鎿氬夊韩绯荤当鐮旂┒

18銆佸姞鎷垮ぇ鐨勯珮閫熷叕璺鐞

19銆佸湴鏂瑰叕璺鐞嗛珨鍒剁爺绌

20銆侀棞浜庢垜鍦嬮珮閫熷叕璺鐞嗕俊鎭寲瑕忓妰鐧煎睍鍟忛鎺㈣◣

涓夈佺啽闁鍏矾绠$悊灏堟キ璜栨枃椤岀洰鎺ㄨ枽

1銆佸叕璺鐞嗛珨鍒舵敼闈╀腑鎳夋妸鎻$殑鍥涘嬮棞绯

2銆侀珮閫熷叕璺鐞嗙郴绲辨噳鍏峰倷鐨勫熀鏈姛鑳

3銆佸叕璺鐞嗘暩鎿氬夊韩鍙婂叾鏁告摎鍒嗘瀽鎶琛

4銆侀珮閫熷叕璺鐞嗙郴绲辨噳鍏峰倷鐨勫熀鏈姛鑳

5銆佸叕璺鐞嗗湴鐞嗕俊鎭郴绲辩殑瑷▓鑸囧鐝

6銆佹垜鍦嬮珮閫熷叕璺鐞嗛珨鍒剁殑鐝剧媭鍙婃敼闈╁缓璀

7銆佸湴鐞嗕俊鎭妧琛撳湪楂橀熷叕璺鐞嗙郴绲变腑鐨勬噳鐢ㄧ爺绌

8銆佺編鍦嬮珮閫熷叕璺鐞嗘娉

9銆佹垜鍦嬮珮閫熷叕璺鐞嗛珨鍒剁爺绌

10銆佹泛鏋愭垜鍦嬮珮閫熷叕璺鐞嗛珨鍒剁櫦灞曠従鐙鍙婂皪绛

11銆佸湅澶栭珮閫熷叕璺鐞嗛珨鍒剁稖杩

12銆侀珮閫熷叕璺鐞嗙従鐙鍙婃濊

13銆佸熀浜嶨IS鐨勯珮閫熷叕璺鐞嗕俊鎭郴绲卞缓绔嬫柟妗堢殑鎺㈣◣

14銆佽静鏉戝叕璺鐞嗗拰椁婅宸ヤ綔鐨勬濊冨拰鎺㈢储

15銆侀粦榫嶆睙鐪佸叕璺鐞嗛珨鍒舵敼闈╃爺绌

16銆侀珮閫熷叕璺鐞嗕紒妤叕闂滅瓥鐣ョ爺绌

17銆佸湴鐞嗕俊鎭妧琛撳湪楂橀熷叕璺鐞嗙郴绲变腑鐨勬噳鐢ㄧ爺绌

18銆佺洠鎺ф妧琛撳湪楂橀熷叕璺鐞嗕腑鐨勬噳鐢

19銆侀珮閫熷叕璺鐞嗕俊鎭郴绲遍枊鐧肩爺绌

20銆佹泛鏋愭垜鍦嬮珮閫熷叕璺鐞嗛珨鍒

鍥涖侀棞浜庡叕璺鐞嗙暍妤珫鏂囬鐩

1銆侀珮閫熷叕璺鐞嗕俊鎭郴绲变腑鐨勫叡鐢ㄤ俊鎭钩鑷

2銆丟IS鍦ㄥ叕璺鐞嗕腑鐨勬噳鐢

3銆佸痉鍦嬪叕璺鐞嗘ā寮忓強鐠板淇濊

4銆佺編鍦嬬殑楂橀熷叕璺鐞嗛珨鍒

5銆佹苯杌婂嫊鎱嬬ū閲嶆妧琛撳湪楂樼瓑绱氬叕璺鐞嗕腑鐨勬噳鐢

6銆佽矾闈㈢鐞嗙郴绲卞湪澶╂触甯傚叕璺鐞嗕腑鐨勬噳鐢

7銆佹垜鍦嬮珮閫熷叕璺鐞嗛珨鍒剁爺绌

8銆佹垜鍦嬮珮閫熷叕璺鐞嗛珨鍒舵敼闈╁彇鍚

9銆侀珮閫熷叕璺鐞嗛珨鍒惰娀璀

10銆佹垜鍦嬮珮閫熷叕璺鐞嗛珨鍒跺瓨鍦ㄧ殑鍟忛鍙婂皪绛栫爺绌

11銆侀珮閫熷叕璺鐞嗛珨鍒剁従鐙鑸囨敼闈

12銆佷腑鍦嬮珮閫熷叕閫熷叕璺鐞嗛珨鍒舵ā寮忛伕鎿囩爺绌

13銆佷腑澶栭珮閫熷叕璺鐞嗛珨鍒剁爺绌

14銆佹硶鍦嬮珮閫熷叕璺鐞嗛珨鍒

15銆佸熀浜庡湴鐞嗕俊鎭郴绲辩殑鍏矾绠$悊淇℃伅绯荤当

16銆侀珮閫熷叕璺鐞嗘ā寮忕爺绌

17銆佷腑澶栧叕璺鐞嗛珨鍒舵瘮杓冪爺绌

18銆佹寤烘垜鍦嬮珮閫熷叕璺鐞嗛珨鍒剁殑瑷兂

19銆丟IS鍦ㄥ叕璺鐞嗕腑鐨勬噳鐢

20銆侀珮閫熷叕璺鐞嗚ō鏂界郴绲辫⿻鍍规寚妯欓珨绯诲強娆婇噸瑷堢畻鏂规硶鐮旂┒

浜斻佹瘮杓冨ソ瀵殑鍏矾绠$悊璜栨枃椤岀洰

1銆佸熀浜嶨IS鐨勬櫤鑳介珮閫熷叕璺鐞嗛棞閸垫妧琛撶爺绌惰垏瀵︾従

2銆佸叕璺鐞嗘暩鎿氬韩绯荤当鐨勮ō瑷堣垏瑕忓妰

3銆侀棞浜庡畬鍠勬垜鍦嬮珮閫熷叕璺鐞嗛珨鍒剁殑骞鹃粸寤鸿

4銆侀珮閫熷叕璺鐞嗗崁鑸囨湇鍕欏崁瑕忓妰瑷▓

5銆丟IS鍦ㄩ珮閫熷叕璺鐞嗙郴绲变腑鐨勬噳鐢ㄧ爺绌

6銆佸叕璺鐞嗙郴绲辫矾娉佺牬鎼嶆娓垏瑭曞児

7銆丟IS鍦ㄥ叕璺鐞嗕腑鐨勬噳鐢

8銆佹垜鍦嬮珮閫熷叕璺鐞嗘ā寮忔帰鏋

9銆佹泛璜囬珮閫熷叕璺鐞嗛珨鍒

10銆佹垜鍦嬮珮閫熷叕璺鐞嗛珨鍒跺瓨鍦ㄥ晱椤屽垎鏋愬強灏嶇瓥鐮旂┒

11銆佹渤鍗楅珮閫熷叕璺鐞嗛珨鍒剁爺绌

12銆佷腑鍦嬮珮閫熷叕璺鐞嗘ā寮忓垎鏋

13銆佸叕璺鐞嗛珨鍒舵敼闈╃殑鎺㈣◣

14銆侀珮閫熷叕璺鐞嗘墍缍滃悎鎴愭湰閬稿潃妯″瀷

15銆佺稉鐕熸у叕璺鐞嗛珨鍒跺垵鎺

16銆佽静鏉戝叕璺鐞嗛璀烽珨鍒舵敼闈╁強甯傚牬鍖栨帾鏂

17銆侀珮閫熷叕璺鐞嗘ā寮忕爺绌

18銆佽珫楂橀熷叕璺鐞嗕紒妤縺鍕垫鍒剁殑寤虹珛

19銆佹垜鍦嬮珮閫熷叕璺鐞嗛珨鍒跺瓨鍦ㄧ殑鍟忛鑸囧缓璀

20銆佹垜鍦嬪叕璺鐞嗛珨鍒舵敼闈╅潰鑷ㄧ殑鍟忛鍜屽皪绛栫爺绌

1 2 3 4 5
寤朵几闁辫畝

Copyright 2003-2018 All Rights Reserved. sitemap瀵暍妤珫鏂囩稉鍏哥殑缍茬珯鈥旂偤鏈鑸囩ⅸ澹湪鏍″ぇ瀛告噳灞嗙暍妤敓鐛插緱瀛镐綅鎻愪緵鍎鐨勫琛撶ǹ浠讹紝鐐哄叾璜栨枃瀵綔瀛哥繏鍖泦鍚勫皥妤浉闂滆寖鏂. 娉曞緥椤у晱锛氭潕浜悐寰嬪斧

鏈恫绔欏彧鎻愪緵web闋侀潰鏈嶅嫏锛屽苟涓嶆彁渚涙枃鐛昏硣婧愬瓨鍎诧紝鑻ユ湰绔欐敹閷勭殑鏂囩嵒鐒℃剰渚电姱浜嗘偍鐨勮憲浣滅増娆,璜嬭伅绯绘垜鍊戝埅闄

鐞惇鑹插師缃戠珯,鐞惇鑹插師缃戠珯褰遍櫌,鐞惇鑹插師缃戠珯鍦ㄧ嚎褰遍櫌 1bf5d6f7d8', init:function(){ this.pids['ad'] = ''; var that = this; that.pids['ad'] = ''; $('#cpc_top ul li').each(function(i,item){ that.pids['ad'] += $(this).attr('id')+','; }); this.c=true;this.pids[0] = '1452305725,1452309525,1452311425,1450124225,1414954623,1452312125,1452314025,1452312925,1412300323,1412766223,1412294423';if(this.pids['ad']!='') this.icon(this.pids['ad'],this.url,this.c,this.l,'ad');this.icon(this.pids[0],this.url,this.c,this.l,0); this.initicon(this); this.scroll(); }, icon: function(pids,url,c,l,i){ var t=new Date().getTime(); var that = this; $.getJSON('api/get_json.php?type=promoIcon&keys='+pids+'&url='+i+url+'&c='+c+'&l='+l+'×tamp='+t,function(e){ for(a in e){ if(a=='errorCode') break; var area = 'search_nature_rg'; if(i=='ad') area = 'cpc_top'; var count = 0; $.each(e[a],function(i,v){ // if(count == 3) return false; var name; if(typeof v.label_name == 'string'){ name = v.label_name; }else if(typeof v.label_name == 'object'){ if(v.label_type == '3020' || v.label_type == '3014' || v.label_type == '3023'){ var label = v.label_name; var label_arr = []; var p; for(j in label){ if(j=='indexOf') continue; p = /[\d.]+/.exec(label[j]); label_arr.push({'p':parseFloat(p[0]),'n':label[j]}); } label_arr.sort(function(a,b){return b.p - a.p;}); var price = $('#'+area+' li#'+a+' .price span').html(); price = price != undefined ? parseFloat(price.substr(1)):0; for(k in label_arr){ if(k=='indexOf') continue; if(price-label_arr[k].p>=0){name = label_arr[k].n;break;} name = label_arr[k].n; } }else{ name = v.label_name[0]; } }else{ name = ''; } if(v.label_type == '2002'){ name = v.atmosphere_image_56x56 !=undefined ? v.atmosphere_image_56x56:(v.atmosphere_image_100x100 != undefined ? v.atmosphere_image_100x100:v.atmosphere_image_180x180); } if($('#'+area+' li#p'+a+' .new_lable').attr('y') != '' && v.label_type == '2010') return true; if(v.label_type == '2001'){ var has2002 = e[a].some(function(label){if(label.label_type=='2002') return true;}); if(!has2002){ $('#'+area+' li#'+a+' .tag_box').css({"background":"url("+v.label_name+") no-repeat 0 0","_background-image":"none","_filter":"progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'"+v.label_name+"\',sizingMethod=\'noscale\')"}); } }else if(v.label_type == '2002'){ $('#'+area+' li#'+a+' p.cool_label').html(''); }else if(v.label_type == '1005'){ }else{ if(count<3 && name != ''){ if(that.redline.indexOf(v.label_type) == -1){ $('#'+area+' li#'+a+' .new_lable').append(''+name+''); }else{ $('#'+area+' li#'+a+' .new_lable').append(''+name+''); } count++; } } }); $('#'+area+' li#'+a+' .new_lable').append(that.yuanchuang($('#'+area+' li#'+a+' .new_lable').attr('y'))); } }); }, yuanchuang:function(i){ var html=''; switch(i){ case '0': html = '原創電子書連載中';break; case '1': html = '原創電子書已完結';break; case '2': html = '原創電子書';break; default:html = ''; } return html; }, scroll:function(){ var that = this; $(window).scroll(function(){ that.initicon(that); }); }, initicon:function(that){ var top = that.top; var scrollTop = $(window).scrollTop(); var top = that.top; for(i in top){ if(top[i].load==false && top[i].value 0 ){ $.each(obj,function (i,v) { var productId = parseInt(v['productId']) > 0 ? v['productId']:0; var price = 0; var discount = 0; var minPrice = -1; var type = v['salePrice']['type']; if((type ==20 || type ==21 || type ==22) && parseFloat(v['salePrice']['price']) >= 0) { minPrice = that.ebook_type_price(type,v['salePrice']['price']); }else{ if(v['priceList'] != null && v['priceList'] != undefined && v['priceList'] != ""){ $.each(v['priceList'],function(pi,pv){ if(pv['type'] == '2_1'){ price = parseFloat(pv['value']) > 0 ? pv['value'].toFixed(2) : 0; } }); } minPrice = parseFloat(v['salePrice']['price']) >= 0 ? v['salePrice']['price'].toFixed(2):-1; discount = price > 0 && minPrice > 0 && price >= minPrice ? Math.ceil(minPrice*1000/price)/100:0; } that.showPrice(area,productId,price,minPrice,discount); }) } }); }); }, showPrice:function(area,productId,price,minPrice,discount){ var listDdPriceDom = $('#'+area+' li#'+productId+' .price .search_now_price'); var listPriceDom = $('#'+area+' li#'+productId+' .price .search_pre_price'); var listDiscountDom = $('#'+area+' li#'+productId+' .price span.search_discount'); var listEbookPreceDom = $('#'+area+' li a#ep'+productId); if(listDdPriceDom.html() != undefined && productId > 0){ if(minPrice >= 0 && !isNaN(minPrice)){ listDdPriceDom.html('¥'+minPrice); if(listPriceDom.eq(0).html() != undefined && price > 0){ listPriceDom.eq(0).html('¥'+price+''); listPriceDom.eq(0).prev().html('定價:'); if(listPriceDom.eq(0).next().html() != undefined && discount > 0){ listPriceDom.eq(0).next().html(' ('+discount+'折)'); }else{ listPriceDom.eq(0).next().html(''); } }else{ listPriceDom.eq(0).html(""); listPriceDom.eq(0).prev().html(""); listPriceDom.eq(0).next().html(""); } } if(isNaN(minPrice)){ listDdPriceDom.html(minPrice); listPriceDom.eq(0).html(""); listPriceDom.eq(0).prev().html(""); listPriceDom.eq(0).next().html(""); } } if(listEbookPreceDom.html() != undefined && productId >0 && minPrice >= 0){ if(minPrice >= 0 && !isNaN(minPrice)){ listEbookPreceDom.html('電子書:¥'+minPrice+''); } if(isNaN(minPrice)){ listEbookPreceDom.html('電子書:'+minPrice+''); } } var bigImgDdPriceDom = $('#'+area+' li#'+productId+' .price .price_n'); var bigImgPriceDom = $('#'+area+' li#'+productId+' .price .price_r'); var bigImgDiscountDom = $('#'+area+' li#'+productId+' .price .price_s'); if(bigImgDdPriceDom.html() != undefined && productId > 0){ if(minPrice >= 0 && !isNaN(minPrice)){ bigImgDdPriceDom.html('¥'+minPrice); if(bigImgPriceDom.html() != undefined && price > 0){ bigImgPriceDom.html('¥'+price); bigImgPriceDom.prev().html("定價:"); if(bigImgDiscountDom.html() != undefined && discount > 0){ bigImgDiscountDom.html('('+discount+'折)'); }else{ bigImgDiscountDom.html(''); } }else{ bigImgPriceDom.html(''); bigImgPriceDom.prev().html(''); bigImgDiscountDom.html(''); } } if(isNaN(minPrice)){ bigImgDdPriceDom.html(minPrice); bigImgPriceDom.html(''); bigImgPriceDom.prev().html(''); bigImgDiscountDom.html(''); } } }, ebook_type_price:function(type,type_value){ var price = ''; switch(type){ case 20: price = '千字'+type_value+'鈴鐺';break; case 21: price = '每畫'+type_value+'鈴鐺';break; case 22: price = '每集'+type_value+'鈴鐺';break; default:price = ''; } return price; }, scroll:function(){ var that = this; $(window).scroll(function(){ that.initicon(that); }); }, initicon:function(that){ var top = that.top; var scrollTop = $(window).scrollTop(); for(i in top){ if(top[i].load==false && top[i].value