|
@ -4,9 +4,10 @@ $(document).ready(function() { |
|
|
var notChecked = ''; |
|
|
var notChecked = ''; |
|
|
var checked = ''; |
|
|
var checked = ''; |
|
|
var payResultTimer = null; |
|
|
var payResultTimer = null; |
|
|
var service_domain = location.origin+'/'; |
|
|
// var service_domain = location.origin+'/';
|
|
|
// var service_domain = 'https://www.90616.com/'
|
|
|
var service_domain = 'https://www.90616.com/' |
|
|
// var service_domain = 'https://aitest.chachongz.com/'
|
|
|
// var service_domain = 'https://aitest.chachongz.com/'
|
|
|
|
|
|
// var service_domain = 'https://zq.pengda.checkcopy.com/'
|
|
|
var isPayDialog = false |
|
|
var isPayDialog = false |
|
|
var allPostData = new Object() |
|
|
var allPostData = new Object() |
|
|
var old_parent_ppt = null; //首页选择的
|
|
|
var old_parent_ppt = null; //首页选择的
|
|
@ -24,8 +25,7 @@ $(document).ready(function() { |
|
|
var noCheckList = ['62', '63', '81'] |
|
|
var noCheckList = ['62', '63', '81'] |
|
|
var cssurl = $('#styleUrl').attr('url'); |
|
|
var cssurl = $('#styleUrl').attr('url'); |
|
|
// var cssurl= './style/img/'//dev
|
|
|
// var cssurl= './style/img/'//dev
|
|
|
var pptUrlList = [ |
|
|
var pptUrlList = [{ |
|
|
{ |
|
|
|
|
|
name: '清新绿意通用模版', |
|
|
name: '清新绿意通用模版', |
|
|
url: '', |
|
|
url: '', |
|
|
list: [], |
|
|
list: [], |
|
@ -88,8 +88,7 @@ $(document).ready(function() { |
|
|
'3': '公式', |
|
|
'3': '公式', |
|
|
'4': '代码', |
|
|
'4': '代码', |
|
|
} |
|
|
} |
|
|
var addservicedsDescList = [ |
|
|
var addservicedsDescList = [{ |
|
|
{ |
|
|
|
|
|
title: '论文封面', |
|
|
title: '论文封面', |
|
|
desc: '贴合学校查重结果,原创力MAX' |
|
|
desc: '贴合学校查重结果,原创力MAX' |
|
|
}, |
|
|
}, |
|
@ -126,6 +125,7 @@ $(document).ready(function() { |
|
|
bindFileUpload(); |
|
|
bindFileUpload(); |
|
|
initFun() |
|
|
initFun() |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
function initFun() { |
|
|
function initFun() { |
|
|
getadd_Value('94') |
|
|
getadd_Value('94') |
|
|
getWordsCount() |
|
|
getWordsCount() |
|
@ -152,6 +152,7 @@ $(document).ready(function() { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function getCurWordsCount() { |
|
|
function getCurWordsCount() { |
|
|
var wordsData = allAiServicesData[check_type]['major2wordcount']; |
|
|
var wordsData = allAiServicesData[check_type]['major2wordcount']; |
|
|
if (wordsData) { |
|
|
if (wordsData) { |
|
@ -160,6 +161,7 @@ $(document).ready(function() { |
|
|
renderWordsHtml(wordsData[edu]) |
|
|
renderWordsHtml(wordsData[edu]) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function renderWordsHtml(data) { |
|
|
function renderWordsHtml(data) { |
|
|
var html1 = '' |
|
|
var html1 = '' |
|
|
data.forEach(item => { |
|
|
data.forEach(item => { |
|
@ -264,6 +266,7 @@ $(document).ready(function() { |
|
|
'96': '', |
|
|
'96': '', |
|
|
'AIGC': cssurl + '/img/AIGC_preview.png' |
|
|
'AIGC': cssurl + '/img/AIGC_preview.png' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function getadd_Value(type) { |
|
|
function getadd_Value(type) { |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
type: "post", |
|
|
type: "post", |
|
@ -330,6 +333,7 @@ $(document).ready(function() { |
|
|
stepFlag = true; |
|
|
stepFlag = true; |
|
|
geiAiUpgradeInfo(createCatalogue) |
|
|
geiAiUpgradeInfo(createCatalogue) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
function createCatalogue() { |
|
|
function createCatalogue() { |
|
|
if (!$('.agree-item').hasClass('active')) { |
|
|
if (!$('.agree-item').hasClass('active')) { |
|
|
alert("请阅读并勾选同意《服务条款》"); |
|
|
alert("请阅读并勾选同意《服务条款》"); |
|
@ -414,6 +418,7 @@ $(document).ready(function() { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function showNextStep(title, chkType, wordnums, eduObj, edu) { |
|
|
function showNextStep(title, chkType, wordnums, eduObj, edu) { |
|
|
//修改步骤条状态
|
|
|
//修改步骤条状态
|
|
|
$('.step_line').removeClass('suc_step_line') |
|
|
$('.step_line').removeClass('suc_step_line') |
|
@ -439,6 +444,7 @@ $(document).ready(function() { |
|
|
// }
|
|
|
// }
|
|
|
showPayModal() |
|
|
showPayModal() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function geiAiUpgradeInfo(callback, param) { |
|
|
function geiAiUpgradeInfo(callback, param) { |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
type: "post", |
|
|
type: "post", |
|
@ -596,7 +602,10 @@ $(document).ready(function() { |
|
|
} |
|
|
} |
|
|
$(this).addClass('pay_active') |
|
|
$(this).addClass('pay_active') |
|
|
let pay_type = $('.pay_active').attr('pay_type'); |
|
|
let pay_type = $('.pay_active').attr('pay_type'); |
|
|
allPostData = {...allPostData,pay_type} |
|
|
allPostData = { |
|
|
|
|
|
...allPostData, |
|
|
|
|
|
pay_type |
|
|
|
|
|
} |
|
|
payAction() |
|
|
payAction() |
|
|
}) |
|
|
}) |
|
|
$('.pay_complete_main').on('click', '.pay_every', function () { |
|
|
$('.pay_complete_main').on('click', '.pay_every', function () { |
|
@ -605,7 +614,10 @@ $(document).ready(function() { |
|
|
} |
|
|
} |
|
|
$(this).addClass('pay_active') |
|
|
$(this).addClass('pay_active') |
|
|
let pay_type = $('.pay_active').attr('pay_type'); |
|
|
let pay_type = $('.pay_active').attr('pay_type'); |
|
|
allPostData = {...allPostData,pay_type} |
|
|
allPostData = { |
|
|
|
|
|
...allPostData, |
|
|
|
|
|
pay_type |
|
|
|
|
|
} |
|
|
payAction() |
|
|
payAction() |
|
|
}) |
|
|
}) |
|
|
$('.close_modal').on('click', function (e) { |
|
|
$('.close_modal').on('click', function (e) { |
|
@ -632,10 +644,12 @@ $(document).ready(function() { |
|
|
} |
|
|
} |
|
|
clearTimeout(payResultTimer); |
|
|
clearTimeout(payResultTimer); |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
function getPayType() { |
|
|
function getPayType() { |
|
|
var paytype = $('.pay_active').attr('pay_type'); |
|
|
var paytype = $('.pay_active').attr('pay_type'); |
|
|
return paytype; |
|
|
return paytype; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function payAction() { |
|
|
function payAction() { |
|
|
var flag = noCheckList.includes(check_type) |
|
|
var flag = noCheckList.includes(check_type) |
|
|
value_added_select = []; |
|
|
value_added_select = []; |
|
@ -763,7 +777,12 @@ $(document).ready(function() { |
|
|
if (check_type == '94' || check_type == '82') { |
|
|
if (check_type == '94' || check_type == '82') { |
|
|
postData.value_added_services = value_added_select.join(',') |
|
|
postData.value_added_services = value_added_select.join(',') |
|
|
} |
|
|
} |
|
|
allPostData = {...allPostData,check_flag,recharge_goods_id:'0',...postData} |
|
|
allPostData = { |
|
|
|
|
|
...allPostData, |
|
|
|
|
|
check_flag, |
|
|
|
|
|
recharge_goods_id: '0', |
|
|
|
|
|
...postData |
|
|
|
|
|
} |
|
|
$('.normal_step').removeClass('active_step') |
|
|
$('.normal_step').removeClass('active_step') |
|
|
$('.step_line').removeClass('suc_step_line') |
|
|
$('.step_line').removeClass('suc_step_line') |
|
|
$('.step_line').eq(0).addClass('suc_step_line') |
|
|
$('.step_line').eq(0).addClass('suc_step_line') |
|
@ -772,6 +791,7 @@ $(document).ready(function() { |
|
|
//检验信息
|
|
|
//检验信息
|
|
|
getPayQrcode(postData) |
|
|
getPayQrcode(postData) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function clearhisText() { |
|
|
function clearhisText() { |
|
|
$('.inputChange').val('') //重置输入框文本
|
|
|
$('.inputChange').val('') //重置输入框文本
|
|
|
$('.key_words_input').val('') //重置输入框文本
|
|
|
$('.key_words_input').val('') //重置输入框文本
|
|
@ -780,6 +800,7 @@ $(document).ready(function() { |
|
|
$('.coreWordCount').val('') |
|
|
$('.coreWordCount').val('') |
|
|
if ($('.normal_recommend_title').hasClass('recommend_title')) $('.normal_recommend_title').removeClass('recommend_title') |
|
|
if ($('.normal_recommend_title').hasClass('recommend_title')) $('.normal_recommend_title').removeClass('recommend_title') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function errorJump() { |
|
|
function errorJump() { |
|
|
// if(isPayDialog) {
|
|
|
// if(isPayDialog) {
|
|
|
location.reload(); |
|
|
location.reload(); |
|
@ -791,13 +812,13 @@ $(document).ready(function() { |
|
|
|
|
|
|
|
|
payAction() |
|
|
payAction() |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
function getPayQrcode(postData) { |
|
|
function getPayQrcode(postData) { |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
type: "post", |
|
|
type: "post", |
|
|
url: '/bd_buy_click_log', |
|
|
url: '/bd_buy_click_log', |
|
|
async: false, |
|
|
async: false, |
|
|
success: function(jsondata2) { |
|
|
success: function (jsondata2) {} |
|
|
} |
|
|
|
|
|
}); |
|
|
}); |
|
|
// let pay_type = getPayType();
|
|
|
// let pay_type = getPayType();
|
|
|
// postData.pay_type = pay_type
|
|
|
// postData.pay_type = pay_type
|
|
@ -838,6 +859,7 @@ $(document).ready(function() { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function getRechargePayUrl() { |
|
|
function getRechargePayUrl() { |
|
|
var postData1 = new Object(); |
|
|
var postData1 = new Object(); |
|
|
postData1.type = allPostData.check_type; |
|
|
postData1.type = allPostData.check_type; |
|
@ -887,7 +909,9 @@ $(document).ready(function() { |
|
|
url: service_domain + allPostData.check_flag + '/ajax_get_ai_pay_url', |
|
|
url: service_domain + allPostData.check_flag + '/ajax_get_ai_pay_url', |
|
|
type: 'post', |
|
|
type: 'post', |
|
|
dataType: 'json', |
|
|
dataType: 'json', |
|
|
data:{...postData1}, |
|
|
data: { |
|
|
|
|
|
...postData1 |
|
|
|
|
|
}, |
|
|
success: function (res) { |
|
|
success: function (res) { |
|
|
if (res.status) { |
|
|
if (res.status) { |
|
|
$('#qrcode').html(''); |
|
|
$('#qrcode').html(''); |
|
@ -991,18 +1015,31 @@ $(document).ready(function() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
$('.step_main').on('click', '.normal_step1', function () { |
|
|
$('.step_main').on('click', '.normal_step1', function () { |
|
|
window.scrollTo({ top: 200, behavior: 'smooth' }) |
|
|
window.scrollTo({ |
|
|
|
|
|
top: 200, |
|
|
|
|
|
behavior: 'smooth' |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
$('.step_main').on('click', '.normal_step2.success_step', function () { |
|
|
$('.step_main').on('click', '.normal_step2.success_step', function () { |
|
|
window.scrollTo({ top: 500, behavior: 'smooth' }) |
|
|
window.scrollTo({ |
|
|
|
|
|
top: 500, |
|
|
|
|
|
behavior: 'smooth' |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
$('.step_main').on('click', '.normal_step3.active_step', function () { |
|
|
$('.step_main').on('click', '.normal_step3.active_step', function () { |
|
|
if (check_type == '94') { |
|
|
if (check_type == '94') { |
|
|
window.scrollTo({ top: 1000, behavior: 'smooth' }) |
|
|
window.scrollTo({ |
|
|
|
|
|
top: 1000, |
|
|
|
|
|
behavior: 'smooth' |
|
|
|
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
window.scrollTo({ top: 800, behavior: 'smooth' }) |
|
|
window.scrollTo({ |
|
|
|
|
|
top: 800, |
|
|
|
|
|
behavior: 'smooth' |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
function goLoadDown(tid, dom) { |
|
|
function goLoadDown(tid, dom) { |
|
|
$('.right_btn').removeClass('activebtn') |
|
|
$('.right_btn').removeClass('activebtn') |
|
|
$('.right_btn').eq(1).addClass('activebtn') |
|
|
$('.right_btn').eq(1).addClass('activebtn') |
|
@ -1016,6 +1053,7 @@ $(document).ready(function() { |
|
|
$('.report_input').val(tid) //22383694321962804
|
|
|
$('.report_input').val(tid) //22383694321962804
|
|
|
searchOrder() |
|
|
searchOrder() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function resetStep_status() { |
|
|
function resetStep_status() { |
|
|
$('.normal_step').removeClass('success_step') |
|
|
$('.normal_step').removeClass('success_step') |
|
|
$('.normal_step').removeClass('active_step') |
|
|
$('.normal_step').removeClass('active_step') |
|
@ -1123,19 +1161,25 @@ $(document).ready(function() { |
|
|
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')){}
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
function setDomHide(arr) { |
|
|
function setDomHide(arr) { |
|
|
arr.forEach(item => { |
|
|
arr.forEach(item => { |
|
|
$(item).hide() |
|
|
$(item).hide() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function setDomShow(arr) { |
|
|
function setDomShow(arr) { |
|
|
arr.forEach(item => { |
|
|
arr.forEach(item => { |
|
|
$(item).show() |
|
|
$(item).show() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function setInputText_length(num) { |
|
|
function setInputText_length(num) { |
|
|
$('.inputText').attr('max', num) |
|
|
$('.inputText').attr('max', num) |
|
|
$('.inputText').text('0/' + num) |
|
|
$('.inputText').text('0/' + num) |
|
@ -1151,6 +1195,7 @@ $(document).ready(function() { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function getTableFormulaTypes(attr_type) { |
|
|
function getTableFormulaTypes(attr_type) { |
|
|
var support_table_formula_types = $("#htmlconfig").attr(attr_type); |
|
|
var support_table_formula_types = $("#htmlconfig").attr(attr_type); |
|
|
if (!support_table_formula_types) return ''; |
|
|
if (!support_table_formula_types) return ''; |
|
@ -1220,10 +1265,12 @@ $(document).ready(function() { |
|
|
child_ppt = 0; |
|
|
child_ppt = 0; |
|
|
setLeftShow(old_parent_ppt) |
|
|
setLeftShow(old_parent_ppt) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
function setPagePPT_active(index) { |
|
|
function setPagePPT_active(index) { |
|
|
$('.form_pptItem .ppt_tem_item').removeClass('ppt_item_active') |
|
|
$('.form_pptItem .ppt_tem_item').removeClass('ppt_item_active') |
|
|
$('.form_pptItem .ppt_tem_item').eq(index).addClass('ppt_item_active'); |
|
|
$('.form_pptItem .ppt_tem_item').eq(index).addClass('ppt_item_active'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function setLookPPT_active(index) { |
|
|
function setLookPPT_active(index) { |
|
|
$('.look_right .ppt_tem_item').removeClass('ppt_item_active') |
|
|
$('.look_right .ppt_tem_item').removeClass('ppt_item_active') |
|
|
$('.look_right .ppt_tem_item').eq(index).addClass('ppt_item_active'); |
|
|
$('.look_right .ppt_tem_item').eq(index).addClass('ppt_item_active'); |
|
@ -1238,6 +1285,7 @@ $(document).ready(function() { |
|
|
child_ppt = index; |
|
|
child_ppt = index; |
|
|
setBackImgUrl(src, false) |
|
|
setBackImgUrl(src, false) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
function setBackImgUrl(url, flag) { |
|
|
function setBackImgUrl(url, flag) { |
|
|
$('.topimg').attr('src', url) |
|
|
$('.topimg').attr('src', url) |
|
|
if (!flag) return |
|
|
if (!flag) return |
|
@ -1387,13 +1435,102 @@ $(document).ready(function() { |
|
|
dataType: 'json', |
|
|
dataType: 'json', |
|
|
type: 'get', |
|
|
type: 'get', |
|
|
success: function (res) { |
|
|
success: function (res) { |
|
|
|
|
|
$('.report_main').show() |
|
|
$('.main_top').html(''); |
|
|
$('.main_top').html(''); |
|
|
|
|
|
$('.main_top2').html(''); |
|
|
if (res.status && res.data.report_list) { |
|
|
if (res.status && res.data.report_list) { |
|
|
$('.empty').hide() |
|
|
$('.empty').hide() |
|
|
$('.report_main').show() |
|
|
|
|
|
$('.downLoad').hide() |
|
|
$('.downLoad').hide() |
|
|
for(var i=0; i<res.data.report_list.length;i++) { |
|
|
// var report_list =[res.data.report_list[27]];
|
|
|
var reportinfo = res.data.report_list[i]; |
|
|
var report_list = res.data.report_list; |
|
|
|
|
|
// var report_list = [
|
|
|
|
|
|
// {
|
|
|
|
|
|
// add_date: "2025-02-27 10:29:15",
|
|
|
|
|
|
// author: "",
|
|
|
|
|
|
// check_url: "xihaha.checkcopy.com/aiessayzx",
|
|
|
|
|
|
// chk_type: "94",
|
|
|
|
|
|
// price: "0.53",
|
|
|
|
|
|
// query_time: "2025-02-28 16:58:10",
|
|
|
|
|
|
// reduce_guide: false,
|
|
|
|
|
|
// reduce_guide2: null,
|
|
|
|
|
|
// report_date: "0000-00-00 00:00:00",
|
|
|
|
|
|
// report_day: 739707,
|
|
|
|
|
|
// sid: "15884332",
|
|
|
|
|
|
// similar_rate: 0,
|
|
|
|
|
|
// status: {
|
|
|
|
|
|
// num: "1",
|
|
|
|
|
|
// str: "完成",
|
|
|
|
|
|
// color: "black",
|
|
|
|
|
|
// extra: "",
|
|
|
|
|
|
// is_change_paper: 0,
|
|
|
|
|
|
// is_report_expire: 1
|
|
|
|
|
|
// },
|
|
|
|
|
|
// tid: "10002174012948076",
|
|
|
|
|
|
// title: "美好的一天",
|
|
|
|
|
|
// type: "AI中文范文",
|
|
|
|
|
|
// uid: "2115",
|
|
|
|
|
|
// wordnum: "50000"
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// add_date: "2025-02-27 10:29:15",
|
|
|
|
|
|
// author: "",
|
|
|
|
|
|
// check_url: "xihaha.checkcopy.com/aiessayzx",
|
|
|
|
|
|
// chk_type: "94",
|
|
|
|
|
|
// price: "0.53",
|
|
|
|
|
|
// query_time: "2025-02-28 16:58:10",
|
|
|
|
|
|
// reduce_guide: false,
|
|
|
|
|
|
// reduce_guide2: null,
|
|
|
|
|
|
// report_date: "0000-00-00 00:00:00",
|
|
|
|
|
|
// report_day: 739707,
|
|
|
|
|
|
// sid: "15884332",
|
|
|
|
|
|
// similar_rate: 0,
|
|
|
|
|
|
// status: {
|
|
|
|
|
|
// num: "1",
|
|
|
|
|
|
// str: "完成",
|
|
|
|
|
|
// color: "black",
|
|
|
|
|
|
// extra: "",
|
|
|
|
|
|
// is_change_paper: 0,
|
|
|
|
|
|
// is_report_expire: 1
|
|
|
|
|
|
// },
|
|
|
|
|
|
// tid: "10002174012948076",
|
|
|
|
|
|
// title: "美好的一天",
|
|
|
|
|
|
// type: "AI中文范文",
|
|
|
|
|
|
// uid: "2115",
|
|
|
|
|
|
// wordnum: "50000"
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// add_date: "2025-02-27 10:29:15",
|
|
|
|
|
|
// author: "",
|
|
|
|
|
|
// check_url: "xihaha.checkcopy.com/aiessayzx",
|
|
|
|
|
|
// chk_type: "94",
|
|
|
|
|
|
// price: "0.53",
|
|
|
|
|
|
// query_time: "2025-02-28 16:58:10",
|
|
|
|
|
|
// reduce_guide: false,
|
|
|
|
|
|
// reduce_guide2: null,
|
|
|
|
|
|
// report_date: "0000-00-00 00:00:00",
|
|
|
|
|
|
// report_day: 739707,
|
|
|
|
|
|
// sid: "15884332",
|
|
|
|
|
|
// similar_rate: 0,
|
|
|
|
|
|
// status: {
|
|
|
|
|
|
// num: "0",
|
|
|
|
|
|
// str: "完成",
|
|
|
|
|
|
// color: "black",
|
|
|
|
|
|
// extra: "",
|
|
|
|
|
|
// is_change_paper: 0,
|
|
|
|
|
|
// is_report_expire: 1
|
|
|
|
|
|
// },
|
|
|
|
|
|
// tid: "10002174012948076",
|
|
|
|
|
|
// title: "美好的一天",
|
|
|
|
|
|
// type: "AI中文范文",
|
|
|
|
|
|
// uid: "2115",
|
|
|
|
|
|
// wordnum: "50000"
|
|
|
|
|
|
// }
|
|
|
|
|
|
// ];
|
|
|
|
|
|
if (report_list.length == 1) { |
|
|
|
|
|
$('.report_main .main_top').show() |
|
|
|
|
|
for (var i = 0; i < report_list.length; i++) { |
|
|
|
|
|
var reportinfo = report_list[i]; |
|
|
|
|
|
console.log(reportinfo, 'reportinfo---'); |
|
|
if (reportinfo.status.num == 5) { |
|
|
if (reportinfo.status.num == 5) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
@ -1406,7 +1543,7 @@ $(document).ready(function() { |
|
|
<label>类  型:</label> |
|
|
<label>类  型:</label> |
|
|
<p>` + reportinfo.type + `</p> |
|
|
<p>` + reportinfo.type + `</p> |
|
|
</div>` |
|
|
</div>` |
|
|
obj += `<div class="main_item">
|
|
|
obj += `<div class="main_item title_main">
|
|
|
<label>标  题:</label> |
|
|
<label>标  题:</label> |
|
|
<p>` + reportinfo.title + `</p> |
|
|
<p>` + reportinfo.title + `</p> |
|
|
</div>` |
|
|
</div>` |
|
@ -1425,15 +1562,7 @@ $(document).ready(function() { |
|
|
</div>` |
|
|
</div>` |
|
|
$('.downLoad').show() |
|
|
$('.downLoad').show() |
|
|
$('.downLoad').attr('herf', service_domain + 'downreport/sid/' + reportinfo.sid + '/tid/' + tid) |
|
|
$('.downLoad').attr('herf', service_domain + 'downreport/sid/' + reportinfo.sid + '/tid/' + tid) |
|
|
} |
|
|
} else { |
|
|
// else if(reportinfo.status.num == 2) {
|
|
|
|
|
|
// obj += '<tr><td class="result-td1">状态:</td><td class="result-td2 result-status-waring">取消('+reportinfo.status.extra+')</td></tr>';
|
|
|
|
|
|
|
|
|
|
|
|
// } else if(reportinfo.status.num == 6) {
|
|
|
|
|
|
// obj += '<tr><td class="result-td1">状态:</td><td class="result-td2 result-status-waring">暂停('+reportinfo.status.extra+')</td></tr>';
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
else { |
|
|
|
|
|
obj += `<div class="main_item">
|
|
|
obj += `<div class="main_item">
|
|
|
<label>状  态:</label> |
|
|
<label>状  态:</label> |
|
|
<p class="waiting">进行中,请等待</p> |
|
|
<p class="waiting">进行中,请等待</p> |
|
@ -1445,14 +1574,36 @@ $(document).ready(function() { |
|
|
} |
|
|
} |
|
|
$('.main_top').append(obj); |
|
|
$('.main_top').append(obj); |
|
|
} |
|
|
} |
|
|
|
|
|
} else if (report_list.length > 1) { |
|
|
|
|
|
var num = 0; |
|
|
|
|
|
var total = report_list.length |
|
|
|
|
|
for (var i = 0; i < report_list.length; i++) { |
|
|
|
|
|
var reportinfo1 = report_list[i]; |
|
|
|
|
|
|
|
|
if($('.main_top').html() == '') { |
|
|
if (reportinfo1.status.num == 1) { |
|
|
$('.empty').show() |
|
|
num += 1 |
|
|
$('.report_main').hide() |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// <img src="' + cssurl + '/assets_v2/img/newai/downLoad-report.svg" alt=""></img>
|
|
|
|
|
|
$('.report_main .main_top2').show() |
|
|
|
|
|
var obj = '<div class="main_orderList"><b> 订单编号:' + tid + '</b><div><span>已完成 ' + num + '/' + total + '</span></div></div>'; |
|
|
|
|
|
for (var i = 0; i < report_list.length; i++) { |
|
|
|
|
|
var reportinfo = report_list[i]; |
|
|
|
|
|
if (reportinfo.status.num == 5) { |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
if (reportinfo.status.num == 1) { |
|
|
|
|
|
obj += '<div class="reportlist-item"><p>' + reportinfo.title + '</p><div class="flex reportlist-item-desc"><div><span>类型:</span><b>' + reportinfo.type + '</b></div><div><span>上传时间:</span><b>' + reportinfo.add_date + '</b></div><div><span>完成时间:</span><b>' + reportinfo.report_date + '</b></div><div class="flex"><span>状态:</span><b><img src="' + cssurl + '/assets_v2/img/newai/loadFinish.svg" alt="">完成</b></div></div><div style="display: flex;justify-content: flex-end;"><button class="primary_btn loadbtn" herf=' + service_domain + 'downreport/sid/' + reportinfo.sid + '/tid/' + tid + '>下载</button></div></div>' |
|
|
} else { |
|
|
} else { |
|
|
$('.empty').show() |
|
|
obj += '<div class="reportlist-item"><p>' + reportinfo.title + '</p><div class="flex reportlist-item-desc"><div><span>类型:</span><b>' + reportinfo.type + '</b></div><div><span>上传时间:</span><b>' + reportinfo.add_date + '</b></div><div><span>完成时间:</span><b>—— ——</b></div><div class="flex"><span>状态:</span><b><img src="' + cssurl + '/assets_v2/img/newai/loadDowning.svg" alt="">进行中</b></div></div><div style="display: flex;justify-content: flex-end;"><button class="primary_btn loadbtn" disabled>下载</button></div></div>' |
|
|
$('.report_main').hide() |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
$('.main_top2').append(obj); |
|
|
|
|
|
$('.report_main .main_top2 .loadbtn').on('click', function () { |
|
|
|
|
|
var href1 = $(this).attr('herf'); |
|
|
|
|
|
location.href = href1 |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
error: function () { |
|
|
error: function () { |
|
|