diff --git a/home.html b/home.html index e8df747..b92621e 100644 --- a/home.html +++ b/home.html @@ -109,13 +109,18 @@ 专升本计划书 --> -
  • + +
  • + + 期刊范文 +
  • - + 开题报告
  • @@ -285,26 +290,6 @@ placeholder="请输入相关的辅助信息,帮助论文生成的更加准确!(非必填)"> -
    论文字数 @@ -349,6 +334,26 @@

    将在所生成范文的随机位置插入所选项

    + {$access_stats_code} - + \ No newline at end of file diff --git a/style/img/kaitibaogao.png b/style/img/kaitibaogao.png new file mode 100644 index 0000000..e27686f Binary files /dev/null and b/style/img/kaitibaogao.png differ diff --git a/style/js/index.js b/style/js/index.js index 6ad56be..da6639a 100644 --- a/style/js/index.js +++ b/style/js/index.js @@ -73,6 +73,7 @@ $(document).ready(function() { '94':'毕业论文', '81':'课程论文', '85':'职称论文', + '97':'期刊范文', '62':'开题报告', '64':'论文选题', '91':'文献综述', @@ -155,17 +156,20 @@ $(document).ready(function() { if(wordsData){ var edu = parseInt($('#educationRight').find('.edu_active_select input').val()); // var edu1 = parseInt($('#educationRight').find('input[type="radio"]:checked').val()); - var html1 = '' - wordsData[edu].forEach(item=>{ - html1 += `
    - -
    - -
    ` - }) - $('.words_content').html(html1) + renderWordsHtml(wordsData[edu]) } } + function renderWordsHtml(data){ + var html1 = '' + data.forEach(item=>{ + html1 += `
    + +
    + +
    ` + }) + $('.words_content').html(html1) + } $('.words_content').on('click', '.essayWords input', function () { $('.words_content .essayWords').removeClass('essayWords_active'); $(this).parent().addClass('essayWords_active'); @@ -715,6 +719,7 @@ $(document).ready(function() { alert("请选择您的字数"); return; } + postData.aiessay_wordnum = wordnums; } if(check_type == '96'){ if (!old_parent_ppt) { @@ -795,7 +800,7 @@ $(document).ready(function() { ...postData }, success: function (res) { - if(res.data.user_not_enough_money) { + if(res.data && res.data.user_not_enough_money) { if(check_type !== '94' && check_type !== '82'){ if(isPayDialog){ $('.pageMask').addClass('hide'); @@ -818,6 +823,8 @@ $(document).ready(function() { getRechargePayUrl() // getRechargeGoods(payInfo, configData); } + }else{ + alert(res.info) } } }); @@ -1042,7 +1049,7 @@ $(document).ready(function() { $('.normal_step3').removeClass('step_three') $('.payModal_main').html('') $('.pay_complete_main').html(payhtml) - getWordsCount() + getCurWordsCount() }else{ setDomHide(['[step="3"]','.btn_result','.step_two','.btn_mast']) setDomShow(['[step="2"]','.btn_result_now']) @@ -1082,6 +1089,15 @@ $(document).ready(function() { $('.form_pptItem').hide() $('#formInputSumbtn').html('立即生成') } + if(t == '97'){ + setDomShow(['.form_essayWords','.coreContent']) + var wordsData = allAiServicesData[check_type]['word_count_list']; + renderWordsHtml(wordsData) + setInputText_length('100') + } + // else{ + // setDomHide(['.form_essayWords','.coreContent']) + // } // $("#downdemo").attr('href', '/downreportdemo/type/'+t); //图表公式 var table_formula_types = getTableFormulaTypes('support_table_formula_types'); @@ -1172,7 +1188,7 @@ $(document).ready(function() { }) $('.gallery').html(html); $('.gallery_img').eq(child_ppt).addClass('ppt_child_active'); - $('.look_backImg').attr('src',pptUrlList[new_parent_ppt]['bgurl']) + $('.look_backImg').attr('src',pptUrlList[key]['bgurl']) setBackImgUrl(childList[child_ppt],true) } } @@ -1242,12 +1258,12 @@ $(document).ready(function() { if ($('.form_pptItem').css('display') == 'none') { add_ppt=new_parent_ppt; $('#cur_ppt_selectName').html(pptUrlList[add_ppt]['name']) + payAction() }else{ old_parent_ppt = new_parent_ppt; setPagePPT_active(new_parent_ppt) } $('.look_PPT_modal').addClass('hide') - payAction() })