提交 6fcfbdeb authored 作者: xiaotuoluo's avatar xiaotuoluo

更换聊天

上级 64242ab2
......@@ -21,3 +21,4 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
dist.zip
......@@ -34,10 +34,26 @@
position: relative;
container-type: inline-size;
}
</style>
</head>
<script src="https://plugin-code.salesmartly.com/js/project_479304_493947_1759495212.js"></script>
<script>
// 隐藏图标(注: 代码放在引入聊天插件js之后执行)
window.__ssc.setting = { hideIcon: true }; //true为隐藏,false为不隐藏
</script>
<body>
<script defer src="/chat.js"></script> <!-- 你的代码放在官方脚本之后 -->
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong>
......
......@@ -170,4 +170,5 @@ p {
/* margin-left: 0 auto;
left: 0;
right: 0; */
}
\ No newline at end of file
}
......@@ -314,7 +314,7 @@
</template>
<script>
import { openChat } from '@/utils/chat'
import { openChat1 } from '@/utils/chat'
// import Footer from '@/components/footer'
// import index2 from './index2.vue'
......@@ -348,7 +348,7 @@ export default {
this.$router.replace(router)
},
openSecondChat(){
openChat()
openChat1()
}
},
}
......
......@@ -110,7 +110,7 @@
<script>
import { jiudianList,lunbo } from '@/api/contract'
import { openChat } from '@/utils/chat'
import { openChat1 } from '@/utils/chat'
import { nowLocationUrl } from '@/utils/tools'
// import Footer from '@/components/footer';
......@@ -167,7 +167,7 @@ export default {
this.$router.push({ path: "/detail",query: { id: String(item.id) } },)
},
openHotelChat(){
openChat()
openChat1()
}
},
mounted() {
......
......@@ -8,7 +8,7 @@
class="van-image__img" />
</div>
</div>
<div @click="onOpenChat" class="van-nav-bar__right">
<div @click="onopenChat1" class="van-nav-bar__right">
<i class="van-icon van-icon-chat-o" style="color:#fff; font-size:24px;"></i>
</div>
</div>
......@@ -97,7 +97,7 @@ import tagImg from '@/assets/tag.jpg'
import starsImg from '@/assets/stars.jpg'
import { nowLocationUrl } from '@/utils/tools'
import { lunbo,xuanfeiList,gongGao } from '@/api/contract'
import { openChat } from '@/utils/chat'
import { openChat1 } from '@/utils/chat'
export default {
data() {
......@@ -229,21 +229,21 @@ export default {
// console.log('图片地址:',nowLocationUrl + imgUrl)
return nowLocationUrl + imgUrl
},
onOpenChat(){
openChat()
onopenChat1(){
openChat1()
}
}
}
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/68cbe92fb285fd192a490592/1j5e8dp99';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
// (function(){
// var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
// s1.async=true;
// s1.src='https://embed.tawk.to/68cbe92fb285fd192a490592/1j5e8dp99';
// s1.charset='UTF-8';
// s1.setAttribute('crossorigin','*');
// s0.parentNode.insertBefore(s1,s0);
// })();
</script>
<style lang="scss" scoped>
......
......@@ -66,7 +66,7 @@ import img4 from '@/assets/user/4.jpg'
import img5 from '@/assets/user/5.jpg'
import { xuanfeiDetail } from '@/api/contract'
import { nowLocationUrl } from '@/utils/tools'
import { openChat } from '@/utils/chat'
import { openChat1 } from '@/utils/chat'
export default{
data(){
......@@ -117,7 +117,7 @@ export default{
this.$router.push({path:'/imgShow',query:{nowIndex:this.nowImgIndex,data:payload}})
},
openDetailChat(){
openChat()
openChat1()
}
}
}
......
......@@ -144,7 +144,7 @@
<script>
import { languageList } from '@/lang';
import { openChat } from '@/utils/chat';
import { openChat1 } from '@/utils/chat';
import emitter from '@/utils/emitter'
export default {
data() {
......@@ -341,7 +341,7 @@ export default {
this.$router.push({ path: "/Login" });
},
openMyChat(){
openChat()
openChat1()
}
},
created() {
......
export function openChat() {
export function openChat1() {
if (window.Tawk_API.showWidget) window.Tawk_API.showWidget();
if (window.Tawk_API.maximize) window.Tawk_API.maximize();
}
\ No newline at end of file
// if (window.Tawk_API.showWidget) window.Tawk_API.showWidget();
// if (window.Tawk_API.maximize) window.Tawk_API.maximize();
window.ssq.push('chatOpen'); // 打开聊天窗口
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论