游客
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<view style="font-weight: bold;margin-bottom: 30rpx;">
|
||||
{{bookMessage.name}}
|
||||
</view>
|
||||
<view style="color: #9b9b9b;font-size: 28rpx;margin:20rpx 0 0 0;max-width: 400rpx;line-height: 38rpx;">
|
||||
<view v-if="bookMessage.bookType==0" style="color: #9b9b9b;font-size: 28rpx;margin:20rpx 0 0 0;max-width: 400rpx;line-height: 38rpx;">
|
||||
<p @click="onAuCHJump(bookMessage.author.id,1)" style="margin-bottom: 20rpx;">
|
||||
{{bookMessage.author.authorName}} [著] >
|
||||
</p>
|
||||
@@ -18,7 +18,7 @@
|
||||
{{item.title}} >
|
||||
</p> -->
|
||||
</view>
|
||||
<view class="tags">
|
||||
<view class="tags" v-if="bookMessage.bookType==0">
|
||||
<uni-tag class="tag" @click="toMore()" :inverted="true" text="书评" type="success"></uni-tag>
|
||||
<uni-tag @click="gotoListen()" class="tag" v-if="bookMessage.canListen" :inverted="true" text="听书"
|
||||
type="primary"></uni-tag>
|
||||
@@ -28,7 +28,16 @@
|
||||
<uni-tag @click="goJiangShu()" v-if="bookMessage.teachIn == 1" class="tag" :inverted="true"
|
||||
text="讲书" type="error"></uni-tag>
|
||||
</view>
|
||||
<view class="buy" v-if="!bookMessage.isBuy">
|
||||
<!-- <view class="tags" v-if="bookMessage.bookType==1||bookMessage.bookType==2">
|
||||
<uni-tag class="tag" @click="onPageJump('../comments/comments?bookid=' + bookId)" :inverted="true" text="书评" type="success"></uni-tag>
|
||||
<uni-tag @click="onPageJump('../listen/listen?bookid='+ bookId)" class="tag" v-if="bookMessage.canListen" :inverted="true" text="听书"
|
||||
type="primary"></uni-tag>
|
||||
<uni-tag @click="onPageJump('../clock/clock?bookid='+ bookId)" v-if="bookMessage.clockIn == 1" class="tag" :inverted="true" text="打卡"
|
||||
type="warning"></uni-tag>
|
||||
<uni-tag @click="onPageJump('../talkBook/talkBookML?bookid='+ bookId)" v-if="bookMessage.teachIn == 1" class="tag" :inverted="true"
|
||||
text="讲书" type="error"></uni-tag>
|
||||
</view> -->
|
||||
<view class="buy" v-if="!bookMessage.isBuy&&bookMessage.bookType==0">
|
||||
<view class="btn" @click="goBuy">
|
||||
立即购买
|
||||
</view>
|
||||
@@ -193,14 +202,15 @@
|
||||
// .post('book/book/appinfo/' + this.bookId + '/' + this.userInfo.id)
|
||||
.post('book/book/getBookInfo', {
|
||||
'bookId': this.bookId,
|
||||
// 'bookId': this.bookId,
|
||||
'userId': this.userInfo.id
|
||||
})
|
||||
.then(res => {
|
||||
console.log('书详细', res.book)
|
||||
this.bookMessage = res.book
|
||||
this.bokMesDet.bookId = res.book.id
|
||||
this.bokMesDet.bookName = res.book.name,
|
||||
this.bokMesDet.images = res.book.images
|
||||
this.bokMesDet.bookName = res.book.name
|
||||
this.bokMesDet.images = res.book.images
|
||||
this.isBuy = res.book.isBuy
|
||||
this.freeChapterCount = res.book.freeChapterCount
|
||||
this.bokMesDet.userId = this.userInfo.id
|
||||
@@ -285,6 +295,7 @@
|
||||
'userId': this.userInfo.id,
|
||||
'bookId': this.bookId
|
||||
}
|
||||
|
||||
checkBookRight(data,res=>{
|
||||
console.log(res)
|
||||
if(res.success){
|
||||
@@ -408,9 +419,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user