| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- {extend name="public/base"/}
- {block name="css"}
- <style>
- .msg{
- text-align:center;
- margin:0;
- padding:0;
- font-size:24px;
- margin-top: 100px;
- }
- .tips{
- text-align:center;
- margin-top:50px;
- font-size:14px;
- color:#aaa;
- }
- .tips .num{
- color:#FF589B;
- }
- </style>
- {/block}
- {block name="body"}
- <h3 class="msg">{$msg}</h3>
- <p class="tips">还有<span class="num">{{wait}}</span>秒后自动跳转</p>
- {/block}
- {block name="script"}
- <script>
- function v_setup() {
- let base = {};
- base.wait = Vue.ref({$wait});
- const created = () => {
- setInterval(function () {
- base.wait.value--;
- if (base.wait.value === 0) {
- {$url}
- }
- }, 1000);
- }
- created();
- return base;
- }
- </script>
- {/block}
|