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

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

parent c01bbbc5
......@@ -23,6 +23,7 @@ import Bridge from '@qg/js-bridge';
import { mapGetters } from 'vuex';
import { isApp, isWxMp, isWechat, isH5Normal } from '@/service/utils.service';
import api from '@/api/editor.api';
import localStorage from '@/service/localStorage.service';
import LaunchWeapp from './components/LaunchWeapp.vue';
import LaunchApp from './components/LaunchApp.vue';
const SHARE_CONFIG = {
......@@ -50,7 +51,7 @@ export default {
mpSchema: '',
link: '',
shareInfo: {},
showShareOverlay: isWechat || isH5Normal,
showShareOverlay: ((isWechat && !isWxMp) || isH5Normal) && !localStorage.get('vccChannel'),
isWechat
};
},
......@@ -62,7 +63,7 @@ export default {
backTopList() {
if (this.pageData.props && this.pageData.props.btAttachVal) {
const { btAttachVal, showShare } = this.pageData.props;
showShare && btAttachVal.push(SHARE_CONFIG);
showShare && (isApp || isWxMp) && btAttachVal.push(SHARE_CONFIG);
return btAttachVal;
}
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