对接客服

This commit is contained in:
范强强
2023-08-15 14:35:40 +08:00
parent b40218f811
commit 2753359bdb
+31 -13
View File
@@ -1,8 +1,16 @@
<template> <template>
<div id="app"> <div id="app">
<!-- <router-view v-if="!isBoolean"/>--> <iframe
src="https://iftappwelink.foton.com.cn/ke_fu_ui/?groupId=596843564600706080"
class="customer"
height="490"
width="440"
frameborder="0"
scrolling="0"
></iframe>
<!-- <router-view v-if="!isBoolean"/>-->
<span v-if="this.$route.name === 'Login'|| !isBoolean"> <span v-if="this.$route.name === 'Login'|| !isBoolean">
<router-view /> <router-view/>
</span> </span>
<span v-else> <span v-else>
<div class="content-box" v-if="isCollapse"> <div class="content-box" v-if="isCollapse">
@@ -82,14 +90,14 @@
</template> </template>
<script> <script>
import {mapGetters, mapState} from 'vuex' import {mapGetters, mapState} from 'vuex'
import {webLoginType,ssoLogoutUrlDev} from '@/sysConfig' import {webLoginType, ssoLogoutUrlDev} from '@/sysConfig'
export default { export default {
name: 'App', name: 'App',
data() { data() {
return { return {
isBoolean: false isBoolean: false,
} }
}, },
created() { created() {
@@ -108,9 +116,9 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
// 获取页面中已注册过ref的所有的子组件。 // 获取页面中已注册过ref的所有的子组件。
let refList = '' let refList = ''
if(this.$refs.appView1){ if (this.$refs.appView1) {
refList = this.$refs.appView1.$children[0].$refs; refList = this.$refs.appView1.$children[0].$refs;
}else{ } else {
refList = this.$refs.appView2.$children[0].$refs; refList = this.$refs.appView2.$children[0].$refs;
} }
if (refList) { if (refList) {
@@ -219,7 +227,7 @@ export default {
//执行刷新操作,这里我没有写this.$route.go(0),因为整个页面抖动不是很友好 //执行刷新操作,这里我没有写this.$route.go(0),因为整个页面抖动不是很友好
//现将app.vue下面的 头部组件,菜单组件,内容组件隐藏再放出来,实现刷新一样的效果 //现将app.vue下面的 头部组件,菜单组件,内容组件隐藏再放出来,实现刷新一样的效果
console.log('我要刷新页面了') console.log('我要刷新页面了')
} },
}, },
computed: { computed: {
// 获取用户头像 // 获取用户头像
@@ -250,7 +258,7 @@ export default {
&& this.$route.name !== 'AdvancedSearchExternal' && this.$route.name !== 'LoginVerifyNoEncryption' && this.$route.name !== 'AdvancedSearchExternal' && this.$route.name !== 'LoginVerifyNoEncryption'
&& this.$route.name !== 'blankPage' && this.$route.name !== 'processedPage' && this.$route.name !== 'blankPage' && this.$route.name !== 'processedPage'
&& this.$route.name !== 'loginStandDetails' && this.$route.name !== 'error' && this.$route.name !== 'loginStandDetails' && this.$route.name !== 'error'
&& this.$route.name !== 'phoneHome'&& this.$route.name !== 'databaseSearch' && this.$route.name !== 'phoneHome' && this.$route.name !== 'databaseSearch'
&& this.$route.name !== 'standDynamics' && this.$route.name !== 'domesticStand' && this.$route.name !== 'standDynamics' && this.$route.name !== 'domesticStand'
&& this.$route.name !== 'domesticDetails' && this.$route.name !== 'LoginVerifyPhone' && this.$route.name !== 'domesticDetails' && this.$route.name !== 'LoginVerifyPhone'
&& this.$route.name !== 'zlzxDetails' && this.$route.name !== 'LoginVerifyPhone' && this.$route.name !== 'zlzxDetails' && this.$route.name !== 'LoginVerifyPhone'
@@ -368,11 +376,11 @@ export default {
// clearInterval(this.intervalForLogin) // clearInterval(this.intervalForLogin)
// clearInterval(this.intervalForHome) // clearInterval(this.intervalForHome)
} }
} }
</script> </script>
<style lang="less"> <style lang="less">
#app { #app {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
@@ -381,6 +389,7 @@ export default {
//background: url('~@/assets/images/shangqi/home/BG.png') no-repeat; //background: url('~@/assets/images/shangqi/home/BG.png') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
font-family: MicrosoftYaHei, 微软雅黑; font-family: MicrosoftYaHei, 微软雅黑;
& > div { & > div {
position: absolute; position: absolute;
top: 0; top: 0;
@@ -392,6 +401,7 @@ export default {
.el-main { .el-main {
padding: 15px 10px 0 10px; padding: 15px 10px 0 10px;
} }
.content-box { .content-box {
display: flex; display: flex;
height: 100%; height: 100%;
@@ -427,5 +437,13 @@ export default {
/deep/ .el-menu--vertical { /deep/ .el-menu--vertical {
background: red; background: red;
} }
} }
.customer {
position: absolute;
right: 30px;
bottom: 20px;
z-index: 1000;
}
</style> </style>