|
@@ -11,7 +11,8 @@
|
|
|
<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" v-if="datainfo.is_free==1">纸质定价:¥{{datainfo.entity_price}}</view>
|
|
|
+ <view class="item-jian" v-if="datainfo.is_free==1&&datainfo.book_type==0">纸质定价:¥{{datainfo.entity_price}}</view>
|
|
|
+ <view class="item-jian" v-if="datainfo.book_type==1">资源售价:¥{{datainfo.price}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="height"></view>
|
|
@@ -99,9 +100,9 @@
|
|
|
<view class="">
|
|
|
<view class="sample u-flex u-row-between">
|
|
|
<view class="">资源包</view>
|
|
|
- <view v-if="datainfo.is_free==1&&datainfo.book_type==0" class="u-flex">
|
|
|
+ <view v-if="datainfo.is_free==1&&datainfo.is_pay==1&&datainfo.book_type==0" class="u-flex">
|
|
|
<view class="selling">资源售价</view>
|
|
|
- <!-- <view class="selling">纸质售价</view> -->
|
|
|
+ <!-- <view class="selling">纸质售价</view> -->
|
|
|
<view class="money5">¥{{price}}</view>
|
|
|
<view class="button4" @click="orderinfo">付费下载</view>
|
|
|
</view>
|
|
@@ -149,7 +150,7 @@
|
|
|
<!-- <view v-if="datainfo.book_type==1&&(datainfo.is_free==0||datainfo.is_certificate==0||datainfo.is_pay==0)"
|
|
|
class="left" @click="stylebook">在线阅读</view> -->
|
|
|
<view class="left" @click="toyang" v-if="datainfo.book_type==1">在线阅读</view>
|
|
|
- <view v-if="datainfo.is_free==0" class="right" @click="show=true">免费下载</view>
|
|
|
+ <view v-if="datainfo.is_free==0&&datainfo.is_pay==1" 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-if="datainfo.is_pay==1&&datainfo.book_type==1&&datainfo.is_free!=0&&datainfo.is_certificate"
|
|
@@ -185,7 +186,7 @@
|
|
|
<view class="sample u-flex u-row-between">
|
|
|
<view class="">资源包</view>
|
|
|
</view>
|
|
|
- <view class="" v-if="ebook_file.length>0">
|
|
|
+ <view class="" v-if="ebook_file.length>0">
|
|
|
<view class="courseware">电子书</view>
|
|
|
<view @click='touser(item.url)' v-for="(item,index) in ebook_file" :key="index" class=""
|
|
|
style="display: flex;margin-top: 28rpx;justify-content: space-between;">
|
|
@@ -272,7 +273,7 @@
|
|
|
courseware_file: [],
|
|
|
resource_file: [],
|
|
|
specimen_file: [],
|
|
|
- ebook_file:[],
|
|
|
+ ebook_file: [],
|
|
|
price: '', //资源价格,
|
|
|
url: '',
|
|
|
card: {
|
|
@@ -388,7 +389,6 @@
|
|
|
obj.image = item
|
|
|
return obj
|
|
|
})
|
|
|
- console.log(arr);
|
|
|
this.list1 = arr
|
|
|
})
|
|
|
},
|
|
@@ -406,9 +406,13 @@
|
|
|
}
|
|
|
},
|
|
|
stylebook() {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/index/stylebook?id=' + this.id
|
|
|
- })
|
|
|
+ if (uni.getStorageSync('token')) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/index/stylebook?id=' + this.id
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$u.toast('请登录后操作')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|