index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <view class="body">
  3. <view class="header">
  4. <view class="tit">湖里文化遗产保护中心</view>
  5. <view class="thumbnail_1">
  6. <image style="width: 100%; height: 100%" src="/static/img/img_seal@2x.png"></image>
  7. </view>
  8. </view>
  9. <!-- 菜单 -->
  10. <view class="box">
  11. <view v-for="(item, index) in List" :key="item.name" class="box_item" @click="fybkBtn(index)">
  12. <view class="box_img">
  13. <image style="width: 100%; height: 100%" :src="item.img"></image>
  14. </view>
  15. <view class="box_tit">{{ item.name }}</view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. List: [
  25. {
  26. name: '湖里文化',
  27. img: '/static/img/img_湖里文化@2x.png',
  28. path: '/pages/index/huLiWenHua/huLiWenHua'
  29. },
  30. {
  31. name: '非遗百科',
  32. img: '/static/img/img_非遗百科@2x.png',
  33. path: '/pages/index/feiYiBaiKe/feiYiBaiKe'
  34. },
  35. {
  36. name: '非遗视频',
  37. img: '/static/img/img_非遗视频@2x.png',
  38. path: '/pages/index/feiYiShiPin/feiYiShiPin'
  39. },
  40. {
  41. name: '互动问答',
  42. img: '/static/img/img_互动问答@2x.png',
  43. path: '/pages/index/huDongWenDa/huDongWenDa'
  44. },
  45. {
  46. name: '非遗概览',
  47. img: '/static/img/img_非遗概览@2x.png',
  48. path: '/pages/index/feiYiGaiLan/feiYiGaiLan'
  49. },
  50. {
  51. name: '非遗政策',
  52. img: '/static/img/img_非遗政策@2x.png',
  53. path: '/pages/index/feiYiZhengCe/feiYiZhengCe'
  54. }
  55. ]
  56. };
  57. },
  58. methods: {
  59. fybkBtn(index) {
  60. uni.navigateTo({
  61. url: `${this.List[index].path}`
  62. });
  63. }
  64. }
  65. };
  66. </script>
  67. <style>
  68. .body {
  69. width: 100%;
  70. /* background: url('@/static/img/bg.png') no-repeat center;
  71. background-size: 100% 100%;
  72. background-attachment: fixed;
  73. background-repeat: repeat-y; */
  74. height: 1820rpx;
  75. padding-top: 100rpx;
  76. }
  77. .box {
  78. display: flex;
  79. flex-wrap: wrap;
  80. align-items: center;
  81. justify-content: space-between;
  82. width: 1600rpx;
  83. height: 1000rpx;
  84. margin: auto;
  85. margin-top: 100rpx;
  86. }
  87. .header {
  88. margin-left: 20%;
  89. width: 960rpx;
  90. height: 96rpx;
  91. /* margin-top: 60rpx; */
  92. align-items: center;
  93. display: flex;
  94. }
  95. .tit {
  96. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  97. /* width: 500rpx; */
  98. height: 96rpx;
  99. font-size: 48rpx;
  100. letter-spacing: 0.3em;
  101. font-weight: NaN;
  102. text-align: left;
  103. white-space: nowrap;
  104. line-height: 100rpx;
  105. -webkit-background-clip: text;
  106. -webkit-text-fill-color: transparent;
  107. }
  108. .thumbnail_1 {
  109. width: 14rpx;
  110. height: 45rpx;
  111. }
  112. .box_img {
  113. width: 160rpx;
  114. height: 160rpx;
  115. margin: auto;
  116. }
  117. .box_item {
  118. width: 420rpx;
  119. height: 280rpx;
  120. cursor: pointer;
  121. }
  122. .box_tit {
  123. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(188, 95, 41, 1), rgba(91, 60, 41, 1) 100%);
  124. width: 420rpx;
  125. height: 96rpx;
  126. text-align: center;
  127. font-size: 56rpx;
  128. letter-spacing: 0.2em;
  129. font-family: nzgrRuyinZouZhangKai-Regular, nzgrRuyinZouZhangKai;
  130. white-space: nowrap;
  131. line-height: 100rpx;
  132. -webkit-background-clip: text;
  133. -webkit-text-fill-color: transparent;
  134. }
  135. </style>