点击此处三个点点
点击在safari中打开

第一百四十二章 这家的糖明明这么难吃,为什么这么贵卖的还这么好?

2017-06-05

您需要付费才能继续阅读收费章节:)
您所追读的作品,有85%的用户都选择了付费。
A
A
打赏
  • 100花贝

  • 500花贝

  • 1000花贝

  • 5000花贝

  • 10000花贝

花贝余额 : 0 去充值>

打赏

花贝余额不足,请立即充值

如何获得月票
  • 1 充值任意金额,即可升级为vip用户
  • 2 vip用户可获得发帖权限和投递月票权限
  • 3 vip用户,每自然月赠送10张月票
  • 4 每次消费500花贝或花瓣可以获得1张月票,月票无上限。
  • 5 打赏时每满500花贝所获得的月票,立即投票给被打赏的作品
  • 6 月票仅能打赏给有付费章节的作品
  • 7 充值之日起即可获得月票,自然月内有效,过期作废。如当月1号充值,次月2号月票作废,如30日充值,次月1号月票作废
  • 8 月票多的作品,将优先获得更多推荐机会
  • 9 月票从2018年12月1日起生成

打赏成功

评价《神棍王妃的自我修养》
轻点添加评分
  1. 花溪小说 /
  2. 神棍王妃的自我修养 /
  3. 章节目录 /
  4. 正文
