disable sharing block
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<!-- <div>
|
||||
<div>
|
||||
<slot></slot>
|
||||
</!-->
|
||||
<div style="border: solid 1px #E6A23C; background-color: rgb(253, 246, 236); padding: 1rem;">
|
||||
</div>
|
||||
<!-- <div style="border: solid 1px #E6A23C; background-color: rgb(253, 246, 236); padding: 1rem;">
|
||||
<div v-show="!authorized" key="not">
|
||||
<p style="color: red; font-weight: 500;">免费解锁全站文档:</p>
|
||||
<li>扫描二维码加微信获得验证码</li>
|
||||
@ -42,7 +42,7 @@
|
||||
</el-alert>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
@ -35,8 +35,12 @@ module.exports = {
|
||||
['script', { type: 'text/javascript' }, `
|
||||
window.onload = function() {
|
||||
if (window.innerWidth > 1360) {
|
||||
console.log('init-wechat')
|
||||
IcsWebSdkJs.init('https://bot.4paradigm.com/web/chat/15516/bbc69136-e42c-4299-ba85-c57685c8417d')
|
||||
if (location.search !== undefined && location.search.indexOf('sharing') >= 0) {
|
||||
console.log('正在分享,不显示机器人')
|
||||
} else {
|
||||
console.log('init-wechat')
|
||||
IcsWebSdkJs.init('https://bot.4paradigm.com/web/chat/15516/bbc69136-e42c-4299-ba85-c57685c8417d')
|
||||
}
|
||||
} else {
|
||||
console.log('窗口太小,不显示机器人')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user