课程论文增加字数选择项 #13

Merged
zhangqi merged 1 commits from zq-1224-ppt into master 3 months ago
  1. 4
      home.html
  2. 10
      style/js/index.js

4
home.html

@ -293,7 +293,7 @@
<div class="formItem form_essayWords">
<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 class="formRight educationRight words_content" id="textLength">
</div>
@ -1187,7 +1187,7 @@
</div>
{$access_stats_code}
<script src="{$priv_style}/js/index.js?v=1105"></script>
<script src="{$priv_style}/js/index.js?v=1106"></script>
</body>
</html>

10
style/js/index.js

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

Loading…
Cancel
Save