您将获得
@@ -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 @@