123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426 |
- <template>
- <view class="body">
- <view class="header">
- <view class="tit">湖里文化遗产保护中心</view>
- <view class="thumbnail_1">
- <image style="width: 100%; height: 100%" src="/static/img/img_seal@2x.png"></image>
- </view>
- </view>
- <view style="position: relative">
- <view class="fybk_zc">
- <view class="fybk_tit" @click="show = true">
- <image style="width: 120rpx; height: 860rpx" src="/static/img/img_gl.png"></image>
- </view>
- <view class="fy_xm">湖里·非遗项目</view>
- </view>
- </view>
- <view class="box">
- <view style="width: 300px;">国家级 省级 市级 区县级</view>
- <scroll-view scroll-x="true" style="display: flex; white-space: nowrap">
- <view class="container" v-for="(item, index) in projectList" :key="item.index">
- <view class="mn_box" @click="zhantingDetails(index)">
- <image style="border-radius: 0px 0px 100px 100px; width: 90%; height: 98%" :src="item.thumbnail"></image>
- </view>
- <text class="title">{{ item.name }}</text>
- <view class="sanjiao"></view>
- <view class="sanjiao2"></view>
- <view class="banyuan"></view>
- </view>
- </scroll-view>
- </view>
- <!-- 详情 -->
- <view class="xq_box" v-if="detailsShow">
- <view class="xq_box2">
- <view class="back_box" @click="detailsShow = false">
- <view class="back">
- <image style="width: 100%; height: 100%" src="../../../static/img/icon_back@2x.png"></image>
- </view>
- </view>
- <view class="ccr">传承人</view>
- <view class="top_tit">
- <!-- #ifdef H5 -->
- <marquee width="100%" height="100px" direction="up" scrolldelay="130">
- <u-parse :tagStyle="style" :content="detailsList.inheritor ? detailsList.inheritor : '暂无传承人'"></u-parse>
- </marquee>
- <!-- #endif -->
- <!-- #ifndef H5 -->
- <u-parse :tagStyle="style" :content="detailsList.inheritor ? detailsList.inheritor : '暂无传承人'"></u-parse>
- <!-- #endif -->
-
- </view>
- <view class="">
- <view class="jieshao">
- <view class="ccr">介绍</view>
- <u-parse :tagStyle="style" :content="detailsList.introduce"></u-parse>
- </view>
- </view>
- </view>
- </view>
- <!-- 切换按钮 -->
- <!-- <view class="anNiu">
- <view class="anNiu_item" @click="leftBtn">
- <image style="width: 120rpx; height: 120rpx" src="/static/img/Group 834@2x.png"></image>
- <view class="dd_1"></view>
- <view class="dd_2"></view>
- <view class="dd_3"></view>
- <view class="dd_4"></view>
- </view>
- <view class="anNiu_item" @click="righrBtn">
- <view class="dd_2"></view>
- <view class="dd_3"></view>
- <view class="dd_4"></view>
- <view class="dd_1"></view>
- <image style="width: 120rpx; height: 120rpx" src="/static/img/Group 834@2x(1).png"></image>
- </view>
- </view> -->
- <!-- 菜单按钮 -->
- <view class="caidan" @click="navBtn">
- <image class="img" src="../../../static/img/icon_menu@2x.png"></image>
- <view class="dh">导航</view>
- </view>
- <!-- 菜单弹层 -->
- <u-popup :show="show" @close="close" mode="left" bgColor="#f8efe1" customStyle="width:1000rpx">
- <view class="box_gb" @click="show = false">
- <view class="gb">X</view>
- </view>
- <LeftNav></LeftNav>
- </u-popup>
- </view>
- </template>
- <script>
- let that;
- export default {
- data() {
- return {
- style: {
- // 字符串的形式
- span: 'font-weight: 700;color: #563530;font-size: 24px !important;font-family: nzgrRuyinZouZhangKai-Regular, nzgrRuyinZouZhangKai;'
- },
- id: '',
- j: 0,
- show: false,
- detailsShow: false,
- projectList: [],
- list: [],
- detailsList: []
- };
- },
- onLoad() {
- that = this;
- this.zhantinglists();
- },
- methods: {
- navBtn() {
- this.show = true;
- },
- // 非遗概况项目
- zhantinglists() {
- this.$api.zhantinglists({}, function (res) {
- that.projectList = res.data;
- // that.list = res.data;
- // for (let i = 0; i < 6; i++) {
- // that.projectList.push(res.data[that.j]);
- // that.j++;
- // }
- });
- },
- // 非遗概况项目详情
- zhantingDetails(index) {
- this.$api.zhantingDetails({ id: that.projectList[index].id }, function (res) {
- that.detailsList = res.data;
- console.log(that.detailsList, 1212);
- });
- this.detailsShow = true;
- },
- // leftBtn() {
- // this.j = this.j - 7;
- // if (this.j < 0) {
- // uni.showToast({
- // title: '没有更多了',
- // icon: 'error'
- // });
- // this.j = this.j + 7;
- // return;
- // }
- // this.zhantinglists();
- // that.projectList = [];
- // },
- // righrBtn() {
- // this.j = this.j - 5;
- // if (this.j == that.list.length - 5) {
- // uni.showToast({
- // title: '没有更多了',
- // icon: 'error'
- // });
- // return;
- // }
- // this.zhantinglists();
- // that.projectList = [];
- // },
- close() {
- this.show = false;
- }
- }
- };
- </script>
- <style>
- .body {
- width: 100%;
- height: 1905rpx;
- padding-top: 100rpx;
- box-sizing: border-box;
- }
- .box_gb {
- position: absolute;
- cursor: pointer;
- width: 1000rpx;
- height: 160rpx;
- }
- .gb {
- width: 80rpx;
- height: 80rpx;
- line-height: 80rpx;
- position: absolute;
- right: 100rpx;
- top: 30rpx;
- text-align: center;
- font-size: 52rpx;
- color: #563530;
- margin-left: 300rpx;
- border: #563530 1px solid;
- }
- /deep/.u-icon__icon {
- font-size: 52rpx !important;
- color: #563530 !important ;
- }
- .header {
- margin-left: 10%;
- width: 960rpx;
- height: 96rpx;
- align-items: center;
- display: flex;
- }
- .box {
- display: flex;
- align-items: center;
- width: 65%;
- /* overflow-x: scroll; */
- height: 1280rpx;
- margin-left: 20%;
- }
- .ccr {
- width: 300rpx;
- height: 80rpx;
- font-size: 48rpx;
- text-align: center;
- line-height: 80rpx;
- margin: auto;
- background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- }
- .top_tit {
- width: 80%;
- height: 200rpx;
- overflow: scroll;
- cursor: pointer;
- margin: auto;
- font-size: 46rpx !important;
- color: #563530 !important;
- border-bottom: 1px solid #f8efe1;
- }
- .jieshao {
- width: 80%;
- height: 500rpx;
- overflow: scroll;
- margin: auto;
- margin-top: 30rpx;
- font-size: 36rpx;
- color: #563530;
- }
- .container {
- position: relative;
- display: inline-block;
- margin-right: 20rpx;
- text-align: center;
- }
- .xq_box {
- position: absolute;
- top: 12%;
- z-index: 2;
- width: 2200rpx;
- height: 1200rpx;
- margin-left: 25%;
- margin-top: 100rpx;
- border: 3px solid #563530;
- background-color: #eee6d9;
- }
- .xq_box2 {
- padding: 60rpx;
- overflow: scroll;
- width: 2180rpx;
- height: 1180rpx;
- margin: auto;
- margin-top: 10rpx;
- border: 1px solid #563530;
- box-sizing: border-box;
- }
- .back_box {
- width: 1600rpx;
- height: 180rpx;
- cursor: pointer;
- }
- .back {
- width: 100rpx;
- height: 100rpx;
- }
- .mn_box {
- width: 350rpx;
- height: 740rpx;
- margin-left: 40rpx;
- padding-top: 20rpx;
- margin-bottom: 20rpx;
- cursor: pointer;
- box-sizing: border-box;
- background: url('/static/img/img_bk.png') no-repeat center;
- background-size: 100% 100%;
- border-radius: 10rpx 10rpx 10rpx 0rpx;
- }
- .title {
- color: #563530;
- margin-top: 20rpx;
- font-size: 36rpx;
- }
- .sanjiao {
- position: absolute;
- top: 28rpx;
- left: 68rpx;
- width: 0;
- height: 0;
- border-top: 40rpx solid #eee6d9;
- border-right: 40rpx solid transparent;
- }
- .sanjiao2 {
- width: 0;
- height: 0;
- top: 30rpx;
- left: 316rpx;
- position: absolute;
- border-top: 40rpx solid #eee6d9;
- border-left: 40rpx solid transparent;
- }
- .banyuan {
- width: 50rpx;
- height: 25rpx;
- position: absolute;
- top: 20rpx;
- left: 50%;
- border-radius: 0 0 50rpx 50rpx;
- background-color: #eee6d9;
- }
- .fybk_zc {
- left: 9%;
- top: 220rpx;
- display: flex;
- position: absolute;
- }
- .fybk_tit {
- cursor: pointer;
- width: 200rpx;
- height: 530rpx;
- text-align: center;
- }
- .fy_xm {
- width: 60rpx;
- height: 640rpx;
- letter-spacing: 0.5em;
- writing-mode: vertical-rl;
- color: #563530;
- padding-right: 20rpx;
- font-size: 40rpx;
- margin-top: 100rpx;
- border-right: 1px solid #563530;
- }
- .tit {
- background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
- /* width: 500rpx; */
- height: 96rpx;
- font-size: 48rpx;
- letter-spacing: 0.3em;
- font-weight: NaN;
- text-align: left;
- white-space: nowrap;
- line-height: 100rpx;
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- }
- .thumbnail_1 {
- width: 16rpx;
- height: 60rpx;
- }
- .caidan {
- margin-left: 10%;
- margin-top: -260rpx;
- display: flex;
- width: 480rpx;
- height: 550rpx;
- cursor: pointer;
- align-items: center;
- }
- .img {
- width: 100rpx;
- height: 100rpx;
- }
- .dh {
- margin-left: 10rpx;
- font-size: 42rpx;
- color: #563530;
- }
- .anNiu {
- display: flex;
- justify-content: space-between;
- width: 680rpx;
- margin-left: 41%;
- }
- .anNiu_item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 200rpx;
- }
- .dd_1 {
- width: 20rpx;
- height: 20rpx;
- background-color: #8a7d6d;
- border-radius: 50%;
- }
- .dd_2 {
- width: 10rpx;
- height: 10rpx;
- background-color: #8a7d6d;
- border-radius: 50%;
- }
- .dd_3 {
- width: 10rpx;
- height: 10rpx;
- background-color: #8a7d6d;
- border-radius: 50%;
- }
- .dd_4 {
- width: 10rpx;
- height: 10rpx;
- background-color: #8a7d6d;
- border-radius: 50%;
- }
- </style>
|