feiYiGaiLan.vue 8.5 KB

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