<template>
	<view class="page">
		<view class="padd">
			<image src="/static/logo.png" style="width: 542rpx;height: 750rpx;" mode=""></image>
			<view class="back" style="margin-top: 24rpx;">
				<view class="">九年级化学上册电子课本目录(义务教育教科</view>
				<view class="item-jian">教材级别：公共体育教材</view>
				<view class="item-jian">适用层次：高职教材</view>
				<view class="item-jian">适用专业：建筑类系列教材</view>
				<view class="item-jian">ISBN：989-9-2392-232</view>
				<view class="item-jian">作者：袁伟，郑太雄，罗荣</view>
				<view class="item-jian">纸质定价：¥57.5</view>
			</view>
		</view>
		<view class="height"></view>
		<view class="series">
			<view class="u-flex u-row-between">
				<view class="abount">相关系列</view>
				<view class="updown" @click="toupdown">系列下载</view>
			</view>
			<view class=""></view>
		</view>
		<view class="height"></view>
		<view class="content">
			<view class="">
				<u-tabs active-color='#06A971' :list="list" :is-scroll="false" :current="current"
					@change="change"></u-tabs>
			</view>
			<view v-if="current==0" class="padd content-box">
				<view class="u-flex">
					<view class="">
						<view class="chu">开本:16开</view>
						<view class="chu">印制:双色</view>
						<view class="chu">版次:第一版第一次</view>
					</view>
					<view class="" style="margin-left: 100rpx;">
						<view class="chu">印张:12</view>
						<view class="chu">出版日期:2021年1月</view>
						<view class="chu">出版单位:北京出版社</view>
					</view>
				</view>
				<view class="tu">
					<view class="" style="position: relative;">
						<view class="brief">前言</view>
						<image class="image" src="/static/images/compile.png" mode=""></image>
					</view>
					<view class="fonta">
						本书以体能训练的原则、价值和方法为主要阐
					</view>
				</view>
				<view class="tu">
					<view class="" style="position: relative;">
						<view class="brief">内容简介</view>
						<image class="image" src="/static/images/compile.png" mode=""></image>
					</view>
					<view class="fonta">
						本书以体能训练的原则、价值和方法为主要阐
					</view>
				</view>
				<view class="tu">
					<view class="" style="position: relative;">
						<view class="brief">作者简介</view>
						<image class="image" src="/static/images/compile.png" mode=""></image>
					</view>
					<view class="fonta">
						本书以体能训练的原则、价值和方法为主要阐
					</view>
				</view>
			</view>
			<view v-if="current==1" class="padd data">
				<!-- 样章 -->
				<view class="">
					<view class="sample">样章</view>
					<view class="" style="display: flex;margin-top: 28rpx;">
						<image src="/static/images/pdf.png" class="image3" mode=""></image>
						<view class="pdf">第一章 集合与函数概念单元检测卷高一数学轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧</view>
						<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
					</view>
				</view>
				<view class="">
					<view class="sample u-flex u-row-between">
						<view class="">资源包</view>
						<view class="u-flex">
							<view class="selling">资源售价</view>
							<view class="money5">¥48.5</view>
							<view class="button4"  @click="show=true">付费下载</view>
						</view>
					</view>
					<view class="courseware">课件</view>
					<view class="" style="display: flex;margin-top: 28rpx;">
						<image src="/static/images/pdf.png" class="image3" mode=""></image>
						<view class="pdf">第一章 集合与函数概念单元检测卷高一数学轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧</view>
						<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
					</view>
					<view class="courseware">资源</view>
					<view class="" style="display: flex;margin-top: 28rpx;">
						<image src="/static/images/pdf.png" class="image3" mode=""></image>
						<view class="pdf">第一章 集合与函数概念单元检测卷高一数学轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧</view>
						<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
					</view>
				</view>
			</view>
		</view>
		<view class="" style=" height: 166rpx;"></view>
		<view class="bottom u-flex">
			<view class="left">样书申请</view>
			<view class="right">在线试读</view>
		</view>
		<u-popup v-model="show" mode="bottom" border-radius="24">
			<view class="" style="padding: 32rpx 28rpx;">
				<view class="u-flex u-row-center" style="text-align: center;position: relative;">
					<view class="courseware" style="margin-top: 0;">资源下载</view>
					<image src="../../static/images/close.png"
						style="width: 44rpx;height: 44rpx;position: absolute;top: 0;right: 0;" mode=""></image>
				</view>
				<view class="" style="margin-top: 40rpx;">
					<view class="sample">样章</view>
					<view class="" style="display: flex;margin-top: 28rpx;">
						<image src="/static/images/pdf.png" class="image3" mode=""></image>
						<view class="pdf">第一章 集合与函数概念单元检测卷高一数学轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧</view>
						<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
					</view>
				</view>
				<view class="">
					<view class="sample u-flex u-row-between">
						<view class="">资源包</view>
						<!-- <view class="u-flex">
							<view class="selling">资源售价</view>
							<view class="money5">¥48.5</view>
							<view class="button4">付费下载</view>
						</view> -->
					</view>
					<view class="courseware">电子书</view>
					<view class="" style="display: flex;margin-top: 28rpx;">
						<image src="/static/images/pdf.png" class="image3" mode=""></image>
						<view class="pdf">第一章 集合与函数概念单元检测卷高一数学轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧</view>
						<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
					</view>
					<view class="courseware"
						style='border-top: 2rpx solid rgba(151, 151, 151, 0.1);margin-bottom:26rpx;padding-top:28rpx;'>
						课件</view>
					<view class="" style="display: flex;margin-top: 28rpx;">
						<image src="/static/images/pdf.png" class="image3" mode=""></image>
						<view class="pdf">第一章 集合与函数概念单元检测卷高一数学轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧</view>
						<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
					</view>
					<view class="courseware"
						style='border-top: 2rpx solid rgba(151, 151, 151, 0.1);margin-bottom:26rpx;padding-top:28rpx;'>
						资源</view>
					<view class="" style="display: flex;margin-top: 28rpx;">
						<image src="/static/images/pdf.png" class="image3" mode=""></image>
						<view class="pdf">第一章 集合与函数概念单元检测卷高一数学轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧巧轻轻巧</view>
						<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
					</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '内容介绍',
				}, {
					name: '资料',
				}],
				current: 0,
				show: false
			};
		},
		methods: {
			change(index) {
				this.current = index;
			},
			toupdown(){
				uni.navigateTo({
					url:'/pages/index/updown'
				})
			}
		}
	}
