<template>
	<view class="body" style="background-color: #efefef">
		<u-navbar :autoBack="true" :title="list.title" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
		<view class="box_1">
			<!-- 视频 -->
			<view class="box_17">
				<view class="group_13">
					<video class="myVideo" enable-play-gesture="true" id="myVideo" :src="list.video" controls></video>
				</view>
			</view>
			<view class="box_16">
				<text lines="1" class="text_2">闽南戏曲艺术中心首演季·青年剧展：《倪氏教子》，梨园戏！</text>
				<view class="block_6">
					<view class="image-text_36">
						<uni-icons type="star-filled" color="#4e7198" size="20"></uni-icons>
						<text lines="1" class="text-group_1">1.5w</text>
					</view>

					<view class="image-text_37">
						<uni-icons type="heart-filled" color="#ca5642" size="20"></uni-icons>
						<text lines="1" class="text-group_2">1.5w</text>
					</view>
					<view class="image-text_38">
						<uni-icons type="redo" color="#312520" size="20"></uni-icons>
						<text lines="1" class="text-group_3">分享</text>
					</view>
				</view>
				<view class="text-wrapper_1">
					<u-read-more showHeight="200rpx" toggle closeText="展开" color="#312520" :shadowStyle="{ backgroundImage: 'none' }">
						<rich-text :nodes="content"></rich-text>
					</u-read-more>
				</view>
				<view class="box_11">
					<view class="group_11">
						<view class="text-wrapper_2">
							<text lines="1" class="text_4">选集</text>
							<text lines="1" class="text_5">（全6集）</text>
						</view>
					</view>
					<view class="banxin">
						<view class="content">
							<!-- 下列代码未加规范，仅供参考，请勿模仿 -->
							<scroll-view scroll-x style="display: flex; white-space: nowrap">
								<view class="xj_container" v-for="item in 6" :key="item">
									<view class="xj_box">
										<text>第{{ item }}集</text>
									</view>
								</view>
							</scroll-view>
						</view>
					</view>
				</view>
				<text lines="1" class="text_9">相关推荐</text>
				<view class="banxin">
					<view class="content">
						<!-- 下列代码未加规范，仅供参考，请勿模仿 -->
						<scroll-view scroll-x style="display: flex; white-space: nowrap">
							<view class="mn_container" v-for="item in 6" :key="item">
								<view class="mn_box">
									<image src="/static/image/fx.png" style="border-radius: 10rpx 10rpx 10rpx 0rpx; width: 100%; height: 100%"></image>
								</view>
								<view class="item_js">全{{ item }}集</view>
								<text class="mn_text">浪子回头金不换</text>
							</view>
						</scroll-view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
let that;
export default {
	data() {
		return {
			main_body_id: '',
			content:
				' 演绎明代南安缙绅傅正，屡科不第，见儿子傅昆偏爱绘画，不喜读书八股，又遭妻子倪氏奚落演绎明代南安缙绅傅正，屡科不第，见儿子傅昆偏爱绘画，不喜读书八股，又遭妻子倪氏奚落，愤而前往雪峰寺出家。倪氏本性骄强，因丈夫屡试不中，饱受世情讥讽。又因“定要教子成器，金榜题名，才肯相见”的誓言，于是百般严厉教子，无所不用其极。',
			title: 'video',
			src: '',
			inputValue: '',
			isFullScreen: false,
			list: []
		};
	},
	onLoad(o) {
		that = this;
		this.main_body_id = this.$db.get('main_body_id');
		this.getContentDetails(o.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, '99999999');
				}
			);
		}
	}
};
</script>

<style>
.banxin {
	margin: 0 32rpx 0 32rpx;
}
.group_13 {
	width: 100%;
	height: 420rpx;
}
.myVideo {
	width: 100%;
	height: 100%;
}
.xj_container {
	display: inline-block;
	margin-right: 20rpx;
	text-align: center;
}

.xj_box {
	width: 200rpx;
	height: 60rpx;
	background: rgba(202, 86, 66, 0.08);
	border: 1px solid #ca5642;
	border-radius: 10rpx;
	line-height: 55rpx;
}

/deep/.u-read-more__toggle__text.data-v-47ca9a7f {
	width: 120rpx !important;
	height: 40rpx !important;
	background: #ffe4b0 !important;
	border-radius: 10rpx !important;
	margin-left: 550rpx !important;
	padding: 10rpx !important;
	margin-top: 20rpx !important;
}
.box_1 {
	width: 750rpx;
	display: flex;
	padding-bottom: 50rpx;
	flex-direction: column;
}
.mn_container {
	position: relative;
	display: inline-block;
	margin-right: 20rpx;
	text-align: center;
}

