index.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 class="page-nav-box">
  15. <navigator v-for="(item , index) in navList" :key="index" :url="item.path" open-type="navigate" class="nav-content">
  16. <image :src="item.url" mode="aspectFit" style="width: 38px;height: 38px;"></image>
  17. <view>{{item.content}}</view>
  18. </navigator>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. swiperList:[
  27. {
  28. img:'/static/swiper/swiper1.jpg'
  29. },
  30. {
  31. img:'/static/swiper/swiper2.jpg'
  32. },
  33. ],
  34. navList:[
  35. {
  36. url:'/static/navList/appeal.png',
  37. path:'/pages/appeal/index',
  38. content:'提诉求'
  39. },
  40. {
  41. url:'/static/navList/policy.png',
  42. path:'/pages/policy/index',
  43. content:'搜政策'
  44. },
  45. {
  46. url:'/static/navList/park.png',
  47. path:'/pages/park/index',
  48. content:'找园区'
  49. },
  50. {
  51. url:'/static/navList/activity.png',
  52. path:'/pages/activity/index',
  53. content:'找活动'
  54. },
  55. {
  56. url:'/static/navList/supply.png',
  57. path:'/pages/supply/index',
  58. content:'发供需'
  59. },
  60. {
  61. url:'/static/navList/enterprise.png',
  62. path:'/pages/enterprise/index',
  63. content:'查企业'
  64. },
  65. {
  66. url:'/static/navList/service.png',
  67. path:'/pages/service/index',
  68. content:'找服务'
  69. },
  70. ]
  71. }
  72. },
  73. onLoad() {
  74. },
  75. methods: {
  76. }
  77. }
  78. </script>
  79. <style>
  80. .content {
  81. display: flex;
  82. flex-direction: column;
  83. align-items: center;
  84. justify-content: center;
  85. }
  86. .logo {
  87. height: 200rpx;
  88. width: 200rpx;
  89. margin-top: 200rpx;
  90. margin-left: auto;
  91. margin-right: auto;
  92. margin-bottom: 50rpx;
  93. }
  94. .text-area {
  95. display: flex;
  96. justify-content: center;
  97. }
  98. .title {
  99. font-size: 36rpx;
  100. color: #8f8f94;
  101. }
  102. .page-nav-box {
  103. width: 80%;
  104. /* height: 320rpx; */
  105. display: flex;
  106. flex-wrap: wrap;
  107. padding: 20rpx 10rpx 30rpx 10rpx;
  108. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  109. border-radius: 32rpx;
  110. position: absolute;
  111. top: 300rpx;
  112. background-color: #fff;
  113. }
  114. .nav-content {
  115. width: 25%;
  116. height: 130rpx;
  117. display: flex;
  118. flex-direction: column;
  119. align-items: center;
  120. margin-top: 20rpx;
  121. font-size: 22rpx;
  122. justify-content: space-around;
  123. letter-spacing: 0.02em;
  124. color: #0D1937;
  125. font-family: PingFang SC;
  126. font-style: normal;
  127. font-weight: 600;
  128. }
  129. </style>