feiYiGaiLan.vue 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  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" @click="show = true">
  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. <view style="width: 300px;">国家级 省级 市级 区县级</view>
  19. <scroll-view scroll-x="true" style="display: flex; white-space: nowrap">
  20. <view class="container" v-for="(item, index) in projectList" :key="item.index">
  21. <view class="mn_box" @click="zhantingDetails(index)">
  22. <image style="border-radius: 0px 0px 100px 100px; width: 90%; height: 98%" :src="item.thumbnail"></image>
  23. </view>
  24. <text class="title">{{ item.name }}</text>
  25. <view class="sanjiao"></view>
  26. <view class="sanjiao2"></view>
  27. <view class="banyuan"></view>
  28. </view>
  29. </scroll-view>
  30. </view>
  31. <!-- 详情 -->
  32. <view class="xq_box" v-if="detailsShow">
  33. <view class="xq_box2">
  34. <view class="back_box" @click="detailsShow = false">
  35. <view class="back">
  36. <image style="width: 100%; height: 100%" src="../../../static/img/icon_back@2x.png"></image>
  37. </view>
  38. </view>
  39. <view class="ccr">传承人</view>
  40. <view class="top_tit">
  41. <!-- #ifdef H5 -->
  42. <marquee width="100%" height="100px" direction="up" scrolldelay="130">
  43. <u-parse :tagStyle="style" :content="detailsList.inheritor ? detailsList.inheritor : '暂无传承人'"></u-parse>
  44. </marquee>
  45. <!-- #endif -->
  46. <!-- #ifndef H5 -->
  47. <u-parse :tagStyle="style" :content="detailsList.inheritor ? detailsList.inheritor : '暂无传承人'"></u-parse>
  48. <!-- #endif -->
  49. </view>
  50. <view class="">
  51. <view class="jieshao">
  52. <view class="ccr">介绍</view>
  53. <u-parse :tagStyle="style" :content="detailsList.introduce"></u-parse>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 切换按钮 -->
  59. <!-- <view class="anNiu">
  60. <view class="anNiu_item" @click="leftBtn">
  61. <image style="width: 120rpx; height: 120rpx" src="/static/img/Group 834@2x.png"></image>
  62. <view class="dd_1"></view>
  63. <view class="dd_2"></view>
  64. <view class="dd_3"></view>
  65. <view class="dd_4"></view>
  66. </view>
  67. <view class="anNiu_item" @click="righrBtn">
  68. <view class="dd_2"></view>
  69. <view class="dd_3"></view>
  70. <view class="dd_4"></view>
  71. <view class="dd_1"></view>
  72. <image style="width: 120rpx; height: 120rpx" src="/static/img/Group 834@2x(1).png"></image>
  73. </view>
  74. </view> -->
  75. <!-- 菜单按钮 -->
  76. <view class="caidan" @click="navBtn">
  77. <image class="img" src="../../../static/img/icon_menu@2x.png"></image>
  78. <view class="dh">导航</view>
  79. </view>
  80. <!-- 菜单弹层 -->
  81. <u-popup :show="show" @close="close" mode="left" bgColor="#f8efe1" customStyle="width:1000rpx">
  82. <view class="box_gb" @click="show = false">
  83. <view class="gb">X</view>
  84. </view>
  85. <LeftNav></LeftNav>
  86. </u-popup>
  87. </view>
  88. </template>
  89. <script>
  90. let that;
  91. export default {
  92. data() {
  93. return {
  94. style: {
  95. // 字符串的形式
  96. span: 'font-weight: 700;color: #563530;font-size: 24px !important;font-family: nzgrRuyinZouZhangKai-Regular, nzgrRuyinZouZhangKai;'
  97. },
  98. id: '',
  99. j: 0,
  100. show: false,
  101. detailsShow: false,
  102. projectList: [],
  103. list: [],
  104. detailsList: []
  105. };
  106. },
  107. onLoad() {
  108. that = this;
  109. this.zhantinglists();
  110. },
  111. methods: {
  112. navBtn() {
  113. this.show = true;
  114. },
  115. // 非遗概况项目
  116. zhantinglists() {
  117. this.$api.zhantinglists({}, function (res) {
  118. that.projectList = res.data;
  119. // that.list = res.data;
  120. // for (let i = 0; i < 6; i++) {
  121. // that.projectList.push(res.data[that.j]);
  122. // that.j++;
  123. // }
  124. });
  125. },
  126. // 非遗概况项目详情
  127. zhantingDetails(index) {
  128. this.$api.zhantingDetails({ id: that.projectList[index].id }, function (res) {
  129. that.detailsList = res.data;
  130. console.log(that.detailsList, 1212);
  131. });
  132. this.detailsShow = true;
  133. },
  134. // leftBtn() {
  135. // this.j = this.j - 7;
  136. // if (this.j < 0) {
  137. // uni.showToast({
  138. // title: '没有更多了',
  139. // icon: 'error'
  140. // });
  141. // this.j = this.j + 7;
  142. // return;
  143. // }
  144. // this.zhantinglists();
  145. // that.projectList = [];
  146. // },
  147. // righrBtn() {
  148. // this.j = this.j - 5;
  149. // if (this.j == that.list.length - 5) {
  150. // uni.showToast({
  151. // title: '没有更多了',
  152. // icon: 'error'
  153. // });
  154. // return;
  155. // }
  156. // this.zhantinglists();
  157. // that.projectList = [];
  158. // },
  159. close() {
  160. this.show = false;
  161. }
  162. }
  163. };
  164. </script>
  165. <style>
  166. .body {
  167. width: 100%;
  168. height: 1905rpx;
  169. padding-top: 100rpx;
  170. box-sizing: border-box;
  171. }
  172. .box_gb {
  173. position: absolute;
  174. cursor: pointer;
  175. width: 1000rpx;
  176. height: 160rpx;
  177. }
  178. .gb {
  179. width: 80rpx;
  180. height: 80rpx;
  181. line-height: 80rpx;
  182. position: absolute;
  183. right: 100rpx;
  184. top: 30rpx;
  185. text-align: center;
  186. font-size: 52rpx;
  187. color: #563530;
  188. margin-left: 300rpx;
  189. border: #563530 1px solid;
  190. }
  191. /deep/.u-icon__icon {
  192. font-size: 52rpx !important;
  193. color: #563530 !important ;
  194. }
  195. .header {
  196. margin-left: 10%;
  197. width: 960rpx;
  198. height: 96rpx;
  199. align-items: center;
  200. display: flex;
  201. }
  202. .box {
  203. display: flex;
  204. align-items: center;
  205. width: 65%;
  206. /* overflow-x: scroll; */
  207. height: 1280rpx;
  208. margin-left: 20%;
  209. }
  210. .ccr {
  211. width: 300rpx;
  212. height: 80rpx;
  213. font-size: 48rpx;
  214. text-align: center;
  215. line-height: 80rpx;
  216. margin: auto;
  217. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  218. -webkit-background-clip: text;
  219. -webkit-text-fill-color: transparent;
  220. }
  221. .top_tit {
  222. width: 80%;
  223. height: 200rpx;
  224. overflow: scroll;
  225. cursor: pointer;
  226. margin: auto;
  227. font-size: 46rpx !important;
  228. color: #563530 !important;
  229. border-bottom: 1px solid #f8efe1;
  230. }
  231. .jieshao {
  232. width: 80%;
  233. height: 500rpx;
  234. overflow: scroll;
  235. margin: auto;
  236. margin-top: 30rpx;
  237. font-size: 36rpx;
  238. color: #563530;
  239. }
  240. .container {
  241. position: relative;
  242. display: inline-block;
  243. margin-right: 20rpx;
  244. text-align: center;
  245. }
  246. .xq_box {
  247. position: absolute;
  248. top: 12%;
  249. z-index: 2;
  250. width: 2200rpx;
  251. height: 1200rpx;
  252. margin-left: 25%;
  253. margin-top: 100rpx;
  254. border: 3px solid #563530;
  255. background-color: #eee6d9;
  256. }
  257. .xq_box2 {
  258. padding: 60rpx;
  259. overflow: scroll;
  260. width: 2180rpx;
  261. height: 1180rpx;
  262. margin: auto;
  263. margin-top: 10rpx;
  264. border: 1px solid #563530;
  265. box-sizing: border-box;
  266. }
  267. .back_box {
  268. width: 1600rpx;
  269. height: 180rpx;
  270. cursor: pointer;
  271. }
  272. .back {
  273. width: 100rpx;
  274. height: 100rpx;
  275. }
  276. .mn_box {
  277. width: 350rpx;
  278. height: 740rpx;
  279. margin-left: 40rpx;
  280. padding-top: 20rpx;
  281. margin-bottom: 20rpx;
  282. cursor: pointer;
  283. box-sizing: border-box;
  284. background: url('/static/img/img_bk.png') no-repeat center;
  285. background-size: 100% 100%;
  286. border-radius: 10rpx 10rpx 10rpx 0rpx;
  287. }
  288. .title {
  289. color: #563530;
  290. margin-top: 20rpx;
  291. font-size: 36rpx;
  292. }
  293. .sanjiao {
  294. position: absolute;
  295. top: 28rpx;
  296. left: 68rpx;
  297. width: 0;
  298. height: 0;
  299. border-top: 40rpx solid #eee6d9;
  300. border-right: 40rpx solid transparent;
  301. }
  302. .sanjiao2 {
  303. width: 0;
  304. height: 0;
  305. top: 30rpx;
  306. left: 316rpx;
  307. position: absolute;
  308. border-top: 40rpx solid #eee6d9;
  309. border-left: 40rpx solid transparent;
  310. }
  311. .banyuan {
  312. width: 50rpx;
  313. height: 25rpx;
  314. position: absolute;
  315. top: 20rpx;
  316. left: 50%;
  317. border-radius: 0 0 50rpx 50rpx;
  318. background-color: #eee6d9;
  319. }
  320. .fybk_zc {
  321. left: 9%;
  322. top: 220rpx;
  323. display: flex;
  324. position: absolute;
  325. }
  326. .fybk_tit {
  327. cursor: pointer;
  328. width: 200rpx;
  329. height: 530rpx;
  330. text-align: center;
  331. }
  332. .fy_xm {
  333. width: 60rpx;
  334. height: 640rpx;
  335. letter-spacing: 0.5em;
  336. writing-mode: vertical-rl;
  337. color: #563530;
  338. padding-right: 20rpx;
  339. font-size: 40rpx;
  340. margin-top: 100rpx;
  341. border-right: 1px solid #563530;
  342. }
  343. .tit {
  344. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  345. /* width: 500rpx; */
  346. height: 96rpx;
  347. font-size: 48rpx;
  348. letter-spacing: 0.3em;
  349. font-weight: NaN;
  350. text-align: left;
  351. white-space: nowrap;
  352. line-height: 100rpx;
  353. -webkit-background-clip: text;
  354. -webkit-text-fill-color: transparent;
  355. }
  356. .thumbnail_1 {
  357. width: 16rpx;
  358. height: 60rpx;
  359. }
  360. .caidan {
  361. margin-left: 10%;
  362. margin-top: -260rpx;
  363. display: flex;
  364. width: 480rpx;
  365. height: 550rpx;
  366. cursor: pointer;
  367. align-items: center;
  368. }
  369. .img {
  370. width: 100rpx;
  371. height: 100rpx;
  372. }
  373. .dh {
  374. margin-left: 10rpx;
  375. font-size: 42rpx;
  376. color: #563530;
  377. }
  378. .anNiu {
  379. display: flex;
  380. justify-content: space-between;
  381. width: 680rpx;
  382. margin-left: 41%;
  383. }
  384. .anNiu_item {
  385. display: flex;
  386. align-items: center;
  387. justify-content: space-between;
  388. width: 200rpx;
  389. }
  390. .dd_1 {
  391. width: 20rpx;
  392. height: 20rpx;
  393. background-color: #8a7d6d;
  394. border-radius: 50%;
  395. }
  396. .dd_2 {
  397. width: 10rpx;
  398. height: 10rpx;
  399. background-color: #8a7d6d;
  400. border-radius: 50%;
  401. }
  402. .dd_3 {
  403. width: 10rpx;
  404. height: 10rpx;
  405. background-color: #8a7d6d;
  406. border-radius: 50%;
  407. }
  408. .dd_4 {
  409. width: 10rpx;
  410. height: 10rpx;
  411. background-color: #8a7d6d;
  412. border-radius: 50%;
  413. }
  414. </style>