uptada
This commit is contained in:
parent
ef14559b87
commit
6383555556
@ -15,23 +15,7 @@
|
|||||||
<p :class="{ active: $route.path.includes('/index') }">
|
<p :class="{ active: $route.path.includes('/index') }">
|
||||||
<a @click="$router.push(homePath)">{{ translations[language].home }}</a>
|
<a @click="$router.push(homePath)">{{ translations[language].home }}</a>
|
||||||
</p>
|
</p>
|
||||||
<!-- 最新活动 -->
|
<!-- 产品与服务:鼠标移入显示子菜单 -->
|
||||||
<p>
|
|
||||||
<a>{{ translations[language].latestActivity }}</a>
|
|
||||||
</p>
|
|
||||||
<!-- ai -->
|
|
||||||
<p>
|
|
||||||
<a>AI</a>
|
|
||||||
</p>
|
|
||||||
<!-- 融合云 -->
|
|
||||||
<p>
|
|
||||||
<a>{{ translations[language].fusionCloud }}</a>
|
|
||||||
</p>
|
|
||||||
<!-- 解决方案 -->
|
|
||||||
<p>
|
|
||||||
<a>{{ translations[language].solutions }}</a>
|
|
||||||
</p>
|
|
||||||
<!-- 生态与合作:鼠标移入显示子菜单 -->
|
|
||||||
<p @mouseleave="sildeOut" @mouseenter="sildeIn(product_service)">
|
<p @mouseleave="sildeOut" @mouseenter="sildeIn(product_service)">
|
||||||
<a>{{ translations[language].ecosystem }}</a>
|
<a>{{ translations[language].ecosystem }}</a>
|
||||||
</p>
|
</p>
|
||||||
@ -124,13 +108,13 @@
|
|||||||
<span class="language-text">{{ language === 'zh' ? 'English' : '中' }}</span>
|
<span class="language-text">{{ language === 'zh' ? 'English' : '中' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- AI -->
|
<!-- AI -->
|
||||||
<i class="el-icon-s-promotion functions"></i>
|
<i class="el-icon-s-promotion functions" @click="handleGoLogin()"></i>
|
||||||
<!-- 客服 -->
|
<!-- 客服 -->
|
||||||
<i class="el-icon-headset functions"></i>
|
<i class="el-icon-headset functions" @click="handleGoLogin()"></i>
|
||||||
<!-- 控制台按钮(已登录) -->
|
<!-- 控制台按钮(已登录) -->
|
||||||
<a @click="goB" v-if="loginState" class="login-btn">{{ translations[language].console }}</a>
|
<a @click="goB" v-if="loginState" class="login-btn">{{ translations[language].console }}</a>
|
||||||
<!-- 消息 -->
|
<!-- 消息 -->
|
||||||
<i class="el-icon-message functions"></i>
|
<i class="el-icon-message functions" @click="handleGoLogin()"></i>
|
||||||
<!-- 登录按钮(未登录) -->
|
<!-- 登录按钮(未登录) -->
|
||||||
<a @click="$router.push({
|
<a @click="$router.push({
|
||||||
path: '/login',
|
path: '/login',
|
||||||
@ -222,7 +206,7 @@
|
|||||||
<li class="inLi" v-for="i in item.secMenu" :key="i.id">
|
<li class="inLi" v-for="i in item.secMenu" :key="i.id">
|
||||||
<span style="position: relative" @mouseenter="sildeSecMenu(i)"
|
<span style="position: relative" @mouseenter="sildeSecMenu(i)"
|
||||||
:class="['twoMenuStyle', secId === i.id ? 'activeSec' : '']">{{ translations[language][i.secTitle]
|
:class="['twoMenuStyle', secId === i.id ? 'activeSec' : '']">{{ translations[language][i.secTitle]
|
||||||
|| i.secTitle }}</span>
|
|| i.secTitle }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@ -275,7 +259,6 @@ import { reqApplyChannel } from "@/api/customer/channel";
|
|||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
// 导入工具函数
|
// 导入工具函数
|
||||||
import { getHomePath } from '@/views/setting/tools'
|
import { getHomePath } from '@/views/setting/tools'
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
name: "TopBox",
|
name: "TopBox",
|
||||||
data() {
|
data() {
|
||||||
@ -299,10 +282,7 @@ export default Vue.extend({
|
|||||||
translations: {
|
translations: {
|
||||||
zh: {
|
zh: {
|
||||||
home: '首页',
|
home: '首页',
|
||||||
latestActivity: '最新活动',
|
ecosystem: '产品与服务',
|
||||||
fusionCloud: '融合云',
|
|
||||||
solutions: '解决方案',
|
|
||||||
ecosystem: '生态与合作',
|
|
||||||
aboutUs: '关于我们',
|
aboutUs: '关于我们',
|
||||||
balance: '余额',
|
balance: '余额',
|
||||||
recharge: '充值',
|
recharge: '充值',
|
||||||
@ -771,6 +751,17 @@ export default Vue.extend({
|
|||||||
if (this.hideTimer) {
|
if (this.hideTimer) {
|
||||||
clearTimeout(this.hideTimer)
|
clearTimeout(this.hideTimer)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
// 处理登录跳转逻辑
|
||||||
|
handleGoLogin() {
|
||||||
|
let token = this.$store.getters.token;
|
||||||
|
if (!token) {
|
||||||
|
// 提示登录
|
||||||
|
this.$message.warning('请先登录哦~');
|
||||||
|
this.$router.push({
|
||||||
|
path: '/login'
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -869,7 +860,7 @@ export default Vue.extend({
|
|||||||
|
|
||||||
.language-toggle {
|
.language-toggle {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin:20px;
|
margin: 20px;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
@ -916,9 +907,10 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.functions{
|
.functions {
|
||||||
padding-right:20px;
|
padding-right: 20px;
|
||||||
&:hover{
|
|
||||||
|
&:hover {
|
||||||
color: #1E6FFF;
|
color: #1E6FFF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -972,7 +964,7 @@ export default Vue.extend({
|
|||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color:#1E6FFF;
|
color: #1E6FFF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user