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

更换聊天

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