diff --git a/home.html b/home.html index 17b0997..7cd4c23 100644 --- a/home.html +++ b/home.html @@ -26,11 +26,7 @@
论文写作
-
- 报告下载 - +
报告下载
@@ -68,7 +64,7 @@
-
+
@@ -157,7 +153,10 @@ - + + +
@@ -168,21 +167,21 @@ -
- +
-
+ + +
@@ -282,6 +281,8 @@
+ +
辅助信息
@@ -295,7 +296,7 @@
0/200
- {literal} + - {/literal} +
@@ -454,10 +455,6 @@
知道啦~
-

您将获得

@@ -498,7 +495,6 @@ '2':'本科', '3':'硕博' } - // console.log(location.search); // var service_domain = location.origin+'/' var service_domain = 'https://aitest.chachongz.com/' $(document).ready(function () { @@ -514,6 +510,30 @@ $('.btn_result_now').hide() }); }); + function showDropdown() { + var dropdownContent = document.getElementById("myDropdown"); + dropdownContent.style.display = "block"; + // var major = parseInt($('.dropdown-input').attr('selected_val')); + } + + // 当用户点击其他地方时隐藏下拉框 + window.onclick = function(event) { + if (!event.target.matches('.dropdown-input')) { + var dropdownContent = document.getElementById("myDropdown"); + if (dropdownContent.style.display === "block") { + dropdownContent.style.display = "none"; + } + }else{ + } + } + $('.dropdown-content p').click(function(){ + $('.dropdown-content p').removeClass('selected_back') + $(this).addClass('selected_back') + let value = parseInt($(this).attr('value')); + $('.dropdown-input').val($(this).text()) + $('.dropdown-input').attr('selected_val',value) + }) + function hideUpgradeMoadl() { $('#upgrade-modal').hide() } @@ -630,6 +650,7 @@ } }); } + function stepDone(step, ani){ let obj = document.getElementById('loading-step'+step); obj.innerHTML = ''; @@ -656,6 +677,41 @@ } }); } + // loading 测试 + // var progressTimer = null + // test() + // function showProgress(num) { + // clearInterval(progressTimer) + // var progress = num + // progressTimer = setInterval(function() { + // $('.loading-text').text('加载中...'+progress+'%') + // if(progress + 3 >= 99) { + // console.log(progress,'progress====='); + // clearInterval(progressTimer) + // }else{ + // progress += 3 + // } + // }, 1000); + // } + // function test(){ + // showProgress(8) + // var ani5 = stepLoading(5, 'analysis') + // $.ajax({ + // type:'post', + // url:'https://aitest.chachongz.com/get_aiessay_catalog', + // dataType:'json', + // data: { + // type: '94', + // title: '辣条的辣味研究', + // aiessay_wordnum: '50000' + // }, + // success:function(res){ + // ani5.destroy(); + // showProgress(100); + // clearInterval(progressTimer) + // } + // }); + // } function stepLoading(step, status = 'analysis') { let obj = document.getElementById('loading-step' + step); @@ -851,15 +907,6 @@ return true; } function showCreateCatalogue() { - // $('.normal_step').removeClass('active_step') - // $('.step_line').removeClass('suc_step_line') - // $('.step_line').eq(0).addClass('suc_step_line') - // $('.step_line').eq(1).addClass('suc_step_line') - // $('.normal_step').eq(0).addClass('success_step') - // $('.normal_step').eq(1).addClass('success_step') - // $('.normal_step').eq(2).addClass('active_step') - // $('.step_add_three').removeClass('hide') - // return geiAiUpgradeInfo(createCatalogue) } function showAdviseTitle(){ @@ -872,7 +919,6 @@ return; } var chkType = $('li.active_select').attr('type'); - console.log(chkType,'chkType===='); $.ajax({ type: "post", url: service_domain + 'ajax_get_config', @@ -894,11 +940,6 @@ var title = $(".inputChange").val(); var r = checkTitle(title); if (!r) return; - - // var core_content = $('.textAreaForWordCount').val();//辅助信息 - // var r = checkContent(core_content); - // if (!r) return; - var edu = parseInt($('#educationRight').find('input[type="radio"]:checked').val()); if (edu <= 0 || !edu) { alert("请选择您的学历"); @@ -911,7 +952,9 @@ return; } } - var major = parseInt($('#project_select').find('option:selected').val()); + + var major = parseInt($('.dropdown-input').attr('selected_val')); + if (major <= 0 || !major) { alert("请选择您的专业"); return; @@ -955,15 +998,17 @@ $('.step_add_three').removeClass('hide') $('#mainText').html(title) // $('.user_none').removeClass('hide')//禁用 - // console.log(eduObj[edu],'eduObj[edu]'); if(chkType != '82'){ let mainEduWords = eduObj[edu] + '·约' + wordnums + '字' $('.step_add_three .mainEduWords').html(mainEduWords) - // console.log(mainEduWords,wordnums,'=====wordnums'); }else{ $('.step_add_three .mainEduWords').html(eduObj[edu]) } - window.scrollTo({ top: 800, behavior: 'smooth' }) + if(chkType == '94'){ + window.scrollTo({ top: 1000, behavior: 'smooth' }) + }else{ + window.scrollTo({ top: 800, behavior: 'smooth' }) + } setTimeout(()=>{ window.open(url); },1500) @@ -1028,7 +1073,6 @@
-
@@ -1049,30 +1093,26 @@ const rightButton = document.getElementById('next'); let currentIndex = 0; leftButton.addEventListener('click', function() { - moveLeft(); + moveLeft(); }); - rightButton.addEventListener('click', function() { - moveRight(); + moveRight(); }); - function moveLeft() { if (currentIndex > 0) { currentIndex--; gallery.style.transform = `translateX(${currentIndex * -174 - (currentIndex)*16}px)`; } } - function moveRight() { const images = document.querySelectorAll('.gallery_img'); - if (currentIndex < images.length-4) { // 假设有三张图片 + if (currentIndex < images.length-4) { // 四张固定展示 currentIndex++; gallery.style.transform = `translateX(${currentIndex * -174 - (currentIndex)*16}px)`; } } {/literal} -
取消预览
使用模板
@@ -1085,7 +1125,6 @@
-
@@ -1097,57 +1136,6 @@
-
@@ -1235,78 +1223,6 @@
- -
@@ -1354,8 +1270,8 @@ 联系客服
- 微信扫码添加客服 - 上班时间:9:00-16:00 +

微信扫码添加客服

+

上班时间:9:00-16:00

diff --git a/style/css/index.css b/style/css/index.css index 719c90e..eabc728 100644 --- a/style/css/index.css +++ b/style/css/index.css @@ -74,7 +74,7 @@ body,p,div{ align-items: center; } .kefuCom:hover .kefuQrcode{ - opacity: 1; + display: block !important; transition: all .5s ease; } .kefuCom .linkIcon{ @@ -88,7 +88,7 @@ body,p,div{ line-height: 16px; writing-mode: vertical-rl; } -.kefuCom .kefuQrcode{ +.kefuQrcode{ position: absolute; left: -161px; top: 0px; @@ -101,7 +101,9 @@ body,p,div{ padding: 8px; gap: 6px; border-radius: 6px; - opacity: 0; + text-align: center; + /* opacity: 0; */ + display: none; background: #FFFFFF; box-shadow: 0px 4px 11px 0px rgba(56, 112, 243, 0.1); } diff --git a/style/js/index.js b/style/js/index.js index b53b9b0..8e0aea6 100644 --- a/style/js/index.js +++ b/style/js/index.js @@ -693,13 +693,9 @@ $(document).ready(function() { }); } function getRechargePayUrl(){ - // var core_content = $('.coreWordCount').val(); var postData1 = new Object(); postData1.type = allPostData.check_type; postData1.pay_type = allPostData.pay_type; - // postData1.value_added_services = configData.addedServicesStr;//增值服务 - // if(configData.ppt_tpl != '') postData1.ppt_tpl = configData.ppt_tpl;//ppt - // postData1.recharge_goods_id = '0'; postData1.title = allPostData.title; if(!$('.custom-dropdown').hasClass('disNone')){ var major= parseInt($('.dropdown-input').attr('selected_val')) @@ -886,10 +882,6 @@ $(document).ready(function() { clearhisText()//清空记录 var t = $('li.active_select').attr('type'); check_type = t; - // if(t =='96'){ - // location.href = location.origin+'/aippt' - // return - // } //重置步骤条状态 $('.normal_step').removeClass('success_step') $('.normal_step').removeClass('active_step') @@ -1149,14 +1141,14 @@ $(document).ready(function() { var fileInput = $(this); var files = fileInput.prop('files'); var file = files[0]; // 获取文件 - console.log(files,file.name,'======'); + // console.log(files,file.name,'======'); if (file) { // 这里可以添加上传文件之前的逻辑,例如文件验证 // 创建FormData对象 formData.append('paper_file', file); formData.append('paper_type', '1'); formData.append('is_asynch', '1'); - formData.append('ver_chktype', $("#ppt_type").val()); + formData.append('ver_chktype', check_type); // 使用jQuery AJAX上传文件 $.ajax({ url: 'https://aitest.chachongz.com'+'/upload_file',