Commit cb25117c authored by 郭志伟's avatar 郭志伟

fix(backtop): 问题修复

parent 81c086f6
......@@ -13,7 +13,7 @@
</cr-popover>
<div v-if="showShareOverlay" class="share-overlay" @click.self="onShareOverlayClick">
<launch-weapp :jump-url="mpSchema" v-if="isWechat && shareOpenMethod === 1" />
<launch-app :jump-url="link" app-schema="appSchema" v-if="isWechat && shareOpenMethod === 2" />
<launch-app :jump-url="link" :app-schema="appSchema" v-if="isWechat && shareOpenMethod === 2" />
</div>
</div>
......@@ -66,8 +66,9 @@ export default {
backTopList() {
if (this.pageData.props && this.pageData.props.btAttachVal) {
const { btAttachVal, showShare } = this.pageData.props;
showShare && (isApp || isWxMp) && btAttachVal.push(SHARE_CONFIG);
return btAttachVal;
const btAttachValDeep = JSON.parse(JSON.stringify(btAttachVal));
showShare && (isApp || isWxMp) && btAttachValDeep.push(SHARE_CONFIG);
return btAttachValDeep;
}
return [];
},
......@@ -124,7 +125,7 @@ export default {
initShareInfo() {
if (EASY_ENV_IS_NODE) return;
const { coverImage, pageName, pageDescribe, shareCoverImage } = this.pageInfo;
const link = `${window.location.origin}${window.location.pathname}?vccToken={token}&vccChannel={registerFrom}`;
const link = `${window.location.origin}${window.location.pathname}`;
this.shareInfo = {
event: "showShareView",
data: {
......@@ -169,6 +170,7 @@ export default {
</script>
<style lang="less" scoped>
@deep: ~'>>>';
.wxmp-tip {
position: fixed !important;
top: -32px;
......@@ -178,21 +180,26 @@ export default {
background-color: #fff;
color: #333;
box-shadow: 0 2px 12px 0 rgba(100, 101, 102, 28%);
&__reference {
font-size: 0;
}
&__angle::before {
border-color: transparent transparent rgb(255 255 255);
}
}
&__content {
width: 160px;
.cr-icon--weapp-nav {
vertical-align: sub;
margin: 0 5px;
}
}
}
.share-overlay {
position: fixed;
top: 0;
......
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