|
@@ -99,12 +99,24 @@
|
|
draggable="false"
|
|
draggable="false"
|
|
>
|
|
>
|
|
</button>
|
|
</button>
|
|
- <button class="share">
|
|
|
|
|
|
+ <button
|
|
|
|
+ v-click-outside.click="onClickOutsideShare"
|
|
|
|
+ class="share"
|
|
|
|
+ @click="isShowShareMenu = !isShowShareMenu"
|
|
|
|
+ >
|
|
<img
|
|
<img
|
|
:src="require(`@/assets/images/btn-share-${isDarkTheme ? 'dark' : 'light'}.png`)"
|
|
:src="require(`@/assets/images/btn-share-${isDarkTheme ? 'dark' : 'light'}.png`)"
|
|
alt=""
|
|
alt=""
|
|
draggable="false"
|
|
draggable="false"
|
|
>
|
|
>
|
|
|
|
+ <div
|
|
|
|
+ class="inner-menu social-share"
|
|
|
|
+ data-sites="weibo, wechat, qq"
|
|
|
|
+ :style="{
|
|
|
|
+ height: isShowShareMenu ? '154px' : '100%',
|
|
|
|
+ opacity: isShowShareMenu ? '1' : '0',
|
|
|
|
+ }"
|
|
|
|
+ />
|
|
</button>
|
|
</button>
|
|
</menu>
|
|
</menu>
|
|
|
|
|
|
@@ -156,6 +168,7 @@ export default {
|
|
isShowHelp: false,
|
|
isShowHelp: false,
|
|
title: this.$gConfigInfo.objInfo[this.$route.query.m],
|
|
title: this.$gConfigInfo.objInfo[this.$route.query.m],
|
|
detail: this.$gConfigTxt.txtObj[this.$route.query.m],
|
|
detail: this.$gConfigTxt.txtObj[this.$route.query.m],
|
|
|
|
+ isShowShareMenu: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -198,6 +211,11 @@ export default {
|
|
})
|
|
})
|
|
document.addEventListener('model-loaded', this.onModelLoad)
|
|
document.addEventListener('model-loaded', this.onModelLoad)
|
|
},
|
|
},
|
|
|
|
+ mounted() {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ window.socialShare('.social-share')
|
|
|
|
+ }, 1000)
|
|
|
|
+ },
|
|
beforeUnmount() {
|
|
beforeUnmount() {
|
|
const fdageUIElem = document.querySelector('#fdageUI')
|
|
const fdageUIElem = document.querySelector('#fdageUI')
|
|
if (fdageUIElem && fdageUIElem.parentNode) {
|
|
if (fdageUIElem && fdageUIElem.parentNode) {
|
|
@@ -236,6 +254,9 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}, 1000),
|
|
}, 1000),
|
|
|
|
+ onClickOutsideShare() {
|
|
|
|
+ this.isShowShareMenu = false
|
|
|
|
+ }
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -327,6 +348,31 @@ export default {
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ > button.share {
|
|
|
|
+ position: relative;
|
|
|
|
+ > .inner-menu {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ border-radius: calc(32px / 2);
|
|
|
|
+ transition: all 0.2s;
|
|
|
|
+ z-index: -1;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-evenly;
|
|
|
|
+ padding-bottom: 34px;
|
|
|
|
+ background-color: #444;
|
|
|
|
+ > button {
|
|
|
|
+ width: 27px;
|
|
|
|
+ height: 27px;
|
|
|
|
+ background-size: cover;
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ background-position: center center;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
> button.jump {
|
|
> button.jump {
|
|
@@ -465,6 +511,9 @@ export default {
|
|
> img {
|
|
> img {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ > button.share {
|
|
|
|
+ display: none;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
> button.jump {
|
|
> button.jump {
|
|
@@ -505,13 +554,6 @@ export default {
|
|
padding: 0 27px 0 1px !important;
|
|
padding: 0 27px 0 1px !important;
|
|
}
|
|
}
|
|
|
|
|
|
- .el-switch.is-checked .el-switch__core .el-switch__inner {
|
|
|
|
- padding: 0 0px 0 21px !important;
|
|
|
|
- }
|
|
|
|
- .el-switch .el-switch__core .el-switch__inner {
|
|
|
|
- padding: 0 21px 0 1px !important;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
.el-switch .el-switch__core .el-switch__action {
|
|
.el-switch .el-switch__core .el-switch__action {
|
|
z-index: -1;
|
|
z-index: -1;
|
|
background-color: #000 !important;
|
|
background-color: #000 !important;
|
|
@@ -526,8 +568,57 @@ export default {
|
|
.el-switch.is-checked .el-switch__core .el-switch__inner .is-icon {
|
|
.el-switch.is-checked .el-switch__core .el-switch__inner .is-icon {
|
|
color: #000 !important;
|
|
color: #000 !important;
|
|
}
|
|
}
|
|
|
|
+ .mobile .el-switch.is-checked .el-switch__core .el-switch__inner {
|
|
|
|
+ padding: 0 0px 0 21px !important;
|
|
|
|
+ }
|
|
|
|
+ .mobile .el-switch .el-switch__core .el-switch__inner {
|
|
|
|
+ padding: 0 21px 0 1px !important;
|
|
|
|
+ }
|
|
.mobile .el-switch.is-checked .el-switch__core .el-switch__inner .is-icon {
|
|
.mobile .el-switch.is-checked .el-switch__core .el-switch__inner .is-icon {
|
|
transform: rotate(-90deg);
|
|
transform: rotate(-90deg);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .social-share .social-share-icon {
|
|
|
|
+ width: 27px !important;
|
|
|
|
+ height: 27px !important;
|
|
|
|
+ border: none !important;
|
|
|
|
+ background-size: cover !important;
|
|
|
|
+ background-repeat: no-repeat !important;
|
|
|
|
+ background-position: center center !important;
|
|
|
|
+ transition: initial !important;
|
|
|
|
+ }
|
|
|
|
+ .social-share .icon-weibo:before {
|
|
|
|
+ display: none !important;
|
|
|
|
+ }
|
|
|
|
+ .social-share .icon-wechat:before {
|
|
|
|
+ display: none !important;
|
|
|
|
+ }
|
|
|
|
+ .social-share .icon-qq:before {
|
|
|
|
+ display: none !important;
|
|
|
|
+ }
|
|
|
|
+ .social-share .icon-weibo {
|
|
|
|
+ background-image: url(@/assets/images/btn-share-weibo-normal.png) !important;
|
|
|
|
+ background-color: initial !important;
|
|
|
|
+ }
|
|
|
|
+ .social-share .icon-wechat {
|
|
|
|
+ background-image: url(@/assets/images/btn-share-weixin-normal.png) !important;
|
|
|
|
+ background-color: initial !important;
|
|
|
|
+ }
|
|
|
|
+ .social-share .icon-qq {
|
|
|
|
+ background-image: url(@/assets/images/btn-share-qq-normal.png) !important;
|
|
|
|
+ background-color: initial !important;
|
|
|
|
+ }
|
|
|
|
+ .social-share .icon-weibo:hover {
|
|
|
|
+ background-image: url(@/assets/images/btn-share-weibo-active.png) !important;
|
|
|
|
+ background-color: initial !important;
|
|
|
|
+ }
|
|
|
|
+ .social-share .icon-wechat:hover {
|
|
|
|
+ background-image: url(@/assets/images/btn-share-weixin-active.png) !important;
|
|
|
|
+ background-color: initial !important;
|
|
|
|
+ }
|
|
|
|
+ .social-share .icon-qq:hover {
|
|
|
|
+ background-image: url(@/assets/images/btn-share-qq-active.png) !important;
|
|
|
|
+ background-color: initial !important;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|