fixed url jump bug
This commit is contained in:
parent
491fb84d86
commit
9186cbec42
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
?>
|
||||
<?php if(!empty($this->login)) { ?>
|
||||
<script type="text/javascript">
|
||||
$.ajax({
|
||||
'type': "POST",
|
||||
'url': "<?= $this->login?>",
|
||||
'data': $("#newsadd").serialize(),
|
||||
'success': function(data){
|
||||
window.location.href="<?= $this->url ?>";
|
||||
},
|
||||
'beforeSend':function(){
|
||||
|
||||
},
|
||||
'complete':function(){
|
||||
window.location.href="<?= $this->url ?>";
|
||||
},
|
||||
'timeout': 20000,
|
||||
'error': function(){
|
||||
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<?php }else {?>
|
||||
<script>
|
||||
var url = "<?= $this->url ?>";
|
||||
$(location).attr("href",url);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div class="row-fluit">
|
||||
<div class="hero">
|
||||
系统正在为您跳转
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue