index.vue 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="content">
  3. <view class="home-top">
  4. <image src="../../static/img/home-top-bg.png" class="home-top-bg" mode="widthFix"></image>
  5. <view class="home-top-til">“碳汇+”生态产品价值实现</view>
  6. <view class="home-top-subtil">The value of ecological environment is realized</view>
  7. </view>
  8. <view class="swiper-wrap">
  9. <swiper class="swiper"
  10. :indicator-dots="swiper.indicatorDots"
  11. :indicator-color="swiper.indicatorColor"
  12. :indicator-active-color="swiper.indicatorActiveColor"
  13. :autoplay="swiper.autoplay"
  14. :interval="swiper.interval" :duration="swiper.duration">
  15. <swiper-item>
  16. <view class="adv-item"><image :src="$getimg +'guide01.png'" class="pic" mode="scaleToFill"></image></view>
  17. </swiper-item>
  18. <swiper-item>
  19. <view class="adv-item" @click="goIndex"><image :src="$getimg +'guide02.png'" class="pic" mode="widthFix"></image></view>
  20. </swiper-item>
  21. </swiper>
  22. </view>
  23. <view class="wrap40">
  24. <view class="title">推荐生态产品</view>
  25. <view class="buy-now">
  26. <view class="buy-now-imgwrap">
  27. <image src="../../static/img/home-buy-now-img.png" class="buy-now-img" mode="aspectFit"></image>
  28. </view>
  29. <view class="buy-now-text">
  30. <view class="buy-now-text-big">立即购碳</view>
  31. <view class="buy-now-text-small">点击去购碳哟</view>
  32. </view>
  33. <view class="buy-now-icon">
  34. <text class="iconfont icon-down-s"></text>
  35. </view>
  36. </view>
  37. <!-- buy-now end -->
  38. <view class="type-nav">
  39. <view class="type-nav-item">
  40. <view class="type-nav-item-til">林业碳汇</view>
  41. <view class="type-nav-item-subtil">为您推荐</view>
  42. </view>
  43. <view class="type-nav-item">
  44. <view class="type-nav-item-til">新能源汽车</view>
  45. <view class="type-nav-item-subtil">绿色出行</view>
  46. </view>
  47. <view class="type-nav-item">
  48. <view class="type-nav-item-til">分布式光伏</view>
  49. <view class="type-nav-item-subtil">新能源</view>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. export default {
  57. data() {
  58. return {
  59. $getimg:this.$getimg,
  60. swiper: {
  61. indicatorDots: true,
  62. autoplay: true,
  63. interval: 9000,
  64. duration: 500,
  65. indicatorColor:"rgba(255, 255, 255, 0.7)",
  66. indicatorActiveColor:"rgba(255, 255, 255, 1)",
  67. },
  68. }
  69. },
  70. onLoad() {
  71. },
  72. methods: {
  73. }
  74. }
  75. </script>
  76. <style>
  77. @import url("./index.css");
  78. </style>