index.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. <swiper-item v-for="(item , index) in swiperList" :key="index">
  9. <image :src="item.img" mode="aspectFill" style="width: 100%;height: 100%;"></image>
  10. </swiper-item>
  11. </swiper>
  12. </view>
  13. <view class="page-nav-box">
  14. <navigator v-for="(item , index) in navList" :key="index" :url="item.path" open-type="navigate" class="nav-content">
  15. <image :src="item.url" mode="aspectFit" style="width: 38px;height: 38px;"></image>
  16. <view>{{item.content}}</view>
  17. </navigator>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. swiperList:[
  26. {
  27. img:'https://f.xazhima.com/userfiles/upload/indexpic/202005251007104506.jpg'
  28. },
  29. {
  30. img:'https://f.xazhima.com/userfiles/upload/indexpic/202005251007104506.jpg'
  31. },
  32. ],
  33. navList:[
  34. {
  35. url:'/static/navList/7.png',
  36. path:'/pages/appeal/index',
  37. content:'提诉求'
  38. },
  39. {
  40. url:'/static/navList/7.png',
  41. path:'/pages/policy/index',
  42. content:'搜政策'
  43. },
  44. {
  45. url:'/static/navList/7.png',
  46. path:'/pages/park/index',
  47. content:'找园区'
  48. },
  49. {
  50. url:'/static/navList/7.png',
  51. path:'/pages/activity/index',
  52. content:'找活动'
  53. },
  54. {
  55. url:'/static/navList/7.png',
  56. path:'/pages/supply/index',
  57. content:'发供需'
  58. },
  59. {
  60. url:'/static/navList/7.png',
  61. path:'/pages/enterprise/index',
  62. content:'查企业'
  63. },
  64. {
  65. url:'/static/navList/7.png',
  66. path:'/pages/service/index',
  67. content:'找服务'
  68. },
  69. ]
  70. }
  71. },
  72. onLoad() {
  73. },
  74. methods: {
  75. }
  76. }
  77. </script>
  78. <style>
  79. .content {
  80. display: flex;
  81. flex-direction: column;
  82. align-items: center;
  83. justify-content: center;
  84. }
  85. .logo {
  86. height: 200rpx;
  87. width: 200rpx;
  88. margin-top: 200rpx;
  89. margin-left: auto;
  90. margin-right: auto;
  91. margin-bottom: 50rpx;
  92. }
  93. .text-area {
  94. display: flex;
  95. justify-content: center;
  96. }
  97. .title {
  98. font-size: 36rpx;
  99. color: #8f8f94;
  100. }
  101. .page-nav-box {
  102. width: 100%;
  103. display: flex;
  104. flex-wrap: wrap;
  105. padding: 10rpx 10rpx 30rpx 10rpx;
  106. border-bottom: 10rpx solid #e9e9e9;
  107. }
  108. .nav-content {
  109. width: 25%;
  110. height: 150rpx;
  111. display: flex;
  112. flex-direction: column;
  113. align-items: center;
  114. margin-top: 20rpx;
  115. font-size: 26rpx;
  116. justify-content: space-around;
  117. }
  118. </style>