diff --git a/home.html b/home.html index 604b03d..bad5a2c 100644 --- a/home.html +++ b/home.html @@ -9,7 +9,7 @@
我已阅读并同意:生成的论文范文仅用于参考,不作为毕业论文使用
@@ -846,98 +845,11 @@ // } return true; } - function showCreateCatalogue() { - stepFlag = false; - geiAiUpgradeInfo(createCatalogue) - } + function showAdviseTitle() { geiAiUpgradeInfo(adviseTitle) } - function createCatalogue() { - if (!$('.agree-item').hasClass('active')) { - alert("请阅读并勾选同意《服务条款》"); - return; - } - var chkType = $('li.active_select').attr('type'); - $.ajax({ - type: "post", - url: service_domain + 'ajax_get_config', - async: false, - data: { - type: chkType, - is_pc_webpage: 1 - }, - success: function (jsondata) { - var data = JSON.parse(jsondata); - if (!data.status) { - alert(data.info); - return; - } - let pathType = { - '94': 'aiessayzx', - '82': 'aiessayen' - } - var title = $(".inputChange").val(); - var r = checkTitle(title); - if (!r) return; - var edu = parseInt($('#educationRight').find('input[type="radio"]:checked').val()); - if (edu <= 0 || !edu) { - alert("请选择您的学历"); - return; - } - if (chkType != '82' && $('.form_essayWords').css('display') !== 'none') { - var wordnums = parseInt($('input[type="radio"][name="wordnums"]:checked').val()); - if (wordnums <= 0 || isNaN(wordnums)) { - alert("请选择您的字数"); - return; - } - } - - var major = parseInt($('.dropdown-input').attr('selected_val')); - - if (major <= 0 || !major) { - alert("请选择您的专业"); - return; - } - var table_and_formulas_obj = $('#paper-table_and_formulas-wrapper').find('input:checked'); - var table_and_formulas = ''; - for (var index = 0; index < table_and_formulas_obj.length; index++) { - var table_and_formulasval = table_and_formulas_obj.eq(index).val(); - if (table_and_formulas == '') { - table_and_formulas = table_and_formulasval; - continue; - } - table_and_formulas += ',' + table_and_formulasval; - } - //固定外部链接 - var url = service_domain + pathType[chkType] + "/catalogue?title=" + encodeURIComponent(title); - // var url = data.data.agent_domain + "/catalogue?title=" + encodeURIComponent(title); - var content_min_limit = $("#htmlconfig").attr('content_min_limit'); - if ($('.coreContent').css('display') !== 'none') { - var core_content = $('.textAreaForWordCount').val(); - if (core_content.trim().length == 0 && content_min_limit > 0) { - alert("论文核心内容不能为空"); - return; - } - url += '&core=' + encodeURIComponent(core_content.trim()); - } - if (table_and_formulas != '' && table_formula_types.indexOf(chkType) !== -1) url += '&table_and_formulas=' + table_and_formulas; - if ($('.form_essayWords').css('display') !== 'none') { - url += '&aiessay_wordnum=' + wordnums; - } - if (major) url += '&major=' + major; - if (edu) url += '&edu=' + edu; - if (stepFlag) { - showNextStep(title, chkType, wordnums, eduObj, edu) - return - } - setTimeout(() => { - window.open(url); - }, 1500) - } - }); - } function getTableFormulaTypes() { var support_table_formula_types = $("#htmlconfig").attr("support_table_formula_types"); if (!support_table_formula_types) return ''; @@ -1191,7 +1103,7 @@