Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(share): H5 分享提示进行浏览器分享
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Aug 6, 2018
1 parent e590ba1 commit 7e0ba83
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
8 changes: 2 additions & 6 deletions src/page/feed/FeedDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,8 @@ export default {
});
},
shareFeed() {
if (this.isWechat) {
this.$Message.success("请使用微信自带分享😳");
return;
}
this.$Message.success("加紧开发中...😳");
if (this.isWechat) this.$Message.success("请点击右上角微信分享😳");
else this.$Message.success("请使用浏览器的分享功能😳");
},
moreAction() {
const defaultActions = [
Expand Down
5 changes: 4 additions & 1 deletion src/page/news/NewsDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,10 @@ export default {
}
});
},
shareNews() {},
shareNews() {
if (this.isWechat) this.$Message.success("请点击右上角微信分享😳");
else this.$Message.success("请使用浏览器的分享功能😳");
},
moreAction() {
const defaultActions = [
{
Expand Down
8 changes: 7 additions & 1 deletion src/page/question/AnswerDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,13 @@ export default {
this.fetching = false;
});
},
shareAnswer() {},
isWechat() {
return this.$store.state.BROWSER.isWechat;
},
shareAnswer() {
if (this.isWechat) this.$Message.success("请点击右上角微信分享😳");
else this.$Message.success("请使用浏览器的分享功能😳");
},
commentAnswer() {
bus.$emit("commentInput", {
onOk: text => {
Expand Down

1 comment on commit 7e0ba83

@mutoe
Copy link
Contributor Author

@mutoe mutoe commented on 7e0ba83 Sep 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refer #511

Please sign in to comment.