jianzhu.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view class="body2">
  3. <u-navbar :autoBack="true" title="建筑文化" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
  4. <view class="jz_swiper">
  5. <u-swiper
  6. :list="list1"
  7. height="335rpx"
  8. :indicator="true"
  9. :autoplay="true"
  10. indicatorMode="dot"
  11. indicatorActiveColor="#fff"
  12. indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
  13. :circular="true"
  14. indicatorStyle="bottom: 10px"
  15. ></u-swiper>
  16. </view>
  17. <view class="" style="margin: 30rpx 0 0 0">
  18. <u-tabs
  19. :duration="200"
  20. :list="listTab"
  21. :lineWidth="25"
  22. :lineHeight="12"
  23. lineColor="#4E7198"
  24. :lineColor="`url(${tabImg}) 100% 100%`"
  25. :activeStyle="{
  26. color: '#4E7198',
  27. fontSize: '34rpx'
  28. }"
  29. ></u-tabs>
  30. </view>
  31. <view class="banxin">
  32. <view style="margin-bottom: 30rpx" v-for="item in jianZhuList" :key="item">
  33. <view class="jz_item">
  34. <image style="width: 100%; height: 100%" :src="item.img"></image>
  35. </view>
  36. <view class="" style="display: flex; justify-content: space-between">
  37. <text>{{ item.title }}</text>
  38. <uni-icons style="margin-top: 5rpx" type="heart" size="20"></uni-icons>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. tabImg: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tab.png',
  49. list1: [
  50. 'https://img1.baidu.com/it/u=3551075903,1493549593&fm=253&fmt=auto&app=138&f=JPEG?w=667&h=500',
  51. 'https://img0.baidu.com/it/u=1667631211,245764236&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=357',
  52. 'https://img1.baidu.com/it/u=2554021422,1871009309&fm=253&fmt=auto&app=138&f=JPEG?w=700&h=500'
  53. ],
  54. listTab: [
  55. {
  56. name: '全部',
  57. tabid: 1
  58. },
  59. {
  60. name: '民居大厝',
  61. tabid: 2
  62. },
  63. {
  64. name: '宫殿建筑',
  65. tabid: 3
  66. },
  67. {
  68. name: '礼制性祭祀建筑',
  69. tabid: 4
  70. },
  71. {
  72. name: '百家争鸣',
  73. tabid: 5
  74. }
  75. ],
  76. jianZhuList: [
  77. {
  78. img: 'https://img2.baidu.com/it/u=1282947730,847518852&fm=253&fmt=auto&app=138&f=JPEG?w=600&h=390',
  79. title: '中国传统建筑文化——闽南地区的屋顶文化古建中国'
  80. },
  81. {
  82. img: 'https://img1.baidu.com/it/u=3045646735,3994404954&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=304',
  83. title: '雕梁画栋的闽南建筑,一砖一瓦都体现着古人对美的追求'
  84. }
  85. ]
  86. };
  87. },
  88. methods: {}
  89. };
  90. </script>
  91. <style>
  92. .body2 {
  93. background-size: 100% 100%;
  94. background-attachment: fixed;
  95. background-repeat: repeat-y;
  96. background-color: #efefef;
  97. padding-bottom: 50rpx;
  98. }
  99. /deep/.u-swiper-indicator__wrapper__dot--active {
  100. width: 5px !important;
  101. }
  102. /deep/.u-tabs__wrapper__nav__item.data-v-48634e29 {
  103. padding: 0 40rpx !important;
  104. }
  105. /deep/.u-tabs__wrapper__nav__line.data-v-48634e29 {
  106. bottom: 16rpx !important;
  107. }
  108. /deep/.u-tabs__wrapper__nav__item.data-v-48634e29 {
  109. align-items: end !important;
  110. }
  111. .banxin {
  112. margin: 0 32rpx 0 32rpx;
  113. }
  114. .jz_swiper {
  115. }
  116. .jz_item {
  117. width: 686rpx;
  118. height: 345rpx;
  119. border-radius: 26rpx 26rpx 0rpx 0rpx;
  120. }
  121. </style>