// 1.9add //// 弹窗居中 function showDiv(el){ var detailTop=($(window).height()-el.height())/2; var detailWidth=($(window).width()-el.width())/2; el.css({ "top":detailTop, "left":detailWidth }); }; //// 点击收藏 $('#collect_bk').click(function(){ if(!is_login()){ return; } const $this = $(this); $this.toggleClass('collected'); var act_name='/novel_detail'; $.post(act_name,{book_id:bookinfo.novelid,act:'collect',format:'json',ajax:1},function(data){ if (data.code==10000) { let num = $('#collect_bk').find('.num').attr('num'); if ($('#collect_bk').hasClass('collected')) { num= parseInt(num)+ 1; }else { num= parseInt(num)- 1; if(num < 0) { num = 0; }; }; $('#collect_bk').find('.num').attr('num',num); if (num>=10000) { num=Math.floor((num/10000)*100)/100+'万'; } $('#collect_bk').find('.num').text(num); var msg=""; if($this.hasClass('collected')) { /// 已收藏 $('#collect_bk').find('.txt').html('已收藏') msg="收藏成功"; }else { $('#collect_bk').find('.txt').html('收藏'); msg="取消成功"; } $('.success_tip').find('img').prop('src','//img.hxdrive.net/themes/cloud/m/imgs/new/w2.png') $('.success_tip').find('p').html(msg) $('.success_tip').show(); showDiv($('.success_tip')); setTimeout(function(){ $('.success_tip').hide(); },2000) } },"json") }); /// 隐藏如何获得月票弹窗 $('.how_get_tks').click(function(){ $(this).hide(); }) /// 点击唤出赠送月票 $('#to_send_tks').click(function(){ const _msk = $('.send_msk'); _msk.show(); _msk.find('.send_hb').hide(); _msk.find('.send_tks').show(); }); /// 点击选择赠送几张月票 $('.send_tks ul li').click(function(e){ e.stopPropagation(); $(this).addClass('active').siblings().removeClass('active'); }); /// 点击赠送月票按钮 $('.send_tks_btn').click(function(e){ if(!is_login()){ return; } var number=$('.send_tks .active').attr('ticket'); if (parseInt($('.remain_ticket').text())=10000) { num=Math.floor((num/10000)*100)/100+'万'; } $('#to_send_tks').find('.num').text(num); }else{ alert(data.msg); } },"json"); }); /// 点击如何获得月票 $('.get_tks').click(function(){ $('.how_get_tks').show(); showDiv($('.how_get_tks .detail')); }); // 点赞 $('.admire').click(function(){ if(!is_login()){ return; } const $this = $(this); var act_name='/novel_cancelSupport'; if($this.hasClass('active')) { act_name='/novel_support'; } $this.toggleClass('active'); $.post(act_name,{book_id:bookinfo.novelid,chapter_id:bookinfo.chapterid,format:'json'},function(data){ if (data.code==10000) { let num = $('.admire').find('.num').attr('num'); if (!$('.admire').hasClass('active')) { num= parseInt(num)+ 1; }else { num= parseInt(num)- 1; if(num < 0) { num = 0; }; }; $('.admire').find('.num').attr('num',num); if (num>=10000) { num=Math.floor((num/10000)*100)/100+'万'; } $('.admire').find('.num').text(num); } $('.success_tip').find('img').prop('src','//img.hxdrive.net/themes/cloud/m/imgs/new/w2.png') $('.success_tip').find('p').html(`${data.msg}`) $('.success_tip').show(); showDiv($('.success_tip')); setTimeout(function(){ $('.success_tip').hide(); },2000) },"json") }); $('#to_comment').click(function(){ if(!is_login()){ return; } $('.grade_msk').show(); showDiv($('.comment_grade')) }); // 1.23add $('.comment_grade .stars span').click(function(){ const _this = $(this),_stars = $('.comment_grade .stars'),_txt = $('.comment_grade .txt'); const _idx = _this.attr('data-index'); switch (_idx) { case '1': _this.addClass('active').siblings().removeClass('active'); _txt.html('不好!'); break; case '2': _stars.children().removeClass('active'); _stars.find('.level1').addClass('active'); _txt.html('一般!'); break; case '3': _stars.children().removeClass('active'); _stars.find('.level1').addClass('active'); _this.addClass('active'); _txt.html('凑活!'); break; case '4': _stars.children().removeClass('active'); _stars.find('.level1').addClass('active'); _stars.find('.level2').addClass('active'); $(_stars.find('.level3')[0]).addClass('active'); _txt.html('不错哟!'); break; case '5': _stars.children().addClass('active'); _txt.html('强烈推荐!'); break; default: break; } }); $('.push_btn').click(function(){ if(!is_login()){ return; } if ($('.comment_grade .stars .active').length==0) { alert("请评分"); return; } if ($('#content').val().trim().length==0) { alert("请输入评论内容"); return; } var star= $('.comment_grade .stars .active').length*2; $.post('/comment_addcomment',{book_id: bookinfo.novelid,chapter_id:bookinfo.chapterid,content:$('#content').val(),title:$('#title').val(),starnum:star,format:'json'},function(data){ $('.success_tip').find('img').prop('src','//img.hxdrive.net/themes/cloud/m/imgs/new/w2.png'); $('.success_tip').find('p').html('评论成功'); $('.success_tip').show(); showDiv($('.success_tip')); setTimeout(function(){ $('.success_tip').hide(); },2000); $('.grade_msk').hide(); $('.comment_grade .stars .active').removeClass('active'); $('#content').val(''); $('#title').val(''); let num = $('#to_comment').find('.num').attr('num'); num= parseInt(num)+ 1; $('#to_comment').find('.num').attr('num',num); if (num>=10000) { num=Math.floor((num/10000)*100)/100+'万'; } $('#to_comment').find('.num').text(num); },"json"); }); $('.close_grade').on('click',function(){ $('.grade_msk').hide(); }); // 1.23add end /// 隐藏遮罩层 $('.send_msk').click(function(){ $('.send_msk').hide(); }); /// 唤出打赏 $('#to_send_hb').click(function(){ const _msk = $('.send_msk'); _msk.show(); _msk.find('.send_hb').show(); _msk.find('.send_tks').hide(); }); /// 切换打赏金额 $('.send_hb ul li').click(function(e){ e.stopPropagation(); $(this).addClass('active').siblings().removeClass('active'); }); /// 点击打赏按钮 $('.send_btn').click(function(e){ if(!is_login()){ return; } e.stopPropagation(); var price=$('.send_hb .active').attr('point'); /// 没钱时 if (parseInt(price)>parseInt($('#remain_point').text())) { $(this).parents('.send_msk').hide(); $('.no_hb').show(); showDiv($('.no_hb .detail')); return; } $.post('/novel_reward',{book_id: bookinfo.novelid,price:price,format:'json'},function(data){ if (data.code==10000) { $('.div_reward').removeClass('be_reward').addClass('aft_reward'); $('.reward_count').text('+'+(price/100)); $('#remain_point').text( $('#remain_point').text()-price); $('.send_msk').hide(); $('.success_tip').find('img').prop('src','//img.hxdrive.net/themes/cloud/m/imgs/new/w1.png') $('.success_tip').find('p').html('打赏成功') $('.success_tip').show(); showDiv($('.success_tip')); setTimeout(function(){ $('.success_tip').hide(); },2000); let num = $('#to_send_hb').find('.num').attr('num'); num= parseInt(num)+ 1; $('#to_send_hb').find('.num').attr('num',num); if (num>=10000) { num=Math.floor((num/10000)*100)/100+'万'; } $('#to_send_hb').find('.num').text(num); } },"json"); }); /// 隐藏花贝余额不足的弹窗 $('.hide_charge').click(function(){ $(this).parents('.no_hb').hide(); }); // 1.9add end $('.control li.set').click(function(){ $('.settings').toggle(); }) $('.QaxMnZyxLf').click(function(){ $('.settings').hide(); }) $('.progress div').click(function(){ let size = $(this).attr('data-size'); $(this).addClass('active').siblings().removeClass('active'); $('.st-font4 .QaxMnZyxLf p').css({ 'font-size':`${size}px` }); localStorage.setItem('txt_size',size); }) $('.backgs li').click(function(){ let _color = $(this).attr('data-bg'); $(this).addClass('active').siblings().removeClass('active'); $('.warp').css({ 'background-color':_color }); localStorage.setItem('txt_bg_co',_color); }); // 新增 end var data = { chapter_id: bookinfo.chapterid, book_id: bookinfo.novelid, format: 'json' }; function contentaction() { $.ajax({ type: "get", url: "/novel_contentaction", data: data, datatype: "json", success: function(data) { if (data.status != 'success') { return 1; } if (data.readpage_qrcode == 1) { $('#readpage_qrcode').html(template('readpage_qrcode_tpl', data)); } if (data.is_force_follow == 1) { $('#authorizer_force_follow').html(template('authorizer_force_follow_tpl', data)); } if (data.is_vip == 1) { //$('#vip_mask').html(template('vip_mask_tpl', data)); } if (data.redirect_url) { window.location.href = data.redirect_url; } } }); } /*设置马甲昵称*/ function setNick(){ var is_wechat=$$.getCookie("actlog", 0); if (is_wechat) { //是否是微信站 var nick_list=null; if($$.getCookie("plannick", 0)!=''){ nick_list=JSON.parse($$.getCookie("plannick", 0)); } if(!nick_list){ $.ajax({ type: "get", url: "/novel_getnicklist", datatype: "json", success: function(data) { if (data.status == 'success') { var nick_list=JSON.parse($$.getCookie("plannick", 0)); if (nick_list[bookinfo.novelid]) { //是否是昵称 $('.article-catalog li a[href="/'+bookinfo.novelid+'"]').innerHTML(nick_list[bookinfo.novelid]['nickname']); $('title').text($('title').text().replace('神棍王妃的自我修养',nick_list[bookinfo.novelid]['nickname'])); } } } }); }else{ nick_list=JSON.parse(nick_list); if (nick_list[bookinfo.novelid]) { //是否是昵称 $('.article-catalog li a[href="/'+bookinfo.novelid+'"]').html(nick_list[bookinfo.novelid]['nickname']+' '); $('title').text($('title').text().replace('神棍王妃的自我修养',nick_list[bookinfo.novelid]['nickname'])); } } } } try{ setNick(); }catch(err){ } //$('#vip_mask').html(template('vip_mask_tpl', data)); var detailTop = ($(window).height() - $("#vip_mask .detail").height()) / 2; var detailWidth = ($(window).width() - $("#vip_mask .detail").width()) / 2; $("#vip_mask .detail").css({ "top": detailTop, "left": detailWidth }); $('body').css({ "overflow": 'hidden' }) $(".price").height($(window).height()).width($(window).width()); var tipflag = $$.getCookie("HuaXiOrderTip", 0); if (tipflag == 0) { $("#consume_tips").removeAttr("checked"); $("#jsNoOrderTip").removeAttr("checked"); $$.setCookie("HuaXiOrderTip", 0, "", "/"); } if (tipflag == 1 || !tipflag) { $("#consume_tips").addClass('checked'); $("#consume_tips").attr("checked", "checked"); $("#jsNoOrderTip").attr("checked", "checked"); $$.setCookie("HuaXiOrderTip", 1, "", "/"); } $("#consume_tips").click(function() { $(this).toggleClass('checked'); var is_checked = $(this).hasClass('checked'); $$.setCookie("HuaXiOrderTip", (is_checked ? "1" : "0"), "", "/"); }); $('.closeBtn').click(function() { $(".price").hide(); $('body').css({ "overflow": 'scroll' }); }); var appkey = 'close137'; var idx = 0; var sflag = 0; if (window.sessionStorage) { sflag = sessionStorage.getItem(appkey); } if (sflag == 0 || sflag == null) { $(".m-qzbdkhd").show(); } $(function() { contentaction(); $('.show-pop-list').on('click', function(e) { var e = event || window.event; var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; var scrollY = document.documentElement.scrollTop || document.body.scrollTop; var x = e.pageX || e.clientX + scrollX; var y = e.pageY || e.clientY + scrollY; $('.popup-content').css('top', y + 30); $('.popup-content .jiantou').css('left', x); idx = $(this).data('pindex'); $('.pz-txt').find('#comment_list_' + idx).show().siblings().hide(); $('#popup').show(); }); $('#popup').on('click', function(e) { var targetid = e.target.id; if (!(e.target.id == 'poptxt' || e.target.id == 'publish')) { $(this).hide(); } }); $('#publish').on('click', function() { var content = $('#poptxt').val(); ajax_comment(content, idx); }); function get_commentlist() { $.ajax({ type: "get", url: "/novel_comment", data: data, datatype: "json", success: function(data) { if (data.status == 'success') { var lists = data.newlists; for (var i in lists) { if (lists[i].contents.length > 0) { for (var j in lists[i].contents) { var content = lists[i].contents[j]; var html = '
' + content['user_nickname'] + '

