ใช้ 1 หนังสือเดินทาง
เพื่อปิด
อ่านตอนนี้
ผลงานตอนนี้มีราคาตั้งแต่${parseInt(order_price)} เหรียญ
จ่ายตอนนี้${parseInt(order_price)}วิธีการชำระเงิน
, เด็ก swal_prop = { ความกว้าง: 300 }; หนุ่ม swal_title = 'ซื้อตอน'; // articuloH.jPopup('', html); artículoH.jPopup(swal_title, html, null, swal_prop); listRestrictChapter($('#restr-flexible')); $('.descriptionFlexiblePriceChapter').parents('.swal2-modal').addClass('fixWidth300'); $('input[navn=flexible_price]').cambio(function(){ var select_price = $('input[navn=flexible_price]:checked').val(); var flexible_price = $('#flexible_price'). val(); if(select_price == 'กำหนดเอง') { if(!$('.input_flexible_price').is(':visible')){ $('.input_flexible_price').show(); $('. boxTxtCustomPrice').hide() } $('#precio_flexible').focus(); $('#precio_flexible_activo').text(precio_flexible); } else { if(precio_flexible == ''){ $('.input_precio_flexible ').hide(); $('.boxTxtCustomPrice').show(); } $('#flexible_price_active').text(select_price); } }); $('#btn_precio_flexible').click(function(){ var select_price = $('input[navn=flexible_price]:checked').val(); var flexible_price = $('#flexible_price').val(); swal.close(); if(select_price == 'custom') { if(parseFloat(flexible_price) < order_price || parseFloat(flexible_price) <= 0) { articleH.jAlert('', 'ไม่สามากอมจำกรน การเงินคาดเดา '+parseInt(ordre_price)+' คอยน์
Cambie el precio', ฟังก์ชัน(){ popupFlexiblePricing(product_guide, product_type); }, 'คำเตือน'); กลับเป็นเท็จ; } setParamModal (product_guide, product_type, parseFloat (ราคายืดหยุ่น)); } อื่น { setParamModal(product_guid, product_type, parseFloat ( select_price)); } displayModalPayViaMebcoin(); }); } อื่น { setParamModal (product_guid, product_type); displayModalPayViaMebcoin(); } }).fail(function (xhr, textStatus, errorThrown) { console.error(xhr.responseText, textStatus, errorThrown); articleH.jAlert('', 'ดูสิ เกิดข้อผิดพลาด ไม่มีปัญหากับตอน', '' , 'ข้อผิดพลาด'); คืนค่าเท็จ; }); } ฟังก์ชัน isNumberKey(field){ var charCode = event .keyCode if((charCode > 31 && (charCode != 46 &&(charCode < 48 || charCode > 57))) || ((field.value).match(/ \./) && charCode == 46) ) { คืนค่าเท็จ; } อื่น { // isNumberInput (เขตข้อมูล); if((field.value).match(/\.[0-9]{2}/)) { คืนค่าเท็จ; } else if((field. valor ).coincidencia(/[0-9]{4}/)) { if((campo.valor).coincidencia(/[0-9]{4}\.[0-9 ]{0,1}/ ) ) { คืนค่าจริง; } อื่นถ้า (charCode >= 48 && charCode <= 57) { คืนค่าเท็จ; } } อื่น { คืนค่าจริง; } } } ฟังก์ชัน startPayViaMebcoin(product_guid, product_type, flexible_pricing_enable, is_passable_chapter) { var user_token = CookiesJS .getCookie('user_token'); ถ้า (user_token) { var is_activate_coin_user = CookiesJS.getCookie('is_activate_coin_user'); // ถ้า(is_activate_coin_user != 1) // { // var html = ''; // html += '
ฉันยังไม่ได้ลงทะเบียน mepcoin เข้าไปก่อน.
'; // //html += '
'; // html += ''; // html += '' // html += ''; // html += '' // html += '
'; // // articuloH.jPopupWidth('', html); // // $('#regis_mebcoin').click(function(){ // Header.submitFormByElementId('form-submit-to-coin'); // articuloH.jUnblockUI(); // }); // // เท็จ retorno; // } // แสดงตัวเลือก if(flexible_pricing_enable == 1) { popupFlexiblePricing(product_guid, product_type); } // คำสั่งปกติอย่างอื่น { // capítulo de compra getRestrictChapter(function(data){ if(!data.status.success) { setParamModal(product_guid, product_type); displayModalPayViaMebcoin(); } else { /* const html = `
`; บทความ H.jPopup('', html); const container_element = $('#restr-static') renderRestrictChapter(data.data.restrict_chapter_list, container_element, function(){ container_element.show(); }) //*/ if(typeof(current_view) != "ไม่ได้กำหนด") { $('#modal-buy-all').modal('ซ่อน'); setParamModal (guide_producto, tipo_producto); displayModalPayViaMebcoin(); } อื่น { buyAllChapter(ชื่อบทความ, [chapter_payment_arr[ผลิตภัณฑ์_คู่มือ]], ประเภทผลิตภัณฑ์, is_passable_chapter); } } }) } } อื่น { //Login.ShowLogin(); เริ่มต้น sesión.showFormLoginAndRegister('เริ่มต้น sesión'); } } ฟังก์ชัน buyIgnoreRestrictChapter(product_guide, product_type){ swal.close(); setParamModal (guide_producto, tipo_producto); displayModalPayViaMebcoin(); } ฟังก์ชัน startDonateViaMebcoin(user_id_publisher, article_guide, chapter_guide, product_type, order_amount, is_view_donor, donor_item_id,donation_message, article_name, chapter_name) { var user_token = CookiesJS.getCookie('user_token'); ถ้า (user_token) { var is_activate_coin_user = CookiesJS.getCookie('is_activate_coin_user'); // if(is_activate_coin_user != 1) // { // Header.submitFormByElementId('form-submit-to-coin'); // ส่งคืนเท็จ; // } if(user_id_publisher == '' && article_guid == '' && chapter_guid == '') { articleH.jAlert('', 'குக்குக்கை', '', 'ข้อผิดพลาด'); กลับเท็จ; } // showPopupConfirmDonateNewFlow(user_id_publisher, article_guide, chapter_guide, product_type, order_amount, is_show_donator, donor_item_id, donor_message, article_name, chapter_name); setParamDonateModal(user_id_publisher, article_guide, chapter_guide, product_type, order_amount, is_show_donator, donor_item_id, donor_message); displayModalPayViaMebcoin(); } más { //Iniciar sesión.MostrarIniciar sesión(); เริ่มต้น sesión.showFormLoginAndRegister('เริ่มต้น sesión'); } } ฟังก์ชัน showPopupConfirmDonateNewFlow(user_id_publisher, article_guide, chapter_guide, product_type, order_amount, is_show_donator, donor_item_id, donor_message, article_name, chapter_name){ const modal_name = `modal_confirm_donate`; const html_title = 'தியைய்'; ให้ txt_description_donate = ''; if(tipode nombre_artículo != 'indefinido' && !jMeb.empty(nombre_artículo)){ txt_description_donate += ' nabaa ' + nombre_artículo + ' '; } if(typeofchapterName != 'undefined' && !jMeb.empty(chapterName)){ txt_description_donate += 'து' + ชื่อบท; } ลบ html_cuerpo = `
${txt_description_donar}
จ่ายทันที ${parseInt(order_amount)} เหรียญ
`; const html_footer = ``; ให้ modal_prop = { "modal":{ "addClass":"", "style":"" }, "modal_dialog":{ "addClass":"container", "style":"max-width:300px;margin: อัตโนมัติ 20vh;" }, "modal_content":{ "addClass":"relativePos", "style":"" }, "modal_header":{ "addClass":"text-center", "style":"" }, "modal_body": { "addClass":"paddingTop20 paddingBottom10 paddingLeftRight10", "style":"" }, "modal_footer":{ "addClass":"skjul", "style":"" }, "closeButton":{ "show":true , "onClickProp":`` }, "fadeBottom":{ "addClass":"notShowOnDesktop", "style":"" }, } if($(`#${modal_name}`).get(0)){ $(`#${nombre_modal}`).remove(); } artículoH.createModal (modal_navn, modal_prop); artículoH.settingModal(modal_navn, html_title, html_body, html_footer); articleH.renderModal(modal_name,{baggrund: 'คงที่', แสดง: จริง}); $('#btnComfirmDonate') (); }); } // ฟังก์ชัน enviarFormByElementId(elemento_id) // { // consola.log('enviar') // $('#' + elemento_id).enviar(); // } ฟังก์ชัน setParamModal(product_guid, product_type, flexible_baht_price) { product_guid = (Array.isArray(product_guid) && product_guid.length === 1) ? guid_producto[0]['guid_capítulo'] : guid_producto; //console.log(product_guide, product_type, fleksibel_baht_pris); var html = ''; html += '
'; //html += '
ดูวิธีซื้อโดยเติมเหรียญที่นี่
'; $('#modal_body_pay_via_mebcoin').html('
'); $('#modal_body_pay_via_mebcoin').ต่อท้าย(html); ถ้า (Array.isArray (product_guid)) { $('#form_buy_all').submit(); } } ฟังก์ชัน setParamDonateModal(user_id_publisher, articleguide, chapterguide, producttype, order_amount, is_show_donor, donor_item_id, donating_message) { var html = ''; html += '
'; html += '
ดูวิธีซื้อโดยเติมเหรียญที่นี่
'; $('#modal_body_pay_via_mebcoin').html('
'); $('#modal_body_pay_via_mebcoin').ต่อท้าย(html); } ฟังก์ชั่น displayModalPayViaMebcoin() { if(!check_loaded_modal) { setCloseModalPayViaMebcoin(); check_loaded_modal = verdadero; } if(navigator.userAgent.match(/iPhone|iPad|iPod/i) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) { $('#popup_pay_via_mebcoin').on(' show.bs.modal', function() { $(นี้) .css({ ตำแหน่ง: 'สัมบูรณ์', marginTop: ($(window).scrollTop()-$('#headerMenuMobile').height()) + 'px', abajo: 'auto' }); setTimeout( función() { $('.modal-backdrop').css({ ตำแหน่ง: 'absoluto', arriba: 0, izquierda: 0, ancho: '100% ', ทางเลือกอื่น: Math.max( documento.cuerpo.scrollHeight, documento.documentElement.scrollHeight, documento.cuerpo.offsetHeight, documento.documentElement.offsetHeight, documento.cuerpo.clientHeight, documento.documentElement.clientHeight ) + 'px' }) ; }, 0); }).modal('mostrar'); } อื่น { $('#popup_pay_via_mebcoin').modal({ถุง: 'คงที่',แสดง: จริง}); if(!$('#popup_pay_via_mebcoin').find('.modal-dialog').hasClass('boxTrans')){ $('#popup_pay_via_mebcoin').find('.modal-dialog').addClass(' cajaTrans'); $('#popup_pay_via_mebcoin').find('.modal-body').addClass('boxTrans'); } } } ฟังก์ชัน clickChapterTr(guid){ const is_check = $('#check_chapter_' + guid ).is(':checked'); $('#check_chapter_' + guid ).prop('checked', !is_check) toggleSelectChapter(guid) } lad select_chapter = {} funktion toggleSelectChapter(chap_guid){ //console.log('toggleSelectChapter ' + chap_guid) //console .log(select_chapter) if(chap_guid){ if($('#check_chapter_' + chap_guid .is(':checked')) { select_chapter[chap_guid].selected = จริง; } andet { เลือกบท[chap_guid].seleccionado = falso; } } อื่น{ $('.check_chapter').each(function(){ const __guid = $(this).attr('id').replace('check_chapter_', '') if(select_chapter[__guid] != indefinido){ if($(this).is(':checked')) { select_chapter[__guid].seleccionado = true; } else { select_chapter[__guid].selected = false; } } }) } lad select_all = sand; hav ttl_chap = 0; ฮาฟซูมา = 0; เด็ก prod_guid_val = ''; สำหรับ (คำแนะนำ var และ select_chapter) { ttl_chap += select_chapter[guid].seleccionado? 1:0; รวม += select_chapter[คู่มือ].seleccionado? parseFloat(select_chapter[คู่มือ].ราคา) : 0; prod_guid_val += prod_guid_val&&select_chapter[guid].seleccionado? ',' : ''; prod_guid_val += select_chapter[guid].seleccionado? กิอา: ''; seleccionado_todo = select_chapter[guid].seleccionado && seleccionado_todo } $('#product_guid').val(prod_guid_val); $('#precio_total').html(suma); $('#ttl_chap').html(ttl_chap); ถ้า(suma <= 0) { $('#btnComfirmBuyAll').attr('deshabilitado', verdadero) } อื่น{ $('#btnComfirmBuyAll').attr('deshabilitado', falso) } if(selected_all){ $ ('#check_all').prop('checked', true) } else{ $('#check_all').prop('checked', false) } } funktion toggleSelectAllChapter(){ if($('#check_all') .is(':checked')){ $('.check_chapter').prop('checked', true) } else{ $('.check_chapter').prop('checked', false) } toggleSelectChapter('' ) } ความสนุก buyAllChapter(article_name, product_guid_list, product_type, is_passable_chapter) { var user_token = CookiesJS.getCookie('user_token'); เด็ก more_than_1_chap = 0; สำหรับ (var i en product_guid_list) { more_than_1_chap++; ถ้า (more_than_1_chap > 1) แตก; } ถ้า (user_token) { var is_activate_coin_user = CookiesJS.getCookie('is_activate_coin_user'); // ถ้า(is_activate_coin_user != 1) // { // var html = ''; // html += '
ฉันยังไม่ได้ลงทะเบียน mepcoin เข้าไปก่อน.
'; // //html += '
'; // html += ''; // html += '' // html += ''; // html += '' // html += '
'; // // itemH.jPopupWidth('', html); // // $('#regis_mebcoin').click(function(){ // Header.submitFormByElementId('form-submit-to-coin'); // itemH.jUnblockUI(); // }); // // กลับเท็จ; // } ส่วนหัว var = ''; var item_buy = ''; ตั้งค่า button_buy = ''; var total_baht_price = 0; more_than_1_section > 1 ? 'คุณจะซื้อตอนทั้งหมดของเรื่อง '+article_name+' จะได้รับตอนต่อไป': 'ซื้อตอน'; ถ้า (more_than_1_chap > 1) { ส่วนหัว += ''; ส่วนหัว += '
'; ส่วนหัว += ''+h_text+''; ส่วนหัว += '
'; ส่วนหัว += '
(รายการเหล่านี้ไม่รวมตอนที่คุณซื้อก่อนหน้านี้)
'; item_buy += '
'; item_buy += ' | ตัวเลข | '; item_buy += 'ชื่อส่วน | '; item_buy += 'ถ่าย | '; item_buy += '
---|---|---|---|
'; item_buy += ' | '+ลำดับบท+' | '; item_buy += ''+บท_ชื่อ_ชื่อ+' | '; item_buy += '
| '; item_buy += '
'; buy_button += '
'; button_buy +=''; button_buy += 'ส่วนทั้งหมดตอน'; buy_button += '
'; botón_comprar += ''; $('#modal-buy-all').find('.modal-footer').show(); $('#modal-buy-all').find('div[class=modal-dialog]').css('max-width', '800px'); $('#modal-buy-all').find('div[class=modal-dialog]').css('margin', ''); } อื่น { const { บาท_ราคา, Chapter_Guid, Chapter_order, Chapter_title, Chapter_subtitle } = produktguide_liste[0]; เอนคาเบซาโด = `
${h_text}
`; เด็ก html_pass_button = ''; ถ้า (er_passable_chapter) { const readable_end_hours_json = storage.getStorage ('readable_end_hours'); buy_chapter_guid = product_guide_list[0]['chapter_guid']; เด็กหนุ่ม readable_end_hours_list = {}; ถ้า (readable_end_hours_json) { readable_end_hours_list = jQuery.parseJSON (readable_end_hours_json); } lad readable_end_text = ''; if(readable_end_hours_list[article_guid] && !isNaN(readable_end_hours_list[article_guid])) { ให้ readable_end_hours = parseInt(readable_end_hours_list[article_guid]); if(readable_end_hours >= 24) { let readable_end_day = Math.ceil(readable_end_hours/24);readable_end_text = `อ่าน 1 PASS จนกว่าจะถึง ${readable_end_day} ฟรี`; } อื่น { readable_end_text = `Brug 1 PASS สำหรับ ${readable_end_hours} ฟรีที่ lære`; } } อื่น { readable_end_text = 'Brug 1 PASS สำหรับ leer'; } html_pass_button = `
${readable_end_text}
` } อื่นๆ { buy_chapter_guid = product_guid_list[0]['chapter_guid']; } item_purchase = `
หัวข้อ ${article_name}
${chapter_title} ${chapter_subtitle}
${html_pass_button}
จ่ายทันที ${parseInt(baht_price)} เหรียญ
`; botón_comprar = ``; $('#modal-buy-all').find('.modal-footer').hide(); $('#modal-buy-all').find('div[class=modal-dialog]').css('max-width', '300px'); $('#modal-buy-all').find('div[class=modal-dialog]').css('margin', '20vh auto'); } listRestrictChapter($('#modal-restrict-chapter-all')); // เปรียบเทียบสิ่งที่ต้องทำ if(Array.isArray(product_guid_list)) { toggleSelectChapter(); $('#modal-header-buy-all').html(ส่วนหัว); $('#cuerpo-modal-comprar-todo').html(item_buy); $('#modal-buy-all').find('.modal-footer').html(button_buy); $('#btnComfirmBuyAll').click(function(){ $('#modal-buy-all').modal('hide'); setParamModal(product_guid_list, product_type); displayModalPayViaMebcoin(); }); if(navigator.userAgent.match(/iPhone|iPad|iPod/i) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) { $('#modal-buy-all') on('show.bs.modal', function() { $(this) .css({ ตำแหน่ง: 'absolute', marginTop: ($(window).scrollTop()-$('#headerMenuMobile').height( )) + 'px', abajo: 'auto' }); setTimeout( function() { $('.modal-backdrop').css({ ตำแหน่ง: 'สัมบูรณ์', ด้านบน: 0, venstre: 0, ความกว้าง: '100%', altura: Math.max( documento.cuerpo.scrollHeight, documento.documentElement.scrollHeight, documento.cuerpo.offsetHeight, documento.documentElement.offsetHeight, documento.cuerpo.clientHeight, documento.documentElement.clientHeight ) + 'px ' }); }, 0); }).modal('mostrar'); } อื่น { $('#modal-buy-all').modal({ถุง: "คงที่",แสดง: จริง}); } if((navigator.userAgent.match(/iPhone|iPod|Android|webOS|BlackBerry|IEMobile|Opera Mini/i) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) && $ (ventana).height() < 768) { $('#modal-buy-all').find('.modal-body').css({ maxHeight: '50vh' }); } } // comprar capítulo else { setParamModal(product_guid_list, product_type); displayModalPayViaMebcoin(); } } más { //Iniciar sesión.MostrarIniciar sesión(); เริ่มต้น sesión.showFormLoginAndRegister('เริ่มต้น sesión'); } } funktionslisteRestrictChapter(container_element){ getRestrictChapter(function(data){ if (!data.status.success) { console.error(data.status) container_element.hide(); } andet{ if(data.data.restrict_chapter_list.longitud) > 0){ renderRestrictChapter(data.data.restrict_chapter_list, container_element, function(){ container_element.show(); }) } } }) } ฟังก์ชัน renderRestrictChapter(restrict_chapter_arr, container_element, cb){ cb = cb || ฟังก์ชัน(){} var chap_html = ''; chap_html += '
มีบางตอนในเรื่องนี้ที่เนื้อหาถูกปิดและไม่สามารถเข้าถึงได้ | '; cap_html ++= `ดูเมื่อปิด | `; chap_html += '
---|
'; container_element.html(chap_html) cb(); } เด็กหนุ่ม global_restrict_chapter_list = {}; ฟังก์ชัน getRestrictChapter(cb){ if(global_restrict_chapter_list[article_guid]) { cb(global_restrict_chapter_list[article_guid]) return; } $.ajax({ metode: 'POST', url: "?action=ajax&ajax=1&ajax_case=CallWrapper", data: { api_call: 'Artículo', method_call: 'userGetRestrictChapter', token: CookiesJSJS.get_Cookie , article_guid: article_guid, app_id: DEFAULT_APP_ID, app_platform: APP_PLATFORM, device_id: CookiesJS.getCookie('device_id') }, dataType: "json" }).done(function(data){ global_restrict_chapter_list[article_guid.] status.code === 3 && data. status.message === "Article_userGetRestrictChapter_NotFoundRestrictChapter"){ global_restrict_chapter_list[article_guid].data = {restrict_chapter_list:[]} data.status.success = จริง; } cb (ข้อมูล); .fail(función(){ cb({ estado: { éxito: falso, mensaje: '¡ No se pudo conectar al servidor!' } }); }); } ฟังก์ชัน toggleRestrictChapterList(elemento) { if($(elemento).attr('show') == 1) { $('.item-restr').hide(); $('.toggle_restr_btn').html('ดูตอนปิด') $(elemento).attr('show', '0') } อื่น{ $('.item-restr').show(); $('.toggle_restr_btn').html('ปิด') $(elemento).attr('mostrar', '1') } } ฟังก์ชัน desbloquearChapterByPass(chapter_guid) { PassH.unlockChapterByPass(chapter_guid, UnlockChapterByPassSuccess); } ฟังก์ชั่นปลดล็อค ChapterByPassSuccess(kode) { $('#modal-buy-all').modal('skjul'); $('#modal-pass-unlock').modal('ทางเลือก'); $('#modal-pass-unlock-body').hide(); $('#modal-pass-unlock-success').ซ่อน(); ถ้า (รหัส == 0) { MyPurchaseChapterObj.processMyPurchaseChapter (); $('#modal-pass-unlock-success').show(); $('#modal-pass-unlock-body').html(''); } อื่นถ้า (รหัส == 10) { MyPurchaseChapterObj.processMyPurchaseChapter(); $('#modal-pass-unlock-body').show(); $('#modal-pass-unlock-body').html('ตอนถูกปลดล็อคแล้ว'); } อื่นถ้า (รหัส == 11) { MyPurchaseChapterObj.processMyPurchaseChapter(); $('#modal-pass-unlock-body').show(); $('#modal-pass-unlock-body').html('ไม่อนุญาตให้ใช้ PASS กับตอนนี้'); } อื่น { $('#modal-pass-unlock-body').show(); $('#modal-pass-unlock-body').html('ไม่มี PASS ที่ใช้งานได้'); } } ฟังก์ชัน closePayModal(modal_name) { $('#'+modal_name).modal('ซ่อน'); } ฟังก์ชัน readPurchaseChapter () { window.ubicación.href = SITE_URL_HTTPS + 'c/' + buy_chapter_guid; } ฟังก์ชัน setHeightModal(height = '275') { $('#iframe_sell').css('max-height', `${height}px`); }
อ่านการตั้งค่า
ส่วน
ฟูเอนเต้
ขนาดตัวอักษร
ชุดรูปแบบสี
linjeafstand