.mn_box {
	width: 261rpx;
	height: 349rpx;
	background: #ca5642;
	border-radius: 10rpx 10rpx 10rpx 0rpx;
}
.item_js {
	position: absolute;
	bottom: 60rpx;
	left: 125rpx;
	width: 112rpx;
	height: 50rpx;
	font-size: 24rpx;
	color: #ffffff;
	line-height: 50rpx;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 10rpx;
}
.mn_text {
	font-size: 28rpx;
	color: #333;
}
.box_16 {
	width: 750rpx;
	display: flex;
	flex-direction: column;
	margin: 10rpx 0 1rpx 0;
}
.text_2 {
	width: 664rpx;
	height: 91rpx;
	overflow-wrap: break-word;
	color: rgba(49, 37, 32, 1);
	font-size: 36rpx;
	font-family: SourceHanSansCN-Regular;
	font-weight: normal;
	text-align: left;
	line-height: 56rpx;
	margin: 52rpx 0 0 35rpx;
}
.block_6 {
	width: 329rpx;
	height: 32rpx;
	flex-direction: row;
	display: flex;
	margin: 41rpx 0 0 32rpx;
}
.image-text_36 {
	width: 90rpx;
	height: 32rpx;
	flex-direction: row;
	display: flex;
	justify-content: space-between;
}

.text-group_1 {
	width: 50rpx;
	height: 19rpx;
	overflow-wrap: break-word;
	color: rgba(49, 37, 32, 1);
	font-size: 24rpx;
	font-family: SourceHanSansCN-Regular;
	font-weight: normal;
	text-align: left;
	white-space: nowrap;
	line-height: 24rpx;
	margin-top: 6rpx;
}
.image-text_37 {
	width: 90rpx;
	height: 32rpx;
	margin-left: 30rpx;
	flex-direction: row;
	display: flex;
	justify-content: space-between;
}

.text-group_2 {
	width: 50rpx;
	height: 19rpx;
	overflow-wrap: break-word;
	color: rgba(49, 37, 32, 1);
	font-size: 24rpx;
	font-family: SourceHanSansCN-Regular;
	font-weight: normal;
	text-align: left;
	white-space: nowrap;
	line-height: 24rpx;
	margin-top: 6rpx;
}
.image-text_38 {
	width: 87rpx;
	height: 32rpx;
	margin-left: 32rpx;
	flex-direction: row;
	display: flex;
	justify-content: space-between;
}

.text-group_3 {
	width: 46rpx;
	height: 23rpx;
	overflow-wrap: break-word;
	color: rgba(49, 37, 32, 1);
	font-size: 24rpx;
	font-family: SourceHanSansCN-Regular;
	font-weight: normal;
	text-align: left;
	white-space: nowrap;
	line-height: 24rpx;
	margin-top: 4rpx;
}
.text-wrapper_1 {
	background-color: rgba(255, 255, 255, 1);
	width: 749rpx;
	margin-top: 33rpx;
	display: flex;
	flex-direction: column;
}

.box_11 {
	background-color: rgba(255, 255, 255, 1);
	height: 172rpx;
	margin-top: 32rpx;
	width: 749rpx;
	display: flex;
	flex-direction: column;
	justify-content: flex-center;
}
.group_11 {
	width: 164rpx;
	height: 28rpx;
	display: flex;
	flex-direction: row;
	margin: 27rpx 0 20rpx 49rpx;
}
.text-wrapper_2 {
	width: 164rpx;
	height: 28rpx;
	overflow-wrap: break-word;
	font-size: 0rpx;
	font-family: SourceHanSansCN-Bold;
	font-weight: 700;
	text-align: left;
	white-space: nowrap;
	line-height: 28rpx;
}
.text_4 {
	width: 164rpx;
	height: 28rpx;
	overflow-wrap: break-word;
	color: rgba(49, 37, 32, 1);
	font-size: 28rpx;
	font-family: SourceHanSansCN-Bold;
	font-weight: 700;
	text-align: left;
	white-space: nowrap;
	line-height: 28rpx;
}
.text_5 {
	width: 164rpx;
	height: 28rpx;
	overflow-wrap: break-word;
	color: rgba(49, 37, 32, 1);
	font-size: 28rpx;
	font-family: SourceHanSansCN-Regular;
	font-weight: normal;
	text-align: left;
	white-space: nowrap;
	line-height: 28rpx;
}
.group_12 {
	width: 718rpx;
	height: 60rpx;
	flex-direction: row;
	display: flex;
	justify-content: space-between;
	margin: 30rpx 0 27rpx 32rpx;
}
.text-wrapper_3 {
	background-color: rgba(202, 86, 66, 0.08);
	border-radius: 10rpx;
	height: 60rpx;
	border: 1px solid rgba(202, 86, 66, 1);
	display: flex;
	flex-direction: column;
	width: 200rpx;
}
.text_6 {
	width: 60rpx;
	height: 23rpx;
	overflow-wrap: break-word;
	color: rgba(202, 86, 66, 1);
	font-size: 24rpx;
	font-family: SourceHanSansCN-Regular;
	font-weight: normal;
	text-align: left;
	white-space: nowrap;
	line-height: 56rpx;
	margin: 19rpx 0 0 70rpx;
}

.text_9 {
	width: 111rpx;
	height: 28rpx;
	overflow-wrap: break-word;
	color: rgba(49, 37, 32, 1);
	font-size: 28rpx;
	font-family: SourceHanSansCN-Bold;
	font-weight: 700;
	text-align: left;
	white-space: nowrap;
	line-height: 28rpx;
	margin: 46rpx 0 30rpx 48rpx;
}

.box_17 {
	height: 422rpx;
	display: flex;
	flex-direction: column;
	width: 750rpx;
}
</style>
