!doctype html>
html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
head>
meta charset="utf-8">
meta name="viewport" content="width=device-width, initial-scale=1">
script src="{{ asset('/citymedia/js/jquery-1.9.1.min.js') }}">/script>
/head>
body>
!-- 代碼 begin -->
div id="applyFor" style="text-align: center; width: 500px; margin: 100px auto;">
{{$message}},將在
span class="loginTime" style="color: red">{{$jumpTime}}/span>
秒后跳轉(zhuǎn)至
a href="{{$url}}" rel="external nofollow" style="color: red">{{$urlname}}/a>
頁(yè)面
/div>
/body>
/html>
script type="text/javascript">
$(function(){
var url = "{{$url}}"
var loginTime = parseInt($('.loginTime').text());
var time = setInterval(function(){
loginTime = loginTime-1;
$('.loginTime').text(loginTime);
if(loginTime==0){
clearInterval(time);
window.location.href=url;
}
},1000);
})
/script>
return view('citymedia.success')->with([
//跳轉(zhuǎn)信息
'message'=>'你已經(jīng)提交信息,請(qǐng)您耐心等待!',
//自己的跳轉(zhuǎn)路徑
'url' =>'/citymedia/interact',
//跳轉(zhuǎn)路徑名稱(chēng)
'urlname' =>'互動(dòng)專(zhuān)區(qū)',
//跳轉(zhuǎn)等待時(shí)間(s)
'jumpTime'=>2,
]);
以上這篇laravel添加前臺(tái)跳轉(zhuǎn)成功頁(yè)面示例就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。