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

fix(backtop): 问题修复

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