function lsdy1(attachType,articleId,qiKanWangZhi,nian,issn){ var pars = "attachType="+attachType+"&id="+articleId; jQuery.post(qiKanWangZhi+"/CN/article/showArticleFile.do?" + new Date().getTime(), pars, function(data){ if(data == "1"){ if(attachType == "RICH_HTML"){ jQuery.post(qiKanWangZhi+"/CN/article/downloadArticleFileFee.do?" + new Date().getTime(), pars, function(data){ window.location.href = qiKanWangZhi+"/"+issn; }); }else{ window.location.href = qiKanWangZhi+"/CN/article/downloadArticleFile.do?attachType="+attachType+"&id="+articleId; } }else if(data.match(/^gouMai.*/g)){ gouMaiArticleChecked(articleId,qiKanWangZhi,data); }else{ layer.open({ type: 1, shade: [0.1,'#fff'], area: ['auto', 'auto'], title: false, border: [0], content: '
'+data+'
', //捕获的元素 }); } }); } function lsdy1_chapter(attachType,chapterID,isbn,bianHao,pdfGouMaiHouYueDuFangShi,qiKanWangZhi){ var pars = "attachType="+attachType+"&chapterID="+chapterID; jQuery.post(qiKanWangZhi+"/CN/book/booksFileDownloadControl.do?" + new Date(), pars, function(data){ if(data == "1"){ if(attachType == "HTML"){ //window.location.href ="../chapter/chapterFull"+chapterID+".shtml"; window.location.href =qiKanWangZhi+"/CN/chapter/"+isbn+"/Full-"+bianHao; }else if(attachType == "PDF"){ if(pdfGouMaiHouYueDuFangShi=="在线浏览"){ $.colorbox({href:qiKanWangZhi+'/CN/chapter/chapter_swf'+chapterID+'.html', iframe:true, width:"847", height:"600"}); }else{ window.location.href = qiKanWangZhi+"/CN/book/booksFileDownload.do?attachType="+attachType+"&chapterID="+chapterID; } } }else if(data.match(/^gouMai.*/g)){ gouMaiChecked(chapterID,qiKanWangZhi,data); }else{ //document.getElementById("waitingInfo").innerHTML=data; layer.open({ type: 1, shade: [0.1,'#fff'], area: ['auto', 'auto'], title: false, border: [0], content: '
'+data+'
', //捕获的元素 }); } }); } function gouMaiChecked(chapterID,qiKanWangZhi,data){ var cart=store.get("http://journal.hep.com.cn:8080/wk/shoppingcart"); if(!cart){ cart=""; } eval("window.chapter_"+chapterID+"=data"); var chapter=eval("("+data.replace(/^gouMai/g,"")+")"); if(cart.indexOf("|chapter"+chapterID+"|")!=-1){ gouMai(chapterID,qiKanWangZhi); }else{ window.gouMaiAsk=layer.open({ type: 1, shade: [0.1,'#fff'], area: ['450px', 'auto'], title: false, border: [0], closeBtn:0, content: '
'+chapter.biaoTiCN+'  [价格: ¥'+chapter.dingJia.toFixed(2)+']
加入购物车      继续浏览
', //捕获的元素 }); } } function gouMai(chapterID,qiKanWangZhi){ // qiKanWangZhi='http://academic.hep.com.cn/skld'; var cart=store.get("http://journal.hep.com.cn:8080/wk/shoppingcart"); if(!cart){ cart=""; } if(cart.indexOf("|chapter"+chapterID+"|")==-1){ cart += "|chapter"+chapterID+"|"; } store.set("http://journal.hep.com.cn:8080/wk/shoppingcart",cart.replace(/(\|)+/g,"|").replace(/[^a-z0-9|-]/g,"")); var data=eval("window.chapter_"+chapterID); var chapter=eval("("+data.replace(/^gouMai/g,"")+")"); window.gouMaiAsk=layer.open({ type: 1, shade: [0.1,'#fff'], area: ['450px', 'auto'], title: false, border: [0], closeBtn:0, content: '
'+chapter.biaoTiCN+'  [价格: ¥'+chapter.dingJia.toFixed(2)+']
已加入到购物车 .
查看购物车      继续浏览
', //捕获的元素 }); //window.location.href=qiKanWangZhi+'/CN/shoppingcart/shoppingCart.do'; } function bookPDF(attachType,bookID,qiKanWangZhi,pdfGouMaiHouYueDuFangShi){ var pars = "attachType="+attachType+"&bookID="+bookID; jQuery.post(qiKanWangZhi+"/CN/book/booksFileDownloadControl.do?" + new Date(), pars, function(data){ if(data == "1"){ if(pdfGouMaiHouYueDuFangShi=="在线浏览"){ $.colorbox({href:qiKanWangZhi+ '/CN/book/book_swf'+bookID+'.html', iframe:true, width:"847", height:"600"}); }else{ window.location.href = qiKanWangZhi+"/CN/book/booksFileDownload.do?attachType="+attachType+"&bookID="+bookID; } }else if(data.match(/^gouMai.*/g)){ gouMaiBookChecked(bookID,qiKanWangZhi,data); }else{ //document.getElementById("waitingInfo").innerHTML=data; layer.open({ type: 1, shade: [0.1,'#fff'], area: ['auto', 'auto'], title: false, border: [0], content: '
'+data+'
', //捕获的元素 }); } }); } function gouMaiBookChecked(bookID,qiKanWangZhi,data){ var cart=store.get("http://journal.hep.com.cn:8080/wk/shoppingcart"); if(!cart){ cart=""; } eval("window.book_"+bookID+"=data"); var book=eval("("+data.replace(/^gouMai/g,"")+")"); if(cart.indexOf("|book"+bookID+"|")==-1){//未加入 window.gouMaiAsk=layer.open({ type: 1, shade: [0.1,'#fff'], area: ['450px', 'auto'], title: false, border: [0], closeBtn:0, content: '
'+book.tuShuMingCheng+'  [价格: ¥'+book.dingJia.toFixed(2)+']
加入购物车      继续浏览
', //捕获的元素 }); }else{//已加入 gouMaiBook(bookID,qiKanWangZhi); } } function gouMaiBook(bookID,qiKanWangZhi){ var cart=store.get("http://journal.hep.com.cn:8080/wk/shoppingcart"); if(!cart){ cart=""; } if(cart.indexOf("|book"+bookID+"|")==-1){ cart += "|book"+bookID+"|"; } store.set("http://journal.hep.com.cn:8080/wk/shoppingcart",cart.replace(/(\|)+/g,"|").replace(/[^a-z0-9|-]/g,"")); var data=eval("window.book_"+bookID); var book=eval("("+data.replace(/^gouMai/g,"")+")"); window.gouMaiAsk=layer.open({ type: 1, shade: [0.1,'#fff'], area: ['450px', 'auto'], title: false, border: [0], closeBtn:0, content: '
'+book.tuShuMingCheng+'  [价格: ¥'+book.dingJia.toFixed(2)+']
已加入到购物车 .
查看购物车      继续浏览
', //捕获的元素 }); } function gouMaiArticleChecked(articleId,qiKanWangZhi,data){ var cart=store.get("http://journal.hep.com.cn:8080/wk/shoppingcart"); if(!cart){ cart=""; } eval("window.article_"+articleId+"=data"); var article=eval("("+data.replace(/^gouMai/g,"")+")"); var content=''+article.biaoTi_CN+'  [价格: ¥'+article.pdf_JiaGe.toFixed(2)+']'; if(cart.indexOf("|article"+articleId+"|")!=-1){ gouMaiArticle(articleId,qiKanWangZhi); }else{ window.gouMaiAsk=layer.open({ type: 1, shade: [0.1,'#fff'], area: ['450px', 'auto'], title: false, border: [0], closeBtn:0, content: '
'+content+'
加入购物车      继续浏览
', //捕获的元素 }); } } function gouMaiArticle(articleId,qiKanWangZhi){ // qiKanWangZhi='http://academic.hep.com.cn/skld'; var cart=store.get("http://journal.hep.com.cn:8080/wk/shoppingcart"); if(!cart){ cart=""; } if(cart.indexOf("|article"+articleId+"|")==-1){ cart += "|article"+articleId+"|"; } store.set("http://journal.hep.com.cn:8080/wk/shoppingcart",cart.replace(/(\|)+/g,"|").replace(/[^a-z0-9|-]/g,"")); var data=eval("window.article_"+articleId); var article=eval("("+data.replace(/^gouMai/g,"")+")"); var content=''+article.biaoTi_CN+'  [价格: ¥'+article.pdf_JiaGe.toFixed(2)+']'; window.gouMaiAsk=layer.open({ type: 1, shade: [0.1,'#fff'], area: ['450px', 'auto'], title: false, border: [0], closeBtn:0, content: '
'+content+'
已加入到购物车 .
查看购物车      继续浏览
', //捕获的元素 }); //window.location.href=qiKanWangZhi+'/CN/shoppingcart/shoppingCart.do'; }