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
yyq
6 years ago
Commit
ecc867bbb490a286ec840eef3903d7fc83b6efcc
1 parent
09e0bc29
fix auther
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
20 deletions
apps/pages/userpage/author.vue
apps/pages/userpage/components/water-fall.vue
config/api-map/userpage.js
apps/pages/userpage/author.vue
View file @
ecc867b
...
...
@@ -12,9 +12,6 @@
</div>
</div>
</div>
<template v-slot:opts>
<WidgetShare class="header-share"></WidgetShare>
</template>
</LayoutHeader>
<cube-sticky :pos="scrollY">
<cube-scroll
...
...
@@ -28,19 +25,19 @@
<div class="author-section">
<ul class="author-fans">
<li>
<span class="num">{{baseData.attCount}}</span>
<span class="num">{{baseData.attCount
|| 0
}}</span>
<p class="name">
<span>关注</span>
</p>
</li>
<li>
<span class="num">{{baseData.fansCount}}</span>
<span class="num">{{baseData.fansCount
|| 0
}}</span>
<p class="name">
<span>粉丝</span>
</p>
</li>
<li>
<span class="num">{{baseData.praiseAndfavorite}}</span>
<span class="num">{{baseData.praiseAndfavorite
|| 0
}}</span>
<p class="name">
<span>获赞与收藏</span>
</p>
...
...
@@ -184,7 +181,7 @@
this.autherBaseInfo(this.autherInfo).then(res => {
if (res.code === 200) {
this.baseData = res.data;
this.isOwner =
res.data.isOwner
;
this.isOwner =
true || +res.data.userType === 1
;
this.isAttention = res.data.isAttention === 'Y';
}
});
...
...
@@ -298,7 +295,7 @@
.h-follow {
position: absolute;
top: 0;
right: -
5
0px;
right: -
13
0px;
}
}
...
...
apps/pages/userpage/components/water-fall.vue
View file @
ecc867b
...
...
@@ -11,7 +11,9 @@
<div class="layer-image" :style="{'height': i.coverHeight + 'px'}">
<ImageFormat v-if="!i._temporary" :src="i[srcKey]" :width="coverImageWidth" :height="i.coverHeight"></ImageFormat>
</div>
<div class="description">{{i.content}}</div>
<div class="description">
<p>{{i.content}}</p>
</div>
</router-link>
<div class="attribution">
...
...
@@ -303,14 +305,17 @@ export default {
.description {
line-height: 1.5;
padding: 10px 20px;
word-break: break-all;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
> p {
word-break: break-all;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
}
.attribution {
...
...
config/api-map/userpage.js
View file @
ecc867b
...
...
@@ -2,6 +2,7 @@ module.exports = {
'/api/grass/getGrassUserBaseInfo'
:
{
api
:
'app.grass.getGrassUserBaseInfo'
,
cache
:
true
,
auth
:
true
,
params
:
{
authorUid
:
{
type
:
Number
,
require
:
true
},
authorType
:
{
type
:
Number
,
require
:
true
}
...
...
@@ -9,7 +10,7 @@ module.exports = {
},
'/api/grass/getGrassPubAndFavorNum'
:
{
api
:
'app.grass.getGrassPubAndFavorNum'
,
cache
:
true
,
auth
:
true
,
params
:
{
authorUid
:
{
type
:
Number
,
require
:
true
},
authorType
:
{
type
:
Number
,
require
:
true
}
...
...
@@ -17,7 +18,7 @@ module.exports = {
},
'/api/grass/userPublishedArticleList'
:
{
api
:
'app.grass.userPublishedArticleList'
,
cache
:
true
,
auth
:
true
,
params
:
{
authorUid
:
{
type
:
Number
,
require
:
true
},
authorType
:
{
type
:
Number
,
require
:
true
},
...
...
@@ -27,7 +28,7 @@ module.exports = {
},
'/api/grass/userFavouriteArticleList'
:
{
api
:
'app.grass.userFavouriteArticleList'
,
cache
:
true
,
auth
:
true
,
params
:
{
authorUid
:
{
type
:
Number
,
require
:
true
},
authorType
:
{
type
:
Number
,
require
:
true
},
...
...
Please
register
or
login
to post a comment