search.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <view class="container">
  3. <!-- 轮播图区域 -->
  4. <swiper class="banner" indicator-dots indicator-color="rgba(255, 255, 255, 0.5)" indicator-active-color="#1E7DFB" autoplay circular>
  5. <swiper-item>
  6. <img src="../../static/search/img.png" />
  7. </swiper-item>
  8. <swiper-item>
  9. <img src="../../static/search/img.png" />
  10. </swiper-item>
  11. <swiper-item>
  12. <img src="../../static/search/img.png" />
  13. </swiper-item>
  14. </swiper>
  15. <!-- 游客服务区域 -->
  16. <view class="search">
  17. <view class="search_title">游客服务</view>
  18. <view class="search_box">
  19. <!-- 每一个图标区域 -->
  20. <view class="box_item" v-for="item in iconsList" :key="item.id">
  21. <img :src="item.imgUrl"></img>
  22. <view class="item_text">
  23. {{item.text}}
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. // 图标数组
  35. iconsList:[
  36. {
  37. id:1,
  38. imgUrl:'../../static/search/icon.png',
  39. text:'投诉建议'
  40. },
  41. {
  42. id:2,
  43. imgUrl:'../../static/search/icon2.png',
  44. text:'租车服务'
  45. },{
  46. id:3,
  47. imgUrl:'../../static/search/icon3.png',
  48. text:'车位查询'
  49. },{
  50. id:4,
  51. imgUrl:'../../static/search/icon4.png',
  52. text:'厕所查询'
  53. },{
  54. id:5,
  55. imgUrl:'../../static/search/icon5.png',
  56. text:'寻找向导'
  57. },{
  58. id:6,
  59. imgUrl:'../../static/search/icon6.png',
  60. text:'服务热线'
  61. },{
  62. id:7,
  63. imgUrl:'../../static/search/icon7.png',
  64. text:'服务热线'
  65. },{
  66. id:8,
  67. imgUrl:'../../static/search/icon8.png',
  68. text:'招商平台'
  69. }
  70. ]
  71. }
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .container {
  77. display: flex;
  78. flex-direction: column;
  79. min-height: 100vh;
  80. background-color: #ebeced;
  81. .banner {
  82. margin-top: 20rpx;
  83. width: 750rpx;
  84. height: 326rpx;
  85. img {
  86. width: 100%;
  87. height: 100%;
  88. }
  89. }
  90. .search {
  91. margin: 20rpx 0;
  92. width: 750rpx;
  93. height: 475rpx;
  94. background-color: #fff;
  95. .search_title {
  96. padding: 0 30rpx;
  97. height: 93rpx;
  98. line-height: 93rpx;
  99. font-size: 32rpx;
  100. font-weight: bold;
  101. border-bottom: 1rpx solid #e6e6e6;
  102. }
  103. .search_box {
  104. display: flex;
  105. flex-wrap: wrap;
  106. padding: 0 30rpx;
  107. height: 382rpx;
  108. .box_item {
  109. display: flex;
  110. flex-direction: column;
  111. justify-content: center;
  112. align-items: center;
  113. width: 25%;
  114. height: 190rpx;
  115. image {
  116. width: 78rpx;
  117. height: 78rpx;
  118. }
  119. .item_text{
  120. margin-top: 13rpx;
  121. font-size: 28rpx;
  122. }
  123. }
  124. }
  125. }
  126. }
  127. </style>