Authored by 张文文

修改文案

... ... @@ -19,7 +19,7 @@
<div class="back-img">
<div class="blank-main">
<WidgetAvatar class="avatar-box" :class="{'avatar-opacity': authorBaseData.showAvatar}" :src="authorBaseData.headIco" :group="1" :width="100" :height="100"></WidgetAvatar>
<div class="author-name">{{authorBaseData.nickName}}</div>
<div class="author-name">{{getNicknameContent(authorBaseData.nickName)}}</div>
<p class="author-sign">{{getSignatureContent(authorBaseData.signature)}}</p>
<div v-if="authorBaseData.skillsDesc" class="author-iden">
<span v-show="identityClass" class="identity-icon" :class="identityClass"></span>
... ... @@ -270,6 +270,13 @@ export default {
this.fetchData(+params.id, params.type || 1);
}
},
getNicknameContent(content = '') {
if (content.length <= 10) {
return content;
} else {
return `${content.substring(0, 10)}...`;
}
},
getSignatureContent(content = '') {
if (content.length <= 20) {
if (content.length > 0) {
... ... @@ -412,7 +419,7 @@ export default {
this[this._apiNamePre + 'BaseInfo'](this.authorInfo).then(data => {
data.isAttention = data.hasAttention === 'Y';
data.showAvatar = true;
this.titleName = data.nickName.length > 15 ? data.nickName.substring(0, 15) + '...' : data.nickName;
this.titleName = data.nickName.length > 10 ? data.nickName.substring(0, 10) + '...' : data.nickName;
this.authorBaseData = data;
this.isOwner = +data.userType === 1;
this.shareData = {...data, ...this.authorInfo};
... ... @@ -520,10 +527,10 @@ export default {
if (!list.length && !totalCount) {
switch (this.activeIndex) {
case 0:
tip = this.isOwner ? '发布你的第一篇潮人态度' : 'TA还没有分享过哦';
tip = this.isOwner ? '发布你的第一篇笔记,下单可减XX元' : 'TA还没有分享过哦';
break;
case 1:
tip = this.isOwner ? '快去收藏你的第一篇内容吧' : 'TA还没有收藏内容';
tip = this.isOwner ? '快去社区发现潮流好内容吧' : 'TA还没有收藏内容';
break;
default:
break;
... ... @@ -978,8 +985,7 @@ export default {
font-size: 28px;
color: #ddd;
position: absolute;
top: 0;
bottom: 240px;
top: 360px;
}
}
... ...
{
"name": "yoho-community-web",
"version": "6.9.11-beta14",
"version": "6.9.11-beta15",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...