一些优化
This commit is contained in:
parent
41e7e8a8df
commit
e0da8a0528
@ -380,6 +380,7 @@ export default {
|
||||
}
|
||||
|
||||
.create-chat {
|
||||
font-size: 1.1rem;
|
||||
margin: 1rem 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@ -107,6 +107,7 @@
|
||||
</SlideItem>
|
||||
<SlideItem style="font-size: 40px;overflow:auto;">
|
||||
<Uploader
|
||||
ref="uploader"
|
||||
:isOnThisPage="baseActiveIndex === 1"
|
||||
:author="this.videos[this.videoActiveIndex]?.author"
|
||||
@toggleCanMove="e => this.canMove = e"
|
||||
@ -154,6 +155,7 @@
|
||||
|
||||
|
||||
<FollowSetting2
|
||||
@cancelFollow="$refs.uploader.cancelFollow()"
|
||||
v-model="showFollowSetting2"/>
|
||||
|
||||
<BlockDialog v-model="showBlockDialog"/>
|
||||
|
||||
@ -176,13 +176,15 @@
|
||||
<SlideItem class="SlideItem"
|
||||
@scroll="scroll"
|
||||
:style="SlideItemStyle">
|
||||
<div class="notice">
|
||||
<div class="notice" v-if="localAuthor.is_private === 1">
|
||||
<img src="../../assets/img/icon/me/lock-gray.png" alt="">
|
||||
<span>只有你能看到自己的喜欢列表</span>
|
||||
<span>喜欢内容不可见</span>
|
||||
</div>
|
||||
<Posters v-if="videos.like.total !== -1" :list="videos.like.list"></Posters>
|
||||
<Loading v-if="loadings.loading2" :is-full-screen="false"></Loading>
|
||||
<no-more v-else/>
|
||||
<template v-else>
|
||||
<Posters v-if="videos.like.total !== -1" :list="videos.like.list"></Posters>
|
||||
<Loading v-if="loadings.loading2" :is-full-screen="false"></Loading>
|
||||
<no-more v-else/>
|
||||
</template>
|
||||
</SlideItem>
|
||||
</SlideRowList>
|
||||
</div>
|
||||
@ -233,7 +235,10 @@ export default {
|
||||
onClick={e => this.changeIndicatorIndex(1)}
|
||||
style="width:50%">
|
||||
<span>喜欢</span>
|
||||
<img src={require('../../assets/img/icon/components/follow/lock.png')} alt=""/>
|
||||
{
|
||||
this.localAuthor.is_private === 1 &&
|
||||
<img src={require('../../assets/img/icon/components/follow/lock.png')} alt=""/>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
@ -377,13 +382,16 @@ export default {
|
||||
bus.on('baseSlide-end', () => this.canScroll = true)
|
||||
},
|
||||
methods: {
|
||||
cancelFollow(){
|
||||
this.localAuthor.is_follow = false
|
||||
},
|
||||
changeIndicatorIndex(index) {
|
||||
this.$refs.Indicator.changeIndex(index)
|
||||
},
|
||||
async getAuthor() {
|
||||
this.changeIndex(0, null)
|
||||
// let res = await this.$api.user.author({id: this.author.id})
|
||||
let res = await this.$api.user.author({id: '54884802577'})
|
||||
let res = await this.$api.user.author({id: this.author.id})
|
||||
// let res = await this.$api.user.author({id: '54884802577'})
|
||||
if (res.code === this.SUCCESS) {
|
||||
this.localAuthor = {...this.localAuthor, ...res.data}
|
||||
this.refreshDescHeight()
|
||||
@ -451,7 +459,7 @@ export default {
|
||||
scrollAreaHeight += 60
|
||||
break
|
||||
case 1:
|
||||
scrollAreaHeight += 60 + 40
|
||||
scrollAreaHeight += 60 + this.localAuthor.is_private === 1 ? 0 : 40
|
||||
break
|
||||
case 2:
|
||||
scrollAreaHeight += 60 + 40
|
||||
|
||||
Loading…
Reference in New Issue
Block a user