park_deatil.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <view class="content">
  3. <view class="page-section-spacing" style="width: 100%;">
  4. <swiper class="swiper"
  5. indicator-dots="true"
  6. autoplay="true"
  7. duration="500"
  8. style="height:400rpx">
  9. <swiper-item v-for="(item , index) in swiperList" :key="index">
  10. <image :src="item.img" mode="aspectFill" style="width: 100%;height: 100%;"></image>
  11. </swiper-item>
  12. </swiper>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. swiperList:[
  22. {
  23. img:'/static/swiper/swiper1.jpg'
  24. },
  25. {
  26. img:'/static/swiper/swiper2.jpg'
  27. },
  28. ],
  29. }
  30. },
  31. onLoad(option) {
  32. console.log(option)
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style>
  39. .content {
  40. display: flex;
  41. flex-direction: column;
  42. align-items: center;
  43. justify-content: center;
  44. }
  45. .logo {
  46. height: 200rpx;
  47. width: 200rpx;
  48. margin-top: 200rpx;
  49. margin-left: auto;
  50. margin-right: auto;
  51. margin-bottom: 50rpx;
  52. }
  53. .text-area {
  54. display: flex;
  55. justify-content: center;
  56. }
  57. .title {
  58. font-size: 36rpx;
  59. color: #8f8f94;
  60. }
  61. </style>