index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="content">
  3. <view class="one">
  4. <image :src="logoUrl" mode="aspectFit"></image>
  5. </view>
  6. <view class="two">
  7. <view class="two_1">
  8. 抵制不良游戏,拒绝盗版游戏。
  9. </view>
  10. <view class="two_1">
  11. 注意自我保护,谨防受骗上当。
  12. </view>
  13. <view class="two_1">
  14. 适度游戏宜脑,沉迷游戏伤身体。
  15. </view>
  16. <view class="two_1">
  17. 合理安排时间,享受健康时间。
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. logoUrl: 'https://broadcast.waityou24.cn/files/test/20230116145912.jpg',
  27. timer: null
  28. }
  29. },
  30. onLoad() {
  31. const that = this;
  32. that.search('/pagesHome/home/index');
  33. },
  34. methods: {
  35. async search(e) {
  36. const that = this;
  37. uni.redirectTo({
  38. url: e
  39. })
  40. // that.timer = setTimeout(() => {
  41. // uni.redirectTo({
  42. // url: e
  43. // })
  44. // clearTimeout(that.timer);
  45. // that.timer = null;
  46. // }, 2000)
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss">
  52. .content {
  53. .one {
  54. flex-grow: 1;
  55. text-align: center;
  56. image {
  57. width: 50vw;
  58. height: 50vw;
  59. border-radius: 90px;
  60. box-shadow: 0 0 5px #f1f1f1;
  61. margin: 30vw 0 0 0;
  62. }
  63. }
  64. .two {
  65. text-align: center;
  66. padding: 10px 0;
  67. .two_1 {
  68. padding: 0 0 10px 0;
  69. font-size: 14px;
  70. }
  71. }
  72. }
  73. </style>