You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
2.4 KiB

2 months ago
  1. <template>
  2. <view>
  3. <view class="swiper1">
  4. <swiper circular autoplay interval="1000" indicator-dots indicator-color="#8f939c"
  5. indicator-active-color="#e43d33">
  6. <swiper-item>
  7. <img src="../../common/images/原始黄其振.jpg" class="swiperItem" />
  8. </swiper-item>
  9. <swiper-item>
  10. <img src="../../common/images/西装黄其振.jpg" class="swiperItem" />
  11. </swiper-item>
  12. <swiper-item>
  13. <img src="../../common/images/真我光锥.jpg" class="swiperItem" />
  14. </swiper-item>
  15. <swiper-item>
  16. <img src="../../common/images/无腿黄其振.jpg" class="swiperItem" />
  17. </swiper-item>
  18. <swiper-item>
  19. <img src="../../common/images/证件照黄其振.jpg" class="swiperItem" />
  20. </swiper-item>
  21. </swiper>
  22. </view>
  23. <view class="announcement">
  24. <view class="login">
  25. <button @click="handleLogin"></button>
  26. </view>
  27. <view class="icon1">
  28. <uni-icons type="chatboxes" size="20"></uni-icons>
  29. <text class="announcement-title" style="align-items: center;justify-content: center;">公告</text>
  30. </view>
  31. <view class="swiper2">
  32. <swiper vertical circular autoplay interval="1000">
  33. <swiper-item class="notice-item">这是一条公告</swiper-item>
  34. <swiper-item class="notice-item">大喊我是黄其振的狗自动登录</swiper-item>
  35. </swiper>
  36. </view>
  37. <view class="icon2">
  38. <uni-icons type="right" size="20"></uni-icons>
  39. </view>
  40. </view>
  41. <view>
  42. <button type="primary" plain="true" class="button1">
  43. <text>点击登录</text>
  44. </button>
  45. </view>
  46. </view>
  47. </template>
  48. <script setup name="homePage">
  49. </script>
  50. <style scoped>
  51. .button1 {
  52. width: 220rpx;
  53. height: 60rpx;
  54. display: flex;
  55. align-items: center;
  56. justify-content: center;
  57. margin-top: 10rpx;
  58. margin-bottom: 10rpx;
  59. }
  60. .swiper1 {
  61. margin: 20rpx 0;
  62. height: 300rpx;
  63. }
  64. .swiperItem {
  65. width: 90%;
  66. height: 300rpx;
  67. padding: 0 35rpx;
  68. align-items: center;
  69. object-fit: cover;
  70. border-radius: 16rpx;
  71. justify-content: center;
  72. }
  73. .announcement {
  74. display: flex;
  75. margin-top: 20rpx;
  76. width: 90%;
  77. margin:0 35rpx;
  78. min-height: 30rpx;
  79. background-color: rgb(203, 182, 207);
  80. }
  81. .swiper2 {
  82. flex: 1;
  83. height: 60rpx;
  84. overflow: hidden;
  85. padding: 10rpx;
  86. }
  87. .notice-item {
  88. flex: 1;
  89. width: 100%;
  90. }
  91. .icon1 {
  92. justify-content: center;
  93. align-items: center;
  94. width: 140rpx;
  95. padding: 10rpx;
  96. }
  97. .icon2 {
  98. justify-content: center;
  99. align-items: center;
  100. width: 80rpx;
  101. padding: 10rpx;
  102. }
  103. </style>