Authored by yyq

fix author page

... ... @@ -29,23 +29,25 @@
@scroll="onScrollHandle"
@scroll-end="onScrollEndHandle"
@before-scroll-start="beforeScrollStartHandle">
<div ref="authorProfile" class="author-profile">
<WidgetAvatar class="avatar-box" :class="{'avatar-opacity': authorBaseData.showAvatar}" :src="authorBaseData.headIco" :group="authorBaseData.authGroupId" :width="100" :height="100"></WidgetAvatar>
<div class="author-section">
<ul class="author-fans">
<li v-for="item in fansList" :key="item.key">
<div class="click-wrap" @click="toPage(item.type)"></div>
<span class="num">{{authorBaseData[item.key] || 0}}</span>
<p class="name"><span>{{item.name}}</span></p>
</li>
</ul>
<div class="operate-wrap">
<a v-if="isOwner" class="operate-btn btn-user-edit" :href="mineInfoUrl">编辑个人资料</a>
<WidgetFollow v-if="!isOwner" class="operate-btn" :author-uid="authorInfo.authorUid" :author-type="authorInfo.authorType" :follow="isAttention" @on-follow="follow => onFollow(follow)" :pos-id="sceneId"></WidgetFollow>
<div ref="authorProfile">
<div class="author-profile">
<WidgetAvatar class="avatar-box" :class="{'avatar-opacity': authorBaseData.showAvatar}" :src="authorBaseData.headIco" :group="authorBaseData.authGroupId" :width="100" :height="100"></WidgetAvatar>
<div class="author-section">
<ul class="author-fans">
<li v-for="item in fansList" :key="item.key">
<div class="click-wrap" @click="toPage(item.type)"></div>
<span class="num">{{authorBaseData[item.key] || 0}}</span>
<p class="name"><span>{{item.name}}</span></p>
</li>
</ul>
<div class="operate-wrap">
<a v-if="isOwner" class="operate-btn btn-user-edit" :href="mineInfoUrl">编辑个人资料</a>
<WidgetFollow v-if="!isOwner" class="operate-btn" :author-uid="authorInfo.authorUid" :author-type="authorInfo.authorType" :follow="isAttention" @on-follow="follow => onFollow(follow)" :pos-id="sceneId"></WidgetFollow>
</div>
</div>
</div>
<p v-if="authorBaseData.signature" class="author-desc">{{authorBaseData.signature}}</p>
</div>
<p v-if="authorBaseData.signature" class="author-desc">{{authorBaseData.signature}}</p>
<div ref="tabBlock" class="tab-block">
<FavTabBlock :tabs-num="tabsNum" :active-index="activeIndex" @change="changeTab"></FavTabBlock>
</div>
... ... @@ -594,8 +596,9 @@ export default {
}
.author-desc {
margin: 20px 30px;
padding: 20px 30px;
font-size: 24px;
line-height: 1.4;
font-weight: 300;
overflow: hidden;
text-overflow: ellipsis;
... ...