|
@ -69,24 +69,32 @@ |
|
|
<text>我的等级</text> |
|
|
<text>我的等级</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="level-info"> |
|
|
<view class="level-info"> |
|
|
<image class="user-avatar" src="/pages_order/static/book/dj.png" mode="aspectFill"></image> |
|
|
|
|
|
|
|
|
<!-- <image class="user-avatar" src="/pages_order/static/book/dj.png" mode="aspectFill"></image> --> |
|
|
|
|
|
|
|
|
|
|
|
<image |
|
|
|
|
|
:src="bookLevel.icon" |
|
|
|
|
|
class="user-avatar" |
|
|
|
|
|
mode="aspectFill"></image> |
|
|
|
|
|
|
|
|
<view class="user-details"> |
|
|
<view class="user-details"> |
|
|
<text class="username"> |
|
|
|
|
|
|
|
|
<view class="username"> |
|
|
<image |
|
|
<image |
|
|
src="https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain" |
|
|
|
|
|
mode="aspectFill"></image> |
|
|
|
|
|
|
|
|
:src="bookLevel.hanHaiMember |
|
|
|
|
|
&& bookLevel.hanHaiMember.headImage" |
|
|
|
|
|
style="width: 40rpx;height: 40rpx;border-radius: 50%;margin-right: 4rpx;" |
|
|
|
|
|
mode="aspectFill"></image> |
|
|
|
|
|
|
|
|
<view class="name"> |
|
|
<view class="name"> |
|
|
周海 |
|
|
|
|
|
|
|
|
{{ (bookLevel.hanHaiMember |
|
|
|
|
|
&& bookLevel.hanHaiMember.nickName) || '_' }} |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</text> |
|
|
|
|
|
|
|
|
</view> |
|
|
<view class="user-score"> |
|
|
<view class="user-score"> |
|
|
<text class="score-value">6785452</text> |
|
|
|
|
|
|
|
|
<text class="score-value">{{ bookLevel.num || 0}}</text> |
|
|
<text class="score-label">亲密值</text> |
|
|
<text class="score-label">亲密值</text> |
|
|
</view> |
|
|
</view> |
|
|
<text class="user-role">护书使者 五级</text> |
|
|
|
|
|
|
|
|
<text class="user-role">{{ bookLevel.commonBookAchievement |
|
|
|
|
|
&& (bookLevel.commonBookAchievement.oldName || bookLevel.commonBookAchievement.title)}}</text> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -145,9 +153,22 @@ |
|
|
<!-- 底部操作栏 --> |
|
|
<!-- 底部操作栏 --> |
|
|
<view class="novel-bottom"> |
|
|
<view class="novel-bottom"> |
|
|
<view class="bottom-left"> |
|
|
<view class="bottom-left"> |
|
|
<view class="action-btn" @click="addToBookshelf"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="action-btn" |
|
|
|
|
|
v-if="isBooshelf" |
|
|
|
|
|
@click="deleteBookshelfByBookId"> |
|
|
|
|
|
<view class="btn-icon"> |
|
|
|
|
|
<uv-icon name="grid" color="#f20" size="50rpx"></uv-icon> |
|
|
|
|
|
</view> |
|
|
|
|
|
<text style="color: #f20;">删除书架</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="action-btn" |
|
|
|
|
|
v-else |
|
|
|
|
|
@click="addToBookshelf"> |
|
|
<view class="btn-icon"> |
|
|
<view class="btn-icon"> |
|
|
<uv-icon name="grid" color="#999" size="60rpx"></uv-icon> |
|
|
|
|
|
|
|
|
<uv-icon name="grid" color="#999" size="50rpx"></uv-icon> |
|
|
</view> |
|
|
</view> |
|
|
<text>加入书架</text> |
|
|
<text>加入书架</text> |
|
|
</view> |
|
|
</view> |
|
@ -157,7 +178,7 @@ |
|
|
</view> --> |
|
|
</view> --> |
|
|
<view class="action-btn" @click="$refs.interactiveGiftPopup.open()"> |
|
|
<view class="action-btn" @click="$refs.interactiveGiftPopup.open()"> |
|
|
<view class="btn-icon"> |
|
|
<view class="btn-icon"> |
|
|
<uv-icon name="gift" color="#999" size="60rpx"></uv-icon> |
|
|
|
|
|
|
|
|
<uv-icon name="gift" color="#999" size="50rpx"></uv-icon> |
|
|
</view> |
|
|
</view> |
|
|
<text>互动打赏</text> |
|
|
<text>互动打赏</text> |
|
|
</view> |
|
|
</view> |
|
@ -205,6 +226,8 @@ |
|
|
catalog: {}, //最后一个章节 |
|
|
catalog: {}, //最后一个章节 |
|
|
fastCatalog: {}, //第一章节 |
|
|
fastCatalog: {}, //第一章节 |
|
|
chapterList : [],//章节列表 |
|
|
chapterList : [],//章节列表 |
|
|
|
|
|
|
|
|
|
|
|
isBooshelf : false, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: {}, |
|
|
computed: {}, |
|
@ -217,6 +240,7 @@ |
|
|
onShow() { |
|
|
onShow() { |
|
|
this.getDateil() |
|
|
this.getDateil() |
|
|
this.getBookCatalogList() |
|
|
this.getBookCatalogList() |
|
|
|
|
|
this.isAddBook() |
|
|
if(this.isLogin){ |
|
|
if(this.isLogin){ |
|
|
this.getAchievement() |
|
|
this.getAchievement() |
|
|
} |
|
|
} |
|
@ -238,8 +262,8 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
getAchievement() { |
|
|
getAchievement() { |
|
|
this.$fetch('getAchievement', { |
|
|
|
|
|
id: this.id |
|
|
|
|
|
|
|
|
this.$fetch('getAchievementByBookId', { |
|
|
|
|
|
bookId: this.id |
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
this.bookLevel = res |
|
|
this.bookLevel = res |
|
|
}) |
|
|
}) |
|
@ -292,6 +316,7 @@ |
|
|
image: this.novelData.image, |
|
|
image: this.novelData.image, |
|
|
novelId : this.fastCatalog && this.fastCatalog.id |
|
|
novelId : this.fastCatalog && this.fastCatalog.id |
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
|
|
|
this.isBooshelf = true |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: '已加入书架', |
|
|
title: '已加入书架', |
|
|
icon: 'success' |
|
|
icon: 'success' |
|
@ -308,6 +333,11 @@ |
|
|
url: `/pages_order/novel/Giftbox?id=${this.id}` |
|
|
url: `/pages_order/novel/Giftbox?id=${this.id}` |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
async isAddBook(){ |
|
|
|
|
|
this.isBooshelf = await this.$fetch('isAddBook', { |
|
|
|
|
|
bookId: this.id |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
toRead() { |
|
|
toRead() { |
|
|
if (!this.fastCatalog) { |
|
|
if (!this.fastCatalog) { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
@ -342,6 +372,14 @@ |
|
|
this.getAchievement(); |
|
|
this.getAchievement(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 删除书架 |
|
|
|
|
|
deleteBookshelfByBookId(){ |
|
|
|
|
|
this.$fetch('deleteBookshelfByBookId', { |
|
|
|
|
|
bookId : this.id |
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
this.isBooshelf = false |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|