Authored by yyq

publish

... ... @@ -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 {
... ...
... ... @@ -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>
... ...