123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647 |
-
- <?php
-
- ?>
- <script src="https://oss.zc10000.com/static/botstrap-step/bootstrap.min.js"></script>
- <script src="https://oss.zc10000.com/static/botstrap-step/jquery.backstretch.min.js"></script>
- <script src="https://oss.zc10000.com/static/botstrap-step/retina-1.1.0.min.js"></script>
- <script src="https://oss.zc10000.com/static/botstrap-step/scripts.js"></script>
-
-
-
-
- <script type="text/javascript" src="https://oss.zc10000.com/static/botstrap-step/moment.min.js"></script>
- <script type="text/javascript" src="https://oss.zc10000.com/static/botstrap-step/daterangepicker.js"></script>
-
-
- <script src="https://oss.zc10000.com/static/botstrap-step/autoScroll.js"></script>
-
- <script>
- $(function() {
- $(".daterange input").each(function() {
- var $this = $(this);
-
- $this.daterangepicker({
- locale : {
-
- "separator" : " / ",
-
- "applyLabel" : "确定",
- "cancelLabel" : "取消",
- "fromLabel" : "开始",
- "toLabel" : "结束",
- "daysOfWeek" : [ "日", "一", "二", "三", "四", "五", "六" ],
- "monthNames" : [ "一月", "二月", "三月", "四月", "五月", "六", "七月", "八月", "九月", "十月", "十一月", "十二月" ],
- "firstDay" : 1,
- "defaultDate": new Date(),
- "format": 'YYYY',
- },
- startDate: moment(),
- endDate: moment(),
- minView: "years",
- maxView: "years",
- showDropdowns: true,
- singleDatePicker: true,
- opens: 'right',
- }, function(start, end, label) {
-
-
- if ($this.parents("form.required-validate").length > 0) {
- var $form = $this.parents("form.required-validate");
-
- var name = $this.attr("name");
- if ($form.length > 0) {
- var data = $form.data('bootstrapValidator');
- data.updateStatus(name, 'NOT_VALIDATED', null)
-
- .validateField(name);
- }
- }
-
- }).css("min-width", "210px").next("i").click(function() {
-
- $(this).parent().find('input').click();
- });
- });
- });
- </script>
-
- <script>
-
-
-
-
- $(function(){
-
-
- function setTime(obj, countdown) {
- if (countdown == 0) {
- obj.prop('disabled',false);
- obj.addClass('get-code-hover');
- obj.html("获取验证码");
- return;
- } else {
- obj.prop('disabled', 'disabled');
- obj.removeClass('get-code-hover');
- obj.html("重新发送(" + countdown + ")");
- countdown--;
- }
- setTimeout(function() {
- setTime(obj, countdown);
- }, 1000)
- };
-
-
- function isValidPhoneNumber(phoneNumber) {
- var regex = /^1[3-9]\d{9}$/;
- return regex.test(phoneNumber);
- }
-
-
- $(document).on('click','#retrieve-code',function (){
-
-
-
- var phoneNumber = $('#per-phone').val();
- if (isValidPhoneNumber(phoneNumber)) {
- console.log("手机号码有效");
- } else {
- console.log("手机号码无效");
- $('#myModal .modal-body p').html('手机号码无效');
- $('#myModal').modal('show');
- return false;
- }
-
-
- $('#loadingModal .visually-hidden').html('发送中...');
- $('#loadingModal').modal('show');
-
-
- setTime($('#retrieve-code'),120);
-
-
-
- $.ajax({
- url: '/api/Diyajax/getCode',
- data: {
- 'mobile' : phoneNumber,
- },
- method: 'GET',
- success: function(data) {
-
- $('#loadingModal').modal('hide');
-
- console.log('Ajax response:', data);
-
- $('#loadingModal .visually-hidden').html(data.msg);
- $('#loadingModal').modal('show');
- setTimeout(function() {
- $('#loadingModal').modal('hide');
- }, 3000);
-
- },
- error: function(xhr, status, error) {
-
- $('#loadingModal').modal('hide');
-
- console.error('Ajax error:', status, error);
- }
- });
- });
-
-
- $(document).on('click','#cx-rel-code',function (){
-
-
-
- var phoneNumber = $('#ffnp').val();
- if (isValidPhoneNumber(phoneNumber)) {
- console.log("手机号码有效");
- } else {
- console.log("手机号码无效");
- $('#myModal .modal-body p').html('手机号码无效');
- $('#myModal').modal('show');
- return false;
- }
-
-
- $('#loadingModal .visually-hidden').html('发送中...');
- $('#loadingModal').modal('show');
-
-
- setTime($('#cx-rel-code'),120);
-
-
-
- $.ajax({
- url: '/api/Diyajax/getCode',
- data: {
- 'mobile' : phoneNumber,
- },
- method: 'GET',
- success: function(data) {
-
- $('#loadingModal').modal('hide');
-
- console.log('Ajax response:', data);
-
- $('#loadingModal .visually-hidden').html(data.msg);
- $('#loadingModal').modal('show');
- setTimeout(function() {
- $('#loadingModal').modal('hide');
- }, 3000);
-
- },
- error: function(xhr, status, error) {
-
- $('#loadingModal').modal('hide');
-
- console.error('Ajax error:', status, error);
- }
- });
- });
-
-
- $("#choose1").change(function (){
-
- var id = $(this).val();
- if(id > 0) {
-
- $('#loadingModal').modal('show');
- $.ajax({
- url: '/api/Diyajax/getZcList',
- method: 'POST',
- dataType: 'json',
- data: {
- id : id
- },
- success: function(data) {
-
- $('#loadingModal').modal('hide');
-
- console.log('Ajax response:', data);
- console.log(data.data);
- var html = '<option value="0">选择申报专业</option>';
- $.each(data.data,function (i,e){
- console.log(e);
- html += '<option value="'+e.id+'">'+e.title+'</option>';
- });
- $('#choose2').empty();
- $('#choose2').append(html);
- },
- error: function(xhr, status, error) {
-
- $('#loadingModal').modal('hide');
-
- console.error('Ajax error:', status, error);
- }
- });
- }
-
- });
-
- $('.byzy-is').on('change',function(){
- console.log('444');
- if($(this).val() == 0){
- $("#byzy-name-p").show();
- }else{
- $("#byzy-name-p").hide();
- }
- });
-
-
-
- $("#choose2").change(function (){
-
- var id = $(this).val();
- if(id > 0) {
-
- $('#loadingModal').modal('show');
- $.ajax({
- url: '/api/Diyajax/getZcDjList',
- method: 'POST',
- dataType: 'json',
- data: {
- id : id
- },
- success: function(data) {
-
- $('#loadingModal').modal('hide');
-
- console.log('Ajax response:', data);
- console.log(data.data);
- var html = '<option value="0">选择申报等级</option>';
- $.each(data.data,function (i,e){
- console.log(e);
- html += '<option value="'+e.id+'">'+e.title+'</option>';
- });
- $('#choose3').empty();
- $('#choose3').append(html);
- },
- error: function(xhr, status, error) {
-
- $('#loadingModal').modal('hide');
-
- console.error('Ajax error:', status, error);
- }
- });
-
-
- $.ajax({
- url: '/api/Diyajax/getZcSonList',
- method: 'POST',
- dataType: 'json',
- data: {
- id : id
- },
- success: function(data) {
-
- $('#loadingModal').modal('hide');
-
- console.log('Ajax response:', data);
- console.log(data.data);
-
- if(data.data.length > 0) {
- var html = '<option value="-1">选择申报专业</option>';
- }else{
- var html = '<option value="0">默认</option>';
- }
-
- $.each(data.data,function (i,e){
- console.log(e);
- html += '<option value="'+e.id+'">'+e.title+'</option>';
- });
- $('#choose36').empty();
- $('#choose36').append(html);
- },
- error: function(xhr, status, error) {
-
- $('#loadingModal').modal('hide');
-
- console.error('Ajax error:', status, error);
- }
- });
-
- }
-
- });
-
-
-
-
- $("#choose11").change(function (){
-
- var id = $(this).val();
- if(id > 0) {
-
- $('#loadingModal').modal('show');
- $.ajax({
- url: '/api/Diyajax/getCsList',
- method: 'POST',
- dataType: 'json',
- data: {
- id : id
- },
- success: function(data) {
-
- $('#loadingModal').modal('hide');
-
- console.log('Ajax response:', data);
- console.log(data.data);
- var html = '<option value="0">选择城市</option>';
- $.each(data.data,function (i,e){
- console.log(e);
- html += '<option value="'+e.id+'">'+e.name+'</option>';
- });
- $('#choose12').empty();
- $('#choose12').append(html);
- },
- error: function(xhr, status, error) {
-
- $('#loadingModal').modal('hide');
-
- console.error('Ajax error:', status, error);
- }
- });
- }
-
- });
-
-
-
-
-
-
-
-
-
-
-
-
- $("#autoScroll01").autoScroll({
- direction: 'down',
- interval: 1000,
- speed: 500,
- distance: 35,
- liHeight: 35,
- showNum: 7
- });
-
-
- setInterval(function() {
- var html = $('#autoScroll01 ul li:last').prop('outerHTML');
- $('#autoScroll01 ul li:last').remove();
-
- $('#autoScroll01 ul').append(html);
- }, 1000);
-
-
- $(document).on('click','.hjk',function(){
- var index = $(this).index();
- if($(this).is('.hjk-check')){
- $(this).removeClass('hjk-check');
- $('#inlineCheckbox'+index).attr("checked",false);
- }else{
- $(this).addClass('hjk-check');
- $('#inlineCheckbox'+index).attr("checked",'checked');
- }
- });
-
-
- $('.zklp').click(function(){
- var index = $(this).attr('data');
- var t = $(this).text();
- if(t == '展开'){
- $('.zklp').text('展开');
- $(this).text('收起');
- $('.p-con68').hide();
- $('.klp'+index).show();
- $(this).removeClass('zklp-3');
- $(this).addClass('zklp-2');
- }else{
-
- $(this).text('展开');
- $('.p-con68').hide();
- $(this).removeClass('zklp-2');
- $(this).addClass('zklp-3');
- }
- });
-
-
- $('#zxfy').click(function(){
- var url = '{eyou:global name='web_attr_26' /}';
- var html = "<div style='width:100%;text-align: center;'>请使用微信扫一扫二维码<br/><img style='width: 200px;margin-top: 10px;' src='"+url+"'/></div>";
-
- $('#myModal .modal-body p').html(html);
- $('#myModal').modal('show');
- });
-
-
- $('#jjfa').click(function(){
- var url = '{eyou:global name='web_attr_26' /}';
- var html = "<div style='width:100%;text-align: left;'> 本站已收到您的求助,将于24小时内安排专业的建筑职称申报辅导老师与您联系,请保持电话畅通!并预祝您早日下证!</div>";
-
- $('#myModal .modal-body p').html(html);
- $('#myModal').modal('show');
- });
-
-
- $('#getCode').click(function(){
- var url = '{eyou:global name='web_attr_26' /}';
- var html = "<div style='width:100%;text-align: center;'>请使用微信扫一扫二维码<br/><img style='width: 200px;margin-top: 10px;' src='"+url+"'/></div>";
-
-
- $('#myModal .modal-body p').html(html);
- $('#myModal').modal('show');
- });
-
-
- $.ajax({
- url: '/api/Diyajax/kjForm',
- method: 'POST',
- dataType: 'json',
- data: {$param_k_json},
- success: function(data) {
-
- $('#loadingModal').modal('hide');
-
- console.log('Ajax response:', data);
-
-
-
-
- if(data.code == 0){
-
-
-
- }else{
-
- }
- },
- error: function(xhr, status, error) {
-
- $('#loadingModal').modal('hide');
-
- console.error('Ajax error:', status, error);
- }
- });
-
-
- $.ajax({
- url: '/api/Diyajax/getFormList',
- method: 'POST',
- dataType: 'json',
- data: {},
- success: function(data) {
-
- $('#loadingModal').modal('hide');
-
- console.log('Ajax response:', data);
-
-
-
-
- if(data.code == 1){
-
-
-
-
- var html = '';
- $.each(data.data,function (i,e){
- var cal = '';
- if(e.is_tg_n == 0){
- cal = 'tib-li-err';
- }
- html += '<li class="tib-li '+cal+'"><span class="sp1">'+e.ch+'</span><span class="sp2">'+e.sjhm+'</span><span class="sp3">'+e.sbxx+'</span><span class="sp4">'+e.is_tg+'</span></li>';
- });
-
- $('#autoScroll01 ul').empty();
- $('#autoScroll01 ul').append(html);
-
- $('#zrs').text(data.zrs);
- }else{
-
- }
- },
- error: function(xhr, status, error) {
-
- $('#loadingModal').modal('hide');
-
- console.error('Ajax error:', status, error);
- }
- });
- });
- </script>
-
-
-
- {eyou:if condition='(!empty($show_class))'}
- <script>
- $(function(){
-
- //document.querySelector('.{$field999}').style.display = 'block';
- //document.querySelector('.{$field999}').classList.remove("result-box");
- //$('.{$field999}').removeClass('result-box');
- //$('.{$field999}').show();
- //$('.{$field999}').css('opacity',1);
-
-
-
-
- {eyou:volist name='$show_class["c"]' id='field999'}
- $('.{$field999}').remove();
- {/eyou:volist}
- {eyou:volist name='$show_class["d"]' id='field999'}
- $('.{$field999}').remove();
- {/eyou:volist}
-
- $('.nav-tabs').find('li:first').addClass('active');
- $('.nav-tabs').find('li:first a').addClass('active');
- $('.tllb-b').find('.tab-content .tab-pane:first').addClass('active');
- $('.tllb-b').find('.tab-content .tab-pane:first').addClass('in');
-
- //展开收起功能
- var box = $('.ta-list-li-box:first').find('.tllb-t .zklp');
- var index = box.attr('data');
- var text = box.text();
- if(text == '展开'){
- $('.zklp').text('展开');
- box.text('收起');
- $('.p-con68').hide();
- $('.klp'+index).show();
- box.removeClass('zklp-3');
- box.addClass('zklp-2');
- }
-
-
- $('.sort-num').each(function(i,e) {
- $(this).text(i+1);
- });
- $('.nav-tabs').each(function(i,e) {
- $(this).find('.sort-num-i').each(function(i2,e2) {
- $(this).text(i2+1);
- });
- });
-
- });
- </script>
- {/eyou:if}
|