123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <template>
- <view class="body">
- <u-navbar :autoBack="true" :title="list.title" bgColor="rgba(255,255,255,0.3)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
- <view>
- <u-swiper
- :list="imageList"
- imgMode="aspectFill"
- :height="240"
- :indicator="true"
- :autoplay="true"
- :circular="true"
- indicatorStyle="bottom: 25px"
- @click="bannerClick"
- indicatorMode="dot"
- indicatorActiveColor="#fff"
- indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
- ></u-swiper>
- </view>
- <view class="box">
- <view class="" style="display: flex; align-items: center; color: #640000; font-size: 24rpx; margin-left: 28rpx; margin-top: 30rpx">
- <view style="margin-right: 20rpx; font-weight: 700; font-size: 36rpx">
- {{ list.title }}
- </view>
- <likeComponent @price="doChange" :list="list"></likeComponent>
- </view>
- <view class="info">
- <view>项目类型:{{ list.ich_type }}</view>
- <view style="width: 40%">项目等级:{{ list.level }}</view>
- </view>
- <view style="color: #940000; font-size: 24rpx; margin-left: 24rpx; display: flex; align-items: center; margin-top: 40rpx">
- <view style="font-weight: 700; font-size: 18px">详细介绍</view>
- </view>
- <view class="text">
- <u-parse :content="list.intro"></u-parse>
- </view>
- <view style="color: #940000; font-size: 24rpx; margin-left: 24rpx; display: flex; align-items: center; margin-top: 40rpx">
- <view style="font-weight: 700; font-size: 18px">传承人介绍</view>
- </view>
- <view class="text" style="letter-spacing: 0.2em">
- <u-parse :content="list.inheritor"></u-parse>
- </view>
- </view>
- </view>
- </template>
- <script>
- let that = this;
- export default {
- data() {
- return {
- main_body_id: '',
- time: null,
- timestamp: '1581170184',
- list: [],
- imageList: [
- 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt2.png',
- 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt1.png',
- 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt3.jpg',
- 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt4.jpg',
- 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt5.png'
- ]
- };
- },
- onLoad(e) {
- that = this;
- this.main_body_id = this.$db.get('main_body_id');
- this.getContentDetails(e.id);
- },
- methods: {
- // 详情
- getContentDetails(id) {
- this.$api.getContentDetails(
- {
- main_body_id: this.main_body_id,
- id: id
- },
- function (res) {
- that.list = res.data;
- console.log(that.list, 'list');
- }
- );
- },
- doChange(list) {
- this.list = list;
- }
- }
- };
- </script>
- <style>
- /deep/.u-swiper-indicator__wrapper__dot--active {
- width: 5px !important;
- }
- .box {
- height: auto;
- width: 100%;
- background-image: url('https://huli-app.wenlvti.net/app_static/wuyuan/static/shouhu/wyj-feiyi3-001.png');
- background-size: 100% 100%;
- background-attachment: fixed;
- border-radius: 32rpx 32rpx 0 0;
- position: relative;
- top: -40rpx;
- padding-top: 10rpx;
- }
- .u-info {
- margin: 20rpx;
- }
- .text {
- margin: 20rpx;
- }
- .info {
- /* display: flex;
- justify-content: space-between;
- flex-wrap: wrap; */
- margin: 20rpx;
- margin-top: 16rpx;
- }
- .info > view {
- margin-top: 20rpx;
- font-size: 28rpx;
- margin-left: 8rpx;
- color: #940000;
- }
- </style>
|