Browse Source

课程论文增加字数选择项

pull/13/head
zq 3 months ago
parent
commit
b9b49dd773
  1. 4
      home.html
  2. 10
      style/js/index.js

4
home.html

@ -293,7 +293,7 @@
<div class="formItem form_essayWords"> <div class="formItem form_essayWords">
<div class="formLeft"> <div class="formLeft">
论文字数 论文字数
<img class="requiredIcon" src="{$priv_style}/img/required_icon.svg" alt=""> <!-- <img class="requiredIcon" src="{$priv_style}/img/required_icon.svg" alt=""> -->
</div> </div>
<div class="formRight educationRight words_content" id="textLength"> <div class="formRight educationRight words_content" id="textLength">
</div> </div>
@ -1187,7 +1187,7 @@
</div> </div>
{$access_stats_code} {$access_stats_code}
<script src="{$priv_style}/js/index.js?v=1105"></script> <script src="{$priv_style}/js/index.js?v=1106"></script>
</body> </body>
</html> </html>

10
style/js/index.js

@ -178,7 +178,9 @@ $(document).ready(function() {
$('#educationRight').on('click', '.education input', function () { $('#educationRight').on('click', '.education input', function () {
$('#educationRight .education').removeClass('edu_active_select'); $('#educationRight .education').removeClass('edu_active_select');
$(this).parent().addClass('edu_active_select'); $(this).parent().addClass('edu_active_select');
if(check_type == '94'){
getCurWordsCount() getCurWordsCount()
}
}) })
//首页增值服务相关展示 //首页增值服务相关展示
let servicedsHtml = '' let servicedsHtml = ''
@ -721,9 +723,11 @@ $(document).ready(function() {
if ($('.form_essayWords').css('display') !== 'none') { if ($('.form_essayWords').css('display') !== 'none') {
var wordnums = parseInt($('input[type="radio"][name="wordnums"]:checked').val()); var wordnums = parseInt($('input[type="radio"][name="wordnums"]:checked').val());
if (wordnums <= 0 || isNaN(wordnums)) { if (wordnums <= 0 || isNaN(wordnums)) {
if(check_type!= '81'){
alert("请选择您的字数"); alert("请选择您的字数");
return; return;
} }
}
postData.aiessay_wordnum = wordnums; postData.aiessay_wordnum = wordnums;
} }
if(check_type == '96'){ if(check_type == '96'){
@ -1094,12 +1098,14 @@ $(document).ready(function() {
$('.form_pptItem').hide() $('.form_pptItem').hide()
$('#formInputSumbtn').html('立即生成') $('#formInputSumbtn').html('立即生成')
} }
if(t == '97'){ if(t == '97' || t == '81'){
setDomShow(['.form_essayWords']) setDomShow(['.form_essayWords'])
var wordsData = allAiServicesData[check_type]['word_count_list']; var wordsData = allAiServicesData[check_type]['word_count_list'];
renderWordsHtml(wordsData) renderWordsHtml(wordsData)
if(t == '97'){
setInputText_length('100') setInputText_length('100')
} }
}
// else{ // else{
// setDomHide(['.form_essayWords','.coreContent']) // setDomHide(['.form_essayWords','.coreContent'])
// } // }
@ -1116,7 +1122,7 @@ $(document).ready(function() {
changeLiActive(t,'support_titleMore','.normal_recommend_title')// 标题优化 changeLiActive(t,'support_titleMore','.normal_recommend_title')// 标题优化
changeLiActive(t,'support_pro','.custom-dropdown')// 专业优化 changeLiActive(t,'support_pro','.custom-dropdown')// 专业优化
changeLiActive(t,'support_edu','.formItem_pro')// 学历优化 changeLiActive(t,'support_edu','.formItem_pro')// 学历优化
changeLiActive(t,'support_core','.coreContent')// 学历优化 changeLiActive(t,'support_core','.coreContent')// 核心内容优化
window.scrollTo({ top: 200, behavior: 'smooth' }) window.scrollTo({ top: 200, behavior: 'smooth' })
// if($('.custom-dropdown').hasClass('disNone') && $('.opt-advise').hasClass('disNone')){} // if($('.custom-dropdown').hasClass('disNone') && $('.opt-advise').hasClass('disNone')){}
}); });

Loading…
Cancel
Save