|
@@ -11,7 +11,7 @@
|
|
|
<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 class="item-jian" v-if="datainfo.is_free==1">纸质定价:¥{{datainfo.entity_price}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="height"></view>
|
|
@@ -91,7 +91,7 @@
|
|
|
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 class="pdf u-line-1" style="width: 530rpx;">{{item.title}}</view>
|
|
|
</view>
|
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
|
</view>
|
|
@@ -99,8 +99,9 @@
|
|
|
<view class="">
|
|
|
<view class="sample u-flex u-row-between">
|
|
|
<view class="">资源包</view>
|
|
|
- <view class="u-flex">
|
|
|
+ <view v-if="datainfo.is_free==1" class="u-flex">
|
|
|
<view class="selling">资源售价</view>
|
|
|
+ <!-- <view class="selling">纸质售价</view> -->
|
|
|
<view class="money5">¥{{price}}</view>
|
|
|
<view class="button4" @click="orderinfo">付费下载</view>
|
|
|
</view>
|
|
@@ -110,7 +111,7 @@
|
|
|
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>
|
|
|
+ <view class="pdf u-line-1" style="width: 530rpx;">{{item.title}}</view>
|
|
|
</div>
|
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
|
</view>
|
|
@@ -120,7 +121,7 @@
|
|
|
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 class="pdf u-line-1" style="width: 530rpx;">{{item.title}}</view>
|
|
|
</view>
|
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
|
</view>
|
|
@@ -131,25 +132,25 @@
|
|
|
<view class="" style=" height: 166rpx;"></view>
|
|
|
<view class="bottom u-flex">
|
|
|
<view class="left" @click="stylebook">样书申请</view>
|
|
|
- <!-- <view v-if="" class="right">免费下载</view> -->
|
|
|
- <view v-if="datainfo.is_certificate==0" class="right">体验下载</view>
|
|
|
+ <view v-if="datainfo.is_free==0" class="right" @click="show=true">免费下载</view>
|
|
|
+ <view v-if="datainfo.is_certificate==0" @click="show=true" class="right">体验下载</view>
|
|
|
<view v-if="datainfo.is_pay==0" class="right" @click="show=true">已购买,可下载</view>
|
|
|
- <view v-else-if class="right">在线试读</view>
|
|
|
+ <view v-if="datainfo.is_pay!=0&&datainfo.is_certificate!=0&&datainfo.is_free!=0" 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"
|
|
|
+ <image @click="show= false" src="../../static/images/close.png"
|
|
|
style="width: 44rpx;height: 44rpx;position: absolute;top: 0;right: 0;" mode=""></image>
|
|
|
</view>
|
|
|
<view class="" v-if="specimen_file.length>0">
|
|
|
<view class="sample">样章</view>
|
|
|
- <view class="" v-for="(item,index) in specimen_file" :key="index"
|
|
|
+ <view class="u-row-between" 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 class="pdf u-line-1" style="width: 530rpx;">{{item.title}}</view>
|
|
|
</view>
|
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
|
</view>
|
|
@@ -163,7 +164,7 @@
|
|
|
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>
|
|
|
+ <view class="pdf u-line-1" style="width: 530rpx;">{{item.title}}</view>
|
|
|
</div>
|
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
|
</view>
|
|
@@ -172,7 +173,7 @@
|
|
|
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>
|
|
|
+ <view class="pdf u-line-1" style="width: 530rpx;">{{item.title}}</view>
|
|
|
</div>
|
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
|
</view>
|
|
@@ -182,7 +183,7 @@
|
|
|
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 class="pdf u-line-1" style="width: 530rpx;">{{item.title}}</view>
|
|
|
</view>
|
|
|
<image src="/static/images/updown.png" mode="" style="width: 32rpx;height: 32rpx;"></image>
|
|
|
</view>
|
|
@@ -232,6 +233,7 @@
|
|
|
is_series: '', //是否可以系列购买
|
|
|
is_certificate: '', //是否体验中
|
|
|
is_pay: '', //是否已购买
|
|
|
+ is_free: '', //是否免费
|
|
|
},
|
|
|
swiptlist: [],
|
|
|
pubdate: '',
|
|
@@ -254,8 +256,15 @@
|
|
|
},
|
|
|
//立即购买
|
|
|
orderinfo() {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/index/orderinfo?id=' + this.id
|
|
|
+ this.$u.post('api/order/createOrder', {
|
|
|
+ goods_id: this.id,
|
|
|
+ type: 0
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code == 1) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/index/orderinfo?id=' + res.data.order_on + '&&index=' + 1
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
// 系列
|