|
@@ -5,44 +5,30 @@
|
|
<u-swiper :list="list1" mode='number' height='750' indicator-pos="bottomRight"></u-swiper>
|
|
<u-swiper :list="list1" mode='number' height='750' indicator-pos="bottomRight"></u-swiper>
|
|
</view>
|
|
</view>
|
|
<view class="back" style="margin-top: 24rpx;">
|
|
<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 class="">{{datainfo.title}}</view>
|
|
|
|
+ <view class="item-jian">教材级别:{{datainfo.level.title}}</view>
|
|
|
|
+ <view class="item-jian">适用层次:{{datainfo.arrangement.title}}</view>
|
|
|
|
+ <view class="item-jian">适用专业:{{datainfo.speciality.title}}</view>
|
|
|
|
+ <view class="item-jian">ISBN:{{datainfo.isbn}}</view>
|
|
|
|
+ <view class="item-jian">作者:{{datainfo.author}}</view>
|
|
|
|
+ <view class="item-jian">纸质定价:¥{{datainfo.entity_price}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="height"></view>
|
|
<view class="height"></view>
|
|
- <view class="series">
|
|
|
|
|
|
+ <view class="series" v-if="datainfo.is_series==0">
|
|
<view class="u-flex u-row-between">
|
|
<view class="u-flex u-row-between">
|
|
<view class="abount">相关系列</view>
|
|
<view class="abount">相关系列</view>
|
|
<view class="updown" @click="toupdown">系列下载</view>
|
|
<view class="updown" @click="toupdown">系列下载</view>
|
|
</view>
|
|
</view>
|
|
<view class="" style="margin-top: 24rpx;">
|
|
<view class="" style="margin-top: 24rpx;">
|
|
- <swiper class="swiper" circular :indicator-dots="true" :autoplay="true">
|
|
|
|
- <swiper-item v-for="(item,index) in 3" :key="index">
|
|
|
|
|
|
+ <swiper style="height: 400rpx;" class="swiper" circular :indicator-dots="true" :autoplay="true">
|
|
|
|
+ <swiper-item v-for="(item,index) in swiptlist" :key="index">
|
|
<view class="u-flex u-row-between">
|
|
<view class="u-flex u-row-between">
|
|
<view class="">
|
|
<view class="">
|
|
<image src="/static/logo.png" style="width: 196rpx;height: 280rpx;" mode=""></image>
|
|
<image src="/static/logo.png" style="width: 196rpx;height: 280rpx;" mode=""></image>
|
|
<view class="u-line-1">腰部功能强化训…</view>
|
|
<view class="u-line-1">腰部功能强化训…</view>
|
|
<view class="">
|
|
<view class="">
|
|
- 定价:¥28.5
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="">
|
|
|
|
- <image src="/static/logo.png" style="width: 196rpx;height: 280rpx;" mode=""></image>
|
|
|
|
- <view class="u-line-1">腰部功能强化训…</view>
|
|
|
|
- <view class="">
|
|
|
|
- 定价:¥28.5
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="">
|
|
|
|
- <image src="/static/logo.png" style="width: 196rpx;height: 280rpx;" mode=""></image>
|
|
|
|
- <view class="u-line-1">腰部功能强化训…</view>
|
|
|
|
- <view class="">
|
|
|
|
- 定价:¥28.5
|
|
|
|
|
|
+ 定价:<span style="color:rgba(204, 51, 0, 1) ;">¥28.5</span>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -59,14 +45,14 @@
|
|
<view v-if="current==0" class="padd content-box">
|
|
<view v-if="current==0" class="padd content-box">
|
|
<view class="u-flex">
|
|
<view class="u-flex">
|
|
<view class="">
|
|
<view class="">
|
|
- <view class="chu">开本:16开</view>
|
|
|
|
- <view class="chu">印制:双色</view>
|
|
|
|
- <view class="chu">版次:第一版第一次</view>
|
|
|
|
|
|
+ <view class="chu">开本:{{datainfo.format}}</view>
|
|
|
|
+ <view class="chu">印制:{{datainfo.print}}</view>
|
|
|
|
+ <view class="chu">版次:{{datainfo.edition}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="" style="margin-left: 100rpx;">
|
|
<view class="" style="margin-left: 100rpx;">
|
|
- <view class="chu">印张:12</view>
|
|
|
|
- <view class="chu">出版日期:2021年1月</view>
|
|
|
|
- <view class="chu">出版单位:北京出版社</view>
|
|
|
|
|
|
+ <view class="chu">印张:{{datainfo.sheet}}</view>
|
|
|
|
+ <view class="chu">出版日期:{{pubdate}}</view>
|
|
|
|
+ <view class="chu">出版单位:{{datainfo.publisher}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="tu">
|
|
<view class="tu">
|
|
@@ -75,7 +61,7 @@
|
|
<image class="image" src="/static/images/compile.png" mode=""></image>
|
|
<image class="image" src="/static/images/compile.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
<view class="fonta">
|
|
<view class="fonta">
|
|
- 本书以体能训练的原则、价值和方法为主要阐
|
|
|
|
|
|
+ {{datainfo.preface}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="tu">
|
|
<view class="tu">
|
|
@@ -84,7 +70,7 @@
|
|
<image class="image" src="/static/images/compile.png" mode=""></image>
|
|
<image class="image" src="/static/images/compile.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
<view class="fonta">
|
|
<view class="fonta">
|
|
- 本书以体能训练的原则、价值和方法为主要阐
|
|
|
|
|
|
+ {{datainfo.content_desc}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="tu">
|
|
<view class="tu">
|
|
@@ -93,17 +79,20 @@
|
|
<image class="image" src="/static/images/compile.png" mode=""></image>
|
|
<image class="image" src="/static/images/compile.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
<view class="fonta">
|
|
<view class="fonta">
|
|
- 本书以体能训练的原则、价值和方法为主要阐
|
|
|
|
|
|
+ {{datainfo.author_desc}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-if="current==1" class="padd data">
|
|
<view v-if="current==1" class="padd data">
|
|
<!-- 样章 -->
|
|
<!-- 样章 -->
|
|
- <view class="">
|
|
|
|
|
|
+ <view class="" v-if="specimen_file.length>0">
|
|
<view class="sample">样章</view>
|
|
<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>
|
|
|
|
|
|
+ <view class="" v-for="(item,index) in specimen_file" :key="index"
|
|
|
|
+ style="display: flex;margin-top: 28rpx;">
|
|
|
|
+ <view class="" style="display: flex;">
|
|
|
|
+ <image src="/static/images/pdf.png" class="image3" mode=""></image>
|
|
|
|
+ <view class="pdf">{{item.title}}</view>
|
|
|
|
+ </view>
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -112,21 +101,29 @@
|
|
<view class="">资源包</view>
|
|
<view class="">资源包</view>
|
|
<view class="u-flex">
|
|
<view class="u-flex">
|
|
<view class="selling">资源售价</view>
|
|
<view class="selling">资源售价</view>
|
|
- <view class="money5">¥48.5</view>
|
|
|
|
|
|
+ <view class="money5">¥{{price}}</view>
|
|
<view class="button4" @click="show=true">付费下载</view>
|
|
<view class="button4" @click="show=true">付费下载</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="courseware">课件</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>
|
|
|
|
|
|
+ <view v-for="(item,index) in courseware_file" :key="index" class=""
|
|
|
|
+ style="display: flex;margin-top: 28rpx;justify-content: space-between;">
|
|
|
|
+ <div style="display: flex;">
|
|
|
|
+ <image src="/static/images/pdf.png" class="image3" mode=""></image>
|
|
|
|
+ <view class="pdf">{{item.title}}</view>
|
|
|
|
+ </div>
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
</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 class="" v-if="resource_file.length>0">
|
|
|
|
+ <view class="courseware">资源</view>
|
|
|
|
+ <view v-for="(item,index) in resource_file" :key="index" class=""
|
|
|
|
+ style="display: flex;margin-top: 28rpx;justify-content: space-between;">
|
|
|
|
+ <view class="" style="display: flex;">
|
|
|
|
+ <image src="/static/images/pdf.png" class="image3" mode=""></image>
|
|
|
|
+ <view class="pdf">{{item.title}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -134,7 +131,10 @@
|
|
<view class="" style=" height: 166rpx;"></view>
|
|
<view class="" style=" height: 166rpx;"></view>
|
|
<view class="bottom u-flex">
|
|
<view class="bottom u-flex">
|
|
<view class="left" @click="stylebook">样书申请</view>
|
|
<view class="left" @click="stylebook">样书申请</view>
|
|
- <view class="right">在线试读</view>
|
|
|
|
|
|
+ <!-- <view v-if="" class="right">免费下载</view> -->
|
|
|
|
+ <view v-if="datainfo.is_certificate==0" class="right" @click="certificate()">体验下载</view>
|
|
|
|
+ <view v-if="datainfo.is_pay==0" class="right">已购买,可下载</view>
|
|
|
|
+ <view v-else-if class="right">在线试读</view>
|
|
</view>
|
|
</view>
|
|
<u-popup v-model="show" mode="bottom" border-radius="24">
|
|
<u-popup v-model="show" mode="bottom" border-radius="24">
|
|
<view class="" style="padding: 32rpx 28rpx;">
|
|
<view class="" style="padding: 32rpx 28rpx;">
|
|
@@ -143,11 +143,14 @@
|
|
<image src="../../static/images/close.png"
|
|
<image src="../../static/images/close.png"
|
|
style="width: 44rpx;height: 44rpx;position: absolute;top: 0;right: 0;" mode=""></image>
|
|
style="width: 44rpx;height: 44rpx;position: absolute;top: 0;right: 0;" mode=""></image>
|
|
</view>
|
|
</view>
|
|
- <view class="" style="margin-top: 40rpx;">
|
|
|
|
|
|
+ <view class="" v-if="specimen_file.length>0">
|
|
<view class="sample">样章</view>
|
|
<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>
|
|
|
|
|
|
+ <view class="" v-for="(item,index) in specimen_file" :key="index"
|
|
|
|
+ style="display: flex;margin-top: 28rpx;">
|
|
|
|
+ <view class="" style="display: flex;">
|
|
|
|
+ <image src="/static/images/pdf.png" class="image3" mode=""></image>
|
|
|
|
+ <view class="pdf">{{item.title}}</view>
|
|
|
|
+ </view>
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -161,26 +164,33 @@
|
|
</view> -->
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
<view class="courseware">电子书</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>
|
|
|
|
|
|
+ <view v-for="(item,index) in courseware_file" :key="index" class=""
|
|
|
|
+ style="display: flex;margin-top: 28rpx;justify-content: space-between;">
|
|
|
|
+ <div style="display: flex;">
|
|
|
|
+ <image src="/static/images/pdf.png" class="image3" mode=""></image>
|
|
|
|
+ <view class="pdf">{{item.title}}</view>
|
|
|
|
+ </div>
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
</view>
|
|
</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>
|
|
|
|
|
|
+ <view class="courseware">课件</view>
|
|
|
|
+ <view v-for="(item,index) in courseware_file" :key="index" class=""
|
|
|
|
+ style="display: flex;margin-top: 28rpx;justify-content: space-between;">
|
|
|
|
+ <div style="display: flex;">
|
|
|
|
+ <image src="/static/images/pdf.png" class="image3" mode=""></image>
|
|
|
|
+ <view class="pdf">{{item.title}}</view>
|
|
|
|
+ </div>
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
</view>
|
|
</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 class="" v-if="resource_file.length>0">
|
|
|
|
+ <view class="courseware">资源</view>
|
|
|
|
+ <view v-for="(item,index) in resource_file" :key="index" class=""
|
|
|
|
+ style="display: flex;margin-top: 28rpx;justify-content: space-between;">
|
|
|
|
+ <view class="" style="display: flex;">
|
|
|
|
+ <image src="/static/images/pdf.png" class="image3" mode=""></image>
|
|
|
|
+ <view class="pdf">{{item.title}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -208,9 +218,94 @@
|
|
title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
|
|
title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
|
|
+ id: '',
|
|
|
|
+ datainfo: {
|
|
|
|
+ sheet: '',
|
|
|
|
+ publisher: '',
|
|
|
|
+ preface: "",
|
|
|
|
+ author_desc: '',
|
|
|
|
+ title: '',
|
|
|
|
+ isbn: '',
|
|
|
|
+ author: '',
|
|
|
|
+ entity_price: '',
|
|
|
|
+ format: '',
|
|
|
|
+ print: '',
|
|
|
|
+ edition: '',
|
|
|
|
+ content_desc: "",
|
|
|
|
+ level: {
|
|
|
|
+ title: ''
|
|
|
|
+ },
|
|
|
|
+ arrangement: {
|
|
|
|
+ title: ''
|
|
|
|
+ },
|
|
|
|
+ speciality: {
|
|
|
|
+ title: ''
|
|
|
|
+ },
|
|
|
|
+ series_id: '',
|
|
|
|
+ is_series: '', //是否可以系列购买
|
|
|
|
+ is_certificate: '', //是否体验中
|
|
|
|
+ is_pay: '', //是否已购买
|
|
|
|
+ },
|
|
|
|
+ swiptlist: [],
|
|
|
|
+ pubdate: '',
|
|
|
|
+ courseware_file: [],
|
|
|
|
+ resource_file: [],
|
|
|
|
+ specimen_file: [],
|
|
|
|
+ price: '', //资源价格,
|
|
|
|
+
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ onLoad(options) {
|
|
|
|
+ this.id = options.id
|
|
|
|
+ this.getBookInfo()
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ certificate(){
|
|
|
|
+ this.$u.post('/api/certificate/useCertificate',{
|
|
|
|
+ id:this.id
|
|
|
|
+ }).then(res=>{
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 系列
|
|
|
|
+ getSeriesBooks() {
|
|
|
|
+ this.$u.post('api/books/getSeriesBooks', {
|
|
|
|
+ series_id: this.series_id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ console.log('books', res);
|
|
|
|
+ var list = []
|
|
|
|
+ for (var i = 0; i < res.data.length; i++) {
|
|
|
|
+ list.push(res.data[i])
|
|
|
|
+ if (list.length == 3) {
|
|
|
|
+ this.swiptlist.push(list)
|
|
|
|
+ this.list = []
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //详情
|
|
|
|
+ getBookInfo() {
|
|
|
|
+ this.$u.post('api/books/getBookInfo', {
|
|
|
|
+ id: this.id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ console.log('info', res);
|
|
|
|
+ this.datainfo = res.data
|
|
|
|
+ this.series_id = res.data.series_id
|
|
|
|
+ this.pubdate = res.data.pubdate.slice(0, 4) + '年' + res.data.pubdate.slice(5, 7) + "月"
|
|
|
|
+ this.getSeriesBooks()
|
|
|
|
+ this.courseware_file = res.data.courseware_file
|
|
|
|
+ this.resource_file = res.data.resource_file
|
|
|
|
+ this.specimen_file = res.data.specimen_file
|
|
|
|
+ this.price = res.data.price
|
|
|
|
+ var arr = res.data.banner.map(item => {
|
|
|
|
+ let obj = {}
|
|
|
|
+ obj.image = item
|
|
|
|
+ return obj
|
|
|
|
+ })
|
|
|
|
+ console.log(arr);
|
|
|
|
+ this.list1 = arr
|
|
|
|
+ })
|
|
|
|
+ },
|
|
change(index) {
|
|
change(index) {
|
|
this.current = index;
|
|
this.current = index;
|
|
},
|
|
},
|