You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3412 lines
122 KiB
3412 lines
122 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>任务书</title>
|
|
<meta name="keywords" content="">
|
|
<meta name="description" content="">
|
|
<link rel="stylesheet" href="//css.kuailelunwen.com/css/ai2/reset.css">
|
|
<link rel="stylesheet" href="./style/css/all.css?v=3.0.88897">
|
|
<script src="./style/js/jquery-3.6.0.min.js"></script>
|
|
<script src="./style/js/index.js"></script>
|
|
</head>
|
|
|
|
<style>
|
|
.btlistype{
|
|
/* width: 100%; */
|
|
height: 50px;
|
|
background: #F6FAFF;
|
|
border-radius: 0px 0px 8px 8px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
line-height: 50px;
|
|
padding: 0px 24px;
|
|
}
|
|
.btlistype div{
|
|
margin-top: 0px;
|
|
}
|
|
.btlistypeLt{
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: #000000;
|
|
width: 62px !important;
|
|
}
|
|
.btlistypeRt{
|
|
flex-grow: 1;
|
|
display: flex;
|
|
}
|
|
.btlistypeRt{
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
}
|
|
.btlistypeRt .item{
|
|
width: 75px;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
color: #3D4B54;
|
|
cursor: pointer;
|
|
}
|
|
.btlistypeRt .item span{
|
|
color: #3D4B54;
|
|
}
|
|
.custom-style-form-right{
|
|
position: relative;
|
|
left: -180px;
|
|
margin-top: 0px !important;
|
|
z-index:8;
|
|
}
|
|
|
|
.uploadfile {
|
|
position: relative;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: stretch;
|
|
width: 735px;
|
|
border-radius: 6px;
|
|
}
|
|
.uploadfile-prepend {
|
|
margin-right: -1px;
|
|
height: 48px;
|
|
line-height: 48px;
|
|
background-color: #1675FF;
|
|
border-radius: 6px 0px 0px 6px;
|
|
}
|
|
.uploadfile-re {
|
|
margin-right: -1px;
|
|
height: 48px;
|
|
line-height: 48px;
|
|
background-color: #E2E2E2;
|
|
border-radius: 6px 0px 0px 6px;
|
|
display:none;
|
|
}
|
|
|
|
.uploadfile-text {
|
|
display: flex;
|
|
align-items: center;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
padding-left:16px;
|
|
color: #fff;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.uploadfile-re-text {
|
|
color: #949494;
|
|
}
|
|
|
|
.uploadfile-text > img {
|
|
height:20px;
|
|
margin-right:6px;
|
|
}
|
|
|
|
.uploadfile-text > span {
|
|
margin-right:16px;
|
|
}
|
|
|
|
.uploadfile>.uploadfile-after {
|
|
position: relative;
|
|
flex: 1 1 auto;
|
|
width: 1%;
|
|
min-width: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
.uploadfile-after {
|
|
display: block;
|
|
width: 100%;
|
|
height: 48px;
|
|
line-height: 48px;
|
|
color: #495057;
|
|
background-color: #fff;
|
|
background-clip: padding-box;
|
|
}
|
|
|
|
.uploadfile-tip {
|
|
padding-left:20px;
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
color: #BFC4C7;
|
|
}
|
|
|
|
.uploadfile-progresstip {
|
|
padding-left:20px;
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
color: #1675FF;
|
|
line-height: 20px;
|
|
display:none;
|
|
}
|
|
.uploadfile-error {
|
|
color: #FF1414;
|
|
}
|
|
|
|
.fileinput {
|
|
display: none;
|
|
}
|
|
|
|
|
|
.pptTplListBox{
|
|
width: 390px;
|
|
height: 250px;
|
|
background: #FFFFFF;
|
|
border-radius: 5px;
|
|
position: absolute;
|
|
right: -350px;
|
|
top: -253px;
|
|
box-sizing: border-box;
|
|
box-shadow: 0px 1px 7px 0px rgba(0, 0, 0, 0.13);
|
|
display: none;
|
|
}
|
|
.pptTplListBox::after{
|
|
content: '';
|
|
position: absolute;
|
|
width: 14px;
|
|
height: 12px;
|
|
bottom: -7px;
|
|
right: 190px;
|
|
z-index: 1;
|
|
background: white;
|
|
transform: rotate(56deg) skew(25deg);
|
|
-webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.13);
|
|
-moz-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.13);
|
|
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.13);
|
|
}
|
|
.pptTplRight div:first-of-type{
|
|
color:red;
|
|
width: 100%;
|
|
text-align: center;
|
|
height: 18px;
|
|
font-size: 13px;
|
|
color: #BFC4C7;
|
|
line-height: 18px;
|
|
}
|
|
.addServiceSelect .pptTplInfo{
|
|
height: 18px;
|
|
font-size: 13px;
|
|
color: #3D4B54;
|
|
line-height: 18px;
|
|
}
|
|
.addServiceSelect .pptTplInfo img{
|
|
width: 13px;
|
|
height: 13px;
|
|
margin-left: 5px !important;
|
|
}
|
|
.pptTplListBox{
|
|
padding:17px 0px;
|
|
box-sizing: border-box;
|
|
}
|
|
.pptTplListBox .pptTplListBoxTitle{
|
|
height: 18px;
|
|
font-size: 13px;
|
|
color: #3D4B54;
|
|
line-height: 18px;
|
|
text-align:center;
|
|
}
|
|
.pptTplListBoxList{
|
|
margin-top: 12px;
|
|
height:188px;
|
|
overflow-x: hidden;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
row-gap: 13px;
|
|
justify-content: space-between;
|
|
padding:0 15px 15px;
|
|
}
|
|
.pptTplListBoxItem{
|
|
position: relative;
|
|
width: 162px !important;
|
|
min-height: 91px !important;
|
|
height:auto !important;
|
|
box-sizing: border-box;
|
|
border-radius: 5px;
|
|
}
|
|
.pptTplListBoxItem img{
|
|
display:block;
|
|
margin:0 auto !important;
|
|
}
|
|
.pptTplListBoxItem img:first-of-type{
|
|
width:30px;
|
|
height:30px;
|
|
position: absolute;
|
|
right:0;
|
|
top:61px;
|
|
display:none;
|
|
}
|
|
.pptTplListBoxItem.active img:first-of-type{
|
|
display:block;
|
|
}
|
|
.pptTplListBoxItem img:last-of-type{
|
|
width: 162px;
|
|
height: 91px;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
border-radius: 5px;
|
|
}
|
|
.pptTplListBoxItem.active img:last-of-type{
|
|
border: 1px solid #1675FF;
|
|
box-shadow: 0px 1px 7px 0px rgba(0,0,0,0.13);
|
|
}
|
|
.pptTplListBoxItem div:last-of-type{
|
|
min-height: 18px;
|
|
height:auto !important;
|
|
font-size: 13px;
|
|
color: #3D4B54;
|
|
line-height: 18px;
|
|
text-align: center;
|
|
margin-top: 4px;
|
|
}
|
|
.pptTplListBoxItemOption{
|
|
position: absolute;
|
|
top: 68px;
|
|
left: 0;
|
|
height: 22px !important;
|
|
background: rgba(0,0,0,0.53);
|
|
border-radius: 0px 0px 5px 5px;
|
|
z-index:8;
|
|
display:none;
|
|
width:100%;
|
|
}
|
|
.pptTplListBoxItemOption div{
|
|
float:left;
|
|
color: #FFFFFF !important;
|
|
font-size: 13px !important;
|
|
text-align: center !important;
|
|
height: 16px !important;
|
|
line-height: 16px !important;
|
|
width:50% !important;
|
|
margin-top: 3px !important;
|
|
}
|
|
.pptTplListBoxItemPreview{
|
|
border-right: 1px solid rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.pptmask{
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0,0.21);
|
|
z-index:898989;
|
|
display: none;
|
|
}
|
|
.pptPreview{
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
margin-left: -450px;
|
|
margin-top: -303px;
|
|
width: 900px;
|
|
height: 566px;
|
|
background: #FFFFFF;
|
|
z-index:8989898;
|
|
box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.14);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
display: none;
|
|
}
|
|
.pptPreviewTitle{
|
|
width: 100%;
|
|
height: 25px;
|
|
font-weight: 500;
|
|
font-size: 18px;
|
|
color: #3D4B54;
|
|
line-height: 25px;
|
|
margin-top: 22px;
|
|
text-align: center;
|
|
}
|
|
.pptPreviewImg{
|
|
width: 844px;
|
|
height: 397px;
|
|
background: #F9FAFA;
|
|
margin: 22px auto 0;
|
|
padding: 16px 26px 26px 26px;
|
|
box-sizing: border-box;
|
|
overflow-x:hidden;
|
|
overflow-y:auto;
|
|
}
|
|
.pptPreviewImgCon{
|
|
width: 792px;
|
|
height: auto;
|
|
padding: 0 0 16px 0;
|
|
box-sizing: border-box;
|
|
}
|
|
.pptPreviewImgCon img{
|
|
width: 792px;
|
|
height: auto;
|
|
}
|
|
#pptPreviewClose{
|
|
position: absolute;
|
|
width: 15px;
|
|
height: 15px;
|
|
top:27px;
|
|
right:29px;
|
|
cursor:pointer;
|
|
}
|
|
.pptPreviewBtn{
|
|
width: 100%;
|
|
display:flex;
|
|
justify-content: center;
|
|
column-gap: 107px;
|
|
margin-top: 30px;
|
|
}
|
|
.pptPreviewBtn div{
|
|
width: 132px;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
text-align: center;
|
|
box-sizeing: border-box;
|
|
border-radius: 3px;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
}
|
|
.pptPreviewBtn .cancel{
|
|
background: #FFFFFF;
|
|
border-radius: 3px;
|
|
border: 1px solid #1675FF;
|
|
color: #1675FF;
|
|
}
|
|
.pptPreviewBtn .submit{
|
|
background: #1675FF;
|
|
box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.1);
|
|
color: #FFFFFF;
|
|
}
|
|
.checkbox_wrap{
|
|
left:0;
|
|
color: grey;
|
|
}
|
|
.checkbox_wrap input[type=checkbox]{
|
|
margin-right: 5px;
|
|
vertical-align: middle;
|
|
margin-bottom: 2px;
|
|
}
|
|
</style>
|
|
|
|
<body class="body_min_width index-body-style" style="background-color: #FFFFFF !important;">
|
|
<div class="main">
|
|
<!-- 登录开始 -->
|
|
<div class="loginCon hide">
|
|
<div class="loginConMask"></div>
|
|
<div class="loginConContent">
|
|
<img src="//css.kuailelunwen.com/images/ai/close.png" alt="" class="loginConClose" onclick="hideLoginModel()">
|
|
<h1 class="loginConQrcodeTitle">
|
|
<img src="//css.kuailelunwen.com/images/ai/wx2.png" alt="">微信扫码登录进行下一步
|
|
</h1>
|
|
|
|
<div class="loginConQrcode">
|
|
<img src="//css.kuailelunwen.com/images/ai/scan_border_top.png" alt="">
|
|
<img src="//css.kuailelunwen.com/images/ai/scan_border_bottom.png" alt="">
|
|
<img id="login_qrcode" src="" alt="">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="userIsLogined"></div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var verifyLoginTimer = null;
|
|
var loginErrorTimer = null;
|
|
|
|
function verifyLogin(pageid, redirectUrl) {
|
|
$.ajax({
|
|
url:'/verify_login',
|
|
type:'post',
|
|
dataType:'json',
|
|
data:{unionid_page_id:pageid},
|
|
success:function(wres){
|
|
if(!wres.status){
|
|
alert(wres.info);
|
|
clearTimeout(loginErrorTimer);
|
|
return;
|
|
}
|
|
if(wres.info=="未登录"){
|
|
verifyLoginTimer = setTimeout(function(){
|
|
verifyLogin(pageid, redirectUrl);
|
|
}, 3000);
|
|
return;
|
|
}
|
|
clearTimeout(loginErrorTimer);
|
|
if (redirectUrl) {
|
|
location.href = redirectUrl;
|
|
return;
|
|
}
|
|
location.reload();
|
|
},
|
|
error:function(){
|
|
clearTimeout(loginErrorTimer);
|
|
alert('网络请求失败');
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function getLoginQrcode(redirectUrl) {
|
|
clearTimeout(loginErrorTimer);
|
|
clearTimeout(verifyLoginTimer);
|
|
|
|
$.ajax({
|
|
url:'/get_pageid',
|
|
type:'post',
|
|
dataType:'json',
|
|
success:function(res){
|
|
if(!res.status){
|
|
alert(res.info);
|
|
return;
|
|
}
|
|
$.ajax({
|
|
url:'/get_login_qrcode',
|
|
type:'post',
|
|
dataType:'json',
|
|
data:{unionid_page_id:res.data},
|
|
success:function(wres){
|
|
if(!wres.status){
|
|
alert(wres.info);
|
|
return;
|
|
}
|
|
$('#login_qrcode').attr('src', wres.data);
|
|
$('.loginCon').removeClass('hide');
|
|
verifyLogin(res.data, redirectUrl);
|
|
// var that = this;
|
|
// loginErrorTimer = setTimeout(function(){
|
|
// clearTimeout(verifyLoginTimer);
|
|
// }, 1000 * 60 * 3);
|
|
},
|
|
error:function(){
|
|
alert('网络请求失败');
|
|
}
|
|
});
|
|
},
|
|
error:function(){
|
|
alert('网络请求失败');
|
|
}
|
|
});
|
|
}
|
|
|
|
function hideLoginModel() {
|
|
clearTimeout(loginErrorTimer);
|
|
clearTimeout(verifyLoginTimer);
|
|
$(".loginCon").addClass('hide');
|
|
}
|
|
|
|
function loginComAction(redirectUrl) {
|
|
if($('#userIsLogined').length > 0) {
|
|
if(redirectUrl) location.href =redirectUrl;
|
|
return;
|
|
}
|
|
getLoginQrcode(redirectUrl);
|
|
}
|
|
|
|
</script>
|
|
|
|
<!-- 登录结束 -->
|
|
|
|
|
|
<div class="main mainHeader">
|
|
<!-- header 开始-->
|
|
<div class="header-nav">
|
|
<ul class="fl">
|
|
<a href="/"><li><img src="/checksite/2383.png?v=d1c01e82c1eaa9214a44c928f8c86786" alt=""></li></a>
|
|
</ul>
|
|
<ul class="fr">
|
|
<!-- -->
|
|
|
|
<a href="/report2"><li class="fr ">下载报告</li></a>
|
|
<!-- <a href="/report"><li class="fr ">下载报告</li></a>
|
|
-->
|
|
|
|
<a href="/modelessay"><li class="fr ">写作神器</li></a>
|
|
<a href="/"><li class="fr active">首页</li></a>
|
|
</ul>
|
|
</div>
|
|
<!-- header 结束-->
|
|
</div>
|
|
|
|
<input type="hidden" id="hidden_params" fuid="">
|
|
|
|
|
|
<script>
|
|
function login() {
|
|
$.ajax({
|
|
url:'/islogin',
|
|
type:'post',
|
|
dataType:'json',
|
|
success:function(wres){
|
|
if(!wres.status){
|
|
getLoginQrcode();
|
|
return;
|
|
}
|
|
return true;
|
|
},
|
|
error:function(){
|
|
alert('网络请求失败');
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.upgrade-modal{
|
|
display: none;
|
|
width: 100%;
|
|
height: 100%;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
background: rgba(0,0,0,0.22);
|
|
z-index: 999999999;
|
|
}
|
|
.upgrade-content{
|
|
width: 445px;
|
|
height: 162px;
|
|
background: #FFFFFF;
|
|
border-radius: 8px;
|
|
position: absolute;
|
|
top:50%;
|
|
left: 50%;
|
|
margin-top: -81px;
|
|
margin-left: -220px;
|
|
text-align: center;
|
|
}
|
|
.upgrade-info,.upgrade-info span{
|
|
font-size: 16px;
|
|
color: #000000;
|
|
line-height: 20px;
|
|
margin-top: 28px;
|
|
}
|
|
.upgrade-info img{
|
|
width: 38px;
|
|
height: 38px;
|
|
margin-right: 9px;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
.upgrade-button{
|
|
width: 132px;
|
|
height: 40px;
|
|
background: linear-gradient( 139deg, #76EAE7 0%, #43CBC7 100%);
|
|
border-radius: 6px;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
color: #FFFFFF;
|
|
line-height: 40px;
|
|
text-align: center;
|
|
margin: 28px auto;
|
|
}
|
|
.upgrade-button2{
|
|
width: 132px;
|
|
height: 40px;
|
|
background: linear-gradient( 270deg, #005FFF 0%, #00DBFF 100%);
|
|
border-radius: 6px;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
color: #FFFFFF;
|
|
line-height: 40px;
|
|
text-align: center;
|
|
margin: 28px auto;
|
|
}
|
|
</style>
|
|
|
|
<div id="upgrade-modal" class="upgrade-modal">
|
|
<div class="upgrade-content">
|
|
<div class="upgrade-info"><img src="//css.chachongz.com/images/ai2/ai_upgrade.png" alt="">服务器正在维护,请耐心等待<span id="upgrade_time"></span>~</div>
|
|
<div class="upgrade-button2" onclick="hideUpgradeMoadl()">知道啦~</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function hideUpgradeMoadl(){
|
|
$('#upgrade-modal').hide()
|
|
}
|
|
|
|
function geiAiUpgradeInfo(callback, param){
|
|
$.ajax({
|
|
type: "post",
|
|
url: '/ajax_ai_upgrade_info',
|
|
data: {},
|
|
success: function (jsondata) {
|
|
var res = JSON.parse(jsondata);
|
|
if(res.status && res.data){
|
|
$('#upgrade_time').html(res.data)
|
|
$('#upgrade-modal').show()
|
|
return true;
|
|
}
|
|
|
|
callback(param);
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
<div class="banner-wrap" style="overflow: unset;min-width:1300px;">
|
|
<img class="banner-bg" src="//css.kuailelunwen.com/images/ai2/banner.png?v=3.0.88897" alt="">
|
|
<div class="banner-content">
|
|
<div class="banner-content-wrap banner-content-wrap-submit" style="position:relative;align-items: flex-start;height: 430px;box-sizing: border-box;">
|
|
<img class="banner-content-left" src="//css.kuailelunwen.com/images/ai2/banner_reboot.png?v=3.0.88897" alt="">
|
|
|
|
<div class="banner-content-right banner-content-right-submit " style="margin-top:60px !important;">
|
|
<h3 class="banner-content-right-title">
|
|
任务书
|
|
<img src="//css.kuailelunwen.com/images/ai2/ai_bi.png?v=3.0.88897">
|
|
</h3>
|
|
<div class="banner-content-right-form banner-content-right-input mp19 opt-advise">
|
|
<label for="">标题:</label>
|
|
<input type="text" id="formTitle" placeholder="请输入论文标题(1-500字内)">
|
|
</div>
|
|
|
|
|
|
<div class="banner-content-right-form banner-content-right-input mp7">
|
|
<label for="">学历:</label>
|
|
<div id="paper-edu-wrapper">
|
|
<input value="1" type="radio" name="edu" id="edu1"> <label for="edu1">专科</label>
|
|
<input value="2" type="radio" name="edu" id="edu2"> <label for="edu2">本科</label>
|
|
<input value="3" type="radio" name="edu" id="edu3"> <label for="edu3">硕博</label>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<p class="banner-content-right-desc mp11">* 使用须知:写作神器结果为AI生成,仅协助您高效完成文章。相同的要求,多次生成的结果会不一致,可以借此获得更多参考。</p>
|
|
|
|
|
|
<button id="formInputSumbtn" class="" style="margin:21px auto 0 !important;width: 132px !important;height: 50px !important;">立即生成</button>
|
|
<button id="formInputSumbtn2" class="hide" class="" style="margin:21px auto 0 !important;width: 132px !important;height: 50px !important;">立即生成</button>
|
|
</div>
|
|
<img src="//css.kuailelunwen.com/images/ai2/index_right_bg.png?v=3.0.88897" class="index-right-bg" style="height:231px;right: -92px;">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="homelist-header">
|
|
<div class="list-header">
|
|
<ul>
|
|
<li class="list-header-li-form">
|
|
<img src="//css.kuailelunwen.com/images/ai/edit.png" alt="">
|
|
AI生成样例:
|
|
</li>
|
|
</ul>
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="homelist homelistForm">
|
|
<!-- 参考文献 -->
|
|
<div class="paperRef">
|
|
<div class="homelistFormInput">
|
|
<h1>输入</h1>
|
|
<ul>
|
|
<li>我国村镇银行风险控制研究</li>
|
|
</ul>
|
|
</div>
|
|
<div class="homelistFormOut">
|
|
<h1>生成任务书</h1>
|
|
<ul>
|
|
<li>一、题目来源
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>目前,我国村镇银行在金融服务中起着重要的作用,但由于其业务范围相对较窄,且资金来源主要依靠存款,因此风险控制尤为重要。在此背景下,本研究将围绕“我国村镇银行风险控制”展开深入研究,旨在探讨如何进一步完善村镇银行的风险控制体系,提高其风险防范能力。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>二、论文应完成的主要内容
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>本研究主要围绕我国村镇银行的风险控制进行探讨,具体包括以下几个方面:
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>1. 村镇银行风险控制的概念、特点和意义。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>2. 村镇银行风险控制存在的问题及原因。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>3. 村镇银行风险控制的现状与发展趋势。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>4. 村镇银行风险控制的体系构建。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>5. 村镇银行风险控制的关键技术与方法。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>6. 村镇银行风险控制的实践案例分析。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>三、主要完成内容的基本要求及完成的成果形式
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>1. 主要完成内容要求:
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>(1)深入研究村镇银行的风险控制体系,对其存在的问题进行深入分析和研究,提出相应的解决方案。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>(2)对村镇银行风险控制的关键技术和方法进行研究,探讨如何提高其风险防范能力。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>(3)结合实践案例进行分析,总结成功经验和教训,为村镇银行风险控制提供有益的借鉴和参考。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>2. 完成的成果形式:
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>本研究将形成一篇完整的论文,包括以下部分:
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>(1)题目、摘要、关键词。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>(2)引言部分,介绍本研究的目的、意义和研究方法。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>(3)分析村镇银行风险控制的现状和存在的问题。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>(4)阐述村镇银行风险控制的体系构建和关键技术。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>(5)通过实践案例分析,总结成功经验和教训。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>(6)结论部分,对本研究的主要发现和结论进行总结。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>(7)参考文献和附录。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>四、进度安排
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>本研究的进度安排如下:
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>第一周:确定研究方向和主题,制定研究计划。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>第二周至第四周:收集相关文献,了解村镇银行风险控制的现状和存在的问题。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>第五周至第七周:对村镇银行风险控制的体系构建和关键技术进行深入研究和探讨。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>第八周至第十周:分析实践案例,总结成功经验和教训。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>第十一周至第十二周:撰写论文初稿。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>第十三周至第十四周:论文修改和完善。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>第十五周:论文定稿。
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>五、主要参考文献
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>1. 郑春祥. 村镇银行风险防范问题探析[J]. 金融理论与实践, 2018(7): 138-139.
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>2. 王光辉. 村镇银行风险管理的现状及对策[J]. 中国金融, 2019(10): 73-75.
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>3. 王维. 村镇银行风险控制的实践案例分析[J]. 金融导刊, 2020(1): 78-79.
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>4. 王婷. 村镇银行风险控制技术与方法研究[J]. 中国金融, 2020(6): 56-57.
|
|
</li>
|
|
<li>
|
|
</li>
|
|
<li>5. 王俊. 村镇银行风险控制体系构建研究[J]. 金融理论与实践, 2021(3): 120-121.</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- 参考文献 -->
|
|
|
|
<!-- 生成年终总结 -->
|
|
<!-- 生成年终总结 -->
|
|
|
|
<!-- 生成电商产品描述 -->
|
|
<!-- 生成电商产品描述 -->
|
|
|
|
<input id="ppt_type" type="hidden" value="63">
|
|
<input id="upload_file_md5" type="hidden" value="">
|
|
<input id="upload_file_name" type="hidden" value="">
|
|
<input id="upload_file_tmpname" type="hidden" value="">
|
|
<input id="ppt_tpl" type="hidden" value="">
|
|
|
|
</div>
|
|
<footer>
|
|
<h3>Copyright ©2012-2024 . All Rights Reserved <a href="https://beian.miit.gov.cn" target="_blank">京ICP备16033259号-6</a></h3>
|
|
</footer> </div>
|
|
|
|
<style>
|
|
.checkQctiveLi{
|
|
right: -12px;
|
|
position: absolute;
|
|
cursor: pointer;
|
|
z-index: 6;
|
|
}
|
|
|
|
.kefuComStyle2,.kefuComStyle .kefuhoverstyle{
|
|
opacity: 0.7;
|
|
}
|
|
.kefuComStyle:hover{
|
|
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
|
|
}
|
|
.kefuComStyle2:hover,.kefuComStyle:hover .kefuhoverstyle{
|
|
opacity: 1;
|
|
}
|
|
</style>
|
|
|
|
<div class="kefuCom">
|
|
<ul>
|
|
<li class="kefuComStyle kefuComStyle2">
|
|
<a target="blank" class="qq" rel="nofollow" href="http://wpa.qq.com/msgrd?v=3&uin=535659836&site=&menu=yes">
|
|
<img src="//css.kuailelunwen.com/images/ai2/qq.png" alt="">
|
|
<p class="kefuQq">QQ咨询</p>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="kefuWxLi kefuComStyle">
|
|
<img class="kefuhoverstyle" src="//css.kuailelunwen.com/images/ai2/wx.png" alt="">
|
|
<p class="kefuWx">微信咨询</p>
|
|
|
|
<div class="wxkefuImg">
|
|
<img src="/diyimg/wxqrcode_2383.jpg?v=1534b33f15765abf42b77f77bf846a55" alt="" style="width:110px">
|
|
<p>微信扫码,添加客服</p>
|
|
</div>
|
|
</li>
|
|
<!-- <li class="activeIndex">
|
|
<img src="//css.kuailelunwen.com/images/ai/wx.png" alt="">
|
|
</li> -->
|
|
|
|
</ul>
|
|
|
|
<!-- -->
|
|
</div>
|
|
|
|
|
|
<script>
|
|
$('.checkQctiveLi').click(function(){
|
|
location.href="/modelessay";
|
|
});
|
|
|
|
$('.kefutoTop').click(function(){
|
|
var top = document.documentElement.scrollTop || document.body.scrollTop;
|
|
//实现滚动效果
|
|
var timeTop = setInterval(function(){
|
|
document.body.scrollTop = document.documentElement.scrollTop = top -= 50;
|
|
if (top <= 0) {
|
|
clearInterval(timeTop);
|
|
}
|
|
}, 10);
|
|
});
|
|
</script>
|
|
|
|
<div class="pageMask hide"></div>
|
|
<!-- AI正在分析中,请耐心稍候30秒,切勿关闭... -->
|
|
<!--hide-->
|
|
<div class="modelDialog1 hide">
|
|
<p class="formResloading">AI正在生成中,请耐心等待<span>...</span></p>
|
|
<div class="aiform-progress-box">
|
|
<div class="aiform-progress-bar">
|
|
<img src="//css.kuailelunwen.com/images/ai2/notice3.png" alt="" class="ani-chick-icon ani-chick-icon2">
|
|
</div>
|
|
<div class="aiform-progress-bar-bg"></div>
|
|
</div>
|
|
</div>
|
|
<!-- AI正在分析中,请耐心稍候30秒,切勿关闭... -->
|
|
|
|
<!-- 智能AI处理完成用时18秒 -->
|
|
<div class="modelDialog2 hide">
|
|
<img src="//css.kuailelunwen.com/images/ai/close.png" alt="" class="loginConClose" onclick="hidemodelDialog2()">
|
|
<ul class="modelDialog2Title">
|
|
<li>
|
|
<img src="//css.kuailelunwen.com/images/ai2/notice3.png" alt="" class="ani-chick-icon3">
|
|
</li>
|
|
<li><h2>智能AI处理完成 用时<span id="timeuse"></span>秒</h2></li>
|
|
<li><img src="//css.kuailelunwen.com/images/ai/start.png" alt=""></li>
|
|
<div class="clear"></div>
|
|
</ul>
|
|
|
|
<div id="modelDialog2Con">
|
|
|
|
</div>
|
|
|
|
<button class="formSumbtnResult" id="formCopyBtn">一键复制</button>
|
|
</div>
|
|
<!-- 智能AI处理完成用时18秒 -->
|
|
|
|
|
|
<div class="pptmask"></div>
|
|
<div class="pptPreview" >
|
|
<img src="//css.kuailelunwen.com/images/ai2/pay/ppt_preview_close.png" id="pptPreviewClose">
|
|
|
|
<div class="pptPreviewTitle"></div>
|
|
<div class="pptPreviewImg">
|
|
<div class="pptPreviewImgCon">
|
|
</div>
|
|
</div>
|
|
<div class="pptPreviewBtn">
|
|
<div class="cancel">取消预览</div>
|
|
<div class="submit">使用模板</div>
|
|
</div>
|
|
</div>
|
|
<script src="//css.kuailelunwen.com/js/jquery.qrcode.min.js"></script>
|
|
<script type="text/javascript" src="//css.chachongz.com/assets_v2/js/common/jquery.splendid.textchange.js?v=3.0.88897"></script>
|
|
|
|
<div class="paycom paycom-dialog hide">
|
|
<img src="//css.kuailelunwen.com/images/ai/close.png" alt="" class="loginConClose" onclick="hidePayModel()">
|
|
<!-- 余额充足 -->
|
|
<div class="paywrap hide">
|
|
<ul>
|
|
<li>
|
|
<span id="waitPayMoney"></span>
|
|
<span>元</span>
|
|
<span id="waitPayMoneyShiji"></span>
|
|
</li>
|
|
<li>
|
|
<span>提交后余额自动抵扣</span>
|
|
</li>
|
|
<li>
|
|
<button class="primaryBtn" id="waitPayMoneySubBtn">确认提交</button>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<!-- 余额充足 -->
|
|
|
|
<!-- 余额不足 -->
|
|
<h1 class="paycom-dialog-title">支付订单</h1>
|
|
<div class="paywrap2 hide">
|
|
<ul class="item payGoodsList hide">
|
|
<li class="active" indexatt="0" goods_id="0">
|
|
<p>
|
|
<span id="payPrice"></span>
|
|
<span>元</span>
|
|
</p>
|
|
<p>不参与优惠 原价付</p>
|
|
</li>
|
|
</ul>
|
|
|
|
<ul class="ai2_pay_wrap">
|
|
</ul>
|
|
|
|
|
|
<div class="paytips paytipszfb paytipszfbwx hide" style="margin-top:21px;">·网站已通过备案请放心使用,如支付宝提示风险属于系统正常提示,按提示继续操作就可以,有任何疑问都可联系右侧在线客服</div>
|
|
|
|
<ul class="payQrcodeUlai2 item payQrcodeUl hide payQrcodeUlDialog" style="">
|
|
<li>
|
|
<div class="payQrcodeWrap">
|
|
<img class="payQrcodeBorder" src="//css.kuailelunwen.com/images/ai2/pay/qrcode_border.png" alt="">
|
|
<div id="payQrcodeImgWrap" class="payQrcodeImg"></div>
|
|
<div class="payQrcodeMask"></div>
|
|
<img class="payQrcodeRefresh" src="//css.kuailelunwen.com/images/ai/refresh.png" alt="">
|
|
<p class="payQrcodeError">点击刷新</p>
|
|
</div>
|
|
|
|
</li>
|
|
<li class="payinfoWrap">
|
|
<p>
|
|
<span id="payinfoWrapMoney"></span>
|
|
<span>元</span>
|
|
<span id="payinfoWrapRemain" class="hide"></span>
|
|
</p>
|
|
<!-- <p>单价:¥17/千字符</p> -->
|
|
<p>扫码支付自动提交,请勿刷新</p>
|
|
<p>提交成功用订单号查询结果</p>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
<!-- 余额不足 -->
|
|
|
|
<div class="paytips paytipstb paytipscard hide">·网站已通过备案请放心使用,如支付宝提示风险属于系统正常提示,按提示继续操作就可以,有任何疑问都可联系右侧在线客服</div>
|
|
|
|
<div class="tbpayComWrap hide" style="background:#F9FAFA !important;margin-top:0px;">
|
|
|
|
<div class="comleft">
|
|
<div class="comleftDesc">
|
|
<h1>请输入淘宝订单号</h1>
|
|
<h2 class="comFindTbOrder" style="color:#1675FF !important;font-weight: 600 !important;opacity: 0.9;font-size: 14px !important;">找不到订单编号?</h2>
|
|
<div class="tb_order_trianglewrap comFindTbOrderExample hide">
|
|
<div class="comFindTbOrderExample triangle tb_order_triangle hide"></div>
|
|
</div>
|
|
<div class="hide comTbOrderImg comFindTbOrderExample">
|
|
<div class="active">
|
|
<img src="//css.kuailelunwen.com/images/ai2/pay/tbpay.png" alt=""> 淘宝订单
|
|
</div>
|
|
<img src="//css.kuailelunwen.com/images/ai2/pay/tb_order.png" alt="">
|
|
</div>
|
|
</div>
|
|
|
|
<h3 class="comTbPiece"><span>应拍</span><span>1</span><span>件(1篇/1件)</span></h3>
|
|
|
|
<div class="comleftInput">
|
|
<input type="text" placeholder="请输入订单号" id="aiTaobaoTidInput1">
|
|
<img class="hide right" src="//css.kuailelunwen.com/images/ai2/pay/tbright2.png" alt="">
|
|
<img class="hide error" src="//css.kuailelunwen.com/images/ai2/pay/tberror.png" alt="">
|
|
</div>
|
|
|
|
<!-- 订单总数:3 已用数:2 可用数:1 -->
|
|
<div class="comTbTidRemain hide">
|
|
<div>订单总数:<span></span></div>
|
|
<div>已用数:<span></span></div>
|
|
<div>可用数:<span></span></div>
|
|
</div>
|
|
|
|
<div class="comleftInput">
|
|
<input type="text" placeholder="请输入订单号" id="aiTaobaoTidInput2">
|
|
<img class="hide right" src="//css.kuailelunwen.com/images/ai2/pay/tbright2.png" alt="">
|
|
<img class="hide error" src="//css.kuailelunwen.com/images/ai2/pay/tberror.png" alt="">
|
|
</div>
|
|
<div class="comTbTidRemain hide">
|
|
<div>订单总数:<span></span></div>
|
|
<div>已用数:<span></span></div>
|
|
<div>可用数:<span></span></div>
|
|
</div>
|
|
|
|
<div class="comleftInput">
|
|
<input type="text" placeholder="请输入订单号" id="aiTaobaoTidInput3">
|
|
<img class="hide right" src="//css.kuailelunwen.com/images/ai2/pay/tbright2.png" alt="">
|
|
<img class="hide error" src="//css.kuailelunwen.com/images/ai2/pay/tberror.png" alt="">
|
|
</div>
|
|
<div class="comTbTidRemain hide">
|
|
<div>订单总数:<span></span></div>
|
|
<div>已用数:<span></span></div>
|
|
<div>可用数:<span></span></div>
|
|
</div>
|
|
|
|
<div class="comeleftError hide tidErrrorflag">
|
|
<p></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="comright">
|
|
<div class="comrightQrcode" id="comtbQrcode"></div>
|
|
<h1>淘宝APP扫码拍单</h1>
|
|
<button class="primaryBtn orange" id="comToTbShopBtn">跳转淘宝下单</button>
|
|
</div>
|
|
|
|
<button class="primaryBtn cyan" id="comTbsubmit" style="background:#1675FF !important;">确认提交</button>
|
|
<button class="primaryBtn cyan hide" id="comTbsubmitNoReady" style="background:#1675FF !important;">确认提交</button>
|
|
</div>
|
|
|
|
<div class="cardpayComWrap hide" style="background:#F9FAFA !important;margin-top:0px;">
|
|
<div class="checkCardComleft">
|
|
<div class="checkCardComleftDesc">
|
|
<h1>卡号</h1>
|
|
</div>
|
|
|
|
<div class="checkCardComleftInput">
|
|
<input type="text" placeholder="请输入卡号" id="aiCheckCardInput">
|
|
<img class="hide right" src="//css.kuailelunwen.com/images/ai2/pay/tbright2.png" alt="">
|
|
<img class="hide error" src="//css.kuailelunwen.com/images/ai2/pay/tberror.png" alt="">
|
|
</div>
|
|
|
|
<div class="checkCardComeleftError hide checkCardTidErrrorflag">
|
|
<p></p>
|
|
</div>
|
|
|
|
<button class="primaryBtn cyan" id="checkCardComTbsubmit" style="background:#1675FF !important;">确认提交</button>
|
|
<button class="primaryBtn cyan hide" id="checkCardComTbsubmitNoReady" style="background:#1675FF !important;">确认提交</button>
|
|
|
|
<div class="checkCardComRecharge hide">
|
|
<div class="checkCardComRechargeLeft">
|
|
<img class="checkcard_zfbpay" src="//css.kuailelunwen.com/images/ai2/pay/qrcode_border.png" alt="">
|
|
<img class="checkcard_wxpay" src="//css.kuailelunwen.com/images/ai2/pay/wxqrcode_border.png" alt="">
|
|
<div id="checkCardComRechargeQrcodeWrap"></div>
|
|
<div class="checkCardComRechargePayType">
|
|
<img class="checkcard_zfbpay" src="//css.kuailelunwen.com/images/ai2/pay/zfbpay_active.png" alt="">
|
|
<img class="checkcard_wxpay" src="//css.kuailelunwen.com/images/ai2/pay/wxpay_active.png" alt="">
|
|
<span class="checkcard_zfbpay">支付宝支付</span>
|
|
<span class="checkcard_wxpay">微信支付</span>
|
|
</div>
|
|
</div>
|
|
<div class="checkCardComRechargeRight">
|
|
<ul>
|
|
<!-- <li></li>
|
|
<li></li>
|
|
<li></li> -->
|
|
<!-- <li><span>需支付</span><span>1888.00</span><span>元</span></li> -->
|
|
<!-- <li>订单金额:1888.00元</li>
|
|
<li>减免金额:1888.00元</li> -->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="checkCardComright">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="payPaperTitle" class="hide"></div>
|
|
<div id="payCheckType" class="hide">63</div>
|
|
<div id="payCheckConfig" class="hide">{"uid":"2383","check_type":63,"check_flag":"airws","service_domain":"\/\/aitest.chachongz.com\/airws","price":"100.00","unit_piece":"1","unit":"1","unit_name":"\u7bc7","paytypes":"[2,3,1]","title_min_limit":1,"title_max_limit":500,"content_min_limit":0,"content_max_limit":0,"value_added_services":[],"guide_url":""}</div>
|
|
|
|
<div id="aiNoNeedLogin" class="hide"></div>
|
|
|
|
<div id="isai2" class="hide"></div>
|
|
|
|
<div id="isPayDialog" class="hide"></div>
|
|
<div id="isPayDialogMask" class="hide"></div>
|
|
<div id="typeinputDialog" class="hide">{"title":"\u6807\u9898","title_placeholder":"\u8bf7\u8f93\u5165\u8bba\u6587\u6807\u9898"}</div>
|
|
|
|
<div id="aiessayWordnum" class="hide"></div>
|
|
|
|
|
|
|
|
|
|
<div class="payresultMask hide"></div>
|
|
<div class="payresultWrap payresultNoGz hide">
|
|
<div class="payresultWrapHeader">
|
|
<img src="/images/ai/success.png" alt="" style="width: 30px;height: 30px;">
|
|
<h1>此页面信息<span>至关重要</span>,您可截图保存避免丢失</h1>
|
|
</div>
|
|
|
|
<h1>提交成功,订单号是查询范文的唯一凭证</h1>
|
|
<h1>
|
|
<span>订单号:</span>
|
|
<span id="payresultTid"></span>
|
|
<img src="/images/ai/copy.png" alt="" id="payresultCopyTidBtn">
|
|
</h1>
|
|
<img class="payresultQrcode payresultQrcodeClass hide" src="" alt="">
|
|
<h1 class="payresultQrcodeClass hide">微信扫码,随时获知范文生成状态</h1>
|
|
|
|
<div class="payresultBtn">
|
|
<button class="payresultBtn1">去下载</button>
|
|
<button class="payresultBtn2">再申请一篇</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|
|
|
|
|
|
<div class="aiCataMask hide"></div>
|
|
<div id="aiCataEdit" class="hide">
|
|
<img id="aiCataEditClose" onclick="cancelEditCata(this, event)" src="//css.kuailelunwen.com/images/ai/close.png" alt="">
|
|
<div class="aiCataEditTitle">
|
|
<img src="//css.kuailelunwen.com/images/ai/catelogue/reboot2.png" alt="">
|
|
修改提纲
|
|
<img src="//css.kuailelunwen.com/images/ai/catelogue/start.png" alt="">
|
|
</div>
|
|
|
|
<div class="modelDialog2Con" id="modelDialog2ConRight" style="overflow: hidden; outline: none;">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="catalogue-title-headings-out hide">
|
|
<ul>
|
|
<li class="ai2" data-level="1" onclick="changeHeading(this)">
|
|
<div class="no-select"><img src="//css.kuailelunwen.com/images/ai/catelogue/check_no.png" alt="">H1 一级标题</div>
|
|
<div class="select"><img src="//css.kuailelunwen.com/images/ai/catelogue/check2.png" alt="">H1 一级标题</div>
|
|
</li>
|
|
<li class="ai2" data-level="2" onclick="changeHeading(this)">
|
|
<div class="no-select"><img src="//css.kuailelunwen.com/images/ai/catelogue/check_no.png" alt="">H2 二级标题</div>
|
|
<div class="select"><img src="//css.kuailelunwen.com/images/ai/catelogue/check2.png" alt="">H2 二级标题</div>
|
|
</li>
|
|
<li class="ai2" data-level="3" onclick="changeHeading(this)">
|
|
<div class="no-select"><img src="//css.kuailelunwen.com/images/ai/catelogue/check_no.png" alt="">H3 二级标题</div>
|
|
<div class="select"><img src="//css.kuailelunwen.com/images/ai/catelogue/check2.png" alt="">H3 二级标题</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="mask"></div>
|
|
<div class="confirmAlt">
|
|
<img class="confirmAltClose" src="//css.kuailelunwen.com/images/ai/close.png" alt="">
|
|
<div class="confirmAltLine1">
|
|
<img class="confirmAltLogo" src="//css.kuailelunwen.com/images/ai/catelogue/reboot.png" alt="">
|
|
取消后不会保存修改结果,确定取消吗
|
|
</div>
|
|
<div class="confirmOption">
|
|
<div class="confirmOptionCancel white primary btn">取消修改</div>
|
|
<div class="continueEdit primary btn">继续修改</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
var paperTitle = '';
|
|
var checktype = '';
|
|
var checkConfigs = '';
|
|
var rechargeGoodsId = -1;
|
|
var remainMoneyPay = 0;
|
|
var payResultTimer = null;
|
|
var isPayDialog = false;
|
|
var orderResultTimer = null;
|
|
var orderResultTimerCount = 120;
|
|
var aiNoNeedLogin = $('#aiNoNeedLogin').length > 0 ? true : false;
|
|
var isai2 = $('#isai2').length > 0 ? true : false;
|
|
var submitRepeatTimer = null;
|
|
var hasPayPaperCata = $('#payPaperCata').length == 1 ? true :false;
|
|
|
|
var progressTimer = null
|
|
function showProgress() {
|
|
clearInterval(progressTimer)
|
|
$('.modelDialog1').find('.aiform-progress-bar').css('width', '0%')
|
|
var progress = 1
|
|
progressTimer = setInterval(function() {
|
|
$('.modelDialog1').find('.aiform-progress-bar').css('width', progress+'%')
|
|
if(progress >= 99) {
|
|
clearInterval(progressTimer)
|
|
}else{
|
|
++progress
|
|
}
|
|
}, 1000);
|
|
}
|
|
|
|
var essayPayDescCata = $('#essay-pay-desc-cata');
|
|
if(essayPayDescCata.length > 0){
|
|
getCatalogue();
|
|
editInit();
|
|
}
|
|
|
|
function getInsertObj(level, leveltxt) {
|
|
var inserthm = '<p data-level="'+level+'" data-leveltxt="'+leveltxt+'" class="catalogue-title catalogue-lv'+level+'"> </p>';
|
|
var insertobj = $(inserthm);
|
|
return insertobj;
|
|
}
|
|
|
|
function editCata(that, event){
|
|
if(event == 1){
|
|
var optionIndex = that.parents('.modelDialog2Con').find('.modelDialog2ConList').index(that);
|
|
that.parent('.leftitem ').find('.option').addClass('editing');
|
|
that.parent('.leftitem ').find('.option').removeClass('hide');
|
|
}else{
|
|
var optionIndex = $(that).parents('.modelDialog2Con').find('.option').index($(that).parent('.option'));
|
|
$(that).parent('.option').addClass('editing');
|
|
$(that).parent('.option').removeClass('hide');
|
|
}
|
|
$('.confirmAlt').attr('itemindex', optionIndex);
|
|
}
|
|
|
|
$('.continueEdit,.confirmAltClose').click(function(){
|
|
$('.confirmAlt').animate({marginTop:'-107px'}, 200, "swing", function(){
|
|
$('.mask').hide();
|
|
$('.confirmAlt').hide();
|
|
});
|
|
});
|
|
|
|
$('.confirmOptionCancel').click(function(){
|
|
$('.confirmAlt').animate({marginTop:'-107px'}, 200, "swing", function(){
|
|
var itemindex = $('.confirmAlt').attr('itemindex');
|
|
var modelDialog2ConIndex = $('.confirmAlt').attr('modelDialog2ConIndex');
|
|
var option = $('.modelDialog2Con').eq(modelDialog2ConIndex).find('.option').eq(itemindex);
|
|
var leftitem = option.parents('.leftitem');
|
|
// option.removeClass('editing');
|
|
// option.addClass('hide');
|
|
leftitem.find('.modelDialog2ConList').html(option.parents('.leftitem').attr('origintxt'));
|
|
catelogueInit(leftitem.find('p').eq(0));
|
|
$('.mask').hide();
|
|
$('.confirmAlt').hide();
|
|
|
|
$('.aiCataMask').addClass('hide');
|
|
$('#aiCataEdit').addClass('hide');
|
|
});
|
|
});
|
|
|
|
function cancelEditCata(that, event) {
|
|
$('.mask').show();
|
|
$('.confirmAlt').show();
|
|
$('.confirmAlt').animate({marginTop:'-87px'}, 200, "swing", function(){});
|
|
var optionIndex = $(that).parents('.modelDialog2Con').find('.option').index($(that).parent('.option'));
|
|
var modelDialog2ConIndex = $('.modelDialog2Con').index($(that).parents('.modelDialog2Con'));
|
|
$('.confirmAlt').attr('itemindex', optionIndex);
|
|
$('.confirmAlt').attr('modelDialog2ConIndex', modelDialog2ConIndex);
|
|
}
|
|
function getCatalogueObj(data, modelDialog2ConId) {
|
|
$('#'+modelDialog2ConId).html('');
|
|
|
|
var aitype = 2;
|
|
if(!data) return false;
|
|
if(data.length <= 0) return false;
|
|
|
|
for (var index = 0; index < data.length; index++) {
|
|
var element = decodeURIComponent(data[index]);
|
|
var nomarginClass = '';
|
|
if(index<3 && data.length<=3) nomarginClass = ' nomargin-bottom';
|
|
|
|
var datalist = element.split("\n");
|
|
if(datalist.length <= 0) return false;
|
|
var leftitemid = 'leftitemid'+($('.leftitem').length+1);
|
|
var obj = '<div class="leftitem active'+nomarginClass+'">';
|
|
obj+= '<div class="list modelDialog2ConList" contenteditable="true">';
|
|
obj+= '</div>';
|
|
obj+= '<div class="option editing">';
|
|
obj+= '<img id="'+leftitemid+'" class="optionCopyBtn" src="/images/ai/catelogue/copy'+aitype+'.png" alt="">';
|
|
obj+= '<img onclick="editCata(this, event)" class="optionEditBtn" src="/images/ai/catelogue/edit'+aitype+'.png" alt="">';
|
|
obj+= '<div onclick="cancelEditCata(this, event)" class="hide optionCancelBtn list-submitbtn white primary btn ai'+aitype+'">取消修改</div>';
|
|
obj+= '<div onclick="submitCata(this, event)" class="optionSubmitBtn list-submitbtn primary btn ai'+aitype+'">修改完成</div>';
|
|
obj+= '</div>';
|
|
obj+= '</div>';
|
|
var objitem = $(obj);
|
|
var chatpterCount = 0;
|
|
var chatpterLevelSecondCount = 0;
|
|
for (var i = 0; i < datalist.length; i++) {
|
|
var item = datalist[i].trim();
|
|
if(item.length <= 0) continue;
|
|
var h1reg = /第[一二三四五六七八九十]{1,2}章/i;
|
|
var h2reg = /[1234567890]{1,2}\.[1234567890]{1,2}/i;
|
|
var h3reg = /[1234567890]{1,2}\.[1234567890]{1,2}\.[1234567890]{1,2}/i;
|
|
var n = item.search(h1reg);
|
|
var catalogueMatchs = item.match(h1reg);
|
|
if(n == 0) {
|
|
var getPara = getInsertObj(1, '第一章');
|
|
getPara.html(item.substring(catalogueMatchs[0].length, item.length));
|
|
objitem.find('.modelDialog2ConList').append(getPara);
|
|
++chatpterCount;
|
|
}else{
|
|
var n = item.search(h3reg);
|
|
var catalogueMatchs = item.match(h3reg);
|
|
if(n == 0){
|
|
var getPara = getInsertObj(3, '1.1.1');
|
|
getPara.html(item.substring(catalogueMatchs[0].length, item.length));
|
|
objitem.find('.modelDialog2ConList').append(getPara);
|
|
}else{
|
|
var n = item.search(h2reg);
|
|
var catalogueMatchs = item.match(h2reg);
|
|
if(n == 0){
|
|
var getPara = getInsertObj(2, '1.1');
|
|
getPara.html(item.substring(catalogueMatchs[0].length, item.length));
|
|
objitem.find('.modelDialog2ConList').append(getPara);
|
|
++chatpterLevelSecondCount;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
$('#essay-pay-desc-chapter').find('span').html(toChineseNumber(chatpterCount)+'个章节');
|
|
objitem.attr('origintxt', objitem.find('.modelDialog2ConList').html());
|
|
|
|
$('#'+modelDialog2ConId).append(objitem);
|
|
objitem.find('.modelDialog2ConList').niceScroll({
|
|
cursorcolor:"#E2E2EB",
|
|
cursorwidth:"8px",
|
|
cursorborderradius:'6px',
|
|
cursorminheight:55,
|
|
railpadding: { top: 4, right: 4, left: 0, bottom: 4 }
|
|
});
|
|
catelogueInit(objitem.find('p').eq(0));
|
|
editInit();
|
|
|
|
var modelDialog2Con = $("#"+modelDialog2ConId);
|
|
modelDialog2Con.scrollTop(modelDialog2Con.prop("scrollHeight"));
|
|
|
|
leftitemHover();
|
|
var clipboard = new Clipboard("#"+leftitemid, {
|
|
text: function(e) {
|
|
var modelDialog2ConListpObj = $(e).parents('.leftitem').find('.modelDialog2ConList').find('p');
|
|
if(modelDialog2ConListpObj.length <= 0){
|
|
return "";
|
|
}
|
|
var lvtitleall = '';
|
|
for (var index = 0; index < modelDialog2ConListpObj.length; index++) {
|
|
var copyelement = modelDialog2ConListpObj.eq(index);
|
|
var lvtitle = copyelement.attr('data-leveltxt').replace(/H1\s*?/, "").replace(/H2\s*?/, "").replace(/H3\s*?/, "").replace("ㅤ", "").trim()+" "+copyelement.text();
|
|
lvtitleall = lvtitleall+lvtitle+"\n";
|
|
}
|
|
return lvtitleall;
|
|
}
|
|
});
|
|
|
|
clipboard.on('success', function(e) {
|
|
alert('复制成功')
|
|
});
|
|
clipboard.on('error', function(e) {
|
|
alert('复制失败')
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
function getCatalogue() {
|
|
$('#payPaperTitle').text().trim()
|
|
var data = localStorage.getItem(encodeURIComponent($('#payPaperTitle').text().trim()));
|
|
if(!data) return;
|
|
// data = decodeURIComponent(data);
|
|
var list = new Array();
|
|
list.push(data);
|
|
getCatalogueObj(list, 'modelDialog2ConRight');
|
|
}
|
|
|
|
|
|
$('#get_catabtn').find('span').click(function(){
|
|
$('#lottie').show();
|
|
$('.leftitem').addClass('hide');
|
|
$('#get_catabtn').addClass('hide');
|
|
getCatalogue();
|
|
});
|
|
|
|
$(function() {
|
|
$("#modelDialog2Con").niceScroll({
|
|
cursorcolor:"#E2E2EB",
|
|
cursorwidth:"8px",
|
|
cursorborderradius:'6px',
|
|
cursorminheight:55,
|
|
railpadding: { top: 4, right: 4, left: 0, bottom: 4 }
|
|
});
|
|
|
|
$(".modelDialog2ConList").niceScroll({
|
|
cursorcolor:"#E2E2EB",
|
|
cursorwidth:"8px",
|
|
cursorborderradius:'6px',
|
|
cursorminheight:55,
|
|
railpadding: { top: 4, right: 4, left: 0, bottom: 4 }
|
|
});
|
|
});
|
|
|
|
function leftitemHover() {
|
|
// $('.leftitem').unbind('hover');
|
|
// $('.leftitem').hover(function(){
|
|
// $(this).find('.option').removeClass('hide');
|
|
// },function(){
|
|
// if(!$(this).find('.option').hasClass('editing')) $(this).find('.option').addClass('hide');
|
|
// });
|
|
}
|
|
|
|
function getOutlineData(obj) {
|
|
var pobj = obj.find('p');
|
|
var outlineList = new Array();
|
|
for(var i=0;i<pobj.length;i++){
|
|
var pitem = pobj.eq(i);
|
|
var item = new Object();
|
|
item.level = pitem.attr('data-level');
|
|
item.leveltxt = pitem.attr('data-leveltxt');
|
|
item.content = pitem.html().trim();
|
|
outlineList.push(item);
|
|
}
|
|
return outlineList;
|
|
}
|
|
|
|
function submitCata(that, event){
|
|
var modelDialog2ConList = $(that).parents('.leftitem').find('.modelDialog2ConList');
|
|
var res = verifyOutlineData(modelDialog2ConList);
|
|
if(!res) return;
|
|
|
|
|
|
var modelDialog2ConListpObj = $(that).parents('.leftitem').find('.modelDialog2ConList').find('p');
|
|
if(modelDialog2ConListpObj.length <= 0){
|
|
alert('获取提纲失败');
|
|
return "";
|
|
}
|
|
var lvtitleall = '';
|
|
var chatpterCount = 0;
|
|
for (var index = 0; index < modelDialog2ConListpObj.length; index++) {
|
|
var copyelement = modelDialog2ConListpObj.eq(index);
|
|
var level = copyelement.attr('data-level');
|
|
if(level == 1) ++chatpterCount;
|
|
var lvtitle = copyelement.attr('data-leveltxt').replace(/H1\s*?/, "").replace(/H2\s*?/, "").replace(/H3\s*?/, "").replace("ㅤ", "").trim()+" "+copyelement.text();
|
|
lvtitleall = lvtitleall+lvtitle+"\n";
|
|
}
|
|
var papertitleval = $('#payPaperTitle').text().trim();
|
|
localStorage.setItem(encodeURIComponent(papertitleval), encodeURIComponent(lvtitleall));
|
|
$('#essay-pay-desc-chapter').find('span').html(toChineseNumber(chatpterCount)+'个章节');
|
|
$('.aiCataMask').addClass('hide');
|
|
$('#aiCataEdit').addClass('hide');
|
|
getCatalogue();
|
|
|
|
location.reload();
|
|
}
|
|
|
|
$('#essay-pay-desc-cata').click(function(){
|
|
getCatalogue();
|
|
$('.aiCataMask').removeClass('hide');
|
|
$('#aiCataEdit').removeClass('hide');
|
|
});
|
|
|
|
function verifyOutlineData(obj) {
|
|
// 一级提纲最多10条
|
|
// 提纲总数最多60条
|
|
// 一级标题数量不能少于3个
|
|
// 二级标题必须有父一级标题
|
|
// 标题内容不能为空
|
|
var outlineData = getOutlineData(obj);
|
|
if(outlineData.length <= 0){
|
|
alert('推荐大纲不能为空');
|
|
return false;
|
|
}
|
|
|
|
var pass = true;
|
|
var heading1Count = 0;
|
|
var headingAllCount = 0;
|
|
|
|
var hasErrorList = new Array();
|
|
var haserror = false;
|
|
for (var index = 0; index < outlineData.length; index++) {
|
|
// {level: '1', leveltxt: '第二章', content: ' 321321312'}
|
|
|
|
var element = outlineData[index];
|
|
++headingAllCount;
|
|
if(element.level == 1){
|
|
++heading1Count;
|
|
}
|
|
|
|
var pobj = obj.find('p').eq(index);
|
|
if(element.content.replace(" ","").replace("<br>","").length <= 0){
|
|
pass = false;
|
|
pobj.addClass('error');
|
|
continue;
|
|
}else{
|
|
pobj.removeClass('error');
|
|
}
|
|
|
|
if(index == 0){
|
|
if(element.level==2 || element.level!=1) {
|
|
hasErrorList.push(index);
|
|
pobj.addClass('error');
|
|
}
|
|
}else{
|
|
if(element.level == 1){
|
|
if((outlineData[index-1].level != 2 && outlineData[index-1].level != 3) || ((index+1) < outlineData.length && outlineData[index+1].level != 2) || index+1>=outlineData.length){
|
|
hasErrorList.push(index);
|
|
pobj.addClass('error');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(!pass) {
|
|
alert('大纲内容不能为空,请修改后重新提交');
|
|
return false;
|
|
}
|
|
|
|
if(heading1Count < 3){
|
|
alert(' 一级提纲数量不可少于3个');
|
|
return false;
|
|
}
|
|
|
|
if(heading1Count > 10){
|
|
alert(' 一级提纲数量最多10条');
|
|
return false;
|
|
}
|
|
|
|
if(headingAllCount > 60){
|
|
alert(' 提纲总数最多60条');
|
|
return false;
|
|
}
|
|
|
|
if(hasErrorList.length > 0){
|
|
alert('一级提纲必须存在子二级提纲,二级提纲必须存在父一级提纲')
|
|
return false;
|
|
}
|
|
|
|
for (var index = 0; index < outlineData.length; index++) {
|
|
var pobj = obj.find('p').eq(index);
|
|
pobj.removeClass('error');
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
function leftitemParaAct(event, obj) {
|
|
if(event.originalEvent.layerX <= 40){
|
|
$('.catalogue-title-headings-out').css('top', event.pageY-event.originalEvent.layerY+5);
|
|
$('.catalogue-title-headings-out').css('left', event.pageX-event.originalEvent.layerX);
|
|
|
|
if(!$('.catalogue-title-headings-out').hasClass('hide')){
|
|
$('.catalogue-title-headings-out').addClass('hide');
|
|
}else{
|
|
$('.catalogue-title-headings-out').removeClass('hide');
|
|
$('.catalogue-title-headings-out').attr('input-index', obj.parents('.modelDialog2Con').find('.leftitem').index(obj.parents('.leftitem')));
|
|
$('.catalogue-title-headings-out').attr('p-index', obj.index());
|
|
$('.catalogue-title-headings-out').attr('modelDialog2ConIndex', $('.modelDialog2Con').index(obj.parents('.modelDialog2Con')));
|
|
}
|
|
}
|
|
}
|
|
|
|
function changeHeading(e){
|
|
try {
|
|
event.stopPropagation();
|
|
} catch (error) {
|
|
|
|
}
|
|
$(e).parent().find('li').removeClass('active');
|
|
$(e).addClass('active');
|
|
var level = $(e).attr('data-level');
|
|
|
|
var inputIndex = $(e).parents('.catalogue-title-headings-out').attr('input-index');
|
|
var modelDialog2ConIndex = $(e).parents('.catalogue-title-headings-out').attr('modelDialog2ConIndex');
|
|
|
|
var pIndex = $(e).parents('.catalogue-title-headings-out').attr('p-index');
|
|
var pobj = $('.modelDialog2Con').eq(modelDialog2ConIndex).find('.modelDialog2ConList').eq(inputIndex).find('p').eq(pIndex);
|
|
pobj.attr('data-level', level);
|
|
pobj.removeClass('catalogue-lv1');
|
|
pobj.removeClass('catalogue-lv2');
|
|
pobj.removeClass('catalogue-lv3');
|
|
pobj.addClass('catalogue-lv'+level);
|
|
catelogueInit(pobj);
|
|
|
|
setTimeout(function(){
|
|
$('.catalogue-title-headings-out').addClass('hide');
|
|
}, 200)
|
|
}
|
|
|
|
function placeCaretAtEnd(el) { //传入光标要去的jq节点对象
|
|
el.focus();
|
|
if (typeof window.getSelection != "undefined" && typeof document.createRange != "undefined") {
|
|
var range = document.createRange();
|
|
range.selectNodeContents(el);
|
|
range.collapse(false);
|
|
var sel = window.getSelection();
|
|
sel.removeAllRanges();
|
|
sel.addRange(range);
|
|
} else if (typeof document.body.createTextRange != "undefined") {
|
|
var textRange = document.body.createTextRange();
|
|
textRange.moveToElementText(el);
|
|
textRange.collapse(false);
|
|
textRange.select();
|
|
}
|
|
}
|
|
|
|
function toChineseNumber(num) {
|
|
var numList = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'];
|
|
if (num < 10) return numList[num];
|
|
if (num >= 10 && num < 20) return "十" + (num % 10>0 ? numList[num % 10]:"");
|
|
var ten = Math.floor(num / 10);
|
|
var unit = num % 10;
|
|
if (unit === 0) return numList[ten] + "十";
|
|
return numList[ten] + "十" + numList[unit];
|
|
}
|
|
|
|
function catelogueInit(that) {
|
|
var plist = that.parents('.leftitem').find('.modelDialog2ConList').find('p');
|
|
var h1level = 1;
|
|
var h2level = 1;
|
|
var h3level = 1;
|
|
for (var index = 0; index < plist.length; index++) {
|
|
var eachObj = plist.eq(index);
|
|
if(eachObj.attr('data-level') == 1) {
|
|
var changeChapterText = 'H1 第'+toChineseNumber(h1level)+'章';
|
|
eachObj.attr('data-leveltxt', changeChapterText);
|
|
++h1level;
|
|
h2level = 1;
|
|
}
|
|
|
|
if(eachObj.attr('data-level') == 2) {
|
|
var currentH1level = h1level - 1;
|
|
if(currentH1level<=0){
|
|
var modelDialog2ConListtmp = that.parents('.modelDialog2ConList');
|
|
eachObj.remove();
|
|
if(modelDialog2ConListtmp.find('p').length > 0){
|
|
catelogueInit(modelDialog2ConListtmp.find('p').eq(0));
|
|
}
|
|
break;
|
|
}
|
|
var changeChapterText = 'H2 '+currentH1level+'.'+h2level;
|
|
eachObj.attr('data-leveltxt', changeChapterText);
|
|
++h2level;
|
|
h3level = 1
|
|
}
|
|
|
|
if(eachObj.attr('data-level') == 3) {
|
|
var currentH1level = h1level - 1;
|
|
var currentH2level = h2level - 1;
|
|
if(currentH1level<=0 || currentH2level<=0){
|
|
var modelDialog2ConListtmp = that.parents('.modelDialog2ConList');
|
|
eachObj.remove();
|
|
if(modelDialog2ConListtmp.find('p').length > 0){
|
|
catelogueInit(modelDialog2ConListtmp.find('p').eq(0));
|
|
}
|
|
break;
|
|
}
|
|
var changeChapterText = 'H3 '+currentH1level+'.'+currentH2level+'.'+h3level;
|
|
eachObj.attr('data-leveltxt', changeChapterText);
|
|
++h3level;
|
|
}
|
|
|
|
}
|
|
|
|
that.parents('.leftitem').find('.modelDialog2ConList').find('.catalogue-title').unbind('click');
|
|
that.parents('.leftitem').find('.modelDialog2ConList').find('.catalogue-title').bind('click',function(event){
|
|
var level = $(this).attr('data-level');
|
|
$('.catalogue-title-headings-out').find('li').removeClass('active');
|
|
$('.catalogue-title-headings-out').find('li[data-level='+level+']').addClass('active');
|
|
leftitemParaAct(event, $(this));
|
|
});
|
|
}
|
|
|
|
function editInit() {
|
|
$('.modelDialog2Con').find('.leftitem').find('.modelDialog2ConList').unbind('click');
|
|
$('.modelDialog2Con').find('.leftitem').find('.modelDialog2ConList').unbind('keyup');
|
|
$('.modelDialog2Con').find('.leftitem').find('.modelDialog2ConList').unbind('blur');
|
|
$('.modelDialog2Con').find('.leftitem').find('.modelDialog2ConList').unbind('keydown');
|
|
$('.modelDialog2Con').find('.leftitem').find('.modelDialog2ConList').unbind('paste');
|
|
// $('#modelDialog2Con').find('.leftitem').find('.modelDialog2ConList').on('keyup blur keydown paste', function(ev){
|
|
$('.modelDialog2Con').find('.leftitem').find('.modelDialog2ConList').on('click', function(ev){
|
|
editCata($(this), 1)
|
|
});
|
|
|
|
$('.modelDialog2Con').find('.leftitem').find('.modelDialog2ConList').on('keyup blur keydown paste', function(ev){
|
|
var selObj = window.getSelection();
|
|
var range = selObj.getRangeAt(0);
|
|
|
|
if(ev.keyCode == 17) return;
|
|
if(ev.type == 'paste'){
|
|
var clipboardData = ev.originalEvent.clipboardData;
|
|
var content = clipboardData.getData('text');
|
|
var iscata = true;
|
|
var cataList = content.split(/\n|\r/);
|
|
if(cataList.length > 0) {
|
|
var getParaList = '';
|
|
for (var index = 0; index < cataList.length; index++) {
|
|
var pasteElement = cataList[index];
|
|
pasteElement = pasteElement.replace("ㅤ", "").trim();
|
|
if(pasteElement.trim().length <= 0) continue;
|
|
|
|
var h1reg = /第[一二三四五六七八九十]{1,2}.*?/i;
|
|
var h2reg = /[1234567890]{1,2}\.[1234567890]{1,2}/i;
|
|
var h3reg = /[1234567890]{1,2}\.[1234567890]{1,2}\.[1234567890]{1,2}/i;
|
|
var n = pasteElement.search(h1reg);
|
|
var catalogueMatchs = pasteElement.match(h1reg);
|
|
if(n == 0) {
|
|
var znh1reg = /第[一二三四五六七八九十]{1,2}章.*?/i;
|
|
if(pasteElement.search(znh1reg) == 0){
|
|
catalogueMatchs = pasteElement.match(znh1reg);
|
|
}
|
|
|
|
var getPara = getInsertObj(1, '第一章');
|
|
getPara.html(pasteElement.substring(catalogueMatchs[0].length, pasteElement.length));
|
|
getParaList += getPara.prop("outerHTML");
|
|
}else{
|
|
var n = pasteElement.search(h3reg);
|
|
var catalogueMatchs = pasteElement.match(h3reg);
|
|
if(n == 0){
|
|
var getPara = getInsertObj(3, '1.1.1');
|
|
getPara.html(pasteElement.substring(catalogueMatchs[0].length, pasteElement.length));
|
|
getParaList += getPara.prop("outerHTML");
|
|
}else{
|
|
var n = pasteElement.search(h2reg);
|
|
var catalogueMatchs = pasteElement.match(h2reg);
|
|
if(n == 0){
|
|
var getPara = getInsertObj(2, '1.1');
|
|
getPara.html(pasteElement.substring(catalogueMatchs[0].length, pasteElement.length));
|
|
getParaList += getPara.prop("outerHTML");
|
|
}else{
|
|
iscata = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
if(iscata) {
|
|
var currentPraObj = $(range.commonAncestorContainer).parent('p');
|
|
var currentChapterTxt = currentPraObj.attr('data-leveltxt');
|
|
if(currentChapterTxt === undefined) {
|
|
currentPraObj = $(range.commonAncestorContainer);
|
|
currentChapterTxt = currentPraObj.attr('data-leveltxt');
|
|
}
|
|
|
|
if(currentChapterTxt == undefined && currentPraObj.hasClass('modelDialog2ConList') && currentPraObj.find('p').length == 1){
|
|
currentPraObj = currentPraObj.find('p').eq(0);
|
|
currentChapterTxt = currentPraObj.attr('data-leveltxt');
|
|
}
|
|
|
|
if(currentChapterTxt !== undefined){
|
|
var modelDialog2ConListCopy = currentPraObj.parent('.modelDialog2ConList');
|
|
var modelDialog2ConListCopyPara = currentPraObj.parent('.modelDialog2ConList').find('p');
|
|
var paraIndex = modelDialog2ConListCopyPara.index(currentPraObj);
|
|
var newParamHtml = '';
|
|
for (var index = 0; index < modelDialog2ConListCopyPara.length; index++) {
|
|
var modelDialog2ConListCopyParaElement = modelDialog2ConListCopyPara.eq(index);
|
|
newParamHtml += modelDialog2ConListCopyParaElement.prop("outerHTML");
|
|
if(index == paraIndex) newParamHtml+=getParaList;
|
|
}
|
|
|
|
if(newParamHtml != '') {
|
|
setTimeout(function(){
|
|
modelDialog2ConListCopy.html('');
|
|
modelDialog2ConListCopy.html($(newParamHtml));
|
|
catelogueInit(modelDialog2ConListCopy.find('p').eq(0));
|
|
}, 200);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
var modelDialog2ConList = $(this).parents('.leftitem').find('.modelDialog2ConList');
|
|
if (ev.keyCode == 13) ev.preventDefault();
|
|
|
|
var tmpinput = modelDialog2ConList.html().trim();
|
|
var dobj = modelDialog2ConList.find('p');
|
|
if(dobj.length == 0){
|
|
var current = modelDialog2ConList.find('p').eq(0);
|
|
modelDialog2ConList.html('');
|
|
|
|
var insert = getInsertObj(1, 'H1 第一章'); // $('<p data-level="1" data-leveltxt="" contenteditable="true" class="catalogue-title catalogue-lv1"> '+tmpinput+'</p>');
|
|
modelDialog2ConList.html(insert);
|
|
if (ev.keyCode == 13){
|
|
var insert2 = getInsertObj(1, 'H2 第二章'); //$('<p data-level="1" first="1" data-leveltxt="" contenteditable="true" class="catalogue-title catalogue-lv1"> </p>');
|
|
modelDialog2ConList.append(insert2);
|
|
placeCaretAtEnd(insert2[0]);
|
|
}
|
|
}else{
|
|
var currentPraObj = $(range.commonAncestorContainer).parent('p');
|
|
var currentChapterTxt = currentPraObj.attr('data-leveltxt');
|
|
if(currentChapterTxt === undefined) {
|
|
currentPraObj = $(range.commonAncestorContainer);
|
|
currentChapterTxt = currentPraObj.attr('data-leveltxt');
|
|
}
|
|
|
|
var outlines = getOutlineData($(this).parents('.leftitem').find('.modelDialog2ConList'));
|
|
if(ev.keyCode == 13 && ev.type == 'keydown'){
|
|
for(var i=0;i<outlines.length;i++){
|
|
// {level: '1', leveltxt: '第二章', content: ''}
|
|
var tmpItem = outlines[i];
|
|
if(tmpItem.leveltxt == currentChapterTxt){
|
|
if(tmpItem.level == 1) {
|
|
var nextNumText = toArabicNumber(tmpItem.leveltxt.replace("第", "").replace("章", ""))+1;
|
|
var nextChapter = 'H1 第'+toChineseNumber(nextNumText)+'章';
|
|
|
|
var insertobj = getInsertObj(1, nextChapter);
|
|
// var insertobj = $('<p data-level="1" first="1" data-leveltxt="'+nextChapter+'" contenteditable="true" class="catalogue-title catalogue-lv1"> </p>');
|
|
$(currentPraObj.parents('.catalogue-title-wrap').prevObject[0]).after(insertobj);
|
|
placeCaretAtEnd(insertobj[0]);
|
|
|
|
currentPraObj.parents('.modelDialog2Con').scrollTop(currentPraObj.parents('.modelDialog2Con').prop("scrollHeight"));
|
|
|
|
break;
|
|
}else if(tmpItem.level == 2) {
|
|
// var nextNumText = toArabicNumber(tmpItem.leveltxt.replace("第", "").replace("章", ""))+1;
|
|
var nextChapter = 'H2 1.1';
|
|
var insertobj = getInsertObj(2, nextChapter);
|
|
// var insertobj = $('<p data-level="1" first="1" data-leveltxt="'+nextChapter+'" contenteditable="true" class="catalogue-title catalogue-lv1"> </p>');
|
|
$(currentPraObj.parents('.catalogue-title-wrap').prevObject[0]).after(insertobj);
|
|
placeCaretAtEnd(insertobj[0]);
|
|
break;
|
|
}else if(tmpItem.level == 3) {
|
|
// var nextNumText = toArabicNumber(tmpItem.leveltxt.replace("第", "").replace("章", ""))+1;
|
|
var nextChapter = 'H3 1.1.1';
|
|
var insertobj = getInsertObj(3, nextChapter);
|
|
// var insertobj = $('<p data-level="1" first="1" data-leveltxt="'+nextChapter+'" contenteditable="true" class="catalogue-title catalogue-lv1"> </p>');
|
|
$(currentPraObj.parents('.catalogue-title-wrap').prevObject[0]).after(insertobj);
|
|
placeCaretAtEnd(insertobj[0]);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
catelogueInit($(this));
|
|
});
|
|
}
|
|
|
|
function toArabicNumber(chnStr) {
|
|
var rtn = 0;
|
|
var section = 0;
|
|
var number = 0;
|
|
var secUnit = false;
|
|
var str = chnStr.split('');
|
|
var chnNameValue = {
|
|
十: { value: 10, secUnit: false },
|
|
百: { value: 100, secUnit: false },
|
|
千: { value: 1000, secUnit: false },
|
|
万: { value: 10000, secUnit: true },
|
|
亿: { value: 100000000, secUnit: true }
|
|
}
|
|
//增加‘两’的对象,解决“两百零一”等数字的转换问题
|
|
var chnNumChar = {
|
|
零: 0,
|
|
一: 1,
|
|
二: 2,
|
|
两: 2,
|
|
三: 3,
|
|
四: 4,
|
|
五: 5,
|
|
六: 6,
|
|
七: 7,
|
|
八: 8,
|
|
九: 9
|
|
};
|
|
|
|
//因为要下载小说,所以要排除那些非正文部分章节;同时将“第十章”“第十一章”等原代码出错章节筛选出来
|
|
if (typeof chnNumChar[str[0]] !== 'undefined' || str[0] == '十') {
|
|
//将“第十章”“第十一章”等原代码出错章节进行单独处理
|
|
if (str[0] == '十') {
|
|
//因为只需要处理“十”至“十九”十个数,所以问题就很容易解决,对汉字中索引1的位置进行判断,当为空时,即为0+10=10,非空则从chnNumChar对象中取值加上10,即可得出结果。
|
|
rtn = (chnNumChar[str[1]] || 0) + 10
|
|
} else {
|
|
for (var i = 0; i < str.length; i++) {
|
|
var num = chnNumChar[str[i]];
|
|
if (typeof num !== 'undefined') {
|
|
number = num;
|
|
if (i === str.length - 1) {
|
|
section += number;
|
|
}
|
|
} else {
|
|
var unit = chnNameValue[str[i]].value;
|
|
secUnit = chnNameValue[str[i]].secUnit;
|
|
if (secUnit) {
|
|
section = (section + number) * unit;
|
|
rtn += section;
|
|
section = 0;
|
|
} else {
|
|
section += (number * unit);
|
|
}
|
|
number = 0;
|
|
}
|
|
}
|
|
}
|
|
//此处是将非正文章节的内容的序号设置为0,统一在爬虫下载完成的小说文件的起端放置作者的“感言、请假、设定等”文章
|
|
} else {
|
|
rtn = 0
|
|
section = 0
|
|
}
|
|
|
|
return rtn + section;
|
|
}
|
|
|
|
|
|
var configJson = $('#payCheckConfig').text();
|
|
if($('#payCheckConfig').length <= 0 || !configJson || configJson == ''){
|
|
alert('站点配置错误,请联系网站管理员');
|
|
errorJump();
|
|
}
|
|
var $CONFIG = JSON.parse(configJson);
|
|
if(!$CONFIG.paytypes || $CONFIG.paytypes == "[]"){
|
|
alert('该服务未设置支付方式,请联系客服或网站管理员!');
|
|
location.href = "/";
|
|
}
|
|
|
|
if($('#isPayDialog').length > 0) {
|
|
var typeinputConfig = $('#typeinputDialog').text();
|
|
if(!typeinputConfig){
|
|
alert('检测服务错误');
|
|
errorJump();
|
|
}
|
|
typeinputConfig = JSON.parse(typeinputConfig);
|
|
|
|
isPayDialog = true;
|
|
}
|
|
|
|
function payError(){
|
|
$('.payqrcode').addClass('');
|
|
}
|
|
|
|
function getPayType() {
|
|
var paytype = $('.ai2_pay_wrap').find('.active').attr('paytype');
|
|
return paytype;
|
|
}
|
|
|
|
function goodsClickRepay() {
|
|
debugger
|
|
|
|
$('.payGoodsList').find('li').unbind('click');
|
|
$('.payGoodsList').find('li').click(function(){
|
|
$('.payGoodsList').find('li').removeClass('active');
|
|
$(this).addClass('active');
|
|
var paytype = getPayType();
|
|
payAction(paytype);
|
|
});
|
|
}
|
|
|
|
function getRechargeGoods(payInfo, configData) {
|
|
if(payInfo.money <= 0){
|
|
alert('服务价格设置不正确!');
|
|
errorJump();
|
|
return;
|
|
}
|
|
|
|
var indexattr = $('.payGoodsList').find('li.active').attr('indexattr');
|
|
$('.payGoodsList').find('.paylist').remove();
|
|
if(payInfo.recharge_goods){
|
|
var paylist = payInfo.recharge_goods.list;
|
|
for(var i=0;i<paylist.length;i++){
|
|
var paylistObj = '<li goods_id="'+paylist[i].id+'" class="paylist" indexattr="'+(i+1)+'">';
|
|
if((i+1) == indexattr) paylistObj = '<li goods_id="'+paylist[i].id+'" class="paylist active" indexattr="'+(i+1)+'">';
|
|
|
|
paylistObj += '<p>平台通用充值</p>';
|
|
paylistObj += '<p>';
|
|
paylistObj += '<span>得</span>';
|
|
paylistObj += '<span>'+paylist[i].money+'</span>';
|
|
paylistObj += '<span>元</span>';
|
|
paylistObj += '</p>';
|
|
paylistObj += '<p>实付 '+paylist[i].price+' 元</p>';
|
|
paylistObj += '</li>';
|
|
$('.payGoodsList').append(paylistObj);
|
|
}
|
|
}
|
|
goodsClickRepay();
|
|
|
|
$('#payPrice').text(configData.price);
|
|
if(!isai2) $('.payGoodsList').removeClass('hide');
|
|
|
|
$('.payQrcodeUl').removeClass('hide');
|
|
$('.tbpayComWrap').addClass('hide');
|
|
$('.cardpayComWrap').addClass('hide');
|
|
$('.paywrap').addClass('hide');
|
|
$('.paywrap2').removeClass('hide');
|
|
getRechargePayUrl(payInfo, configData);
|
|
}
|
|
function checkAiSubmit(configData){
|
|
var paytypeSlect = 0;
|
|
var isMultPay = false;
|
|
if(configData.paytypes) {
|
|
var paytypes = JSON.parse(configData.paytypes);
|
|
if(paytypes.length > 0 && (configData.paytype==0 || configData.paytype == 4)) {
|
|
paytypeSlect = paytypes[0];
|
|
}else{
|
|
paytypeSlect = configData.paytype;
|
|
}
|
|
if(paytypes.length > 1) isMultPay = true;
|
|
}
|
|
|
|
$('#waitPayMoneySubBtn').unbind("click");
|
|
clearTimeout(payResultTimer);
|
|
|
|
var postData = new Object();
|
|
postData.title = paperTitle;
|
|
if(configData.addedServicesStr != '') postData.value_added_services = configData.addedServicesStr;
|
|
if(configData.ppt_tpl != '') postData.ppt_tpl = configData.ppt_tpl;
|
|
postData.check_type = checktype;
|
|
postData.pay_type = configData.paytype;
|
|
postData.get_pay_goods = 1;
|
|
if(postData.check_type == '92'){
|
|
postData.wdm_createtype = $('.btlistypeRt').find('.item[select=1]').find('span').text();
|
|
}
|
|
if(configData.core_content){
|
|
postData.core_content = configData.core_content;
|
|
}
|
|
|
|
if(!isPayDialog && hasPayPaperCata) {
|
|
postData.core_content = getSubmitCata();
|
|
postData.aiessay_create_type = 2;
|
|
}
|
|
|
|
if($('#aiessayWordnum').length>0){
|
|
postData.aiessay_wordnum = $('#aiessayWordnum').text();
|
|
}
|
|
|
|
if(configData.paytype == 1){
|
|
$('.payQrcodeUl').addClass('hide');
|
|
}
|
|
|
|
if (postData.check_type == '96') {
|
|
var pptid = $("#ppt_tpl").val();
|
|
var upload_file_md5 = $("#upload_file_md5").val();
|
|
var upload_file_name = $("#upload_file_name").val();
|
|
var upload_file_tmpname = $("#upload_file_tmpname").val();
|
|
|
|
if (!upload_file_md5 || !upload_file_name || !upload_file_tmpname) {
|
|
alert("请上传论文文件");
|
|
return;
|
|
}
|
|
if (!pptid) {
|
|
alert("请选择ppt模板");
|
|
return;
|
|
}
|
|
|
|
postData.ppt_tpl = pptid;
|
|
postData.upload_file_md5 = upload_file_md5;
|
|
postData.upload_file_name = upload_file_name;
|
|
postData.upload_file_tmpname = upload_file_tmpname;
|
|
}
|
|
|
|
if (postData.check_type == '97') {
|
|
var word_count = $("input[name=word_count]:checked").val();
|
|
if (!word_count) {
|
|
alert("请选择字数");
|
|
return;
|
|
}
|
|
postData.aiessay_wordnum = word_count;
|
|
}
|
|
|
|
|
|
debugger
|
|
$.ajax({
|
|
url:"http://aitest.chachongz.com"+'/ajax_check_aisubmit',
|
|
type:'post',
|
|
dataType:'json',
|
|
data:postData,
|
|
success:function(res){
|
|
if(res.status){
|
|
if(!isPayDialog){
|
|
$('.paywrap2').addClass('hide');
|
|
$('.paywrap').removeClass('hide');
|
|
$('#waitPayMoney').text(0);
|
|
$('#waitPayMoneyShiji').text('余额抵扣¥'+res.data.money);
|
|
|
|
var payInfoTmp = res.data;
|
|
payInfoTmp.tid = '';
|
|
payInfoTmp.addedServicesStr = configData.addedServicesStr;
|
|
$('#waitPayMoneySubBtn').click(function(){
|
|
aiSubmit(payInfoTmp, configData);
|
|
});
|
|
}else{
|
|
showProgress()
|
|
$('.modelDialog1').removeClass('hide');
|
|
$('.pageMask').removeClass('hide');
|
|
var payInfoTmp = res.data;
|
|
payInfoTmp.tid = '';
|
|
aiSubmit(payInfoTmp, configData);
|
|
}
|
|
}else{
|
|
if(res.info == "用户信息不正确"){
|
|
loginComAction(location.href);
|
|
retrun;
|
|
}
|
|
if(res.data.user_not_enough_money) {
|
|
if(isPayDialog) {
|
|
$('.paycom-dialog').removeClass('hide');
|
|
$('#isPayDialogMask').removeClass('hide');
|
|
}
|
|
$('.paywrap2').removeClass('hide');
|
|
$('.paywrap').addClass('hide');
|
|
|
|
var payInfo = res.data;
|
|
payInfo.isMultPay = isMultPay;
|
|
payInfo.pay_type = paytypeSlect;
|
|
if(configData.paytype == 2 || configData.paytype == 3){
|
|
getRechargeGoods(payInfo, configData);
|
|
}
|
|
|
|
if(configData.paytype == 0 || configData.paytype == 4) {
|
|
$('.ai2pay_greybg').addClass('hide');
|
|
$('.payQrcodeUl').addClass('hide');
|
|
$('.cardpayComWrap').addClass('hide');
|
|
$('.tbpayComWrap').removeClass('hide');
|
|
$('.paycom-dialog').addClass('paycom-taobao');
|
|
$('.paycom-dialog-title').addClass('paycom-taobao');
|
|
}else if(configData.paytype == 1) {
|
|
$('.ai2pay_greybg').addClass('hide');
|
|
$('.payQrcodeUl').addClass('hide');
|
|
$('.tbpayComWrap').addClass('hide');
|
|
$('.cardpayComWrap').removeClass('hide');
|
|
$('.paycom-dialog').removeClass('paycom-taobao');
|
|
$('.paycom-dialog-title').removeClass('paycom-taobao');
|
|
$('.payQrcodeUl').addClass('hide');
|
|
}else{
|
|
$('.paycom-dialog').removeClass('paycom-taobao');
|
|
$('.paycom-dialog-title').removeClass('paycom-taobao');
|
|
}
|
|
|
|
return;
|
|
}
|
|
alert(res.info);
|
|
errorJump();
|
|
return;
|
|
}
|
|
},
|
|
error:function(){
|
|
alert('网络错误5');
|
|
}
|
|
});
|
|
}
|
|
|
|
function getSubmitCata() {
|
|
var modelDialog2ConListpObj = $('.modelDialog2ConList').eq(0).find('p');
|
|
if(modelDialog2ConListpObj.length <= 0){
|
|
alert('获取提纲失败');
|
|
return "";
|
|
}
|
|
var lvtitleall = '';
|
|
for (var index = 0; index < modelDialog2ConListpObj.length; index++) {
|
|
var copyelement = modelDialog2ConListpObj.eq(index);
|
|
var chatpertxt = copyelement.attr('data-leveltxt').replace(/H1\s*?/, "").replace(/H2\s*?/, "").replace(/H3\s*?/, "").replace("ㅤ", "").replace("第", "").replace("章", "、").replace("\n", "").trim();
|
|
|
|
var ppayCheckType = $('#payCheckType').text();
|
|
var paraLevel = copyelement.attr('data-level');
|
|
if(ppayCheckType == 82 && paraLevel == 1){
|
|
chatpertxt = chatpertxt.replace("、", "");
|
|
chatpertxt = toArabicNumber(chatpertxt)+'.';
|
|
}
|
|
|
|
var lvtitle = chatpertxt+" "+copyelement.text().replace("\n", "").trim();
|
|
lvtitleall = lvtitleall+lvtitle+"\n";
|
|
}
|
|
return lvtitleall;
|
|
}
|
|
|
|
function aiSubmit(payinfo, configData){
|
|
var postData = new Object();
|
|
postData.title = paperTitle;
|
|
postData.value_added_services = configData.addedServicesStr;
|
|
if(configData.core_content){
|
|
postData.core_content = configData.core_content;
|
|
}
|
|
|
|
if(configData.ppt_tpl != '') postData.ppt_tpl = configData.ppt_tpl;
|
|
|
|
var fuid = $("#hidden_params").attr("fuid");
|
|
postData.fuid = fuid;
|
|
|
|
|
|
postData.tid = payinfo.tid;
|
|
if(configData.paytype == 0 || configData.paytype == 4){
|
|
postData.orderId1 = payinfo.orderId1;
|
|
postData.orderId2 = payinfo.orderId2;
|
|
postData.orderId3 = payinfo.orderId3;
|
|
}
|
|
|
|
postData.pay_type = configData.paytype;
|
|
postData.check_type = configData.check_type;
|
|
if(postData.check_type == '92'){
|
|
postData.wdm_createtype = $('.btlistypeRt').find('.item[select=1]').find('span').text();
|
|
}
|
|
|
|
if(!isPayDialog && hasPayPaperCata) {
|
|
postData.core_content = getSubmitCata();
|
|
postData.aiessay_create_type = 2;
|
|
}
|
|
|
|
if($('#aiessayWordnum').length>0){
|
|
postData.aiessay_wordnum = $('#aiessayWordnum').text();
|
|
}
|
|
|
|
if($('#tableAndFormulas').length>0){
|
|
postData.table_and_formulas = $('#tableAndFormulas').text();
|
|
}
|
|
|
|
if($('#aiessayEdu').length>0){
|
|
postData.aiessay_edu = $('#aiessayEdu').text();
|
|
}
|
|
if($('#aiessayMajor').length>0){
|
|
postData.aiessay_major = $('#aiessayMajor').text();
|
|
}
|
|
|
|
if (postData.check_type == '96') {
|
|
var pptid = $("#ppt_tpl").val();
|
|
var upload_file_md5 = $("#upload_file_md5").val();
|
|
var upload_file_name = $("#upload_file_name").val();
|
|
var upload_file_tmpname = $("#upload_file_tmpname").val();
|
|
|
|
if (!upload_file_md5 || !upload_file_name || !upload_file_tmpname) {
|
|
alert("请上传论文文件");
|
|
return;
|
|
}
|
|
if (!pptid) {
|
|
alert("请选择ppt模板");
|
|
return;
|
|
}
|
|
|
|
postData.ppt_tpl = pptid;
|
|
postData.upload_file_md5 = upload_file_md5;
|
|
postData.upload_file_name = upload_file_name;
|
|
postData.upload_file_tmpname = upload_file_tmpname;
|
|
}
|
|
|
|
if (postData.check_type == '97') {
|
|
var word_count = $("input[name=word_count]:checked").val();
|
|
if (!word_count) {
|
|
alert("请选择字数");
|
|
return;
|
|
}
|
|
postData.aiessay_wordnum = word_count;
|
|
}
|
|
|
|
$.ajax({
|
|
url:"http://aitest.chachongz.com"+'/aisubmit',
|
|
type:'post',
|
|
dataType:'json',
|
|
data:postData,
|
|
success:function(res){
|
|
if(res.info == "用户信息不正确"){
|
|
loginComAction(location.href);
|
|
retrun;
|
|
}
|
|
if(res.status){
|
|
if(isPayDialog) {
|
|
showProgress()
|
|
$('.modelDialog1').removeClass('hide');
|
|
$('.pageMask').removeClass('hide');
|
|
}
|
|
getAiNoNeedLoginSubmitResult(res);
|
|
}else{
|
|
if(configData.paytype != 1) {
|
|
alert(res.info);
|
|
return;
|
|
}
|
|
|
|
var cardpaytypes = JSON.parse(configData.paytypes);
|
|
if(cardpaytypes.length > 0){
|
|
var cardpaytype = -1;
|
|
for(var i = 0; i < cardpaytypes.length; i++) {
|
|
if(cardpaytypes[i] == 2 || cardpaytypes[i] == 3){
|
|
cardpaytype = cardpaytypes[i];
|
|
break;
|
|
}
|
|
}
|
|
|
|
if(cardpaytype == -1) {
|
|
alert(res.info);
|
|
return;
|
|
}
|
|
|
|
payinfo.pay_type = configData.paytype = cardpaytype;
|
|
configData.recharge_checkcard_total_fee = 0;
|
|
|
|
var cardmsg = res.info;
|
|
if(cardmsg.indexOf("检测卡支付金额不足") > -1){
|
|
// 检测卡支付金额不足(0.01元),还需补<span> 0.07 </span>元 。<a target='_blank' style='color:blue;text-decoration:underline' href='/reward/for_enough?tid=10002168809175168&needpay=0.08'>去补款</a>|enougherr
|
|
var reg = /金额不足(\s*(.*?)\s*元)/;
|
|
var result = cardmsg.match(reg);
|
|
if(!result){
|
|
alert(res.info+'|check card remain error');
|
|
return;
|
|
}
|
|
|
|
var reg2 = /还需补\<span\>\s*(.*?)\s*\<\/span\>元/;
|
|
var result2 = cardmsg.match(reg2);
|
|
if(!result2){
|
|
alert(res.info+'|check card need pay error');
|
|
return;
|
|
}
|
|
|
|
var reg3 = /\&needpay\=\s*(.*?)\s*'/;
|
|
var result3 = cardmsg.match(reg3);
|
|
if(!result3){
|
|
alert(res.info+'|order original pay error');
|
|
return;
|
|
}
|
|
|
|
configData.recharge_checkcard_total_fee = result2[1];
|
|
var checkcard_recharge_html = '<li><span>需支付</span><span>'+result2[1]+'</span><span>元</span></li>';
|
|
checkcard_recharge_html += '<li>订单金额:'+result3[1]+'元</li>';
|
|
checkcard_recharge_html += '<li>检测卡余额抵扣:'+result[1]+'元</li>';
|
|
}else if(cardmsg.indexOf("折扣卡补款") > -1){
|
|
// 折扣卡补款。0.08。5.0。0.04。|enougherr
|
|
var rechargeinfo = cardmsg.split('。');
|
|
configData.recharge_checkcard_total_fee = rechargeinfo[3];
|
|
checkcard_recharge_html = '<li><span>需支付</span><span>'+rechargeinfo[3]+'</span><span>元</span></li>';
|
|
checkcard_recharge_html += '<li>订单金额:'+rechargeinfo[1]+'元</li>';
|
|
checkcard_recharge_html += '<li>订单折扣:'+rechargeinfo[2]+'折</li>';
|
|
}else if(cardmsg.indexOf("满减卡补款") > -1){
|
|
// 满减卡补款。0.08。0.01。0.07。(满0.03减免0.01)|enougherr
|
|
// <!-- <li><span>需支付</span><span>1888.00</span><span>元</span></li> -->
|
|
// <!-- <li>订单金额:1888.00元</li>
|
|
// <li>减免金额:1888.00元</li> -->
|
|
var rechargeinfo = cardmsg.split('。');
|
|
configData.recharge_checkcard_total_fee = rechargeinfo[3];
|
|
checkcard_recharge_html = '<li><span>需支付</span><span>'+rechargeinfo[3]+'</span><span>元</span></li>';
|
|
checkcard_recharge_html += '<li>订单金额:'+rechargeinfo[1]+'元</li>';
|
|
checkcard_recharge_html += '<li>减免金额:'+rechargeinfo[2]+'元'+(rechargeinfo[4].replaceAll('|enougherr', ''))+'</li>';
|
|
}else{
|
|
alert(res.info);
|
|
return;
|
|
}
|
|
|
|
// cid=10002168803531919:444327&card_recharge=0.02
|
|
configData.cid = payinfo.tid;
|
|
configData.card_recharge = configData.recharge_checkcard_total_fee;
|
|
configData.recharge_checkcard_html = checkcard_recharge_html;
|
|
configData.recharge_card_type = 1;
|
|
getRechargePayUrl(payinfo, configData);
|
|
}else{
|
|
alert(res.info);
|
|
return;
|
|
}
|
|
}
|
|
},
|
|
error:function(){
|
|
alert('网络错误4');
|
|
}
|
|
});
|
|
}
|
|
|
|
function paytypeSwitch() {
|
|
debugger
|
|
$('.paytypeSwitch').unbind('click');
|
|
$('.paytypeSwitch').click(function(){
|
|
clearTimeout(payResultTimer);
|
|
var paytype = $('.paytypeSwitch').attr('paytype');
|
|
payAction(paytype);
|
|
});
|
|
}
|
|
|
|
function ai2PaytypeSwitch() {
|
|
debugger
|
|
|
|
$('.ai2_pay_wrap').find('li').unbind('click');
|
|
$('.ai2_pay_wrap').find('li').click(function(){
|
|
$('.ai2_pay_wrap').find('li').removeClass('active');
|
|
$('.paycom-dialog').removeClass('paycom-checkcard');
|
|
$(this).addClass('active');
|
|
clearTimeout(payResultTimer);
|
|
var paytype = $(this).attr('paytype');
|
|
payAction(paytype);
|
|
});
|
|
}
|
|
|
|
function getRechargePayUrl(payInfo, configData) {
|
|
$('.tbpayComWrap').addClass('hide');
|
|
|
|
// $('.payQrcodeUl').addClass('hide');
|
|
var postData = new Object();
|
|
postData.type = checktype;
|
|
postData.pay_type = payInfo.pay_type;
|
|
postData.value_added_services = configData.addedServicesStr;
|
|
if(configData.ppt_tpl != '') postData.ppt_tpl = configData.ppt_tpl;
|
|
postData.recharge_goods_id = configData.goods_id;
|
|
postData.title = paperTitle;
|
|
postData.core_content = configData.core_content;
|
|
|
|
if(postData.type == '92'){
|
|
postData.wdm_createtype = $('.btlistypeRt').find('.item[select=1]').find('span').text();
|
|
}
|
|
|
|
if(configData.recharge_card_type) {
|
|
postData.cid = configData.cid;
|
|
postData.card_recharge = configData.card_recharge;
|
|
}else{
|
|
$('.ai2pay_greybg').removeClass('hide');
|
|
}
|
|
|
|
if(payInfo.pay_type == 0){
|
|
alert('该服务未设置支付方式!');
|
|
return;
|
|
}
|
|
var fuid = $("#hidden_params").attr("fuid");
|
|
postData.fuid = fuid;
|
|
|
|
if(!isPayDialog && hasPayPaperCata) {
|
|
postData.core_content = getSubmitCata();
|
|
postData.aiessay_create_type = 2;
|
|
}
|
|
|
|
if($('#aiessayWordnum').length>0){
|
|
postData.aiessay_wordnum = $('#aiessayWordnum').text();
|
|
}
|
|
|
|
if($('#tableAndFormulas').length>0){
|
|
postData.table_and_formulas = $('#tableAndFormulas').text();
|
|
}
|
|
|
|
if($('#aiessayEdu').length>0){
|
|
postData.aiessay_edu = $('#aiessayEdu').text();
|
|
}
|
|
if($('#aiessayMajor').length>0){
|
|
postData.aiessay_major = $('#aiessayMajor').text();
|
|
}
|
|
|
|
if (postData.type == '96') {
|
|
var pptid = $("#ppt_tpl").val();
|
|
var upload_file_md5 = $("#upload_file_md5").val();
|
|
var upload_file_name = $("#upload_file_name").val();
|
|
var upload_file_tmpname = $("#upload_file_tmpname").val();
|
|
|
|
if (!upload_file_md5 || !upload_file_name || !upload_file_tmpname) {
|
|
alert("请上传论文文件");
|
|
return;
|
|
}
|
|
if (!pptid) {
|
|
alert("请选择ppt模板");
|
|
return;
|
|
}
|
|
|
|
postData.ppt_tpl = pptid;
|
|
postData.upload_file_md5 = upload_file_md5;
|
|
postData.upload_file_name = upload_file_name;
|
|
postData.upload_file_tmpname = upload_file_tmpname;
|
|
}
|
|
|
|
if (postData.type == '97') {
|
|
var word_count = $("input[name=word_count]:checked").val();
|
|
if (!word_count) {
|
|
alert("请选择字数");
|
|
return;
|
|
}
|
|
postData.aiessay_wordnum = word_count;
|
|
}
|
|
|
|
$.ajax({
|
|
url:"http://aitest.chachongz.com"+'/ajax_get_ai_pay_url',
|
|
type:'post',
|
|
dataType:'json',
|
|
data:postData,
|
|
success:function(res){
|
|
if(res.status){
|
|
if(configData.recharge_card_type){
|
|
checkCardRechargeAct(res.data, configData);
|
|
}else{
|
|
if(postData.recharge_goods_id == '0') $('#payinfoWrapMoney').text(payInfo.user_not_enough_money);
|
|
$('#payinfoWrapRemain').addClass('hide');
|
|
$('#payinfoWrapRemain').text('');
|
|
if(payInfo.user_remain_money > 0 && postData.recharge_goods_id == '0') {
|
|
$('#payinfoWrapRemain').removeClass('hide');
|
|
$('#payinfoWrapRemain').text('余额抵扣¥'+payInfo.user_remain_money);
|
|
}else{
|
|
$('#payinfoWrapMoney').text(res.data.total_fee);
|
|
}
|
|
|
|
$('.paytypeSwitch').text('');
|
|
if(payInfo.pay_type == 2){
|
|
$('.payqrcode.zfb').addClass('hide');
|
|
$('.payqrcode.wx').removeClass('hide');
|
|
$('.paytypeSwitch').removeClass('hide');
|
|
if(payInfo.isMultPay) {
|
|
$('.paytypeSwitch').text('切换支付宝');
|
|
$('.paytypeSwitch').attr('paytype', 3);
|
|
paytypeSwitch()
|
|
}
|
|
}
|
|
if(payInfo.pay_type == 3){
|
|
$('.payqrcode.wx').addClass('hide');
|
|
$('.payqrcode.zfb').removeClass('hide');
|
|
$('.paytypeSwitch').removeClass('hide');
|
|
if(payInfo.isMultPay) {
|
|
$('.paytypeSwitch').text('切换微信');
|
|
$('.paytypeSwitch').attr('paytype', 2);
|
|
paytypeSwitch();
|
|
}
|
|
}
|
|
$('#payQrcodeImgWrap').html('');
|
|
$('#payQrcodeImgWrap').attr('tid', res.data.tid);
|
|
$('#payQrcodeImgWrap').attr('paytype', postData.pay_type);
|
|
jQuery("#payQrcodeImgWrap").qrcode({
|
|
text:res.data.qrcode_url,
|
|
width:112,
|
|
height:112
|
|
});
|
|
}
|
|
|
|
res.data.paytype = postData.pay_type;
|
|
getRechargePayResult(res.data, configData);
|
|
}else{
|
|
alert(res.info);
|
|
$('.ai2pay_greybg').addClass('hide');
|
|
$('.payQrcodeUl').addClass('hide');
|
|
}
|
|
},
|
|
error:function(){
|
|
alert('网络错误1');
|
|
}
|
|
});
|
|
}
|
|
|
|
function checkCardRechargeAct(rsdata, configData){
|
|
$('#checkCardComRechargeQrcodeWrap').html('');
|
|
$('.paycom-dialog').addClass('paycom-checkcard');
|
|
jQuery("#checkCardComRechargeQrcodeWrap").qrcode({
|
|
text:rsdata.qrcode_url,
|
|
width:112,
|
|
height:112
|
|
});
|
|
|
|
$('#checkCardComTbsubmit').addClass('hide');
|
|
$('#checkCardComTbsubmitNoReady').addClass('hide');
|
|
clearTimeout(submitRepeatTimer);
|
|
$('.checkCardComRecharge').removeClass('wxpayactive');
|
|
$('.checkCardComRecharge').removeClass('zfbpayactive');
|
|
if(configData.paytype == 2) $('.checkCardComRecharge').addClass('wxpayactive');
|
|
if(configData.paytype == 3) $('.checkCardComRecharge').addClass('zfbpayactive');
|
|
|
|
$('.checkCardComRechargeRight').find('ul').html(configData.recharge_checkcard_html);
|
|
$('.checkCardComRecharge').removeClass('hide');
|
|
}
|
|
|
|
function getAiNoNeedLoginSubmitResult(res) {
|
|
if(isPayDialog && res.data.data.check_type != 81 && res.data.data.check_type != 85 && res.data.data.check_type != 83 && res.data.data.check_type != 62 && res.data.data.check_type != 63 && res.data.data.check_type != 91 && res.data.data.check_type != 95 && res.data.data.check_type != 96 && res.data.data.check_type != 97) {
|
|
getOrderResult(res.data.data.paper_id, res.data.data.check_type, res);
|
|
return;
|
|
}
|
|
|
|
if(res.data.data.check_type == 81 || res.data.data.check_type == 85 || res.data.data.check_type == 83 || res.data.data.check_type == 62 || res.data.data.check_type == 63 || res.data.data.check_type == 91 || res.data.data.check_type == 95 || res.data.data.check_type == 96 || res.data.data.check_type == 97){
|
|
$('#isPayDialogMask').addClass('hide');
|
|
$('.modelDialog1').addClass('hide');
|
|
$('.pageMask').addClass('hide');
|
|
$('.paycom-dialog').addClass('hide');
|
|
}
|
|
|
|
payresultAction(res);
|
|
}
|
|
|
|
function payresultAction(res) {
|
|
var data = res.data;
|
|
$('#payresultTid').text(data.tid);
|
|
if(data.wechat_qrcode_url){
|
|
$('.payresultWrap').removeClass('payresultNoGz');
|
|
$('.payresultQrcode').attr('src', data.wechat_qrcode_url);
|
|
$('.payresultQrcodeClass').removeClass('hide');
|
|
}
|
|
$('.payresultMask').removeClass('hide');
|
|
$('.payresultWrap').removeClass('hide');
|
|
$('.payresultBtn1').unbind('click');
|
|
$('.payresultBtn2').unbind('click');
|
|
$('.payresultBtn1').click(function(){
|
|
location.href = "/report2?oid="+data.tid;
|
|
});
|
|
$('.payresultBtn2').click(function(){
|
|
if(isPayDialog) {
|
|
location.reload();
|
|
return;
|
|
}
|
|
location.href = "/modelessay";
|
|
});
|
|
|
|
$('#payresultCopyTidBtn').unbind('click');
|
|
var clipboard2 = new Clipboard('#payresultCopyTidBtn', {
|
|
text: function () {
|
|
return $('#payresultTid').text();
|
|
}
|
|
});
|
|
clipboard2.on('success', function(e) {
|
|
alert('复制成功')
|
|
})
|
|
}
|
|
|
|
|
|
function getRechargePayResult(payinfo, configData) {
|
|
clearTimeout(payResultTimer);
|
|
|
|
var ptid = $('#payQrcodeImgWrap').attr('tid');
|
|
console.log('ptid1'+ptid);
|
|
// 支付页面默认打开支付方式 再次点击检测卡 然后需要补款 查询支付结果订单号为默认打开支付方式订单号
|
|
if (payinfo.tid) {
|
|
ptid = payinfo.tid;
|
|
}
|
|
|
|
var ppaytype = $('#payQrcodeImgWrap').attr('paytype');
|
|
$.ajax({
|
|
url:"http://aitest.chachongz.com"+'/ajax_get_ai_pay_result',
|
|
type:'post',
|
|
dataType:'json',
|
|
data:{tid:ptid,pay_type:ppaytype},
|
|
success:function(res){
|
|
if(res.status){
|
|
if(res.data.pay_status == 'NOTPAY') {
|
|
payResultTimer = setTimeout(function(){
|
|
getRechargePayResult(payinfo, configData);
|
|
}, 2000);
|
|
return;
|
|
}
|
|
|
|
if(isPayDialog) {
|
|
showProgress()
|
|
$('.modelDialog1').removeClass('hide');
|
|
$('.pageMask').removeClass('hide');
|
|
}
|
|
|
|
if(aiNoNeedLogin){
|
|
getAiNoNeedLoginSubmitResult(res);
|
|
}else{
|
|
aiSubmit(payinfo, configData);
|
|
}
|
|
clearTimeout(payResultTimer);
|
|
return;
|
|
}
|
|
|
|
clearTimeout(payResultTimer);
|
|
alert(res.info);
|
|
},
|
|
error:function(err){
|
|
alert('网络错误2');
|
|
}
|
|
});
|
|
}
|
|
|
|
function payGetConfig(paytype) {
|
|
var addServiceSelectObj = $('.addServiceSelect').find('img');
|
|
var addedServicesStr = '';
|
|
var ppt_tpl = '';
|
|
for (var index = 0; index < addServiceSelectObj.length; index++) {
|
|
var element = addServiceSelectObj.eq(index);
|
|
if(!element.hasClass('hide') && element.attr('show') == '1'){
|
|
if(element.attr('type') == 96) ppt_tpl = $('.pptTplListBoxItem.active').attr('tlpid');
|
|
if(addedServicesStr == '') {
|
|
addedServicesStr = element.attr('type');
|
|
continue;
|
|
}
|
|
addedServicesStr += ','+element.attr('type');
|
|
}
|
|
}
|
|
|
|
var configData = $('#payCheckConfig').text();
|
|
if($('#payCheckConfig').length <= 0 || !configData || configData == ''){
|
|
alert('站点配置错误,请联系网站管理员');
|
|
errorJump();
|
|
return;
|
|
}
|
|
|
|
configData = JSON.parse(configData);
|
|
|
|
if(!configData.service_domain){
|
|
alert('站点配置错误,请联系网站管理员!');
|
|
errorJump();
|
|
return;
|
|
}
|
|
|
|
var selectGoods = $('.payGoodsList').find('li.active');
|
|
if(selectGoods.length <= 0){
|
|
alert('请选择支付订单类型!');
|
|
return;
|
|
}
|
|
|
|
var goods_id = selectGoods.attr('goods_id');
|
|
configData.goods_id = goods_id;
|
|
configData.paytype = paytype;
|
|
if(isai2 && paytype < 0){
|
|
paytypes = JSON.parse(configData.paytypes);
|
|
if(paytypes && paytypes.length>0){
|
|
var paytab = '';
|
|
for(var i = 0; i < paytypes.length; i++) {
|
|
if(i == 0) {
|
|
configData.paytype = paytypes[i];
|
|
if((configData.paytype == 0 || configData.paytype == 4) && configData.guide_url && configData.guide_url != ''){
|
|
$('#comtbQrcode').html('');
|
|
jQuery("#comtbQrcode").qrcode({
|
|
text:configData.guide_url,
|
|
width:100,
|
|
height:100
|
|
});
|
|
verifyTid($('#aiTaobaoTidInput1'));
|
|
verifyTid($('#aiTaobaoTidInput2'));
|
|
verifyTid($('#aiTaobaoTidInput3'));
|
|
}
|
|
|
|
if(configData.paytype == 1) verifyTid($('#aiCheckCardInput'));
|
|
|
|
if(configData.paytype == 0 || configData.paytype == 1 || configData.paytype == 4){
|
|
$('.paytipszfb').addClass('hide');
|
|
$('.paytipstb').removeClass('hide');
|
|
if($('.paytipszfb').length == 0){
|
|
setTimeout(function(){
|
|
$('.paytipszfb').addClass('hide');
|
|
},80);
|
|
}
|
|
}else{
|
|
$('.paytipstb').addClass('hide');
|
|
$('.paytipszfb').removeClass('hide');
|
|
if($('.paytipszfb').length == 0){
|
|
setTimeout(function(){
|
|
$('.paytipszfb').removeClass('hide');
|
|
},80);
|
|
}
|
|
}
|
|
}
|
|
if(paytypes[i] == 0) paytab += '<li paytype="0" class="ai2_tbpay'+(i==0?' active':'')+'"><i></i>淘宝</li>';
|
|
if(paytypes[i] == 1) paytab += '<li paytype="1" class="ai2_cardpay'+(i==0?' active':'')+'"><i></i>检测卡</li>';
|
|
if(paytypes[i] == 2) paytab += '<li paytype="2" class="ai2_wxpay'+(i==0?' active':'')+'"><i></i>微信</li>';
|
|
if(paytypes[i] == 3) paytab += '<li paytype="3" class="ai2_zfbpay'+(i==0?' active':'')+'"><i></i>支付宝</li>';
|
|
if(paytypes[i] == 4) paytab += '<li paytype="4" class="ai2_jdpay ai2_tbpay'+(i==0?' active':'')+'"><i></i>京东</li>';
|
|
}
|
|
$('.ai2_pay_wrap').html(paytab);
|
|
ai2PaytypeSwitch();
|
|
}
|
|
}
|
|
|
|
if(paytype >= 0){
|
|
if(paytype==0 || paytype==1 || paytype==4){
|
|
$('.paytipszfb').addClass('hide');
|
|
$('.paytipstb').removeClass('hide');
|
|
if($('.paytipszfb').length == 0){
|
|
setTimeout(function(){
|
|
$('.paytipszfb').addClass('hide');
|
|
},80);
|
|
}
|
|
}else{
|
|
$('.paytipstb').addClass('hide');
|
|
$('.paytipszfb').removeClass('hide');
|
|
if($('.paytipszfb').length == 0){
|
|
setTimeout(function(){
|
|
$('.paytipszfb').removeClass('hide');
|
|
},80);
|
|
}
|
|
}
|
|
}
|
|
|
|
if((paytype==0 && configData.paytype == 0) || configData.paytype == 4){
|
|
if(configData.guide_url && configData.guide_url != ''){
|
|
$('#comtbQrcode').html('');
|
|
jQuery("#comtbQrcode").qrcode({
|
|
text:configData.guide_url,
|
|
width:100,
|
|
height:100
|
|
});
|
|
verifyTid($('#aiTaobaoTidInput1'));
|
|
verifyTid($('#aiTaobaoTidInput2'));
|
|
verifyTid($('#aiTaobaoTidInput3'));
|
|
}
|
|
verifyTid($('#aiTaobaoTidInput1'));
|
|
verifyTid($('#aiTaobaoTidInput2'));
|
|
verifyTid($('#aiTaobaoTidInput3'));
|
|
}
|
|
|
|
if(configData.paytype == 0 || configData.paytype == 4){
|
|
$('#comTbsubmit').unbind('click');
|
|
$('#comTbsubmit').click(function(){
|
|
$('#comTbsubmit').addClass('hide');
|
|
$('#comTbsubmitNoReady').removeClass('hide');
|
|
setTimeout(function(){
|
|
$('#comTbsubmit').removeClass('hide');
|
|
$('#comTbsubmitNoReady').addClass('hide');
|
|
}, 3000);
|
|
|
|
var tid = $('#aiTaobaoTidInput1').val();
|
|
var res = verifyTaobaoTid($('#aiTaobaoTidInput1'), tid);
|
|
|
|
var tid2 = $('#aiTaobaoTidInput2').val();
|
|
var res2 = verifyTaobaoTid($('#aiTaobaoTidInput2'), tid2);
|
|
|
|
var tid3 = $('#aiTaobaoTidInput3').val();
|
|
var res3 = verifyTaobaoTid($('#aiTaobaoTidInput3'), tid3);
|
|
if(!res && !res2 && !res3) return;
|
|
if($('.tidErrrorflag').css('display') != 'none') return;
|
|
|
|
var payInfoTmp = new Object();
|
|
payInfoTmp.orderId1 = $('#aiTaobaoTidInput1').val().trim();
|
|
payInfoTmp.orderId2 = $('#aiTaobaoTidInput2').val().trim();
|
|
payInfoTmp.orderId3 = $('#aiTaobaoTidInput3').val().trim();
|
|
payInfoTmp.addedServicesStr = configData.addedServicesStr;
|
|
|
|
if(ppt_tpl != '') payInfoTmp.ppt_tpl = ppt_tpl
|
|
aiSubmit(payInfoTmp, configData);
|
|
});
|
|
}
|
|
|
|
if(paytype==1 && configData.paytype == 1) verifyTid($('#aiCheckCardInput'));
|
|
|
|
if(configData.paytype == 1){
|
|
$('#checkCardComTbsubmit').unbind('click');
|
|
$('#checkCardComTbsubmit').click(function(){
|
|
$('#checkCardComTbsubmit').addClass('hide');
|
|
$('#checkCardComTbsubmitNoReady').removeClass('hide');
|
|
submitRepeatTimer = setTimeout(function(){
|
|
if(!$('#checkCardComTbsubmitNoReady').hasClass('hide')) $('#checkCardComTbsubmit').removeClass('hide');
|
|
$('#checkCardComTbsubmitNoReady').addClass('hide');
|
|
}, 3000);
|
|
|
|
var cardnum = $('#aiCheckCardInput').val();
|
|
var res = verifyCheckCardTid($('#aiCheckCardInput'), cardnum);
|
|
if(!res) return;
|
|
if($('.checkCardTidErrrorflag').css('display') != 'none') return;
|
|
|
|
var payInfoTmp = new Object();
|
|
payInfoTmp.tid = $('#aiCheckCardInput').val().trim();
|
|
payInfoTmp.addedServicesStr = configData.addedServicesStr;
|
|
if(ppt_tpl != '') payInfoTmp.ppt_tpl = ppt_tpl
|
|
configData.paytype = getPayType();
|
|
aiSubmit(payInfoTmp, configData);
|
|
});
|
|
}
|
|
|
|
configData.addedServicesStr = addedServicesStr;
|
|
if(ppt_tpl != '') configData.ppt_tpl = ppt_tpl
|
|
if(isPayDialog) {
|
|
if((typeinputConfig.title && typeinputConfig.content) || (!typeinputConfig.title && typeinputConfig.content)){
|
|
var contentDesc = $('.textAreaForWordCount').val().trim();
|
|
configData.core_content = contentDesc;
|
|
}
|
|
}else{
|
|
if($('#payPaperCore').length > 0) configData.core_content = $('#payPaperCore').text().trim();
|
|
}
|
|
|
|
checkAiSubmit(configData);
|
|
}
|
|
|
|
function payAction(paytype) {
|
|
clearTimeout(payResultTimer);
|
|
clearTimeout(submitRepeatTimer);
|
|
$('.checkCardComRecharge').addClass('hide');
|
|
$('#checkCardComTbsubmit').removeClass('hide');
|
|
|
|
checktype = $('#payCheckType').text();
|
|
if(isPayDialog) {
|
|
if(typeinputConfig.title && !typeinputConfig.content){
|
|
paperTitle = $('#formTitle').val();
|
|
}
|
|
if((typeinputConfig.title && typeinputConfig.content) || (!typeinputConfig.title && typeinputConfig.content)){
|
|
paperTitle = $('#formTitle').val();
|
|
var contentDesc = $('.textAreaForWordCount').val().trim();
|
|
if((contentDesc == '' || !contentDesc) && typeinputConfig.content_min_limit>0){
|
|
alert(typeinputConfig.content+'不能为空');
|
|
errorJump();
|
|
return;
|
|
}
|
|
}
|
|
}else{
|
|
paperTitle = $('#payPaperTitle').text().trim();
|
|
}
|
|
|
|
if(paperTitle == ''){
|
|
if(isPayDialog){
|
|
if(typeinputConfig.title){
|
|
alert('提交'+typeinputConfig.title+'不能为空');
|
|
errorJump();
|
|
return;
|
|
}
|
|
}else{
|
|
alert('提交标题不能为空');
|
|
errorJump();
|
|
return;
|
|
}
|
|
}
|
|
|
|
if(checktype == '') {
|
|
alert('提交类型不合法');
|
|
errorJump();
|
|
return false;
|
|
}
|
|
|
|
if (checktype == '96') {
|
|
var pptid = $("#ppt_tpl").val();
|
|
var upload_file_md5 = $("#upload_file_md5").val();
|
|
var upload_file_name = $("#upload_file_name").val();
|
|
var upload_file_tmpname = $("#upload_file_tmpname").val();
|
|
|
|
if (!upload_file_md5 || !upload_file_name || !upload_file_tmpname) {
|
|
alert("请上传论文文件");
|
|
errorJump();
|
|
return;
|
|
}
|
|
if (!pptid) {
|
|
alert("请选择ppt模板");
|
|
errorJump();
|
|
return;
|
|
}
|
|
}
|
|
|
|
if (checktype == '97') {
|
|
var word_count = $("input[name=word_count]:checked").val();
|
|
if (!word_count) {
|
|
alert("请选择字数");
|
|
errorJump();
|
|
return;
|
|
}
|
|
}
|
|
|
|
payGetConfig(paytype);
|
|
}
|
|
|
|
if($('#userIsLogined').length > 0){
|
|
debugger
|
|
|
|
if($('#isPayDialog').length == 0){
|
|
payAction(-1);
|
|
}else{
|
|
$('#formInputSumbtn,#formSumbtn').click(function(){
|
|
var that = $(this);
|
|
$(this).addClass('hide');
|
|
var btnid = $(this).attr('id');
|
|
$('#'+btnid+'2').removeClass('hide');
|
|
setTimeout(function(){
|
|
that.removeClass('hide');
|
|
$('#'+btnid+'2').addClass('hide');
|
|
}, 4000);
|
|
payAction(-1);
|
|
});
|
|
}
|
|
}else{
|
|
if($('#isPayDialog').length > 0){
|
|
// loginComAction();
|
|
$('#formInputSumbtn,#formSumbtn').click(function(){
|
|
loginComAction();
|
|
});
|
|
}
|
|
}
|
|
|
|
if($('#isPayDialog').length > 0){
|
|
// loginComAction();
|
|
$('#formInputSumbtn,#formSumbtn').click(function(){
|
|
loginComAction();
|
|
});
|
|
}
|
|
|
|
function hidePayModel(){
|
|
$('.paycom-dialog').addClass('hide');
|
|
$('#isPayDialogMask').addClass('hide');
|
|
clearTimeout(payResultTimer);
|
|
}
|
|
|
|
function errorJump() {
|
|
if(isPayDialog) {
|
|
location.reload();
|
|
return;
|
|
}
|
|
location.href = '/';
|
|
}
|
|
|
|
function getOrderResult(paper_id, type, callbackres) {
|
|
clearTimeout(orderResultTimer);
|
|
//ai范文直接跳转报告列表页面
|
|
if(type == 61 || type == 81){
|
|
location.href = "/report";
|
|
return;
|
|
}
|
|
$('.paycom-dialog').addClass('hide');
|
|
$('.isPayDialogMask').addClass('hide');
|
|
orderResultTimer = setTimeout(function() {
|
|
if(orderResultTimerCount <= 0){
|
|
if(aiNoNeedLogin){
|
|
$('#isPayDialogMask').addClass('hide');
|
|
$('.modelDialog1').addClass('hide');
|
|
$('.pageMask').addClass('hide');
|
|
payresultAction(callbackres);
|
|
return;
|
|
}
|
|
alert('AI正在分析,请在“我的报告”等待出结果后下载结果!');
|
|
location.href = '/report';
|
|
return;
|
|
}
|
|
|
|
--orderResultTimerCount;
|
|
--orderResultTimerCount;
|
|
|
|
var postData = new Object();
|
|
postData.paper_id = paper_id;
|
|
if(aiNoNeedLogin) postData.tid = callbackres.data.tid;
|
|
$.ajax({
|
|
url:'/ajax_get_ai_result',
|
|
type:'post',
|
|
dataType:'json',
|
|
data:postData,
|
|
success:function(res){
|
|
if(!res.status){
|
|
getOrderResult(paper_id, type, callbackres); //
|
|
return;
|
|
}
|
|
if(res.data.timeuse) $("#timeuse").html(res.data.timeuse);
|
|
|
|
$('.modelDialog1').addClass('hide');
|
|
$('.modelDialog2').removeClass('hide');
|
|
$('#modelDialog2Con').html(res.data.res);
|
|
},
|
|
error:function(err){
|
|
clearTimeout(orderResultTimer);
|
|
alert('网络错误2');
|
|
location.reload();
|
|
}
|
|
});
|
|
}, 2000);
|
|
}
|
|
$('#comToTbShopBtn').click(function(){
|
|
var configData = $('#payCheckConfig').text();
|
|
if($('#payCheckConfig').length <= 0 || !configData || configData == ''){
|
|
alert('站点配置错误,请联系网站管理员');
|
|
errorJump();
|
|
return;
|
|
}
|
|
configData = JSON.parse(configData);
|
|
if(configData.guide_url && configData.guide_url != ''){
|
|
window.open(configData.guide_url);
|
|
}
|
|
});
|
|
|
|
function verifyTid(ele){
|
|
ele.unbind("textchange");
|
|
ele.bind("textchange",function(){
|
|
var tid = $.trim(ele.val());
|
|
var objData={};
|
|
var _that = ele;
|
|
showTaoBaoTidRemain(new Object(), ele);
|
|
doCheckQueryOrder(_that, tid);
|
|
});
|
|
}
|
|
|
|
function doCheckQueryOrder(ele, tid) {
|
|
var myPayType = getPayType();
|
|
if(((myPayType == 0 || myPayType == 4) && verifyTaobaoTid(ele, tid)) || (myPayType == 1 && verifyCheckCardTid(ele, tid))) {
|
|
var objData={"pay_type":myPayType, "tid":tid};
|
|
checkQueryOrder(ele, objData)
|
|
}
|
|
}
|
|
|
|
function taobaoTidVerifyAct(iserror, ele, msg) {
|
|
var eleid = ele.attr('id');
|
|
var isshowError = false;
|
|
if((eleid == 'aiTaobaoTidInput2' || eleid == 'aiTaobaoTidInput3') && !ele.val()){
|
|
ele.parent().find('.right').addClass('hide');
|
|
ele.parent().css('border', '1px solid #E1E2E2');
|
|
ele.parent().find('.error').addClass('hide');
|
|
|
|
if(!$('#aiTaobaoTidInput1').parent().find('.right').hasClass('hide') && !$('#aiTaobaoTidInput2').val() && !$('#aiTaobaoTidInput3').val()){
|
|
$('.comeleftError').addClass('hide');
|
|
}
|
|
return;
|
|
}
|
|
|
|
if(iserror){
|
|
if(!msg && msg != '') return;
|
|
$('.comeleftError').removeClass('hide');
|
|
ele.parent().css('border', '1px solid #FE5500');
|
|
$('.comeleftError').attr('title', msg);
|
|
ele.parent().find('.error').removeClass('hide');
|
|
ele.parent().find('.right').addClass('hide');
|
|
$('.comeleftError').find('p').html(msg);
|
|
}else{
|
|
$('.comeleftError').addClass('hide');
|
|
ele.parent().css('border', '1px solid #E1E2E2');
|
|
ele.parent().find('.error').addClass('hide');
|
|
ele.parent().find('.right').removeClass('hide');
|
|
$('.comeleftError').find('p').html("");
|
|
}
|
|
}
|
|
|
|
function verifyTaobaoTid(ele, tid){
|
|
tid = tid.trim();
|
|
var pageMyPayType = getPayType();
|
|
var tidmax = 19;
|
|
var tidmin = 13;
|
|
if(pageMyPayType == 4){
|
|
tidmax = 12;
|
|
tidmin = 11;
|
|
}
|
|
|
|
if(tid.length > tidmax || tid.length < tidmin){
|
|
taobaoTidVerifyAct(true, ele, "请输入"+tidmin+"-"+tidmax+"位订单编号");
|
|
return false;
|
|
}else{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
function checkCardNumVerifyAct(iserror, ele, msg) {
|
|
if(iserror){
|
|
if(!msg && msg != '') return;
|
|
$('.checkCardComeleftError').removeClass('hide');
|
|
ele.parent().css('border', '1px solid #FE5500');
|
|
$('.checkCardComeleftError').attr('title', msg);
|
|
$('.checkCardComleftInput').find('.error').removeClass('hide');
|
|
$('.checkCardComleftInput').find('.right').addClass('hide');
|
|
$('.checkCardComeleftError').find('p').html(msg);
|
|
}else{
|
|
$('.checkCardComeleftError').addClass('hide');
|
|
ele.parent().css('border', '1px solid #E1E2E2');
|
|
$('.checkCardComleftInput').find('.error').addClass('hide');
|
|
$('.checkCardComleftInput').find('.right').removeClass('hide');
|
|
$('.checkCardComeleftError').find('p').html("");
|
|
}
|
|
}
|
|
|
|
function verifyCheckCardTid(ele, cardnum){
|
|
ctid = cardnum.trim();
|
|
if (ctid.length != 17 && ctid.length != 12 && ctid.length != 16 && ctid.length != 23 && ctid.length != 24) {
|
|
checkCardNumVerifyAct(true, ele, "请输入12位/16位/17位账号");
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
function showTaoBaoTidRemain(data, ele) {
|
|
try{
|
|
var comTbTidRemain = ele.parent().next();
|
|
if(data.remains || data.totals || data.useds){
|
|
var totals = data.totals ? data.totals : 0;
|
|
var useds = data.useds ? data.useds : 0;
|
|
var remains = data.remains ? data.remains : 0;
|
|
comTbTidRemain.find('span').eq(0).text(totals);
|
|
comTbTidRemain.find('span').eq(1).text(useds);
|
|
comTbTidRemain.find('span').eq(2).text(remains);
|
|
comTbTidRemain.removeClass('hide');
|
|
}else{
|
|
comTbTidRemain.addClass('hide');
|
|
}
|
|
}catch(e){}
|
|
}
|
|
|
|
function checkQueryOrder(ele, objData){
|
|
clearTimeout(payResultTimer);
|
|
clearTimeout(submitRepeatTimer);
|
|
$('.checkCardComRecharge').addClass('hide');
|
|
$('#checkCardComTbsubmit').removeClass('hide');
|
|
$('.paycom-dialog').removeClass('paycom-checkcard');
|
|
|
|
$.ajax({type:"get", cache:false, url:$CONFIG.service_domain+"/ajax_check_order", data:objData,
|
|
success:function(jsondata){
|
|
var paytypes = $CONFIG.paytypes;
|
|
var myPayType = getPayType();
|
|
jsondata=JSON.parse(jsondata);
|
|
var mesg=jsondata.info;
|
|
alertMsg=mesg;
|
|
tid = objData.tid;
|
|
if(objData.pay_type == 0 || objData.pay_type == 4){
|
|
showTaoBaoTidRemain(jsondata.data, ele);
|
|
}
|
|
|
|
if(jsondata.status){
|
|
if(objData.pay_type == 0 || objData.pay_type == 4){
|
|
taobaoTidVerifyAct(false, ele, '');
|
|
}else if(objData.pay_type == 1){
|
|
checkCardNumVerifyAct(false, ele, '');
|
|
}
|
|
}else{
|
|
if(jsondata.info.indexOf("class='down_report_a'")>-1){
|
|
if(objData.pay_type == 0 || objData.pay_type == 4){
|
|
taobaoTidVerifyAct(true, ele, jsondata.info);
|
|
$('.comeleftError').find('.down_report_a').click(function(){
|
|
window.open("/report2?oid="+objData.tid);
|
|
});
|
|
}else if(objData.pay_type == 1){
|
|
checkCardNumVerifyAct(true, ele, jsondata.info);
|
|
$('.checkCardComeleftError').find('.down_report_a').click(function(){
|
|
window.open("/report2?oid="+objData.tid);
|
|
});
|
|
}
|
|
}else{
|
|
if(objData.pay_type == 0 || objData.pay_type == 4){
|
|
taobaoTidVerifyAct(true, ele, jsondata.info);
|
|
}else if(objData.pay_type == 1){
|
|
checkCardNumVerifyAct(true, ele, jsondata.info);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
}
|
|
|
|
$('.comFindTbOrder,.comFindTbOrderExample').hover(function(){
|
|
$('.comFindTbOrderExample').removeClass('hide');
|
|
},function(){
|
|
$('.comFindTbOrderExample').addClass('hide');
|
|
});
|
|
</script>
|
|
|
|
<script>var _hmt = _hmt || [];(function(){var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?16bab14dc4d4c59962e75db7d4649263";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm, s);})();</script>
|
|
</body>
|
|
</html>
|
|
<script src="//css.kuailelunwen.com/js/clipboard.min.js"></script>
|
|
|
|
<script>
|
|
$('.formLineOut').each(function(k, i){
|
|
var formLineOut = $('.formLineOut').eq(k);
|
|
var formLineOutWidth = formLineOut.width();
|
|
var formLineOutLeftWidth = formLineOut.find('.formLineOutLeft').width();
|
|
formLineOut.find('.formLineOutRight').width(formLineOutWidth-formLineOutLeftWidth-5);
|
|
formLineOut.css('opacity', '1');
|
|
});
|
|
|
|
var wordmax = parseInt($('.wordCountCont').attr('wordmax'));
|
|
function calcTextLen(txtLen, wordmax, index) {
|
|
if(txtLen > wordmax) txtLen = wordmax;
|
|
$('.wordCountCont').eq(index).find('span').eq(0).text(txtLen);
|
|
$('.wordCountCont').eq(index).find('span').eq(1).text(wordmax-txtLen);
|
|
}
|
|
//内容校验
|
|
$(".textAreaForWordCount").on('blur',function(){
|
|
var txtLen = $(this).val().length;
|
|
calcTextLen(txtLen, wordmax, 0);
|
|
calcTextLen(txtLen, wordmax, 1);
|
|
}).on('keyup blur mouseup paste', function(ev){
|
|
var txtLen = $(this).val().length;
|
|
var txtLen = $(this).val().length;
|
|
calcTextLen(txtLen, wordmax, 0);
|
|
calcTextLen(txtLen, wordmax, 1);
|
|
});
|
|
|
|
$(".textAreaForWordCount").keyup();
|
|
|
|
$(function() {
|
|
$("#modelDialog2Con").niceScroll({
|
|
cursorcolor:"#E2E2EB",
|
|
cursorwidth:"8px",
|
|
cursorborderradius:'6px',
|
|
cursorminheight:55,
|
|
railpadding: { top: 4, right: 4, left: 0, bottom: 4 }
|
|
});
|
|
});
|
|
function hidemodelDialog2() {
|
|
$('.modelDialog2').addClass('hide');
|
|
$('.pageMask').addClass('hide');
|
|
location.reload();
|
|
}
|
|
|
|
var clipboard2 = new Clipboard('#formCopyBtn', {
|
|
text: function () {
|
|
return $('#modelDialog2Con').text();
|
|
}
|
|
});
|
|
clipboard2.on('success', function(e) {
|
|
alert('复制成功')
|
|
})
|
|
</script>
|
|
|
|
|
|
<script src='//css.kuailelunwen.com/js/anime.min.js'></script>
|
|
|
|
<script>
|
|
var PATH = {
|
|
chickIcon: ".ani-chick-icon",
|
|
};
|
|
|
|
var chickJumpAnimation;
|
|
var chickIconAnimation = anime({
|
|
targets: PATH.chickIcon,
|
|
translateY: [25, 0],
|
|
opacity: [0, 1],
|
|
easing: "easeOutElastic",
|
|
delay: anime.stagger(100),
|
|
complete: function () {
|
|
var chick = document.querySelector(PATH.chickIcon);
|
|
chick.style.transformOrigin = "center bottom";
|
|
chickJumpAnimation = anime({
|
|
targets: PATH.chickIcon,
|
|
scaleY: [
|
|
{ value: 0.9, duration: 170 },
|
|
{ value: 1, duration: 170, delay: 120 }
|
|
],
|
|
translateY: [
|
|
{ value: -5, duration: 170, delay: 170 },
|
|
{ value: 0, duration: 170, delay: 220 }
|
|
],
|
|
loop: true,
|
|
easing: "linear"
|
|
});
|
|
}
|
|
});
|
|
$('.btlistypeRt').find('.item').click(function(){
|
|
$('.btlistypeRt').find('.item').attr('select', '0');
|
|
|
|
$('.btlistypeRt').find('.item').find('img[show=0]').removeClass('hide');
|
|
$('.btlistypeRt').find('.item').find('img[show=1]').addClass('hide');
|
|
var show = $(this).find('.hide').attr('show');
|
|
if(show == '1') {
|
|
$(this).find('img[show=1]').removeClass('hide');
|
|
$(this).find('img[show=0]').addClass('hide');
|
|
}else{
|
|
$(this).find('img[show=0]').removeClass('hide');
|
|
$(this).find('img[show=1]').addClass('hide');
|
|
}
|
|
$(this).attr('select', '1');
|
|
});
|
|
|
|
</script>
|
|
|