' + content['comment_content'] + '

'; $('#comment_list_' + content['comment_parent_id']).append(html); $('#hAWUITAtLf p').each(function() { var pid = $(this).data('pid'); if (pid == i) { $(this).find('span').removeClass('hidden'); $(this).find('span a').html(lists[i]['username']); $(this).find('span a').html(lists[i]['comment_num']); // $(this).find('span span').html('等' + lists[i]['comment_num'] + '人批注'); } }); } } } } else { $.toast(data.message); } }, }); } get_commentlist(); }); function setLocalReadHistory(book_id, chapter_id) { var storage = window.localStorage; if (!storage) { return 0; } var ids = {}; ids[book_id] = {} ids[book_id].book_id = book_id; ids[book_id].chapter_id = chapter_id; ids[book_id].time = '1756369103'; var book_ids = storage.getItem("read_history"); if (book_ids == null || book_ids == "" || book_ids == "null") { storage.setItem("read_history", JSON.stringify(ids)); return; } var data = JSON.parse(book_ids); var i; for (i in data) { if (i != book_id) { ids[i] = {} ids[i].book_id = data[i].book_id; ids[i].chapter_id = data[i].chapter_id; ids[i].time = data[i].time; } } storage.setItem("read_history", JSON.stringify(ids)); } setLocalReadHistory("28", "16909");

签到成功

获得 50 书豆

记得明天继续来领取哦

知道了

有效期5天,购买书籍使用