feiYiGaiLan.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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. <view style="position: relative">
  10. <view class="fybk_zc">
  11. <view class="fybk_tit">
  12. <image style="width: 120rpx; height: 860rpx" src="/static/img/img_gl.png"></image>
  13. </view>
  14. <view class="fy_xm">湖里·非遗项目</view>
  15. </view>
  16. </view>
  17. <view class="box">
  18. <scroll-view scroll-x="true" style="display: flex; white-space: nowrap">
  19. <view class="container" v-for="(item, index) in projectList" :key="item.index">
  20. <view class="mn_box" @click="projectBtn(index)">
  21. <image style="border-radius: 0px 0px 100px 100px; width: 90%; height: 98%" :src="item.img"></image>
  22. </view>
  23. <text class="title">{{ item.title }}</text>
  24. <view class="sanjiao"></view>
  25. <view class="sanjiao2"></view>
  26. <view class="banyuan"></view>
  27. </view>
  28. </scroll-view>
  29. </view>
  30. <!-- 详情 -->
  31. <view class="xq_box" v-if="detailsShow">
  32. <view class="xq_box2">
  33. <view class="back" @click="detailsShow = false">
  34. <image style="width: 100%; height: 100%" src="../../../static/img/icon_back@2x.png"></image>
  35. </view>
  36. </view>
  37. </view>
  38. <!-- 切换按钮 -->
  39. <view class="anNiu">
  40. <view class="anNiu_item">
  41. <image style="width: 120rpx; height: 120rpx" src="/static/img/Group 834@2x.png"></image>
  42. <view class="dd_1"></view>
  43. <view class="dd_2"></view>
  44. <view class="dd_3"></view>
  45. <view class="dd_4"></view>
  46. </view>
  47. <view class="anNiu_item">
  48. <view class="dd_2"></view>
  49. <view class="dd_3"></view>
  50. <view class="dd_4"></view>
  51. <view class="dd_1"></view>
  52. <image style="width: 120rpx; height: 120rpx" src="/static/img/Group 834@2x(1).png"></image>
  53. </view>
  54. </view>
  55. <!-- 菜单按钮 -->
  56. <view class="caidan" @click="navBtn">
  57. <image class="img" src="../../../static/img/icon_menu@2x.png"></image>
  58. <view class="dh">导航</view>
  59. </view>
  60. <!-- 菜单弹层 -->
  61. <u-popup :show="show" @close="close" mode="left" bgColor="#f8efe1" customStyle="width:500rpx">
  62. <LeftNav></LeftNav>
  63. </u-popup>
  64. </view>
  65. </template>
  66. <script>
  67. export default {
  68. data() {
  69. return {
  70. show: false,
  71. detailsShow: false,
  72. projectList: [
  73. {
  74. title: '沈氏漆线雕',
  75. img: 'https://www.xmqwzx.com.cn/xmfy/xmfy/xmml/201908/W020190828611283811392.jpg'
  76. },
  77. {
  78. title: '闽台送王船习俗',
  79. img: 'https://img1.baidu.com/it/u=4093092880,3787172119&fm=253&fmt=auto&app=138&f=JPEG?w=334&h=499'
  80. },
  81. {
  82. title: '剪瓷雕',
  83. img: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fss2.meipian.me%2Fusers%2F111326%2F3af384c937ce442cb3aae53bee45b095.jpg%3Fmeipian-watermark%2Fbucket%2Fivwen%2Fkey%2FdXNlcnMvMTExMzI2LzNhZjM4NGM5MzdjZTQ0MmNiM2FhZTUzYmVlNDViMDk1LmpwZw%3D%3D%2Fnickname%2FeWpy%2Fuserid%2FMTExMzI2%2Fsign%2Fe4034ce792c72b619dbb8a386637afd9.jpg&refer=http%3A%2F%2Fss2.meipian.me&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1701593316&t=6e9331d4d960501b3b6651cb05a85e4b'
  84. },
  85. {
  86. title: '漆宝斋漆艺',
  87. img: 'https://img1.baidu.com/it/u=2241138695,3173725763&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=764'
  88. },
  89. {
  90. title: '仙岳山福德信俗',
  91. img: 'https://img.pconline.com.cn/images/upload/upc/tx/photoblog/1301/20/c7/17566666_17566666_1358685409100_mthumb.jpg'
  92. },
  93. {
  94. title: '讲古',
  95. img: 'https://img1.baidu.com/it/u=505223839,1816123938&fm=253&fmt=auto&app=138&f=JPG?w=401&h=814'
  96. },
  97. {
  98. title: '沈氏漆线雕',
  99. img: 'https://hbimg.b0.upaiyun.com/fa7bf70c03c48e5faf55a0df22f32f31e15a7aed3b7a5-UwCBBR_fw658'
  100. },
  101. {
  102. title: '闽台送王船习俗',
  103. img: 'https://img1.baidu.com/it/u=4093092880,3787172119&fm=253&fmt=auto&app=138&f=JPEG?w=334&h=499'
  104. },
  105. {
  106. title: '剪瓷雕',
  107. img: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fss2.meipian.me%2Fusers%2F111326%2F3af384c937ce442cb3aae53bee45b095.jpg%3Fmeipian-watermark%2Fbucket%2Fivwen%2Fkey%2FdXNlcnMvMTExMzI2LzNhZjM4NGM5MzdjZTQ0MmNiM2FhZTUzYmVlNDViMDk1LmpwZw%3D%3D%2Fnickname%2FeWpy%2Fuserid%2FMTExMzI2%2Fsign%2Fe4034ce792c72b619dbb8a386637afd9.jpg&refer=http%3A%2F%2Fss2.meipian.me&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1701593316&t=6e9331d4d960501b3b6651cb05a85e4b'
  108. }
  109. ]
  110. };
  111. },
  112. methods: {
  113. navBtn() {
  114. this.show = true;
  115. },
  116. projectBtn(index) {
  117. console.log(index);
  118. this.detailsShow = true;
  119. },
  120. close() {
  121. this.show = false;
  122. }
  123. }
  124. };
  125. </script>
  126. <style>
  127. .body {
  128. width: 100%;
  129. height: 1925rpx;
  130. padding-top: 100rpx;
  131. box-sizing: border-box;
  132. }
  133. .header {
  134. margin-left: 10%;
  135. width: 960rpx;
  136. height: 96rpx;
  137. align-items: center;
  138. display: flex;
  139. }
  140. .box {
  141. display: flex;
  142. align-items: center;
  143. width: 65%;
  144. height: 1280rpx;
  145. margin-left: 20%;
  146. }
  147. .container {
  148. position: relative;
  149. display: inline-block;
  150. margin-right: 20rpx;
  151. text-align: center;
  152. }
  153. .xq_box {
  154. position: absolute;
  155. top: 15%;
  156. z-index: 2;
  157. width: 2200rpx;
  158. height: 1200rpx;
  159. margin-left: 25%;
  160. margin-top: 100rpx;
  161. border: 3px solid #563530;
  162. background-color: #eee6d9;
  163. }
  164. .xq_box2 {
  165. padding: 60rpx;
  166. overflow: scroll;
  167. width: 2180rpx;
  168. height: 1180rpx;
  169. margin: auto;
  170. margin-top: 10rpx;
  171. border: 1px solid #563530;
  172. box-sizing: border-box;
  173. }
  174. .back {
  175. width: 100rpx;
  176. height: 100rpx;
  177. }
  178. .mn_box {
  179. width: 350rpx;
  180. height: 740rpx;
  181. margin-left: 40rpx;
  182. padding-top: 20rpx;
  183. margin-bottom: 20rpx;
  184. box-sizing: border-box;
  185. background: url('/static/img/img_bk.png') no-repeat center;
  186. background-size: 100% 100%;
  187. border-radius: 10rpx 10rpx 10rpx 0rpx;
  188. }
  189. .title {
  190. color: #563530;
  191. margin-top: 20rpx;
  192. font-size: 36rpx;
  193. }
  194. .sanjiao {
  195. position: absolute;
  196. top: 28rpx;
  197. left: 68rpx;
  198. width: 0;
  199. height: 0;
  200. border-top: 40rpx solid #eee6d9;
  201. border-right: 40rpx solid transparent;
  202. }
  203. .sanjiao2 {
  204. width: 0;
  205. height: 0;
  206. top: 30rpx;
  207. left: 316rpx;
  208. position: absolute;
  209. border-top: 40rpx solid #eee6d9;
  210. border-left: 40rpx solid transparent;
  211. }
  212. .banyuan {
  213. width: 50rpx;
  214. height: 25rpx;
  215. position: absolute;
  216. top: 20rpx;
  217. left: 50%;
  218. border-radius: 0 0 50rpx 50rpx;
  219. background-color: #eee6d9;
  220. }
  221. .fybk_zc {
  222. left: 9%;
  223. top: 220rpx;
  224. display: flex;
  225. position: absolute;
  226. }
  227. .fybk_tit {
  228. width: 200rpx;
  229. height: 530rpx;
  230. text-align: center;
  231. }
  232. .fy_xm {
  233. width: 60rpx;
  234. height: 640rpx;
  235. letter-spacing: 0.5em;
  236. writing-mode: vertical-rl;
  237. color: #563530;
  238. padding-right: 20rpx;
  239. font-size: 40rpx;
  240. margin-top: 100rpx;
  241. border-right: 1px solid #563530;
  242. }
  243. .tit {
  244. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  245. /* width: 500rpx; */
  246. height: 96rpx;
  247. font-size: 48rpx;
  248. letter-spacing: 0.3em;
  249. font-weight: NaN;
  250. text-align: left;
  251. white-space: nowrap;
  252. line-height: 100rpx;
  253. -webkit-background-clip: text;
  254. -webkit-text-fill-color: transparent;
  255. }
  256. .thumbnail_1 {
  257. width: 16rpx;
  258. height: 60rpx;
  259. }
  260. .caidan {
  261. margin-left: 10%;
  262. display: flex;
  263. width: 180rpx;
  264. align-items: center;
  265. }
  266. .img {
  267. width: 80rpx;
  268. height: 80rpx;
  269. }
  270. .dh {
  271. margin-left: 10rpx;
  272. font-size: 36rpx;
  273. color: #563530;
  274. }
  275. .anNiu {
  276. display: flex;
  277. justify-content: space-between;
  278. width: 680rpx;
  279. margin-left: 41%;
  280. }
  281. .anNiu_item {
  282. display: flex;
  283. align-items: center;
  284. justify-content: space-between;
  285. width: 200rpx;
  286. }
  287. .dd_1 {
  288. width: 20rpx;
  289. height: 20rpx;
  290. background-color: #8a7d6d;
  291. border-radius: 50%;
  292. }
  293. .dd_2 {
  294. width: 10rpx;
  295. height: 10rpx;
  296. background-color: #8a7d6d;
  297. border-radius: 50%;
  298. }
  299. .dd_3 {
  300. width: 10rpx;
  301. height: 10rpx;
  302. background-color: #8a7d6d;
  303. border-radius: 50%;
  304. }
  305. .dd_4 {
  306. width: 10rpx;
  307. height: 10rpx;
  308. background-color: #8a7d6d;
  309. border-radius: 50%;
  310. }
  311. </style>