Commit 1b243d85 authored by 郭志伟's avatar 郭志伟

fix(share): 调整分享展示逻辑

parent c01bbbc5
...@@ -23,6 +23,7 @@ import Bridge from '@qg/js-bridge'; ...@@ -23,6 +23,7 @@ import Bridge from '@qg/js-bridge';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { isApp, isWxMp, isWechat, isH5Normal } from '@/service/utils.service'; import { isApp, isWxMp, isWechat, isH5Normal } from '@/service/utils.service';
import api from '@/api/editor.api'; import api from '@/api/editor.api';
import localStorage from '@/service/localStorage.service';
import LaunchWeapp from './components/LaunchWeapp.vue'; import LaunchWeapp from './components/LaunchWeapp.vue';
import LaunchApp from './components/LaunchApp.vue'; import LaunchApp from './components/LaunchApp.vue';
const SHARE_CONFIG = { const SHARE_CONFIG = {
...@@ -50,7 +51,7 @@ export default { ...@@ -50,7 +51,7 @@ export default {
mpSchema: '', mpSchema: '',
link: '', link: '',
shareInfo: {}, shareInfo: {},
showShareOverlay: isWechat || isH5Normal, showShareOverlay: ((isWechat && !isWxMp) || isH5Normal) && !localStorage.get('vccChannel'),
isWechat isWechat
}; };
}, },
...@@ -62,7 +63,7 @@ export default { ...@@ -62,7 +63,7 @@ export default {
backTopList() { backTopList() {
if (this.pageData.props && this.pageData.props.btAttachVal) { if (this.pageData.props && this.pageData.props.btAttachVal) {
const { btAttachVal, showShare } = this.pageData.props; const { btAttachVal, showShare } = this.pageData.props;
showShare && btAttachVal.push(SHARE_CONFIG); showShare && (isApp || isWxMp) && btAttachVal.push(SHARE_CONFIG);
return btAttachVal; return btAttachVal;
} }
return []; return [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment