uptada
This commit is contained in:
parent
ef14559b87
commit
6383555556
@ -15,23 +15,7 @@
|
||||
<p :class="{ active: $route.path.includes('/index') }">
|
||||
<a @click="$router.push(homePath)">{{ translations[language].home }}</a>
|
||||
</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)">
|
||||
<a>{{ translations[language].ecosystem }}</a>
|
||||
</p>
|
||||
@ -124,13 +108,13 @@
|
||||
<span class="language-text">{{ language === 'zh' ? 'English' : '中' }}</span>
|
||||
</div>
|
||||
<!-- 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>
|
||||
<!-- 消息 -->
|
||||
<i class="el-icon-message functions"></i>
|
||||
<i class="el-icon-message functions" @click="handleGoLogin()"></i>
|
||||
<!-- 登录按钮(未登录) -->
|
||||
<a @click="$router.push({
|
||||
path: '/login',
|
||||
@ -222,7 +206,7 @@
|
||||
<li class="inLi" v-for="i in item.secMenu" :key="i.id">
|
||||
<span style="position: relative" @mouseenter="sildeSecMenu(i)"
|
||||
:class="['twoMenuStyle', secId === i.id ? 'activeSec' : '']">{{ translations[language][i.secTitle]
|
||||
|| i.secTitle }}</span>
|
||||
|| i.secTitle }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@ -275,7 +259,6 @@ import { reqApplyChannel } from "@/api/customer/channel";
|
||||
import store from "@/store";
|
||||
// 导入工具函数
|
||||
import { getHomePath } from '@/views/setting/tools'
|
||||
|
||||
export default Vue.extend({
|
||||
name: "TopBox",
|
||||
data() {
|
||||
@ -299,10 +282,7 @@ export default Vue.extend({
|
||||
translations: {
|
||||
zh: {
|
||||
home: '首页',
|
||||
latestActivity: '最新活动',
|
||||
fusionCloud: '融合云',
|
||||
solutions: '解决方案',
|
||||
ecosystem: '生态与合作',
|
||||
ecosystem: '产品与服务',
|
||||
aboutUs: '关于我们',
|
||||
balance: '余额',
|
||||
recharge: '充值',
|
||||
@ -771,6 +751,17 @@ export default Vue.extend({
|
||||
if (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 {
|
||||
cursor: pointer;
|
||||
margin:20px;
|
||||
margin: 20px;
|
||||
width: 60px;
|
||||
text-align: center;
|
||||
border-radius: 4px;
|
||||
@ -916,9 +907,10 @@ export default Vue.extend({
|
||||
}
|
||||
}
|
||||
|
||||
.functions{
|
||||
padding-right:20px;
|
||||
&:hover{
|
||||
.functions {
|
||||
padding-right: 20px;
|
||||
|
||||
&:hover {
|
||||
color: #1E6FFF;
|
||||
}
|
||||
}
|
||||
@ -972,7 +964,7 @@ export default Vue.extend({
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
color:#1E6FFF;
|
||||
color: #1E6FFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user