</script>

<style lang="scss">
	.courseware {
		font-size: 28rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		color: #222222;
		margin-top: 24rpx;
	}

	.money5 {
		font-size: 32rpx;
		font-family: SFPro, SFPro;
		font-weight: 500;
		color: #CC3300;
	}

	.button4 {
		width: 120rpx;
		height: 52rpx;
		background: #06A971;
		border-radius: 6rpx;
		margin-left: 16rpx;
		font-size: 24rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		color: #FFFFFF;
		text-align: center;
		line-height: 52rpx;
	}

	.selling {
		font-size: 24rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		color: #555555;
		margin-right: 4rpx;
	}

	.image3 {
		width: 28rpx;
		height: 28rpx;
	}

	.pdf {
		font-size: 24rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		color: #222222;
		margin-left: 24rpx;
		margin-right: 80rpx;
	}

	.sample {
		height: 72rpx;
		background: #F5F5F5;
		border-radius: 8rpx;
		font-size: 28rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		color: #222222;
		padding: 14rpx 10rpx 14rpx 20rpx;
		margin-top: 28rpx;
	}

	.data {
		border-top: 2rpx solid rgba(151, 151, 151, 0.1);
		padding-top: 26rpx !important;
	}

	.fonta {
		font-size: 24rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		color: #222222;
		margin-top: 24rpx;
	}

	.tu {
		margin-top: 32rpx;
	}

	.image {
		width: 694rpx;
		height: 50rpx;
	}

	.brief {
		position: absolute;
		left: 28rpx;
		font-size: 28rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		color: #06A971;
		line-height: 50rpx;
	}

	.chu {
		margin-top: 20rpx;
	}

	.content-box {
		border-top: 2rpx solid rgba(151, 151, 151, 0.1);
		padding-top: 42rpx !important;
	}

	::v-deep .u-tab-bar {
		background-color: #06A971 !important;
	}


	// 系列
	.series {
		padding: 44rpx 28rpx 32rpx;
	}

	.about {
		font-size: 28rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		color: #222222;
	}

	.updown {
		width: 134rpx;
		height: 56rpx;
		background: #06A971;
		border-radius: 6rpx;
		font-size: 24rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		line-height: 56rpx;
		text-align: center;
	}

	.back {
		padding: 0 0 40rpx 0;
		background: #fff;
	}

	.padd {
		padding: 0 28rpx;
	}

	.page {
		// background: #F5F5F5;
		min-height: 100vh;
	}

	.height {
		width: 750rpx;
		height: 20rpx;
		background: #F5F5F5;
	}

	.item-jian {
		font-size: 24rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		color: #444444;
		margin-top: 18rpx;
	}

	.bottom {
		width: 750rpx;
		height: 166rpx;
		background: #FFFFFF;
		padding: 16rpx 28rpx 0;
		position: fixed;
		bottom: 0;
		left: 0;

		.left {
			width: 336rpx;
			height: 88rpx;
			background: #FFA30E;
			border-radius: 12rpx;
			font-size: 32rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			text-align: center;
			line-height: 88rpx;
		}

		.right {
			width: 336rpx;
			height: 88rpx;
			background: #06A971;
			border-radius: 12rpx;
			font-size: 32rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			text-align: center;
			line-height: 88rpx;
			margin-left: 12rpx;
		}
	}
</style>