123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <template>
- <view class="box">
- <u-navbar :autoBack="true" title="文物故事" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
- <view style="width: 92%; margin: auto">
- <image mode="scaleToFill" style="width: 100%; border-radius: 10rpx" :src="list.image"></image>
- <view style="display: flex; justify-content: space-between; align-items: center; margin-top: 30rpx">
- <!-- <view lines="1" class="text_4">详情介绍</view> -->
- <view class="text_25">{{ list.publish_at }}</view>
- </view>
- <view v-if="list.content != null" class="text_5">
- <u-parse :content="list.content"></u-parse>
- </view>
- <view v-else class="">
- <u-empty text="暂无介绍" mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png"></u-empty>
- </view>
- <!-- <view class="text-img" v-if="item.association_me_list">
- <view style="color: #b37700; font-weight: 700; font-size: 18px">相关</view>
- <view class="text-img-img">
- <view v-for="(it, idx) in item.association_me_list" :key="idx">
- <view style="color: #b37700; font-size: 24rpx; margin-left: 10rpx; display: flex; align-items: center; margin-top: 40rpx"></view>
-
- <u--image width="360rpx" height="240rpx" :src="it.image" @click="$common.navigateTo('/index_fenbao/GuanLi/XiangQing?id=' + it.id)"></u--image>
- <view>{{ it.title }}</view>
- </view>
- </view>
- </view> -->
- <view class="text-img" style="margin-top: 30rpx" v-if="association_me_list.length > 0">
- <view style="color: #b37700; font-weight: 700; font-size: 18px">相关</view>
- <view style="position: relative">
- <view v-for="(it, idx) in association_me_list" :key="idx">
- <view style="color: #b37700; font-size: 24rpx; margin-left: 10rpx; display: flex; align-items: center; margin-top: 40rpx"></view>
- <u--image radius="5" width="360rpx" height="240rpx" :src="it.image" @click="$common.navigateTo('/index_fenbao/GuanLi/XiangQing?id=' + it.id)"></u--image>
- <view class="mn_text">{{ it.title }}</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- let that;
- export default {
- data() {
- return {
- list: {},
- association_me_list: []
- };
- },
- onLoad(o) {
- that = this;
- this.getContentDetail(o.id);
- },
- methods: {
- getContentDetail(id) {
- this.$api.getContentDetail({ main_body_id: 1, id: id }, function (res) {
- if (res.code == 1) {
- that.list = res.data;
- that.association_me_list = Object.values(res.data.association_me_list);
- // console.log(that.association_me_list, '故事详情');
- }
- });
- }
- }
- };
- </script>
- <style>
- .box {
- width: 100%;
- padding-bottom: 50rpx;
- background-image: url('https://huli-app.wenlvti.net/app_static/wuyuan/static/shouhu/wyj-feiyi3-001.png');
- background-repeat: repeat-y;
- background-attachment: fixed;
- background-size: 100% 100%;
- /* background-color: #fff9e9; */
- min-height: 100%;
- height: auto;
- }
- .text_4 {
- width: 112rpx;
- height: 28rpx;
- overflow-wrap: break-word;
- color: rgba(49, 37, 32, 1);
- font-size: 32rpx;
- font-family: SourceHanSansCN-Bold;
- font-weight: 700;
- text-align: left;
- white-space: nowrap;
- line-height: 28rpx;
- }
- .text_5 {
- font-size: 28rpx;
- font-family: SourceHanSansCN-Regular;
- font-weight: normal;
- text-align: justifyLeft;
- line-height: 48rpx;
- margin: 44rpx 0 0 16rpx;
- text-indent: 2rem;
- }
- /deep/.u-swiper-indicator__wrapper__dot--active {
- width: 5px !important;
- }
- .text_25 {
- font-size: 26rpx;
- color: #727070;
- margin-top: 10rpx;
- font-weight: 400;
- }
- .mn_text {
- width: 357rpx;
- font-size: 28rpx;
- text-align: center;
- color: #ffffff;
- position: absolute;
- top: 200rpx;
- left: 0;
- line-height: 40rpx;
- background: rgba(0, 0, 0, 0.3);
- border-radius: 0px 0rpx 10rpx 10rpx;
- }
- </style>
|