feiYiGaiLan.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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="zhantingDetails(index)">
  21. <image style="border-radius: 0px 0px 100px 100px; width: 90%; height: 98%" :src="item.thumbnail"></image>
  22. </view>
  23. <text class="title">{{ item.name }}</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 class="ccr">传承人</view>
  37. <view class="top_tit">
  38. <u-parse :tagStyle="style" :content="detailsList.inheritor ? detailsList.inheritor : '暂无传承人'"></u-parse>
  39. </view>
  40. <view class="">
  41. <view class="jieshao">
  42. <view class="ccr">介绍</view>
  43. <u-parse :tagStyle="style" :content="detailsList.introduce"></u-parse>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <!-- 切换按钮 -->
  49. <!-- <view class="anNiu">
  50. <view class="anNiu_item">
  51. <image style="width: 120rpx; height: 120rpx" src="/static/img/Group 834@2x.png"></image>
  52. <view class="dd_1"></view>
  53. <view class="dd_2"></view>
  54. <view class="dd_3"></view>
  55. <view class="dd_4"></view>
  56. </view>
  57. <view class="anNiu_item">
  58. <view class="dd_2"></view>
  59. <view class="dd_3"></view>
  60. <view class="dd_4"></view>
  61. <view class="dd_1"></view>
  62. <image style="width: 120rpx; height: 120rpx" src="/static/img/Group 834@2x(1).png"></image>
  63. </view>
  64. </view> -->
  65. <!-- 菜单按钮 -->
  66. <view class="caidan" @click="navBtn">
  67. <image class="img" src="../../../static/img/icon_menu@2x.png"></image>
  68. <view class="dh">导航</view>
  69. </view>
  70. <!-- 菜单弹层 -->
  71. <u-popup :show="show" @close="close" mode="left" bgColor="#f8efe1" customStyle="width:500rpx">
  72. <LeftNav></LeftNav>
  73. </u-popup>
  74. </view>
  75. </template>
  76. <script>
  77. let that;
  78. export default {
  79. data() {
  80. return {
  81. style: {
  82. // 字符串的形式
  83. span: 'font-weight: 700;color: #563530;font-size: 24px !important;font-family: nzgrRuyinZouZhangKai-Regular, nzgrRuyinZouZhangKai;'
  84. },
  85. id: '',
  86. show: false,
  87. detailsShow: false,
  88. projectList: [],
  89. detailsList: []
  90. };
  91. },
  92. onLoad() {
  93. that = this;
  94. this.zhantinglists();
  95. },
  96. methods: {
  97. navBtn() {
  98. this.show = true;
  99. },
  100. // 非遗概况项目
  101. zhantinglists() {
  102. this.$api.zhantinglists({}, function (res) {
  103. that.projectList = res.data;
  104. });
  105. },
  106. // 非遗概况项目详情
  107. zhantingDetails(index) {
  108. this.$api.zhantingDetails({ id: that.projectList[index].id }, function (res) {
  109. that.detailsList = res.data;
  110. console.log(that.detailsList, 1212);
  111. });
  112. this.detailsShow = true;
  113. },
  114. close() {
  115. this.show = false;
  116. }
  117. }
  118. };
  119. </script>
  120. <style>
  121. .body {
  122. width: 100%;
  123. height: 1925rpx;
  124. padding-top: 100rpx;
  125. box-sizing: border-box;
  126. }
  127. .header {
  128. margin-left: 10%;
  129. width: 960rpx;
  130. height: 96rpx;
  131. align-items: center;
  132. display: flex;
  133. }
  134. .box {
  135. display: flex;
  136. align-items: center;
  137. width: 65%;
  138. /* overflow-x: scroll; */
  139. height: 1280rpx;
  140. margin-left: 20%;
  141. }
  142. .ccr {
  143. width: 300rpx;
  144. height: 80rpx;
  145. font-size: 48rpx;
  146. text-align: center;
  147. line-height: 80rpx;
  148. margin: auto;
  149. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  150. -webkit-background-clip: text;
  151. -webkit-text-fill-color: transparent;
  152. }
  153. .top_tit {
  154. width: 80%;
  155. height: 200rpx;
  156. overflow: scroll;
  157. cursor: pointer;
  158. margin: auto;
  159. font-size: 46rpx !important;
  160. color: #563530 !important;
  161. border-bottom: 1px solid #f8efe1;
  162. }
  163. .jieshao {
  164. width: 80%;
  165. height: 500rpx;
  166. overflow: scroll;
  167. margin: auto;
  168. margin-top: 30rpx;
  169. font-size: 36rpx;
  170. color: #563530;
  171. }
  172. .container {
  173. position: relative;
  174. display: inline-block;
  175. margin-right: 20rpx;
  176. text-align: center;
  177. }
  178. .xq_box {
  179. position: absolute;
  180. top: 12%;
  181. z-index: 2;
  182. width: 2200rpx;
  183. height: 1200rpx;
  184. margin-left: 25%;
  185. margin-top: 100rpx;
  186. border: 3px solid #563530;
  187. background-color: #eee6d9;
  188. }
  189. .xq_box2 {
  190. padding: 60rpx;
  191. overflow: scroll;
  192. width: 2180rpx;
  193. height: 1180rpx;
  194. margin: auto;
  195. margin-top: 10rpx;
  196. border: 1px solid #563530;
  197. box-sizing: border-box;
  198. }
  199. .back {
  200. width: 100rpx;
  201. height: 100rpx;
  202. }
  203. .mn_box {
  204. width: 350rpx;
  205. height: 740rpx;
  206. margin-left: 40rpx;
  207. padding-top: 20rpx;
  208. margin-bottom: 20rpx;
  209. cursor: pointer;
  210. box-sizing: border-box;
  211. background: url('/static/img/img_bk.png') no-repeat center;
  212. background-size: 100% 100%;
  213. border-radius: 10rpx 10rpx 10rpx 0rpx;
  214. }
  215. .title {
  216. color: #563530;
  217. margin-top: 20rpx;
  218. font-size: 36rpx;
  219. }
  220. .sanjiao {
  221. position: absolute;
  222. top: 28rpx;
  223. left: 68rpx;
  224. width: 0;
  225. height: 0;
  226. border-top: 40rpx solid #eee6d9;
  227. border-right: 40rpx solid transparent;
  228. }
  229. .sanjiao2 {
  230. width: 0;
  231. height: 0;
  232. top: 30rpx;
  233. left: 316rpx;
  234. position: absolute;
  235. border-top: 40rpx solid #eee6d9;
  236. border-left: 40rpx solid transparent;
  237. }
  238. .banyuan {
  239. width: 50rpx;
  240. height: 25rpx;
  241. position: absolute;
  242. top: 20rpx;
  243. left: 50%;
  244. border-radius: 0 0 50rpx 50rpx;
  245. background-color: #eee6d9;
  246. }
  247. .fybk_zc {
  248. left: 9%;
  249. top: 220rpx;
  250. display: flex;
  251. position: absolute;
  252. }
  253. .fybk_tit {
  254. width: 200rpx;
  255. height: 530rpx;
  256. text-align: center;
  257. }
  258. .fy_xm {
  259. width: 60rpx;
  260. height: 640rpx;
  261. letter-spacing: 0.5em;
  262. writing-mode: vertical-rl;
  263. color: #563530;
  264. padding-right: 20rpx;
  265. font-size: 40rpx;
  266. margin-top: 100rpx;
  267. border-right: 1px solid #563530;
  268. }
  269. .tit {
  270. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  271. /* width: 500rpx; */
  272. height: 96rpx;
  273. font-size: 48rpx;
  274. letter-spacing: 0.3em;
  275. font-weight: NaN;
  276. text-align: left;
  277. white-space: nowrap;
  278. line-height: 100rpx;
  279. -webkit-background-clip: text;
  280. -webkit-text-fill-color: transparent;
  281. }
  282. .thumbnail_1 {
  283. width: 16rpx;
  284. height: 60rpx;
  285. }
  286. .caidan {
  287. margin-left: 10%;
  288. cursor: pointer;
  289. display: flex;
  290. width: 180rpx;
  291. align-items: center;
  292. }
  293. .img {
  294. width: 80rpx;
  295. height: 80rpx;
  296. }
  297. .dh {
  298. margin-left: 10rpx;
  299. font-size: 36rpx;
  300. color: #563530;
  301. }
  302. .anNiu {
  303. display: flex;
  304. justify-content: space-between;
  305. width: 680rpx;
  306. margin-left: 41%;
  307. }
  308. .anNiu_item {
  309. display: flex;
  310. align-items: center;
  311. justify-content: space-between;
  312. width: 200rpx;
  313. }
  314. .dd_1 {
  315. width: 20rpx;
  316. height: 20rpx;
  317. background-color: #8a7d6d;
  318. border-radius: 50%;
  319. }
  320. .dd_2 {
  321. width: 10rpx;
  322. height: 10rpx;
  323. background-color: #8a7d6d;
  324. border-radius: 50%;
  325. }
  326. .dd_3 {
  327. width: 10rpx;
  328. height: 10rpx;
  329. background-color: #8a7d6d;
  330. border-radius: 50%;
  331. }
  332. .dd_4 {
  333. width: 10rpx;
  334. height: 10rpx;
  335. background-color: #8a7d6d;
  336. border-radius: 50%;
  337. }
  338. </style>