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
2019-02-26 10:50:13 +0800
Commit
6231848df550c02432d39937cc57ce6674b81e7d
1 parent
5a143ed5
publish
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
apps/common/yoho.js
apps/pages/userpage/author.vue
apps/statics/image/userpage/publish.png
apps/common/yoho.js
View file @
6231848
...
...
@@ -614,11 +614,11 @@ const yoho = {
}
},
// 跳转个人信息页
goMineInfo
(
args
,
success
,
fail
)
{
// 跳转种草文章发布页
goGrassPublish
(
args
,
success
,
fail
)
{
if
(
this
.
isYohoBuy
&&
window
.
yohoInterface
)
{
window
.
yohoInterface
.
triggerEvent
(
success
||
nullFun
,
fail
||
nullFun
,
{
method
:
'go.
mineinfo
'
,
method
:
'go.
grasspublish
'
,
arguments
:
args
});
}
else
{
...
...
apps/pages/userpage/author.vue
View file @
6231848
...
...
@@ -56,8 +56,9 @@
<p v-else class="load-text">没有更多了</p>
</div>
</div>
</cube-scroll>
<div v-if="isOwner" class="publish" @click="goGrassPublish"></div>
</Layout>
</template>
...
...
@@ -344,7 +345,7 @@
tip = this.isOwner ? '发布你的第一篇潮人态度' : 'TA还没有分享过哦';
break;
case 1:
tip = this.isOwner ? '快去
种下你的第一棵草吧;' : 'TA还没有种过草哦
';
tip = this.isOwner ? '快去
收藏你的第一篇内容吧' : 'TA还没有收藏内容
';
break;
}
}
...
...
@@ -353,6 +354,9 @@
},
onFollow(follow) {
this.CHANGE_AUTHOR_ATTENTION_STATUS(follow);
},
goGrassPublish() {
this.$yoho.goGrassPublish();
}
},
components: {
...
...
@@ -562,4 +566,15 @@
text-align: center;
}
}
.publish {
width: 100px;
height: 100px;
position: absolute;
bottom: 52px;
right: 40px;
background-image: url('../../statics/image/userpage/publish.png');
background-size: 100% 100%;
z-index: 10;
}
</style>
...
...
apps/statics/image/userpage/publish.png
0 → 100644
View file @
6231848
3.42 KB
Please
register
or
login
to post a comment