jump.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {extend name="public/base"/}
  2. {block name="css"}
  3. <style>
  4. .icon{
  5. text-align:center;
  6. margin-top:50px;
  7. }
  8. .msg{
  9. text-align:center;
  10. margin:0;
  11. padding:0;
  12. font-size:24px;
  13. }
  14. .tips{
  15. text-align:center;
  16. margin-top:50px;
  17. font-size:14px;
  18. color:#aaa;
  19. }
  20. .tips .num{
  21. color:#FF589B;
  22. }
  23. </style>
  24. {/block}
  25. {block name="body"}
  26. <van-nav-bar
  27. class="nav-theme"
  28. :fixed="true"
  29. :placeholder="true"
  30. >
  31. <template #title>
  32. <span class="text-white">提示</span>
  33. </template>
  34. </van-nav-bar>
  35. <div style="width:100%;height:46px;"></div>
  36. <div class="icon">
  37. <van-icon name="warning-o" size="160" color="#0081ff"></van-icon>
  38. </div>
  39. <h3 class="msg">{$msg}</h3>
  40. <p class="tips">还有<span class="num">{{wait}}</span>秒后自动跳转</p>
  41. {/block}
  42. {block name="script"}
  43. <script>
  44. function v_setup() {
  45. let base = {};
  46. base.wait = Vue.ref({$wait});
  47. const created = () => {
  48. setInterval(function () {
  49. base.wait.value--;
  50. if (base.wait.value === 0) {
  51. {$url}
  52. }
  53. }, 1000);
  54. }
  55. created();
  56. return base;
  57. }
  58. </script>
  59. {/block}