|
|
@@ -1,7 +1,8 @@
|
|
|
<script setup lang="ts">
|
|
|
+import { ref } from "vue";
|
|
|
import { useRouter } from "vue-router";
|
|
|
const router = useRouter()
|
|
|
-
|
|
|
+const aiIframeState = ref(false)//是否显示aiIframe
|
|
|
if (typeof window !== 'undefined' && typeof window.globalThis.addEventListener === 'function') {
|
|
|
globalThis.scrollTo(0, 0)
|
|
|
globalThis.addEventListener('scroll', function() {
|
|
|
@@ -21,6 +22,9 @@ function scrollToTop() {
|
|
|
behavior: "smooth"
|
|
|
})
|
|
|
}
|
|
|
+function showAiIframe(){
|
|
|
+ aiIframeState.value = !aiIframeState.value
|
|
|
+}
|
|
|
</script>
|
|
|
<template>
|
|
|
<div class="feedBackBox">
|
|
|
@@ -54,11 +58,23 @@ function scrollToTop() {
|
|
|
<img src="@/assets/img/qr_codeF1.png" alt="">
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="contactAi">
|
|
|
+ <img src="@/assets/img/ai.png" alt="" @click="showAiIframe">
|
|
|
+ <div class="content" v-if="aiIframeState">
|
|
|
+ <iframe
|
|
|
+ src="https://ai.usky.cn/chatbot/KwhqwXmI5KFHOP5v"
|
|
|
+ style="width: 100%; height: 100%; margin:0 0;"
|
|
|
+ frameborder="0"
|
|
|
+ id="aiIframe"
|
|
|
+ allow="microphone">
|
|
|
+ </iframe>
|
|
|
+ </div>
|
|
|
+ <div class="aiMask" v-if="aiIframeState">
|
|
|
+ <img src="@/assets/img/logo-text.png" alt="">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div @click="scrollToTop" id="scroll-up" style="opacity:0">
|
|
|
<img src="@/assets/img/home/f_top.png" alt="">
|
|
|
</div>
|
|
|
</div>
|
|
|
-</template>
|
|
|
-<style lang="scss" scoped>
|
|
|
-
|
|
|
-</style>
|
|
|
+</template>
|