Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
张文文
6 years ago
Commit
d9e3d63a23e9b494a6772a183a3a9ca7aabf2dc5
1 parent
e94144c6
修改文案
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
apps/pages/userpage/components/author.vue
package.json
apps/pages/userpage/components/author.vue
View file @
d9e3d63
...
...
@@ -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 > 1
5 ? data.nickName.substring(0, 15
) + '...' : data.nickName;
this.titleName = data.nickName.length > 1
0 ? 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;
}
}
...
...
package.json
View file @
d9e3d63
{
"name"
:
"yoho-community-web"
,
"version"
:
"6.9.11-beta1
4
"
,
"version"
:
"6.9.11-beta1
5
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
Please
register
or
login
to post a comment