div class="vip-limit-wrap text-center"
需要订阅后才能阅读/h3
div class="box mg20-b"
div class="flex2"
div class="buy-one" data-href="http://www.shuhai.com/readvip/37724/5979208?method=buychapter" buychapter="true" id="buychapter"
div class="tip"
订阅本章
div class="egold"
50书海币
div class="flex"
div class="buy-all" data-href="http://www.shuhai.com/readvip/37724/5979208?method=batchbuychapter" buychapter="true"
div class="tip"
全本订阅
div class="egold"
1267.50书海币
div class="flex2"
span class=""
input id="autobuy" type="checkbox" checked="checked" class="" data-href1="http://www.shuhai.com/readvip/37724/5979208?method=autobuy" data-href2="http://www.shuhai.com/readvip/37724/5979208?method=buychapter"
/span
script type="text/javascript"
$(function(){
$("[buychapter]").one('click',function(e){
e.preventDefault();
layer.load(2,{shade: 0.05});
GPage.buychapter($(this).data('href'));
});
GPage.buychapter($("#buychapter").data('href'));
//autobuy switch
$("#autobuy").change(function() {
if($(this).is(":checked")){
$("#buychapter").data('href',$(this).data('href1'));
} else{
$("#buychapter").data('href',$(this).data('href2'));
}
});
})
/script