|
@@ -74,7 +74,7 @@ const loginOut = () => {
|
|
|
}
|
|
|
const menu = (i: number) => {
|
|
|
let token = localStorage.getItem('token')
|
|
|
- if (i === 0 || i === 3) {
|
|
|
+ if (i !== 1) {
|
|
|
activeIndex.value = i
|
|
|
localStorage.setItem('activeIndex', String(i))
|
|
|
}
|
|
@@ -87,7 +87,8 @@ const menu = (i: number) => {
|
|
|
break;
|
|
|
case 2:
|
|
|
if (token) {
|
|
|
- window.open("http://open-doc.liebaoai.cn:88/", "_blank");
|
|
|
+ // window.open("http://open-doc.liebaoai.cn:88/", "_blank");
|
|
|
+ router.push('/docsCenter')
|
|
|
} else {
|
|
|
router.push('/login')
|
|
|
message.warning('请登录后再点击文档中心!')
|
|
@@ -115,7 +116,7 @@ const menu = (i: number) => {
|
|
|
<div class="container">
|
|
|
<div class="left" @click="router.push('/')">
|
|
|
<img v-if="isTop" class="img" src="@/assets/images/1.png" alt="">
|
|
|
- <img v-else class="img" src="@/assets/images/1-1.png" alt="">
|
|
|
+ <img v-else class="img" src="@/assets/images/1-2.png" alt="">
|
|
|
<div class="name">优巨引擎·开放平台</div>
|
|
|
</div>
|
|
|
<div class="right">
|
|
@@ -125,12 +126,12 @@ const menu = (i: number) => {
|
|
|
<template v-if="nickName">
|
|
|
<a-tooltip placement="bottom" color="white">
|
|
|
<template #title>
|
|
|
- <div class="flex items-center px-10px py-20px cursor-pointer hover:bg-gray-300">
|
|
|
+ <!-- <div class="flex items-center px-10px py-20px cursor-pointer hover:bg-gray-300">
|
|
|
<img class="w-18px h-18px mr-10px" src="@/assets/images/18-1.png" alt="">
|
|
|
<div class="text-14px font-500 text-dark-400">通知</div>
|
|
|
</div>
|
|
|
- <div style="height: 2px; background-color: #F0F0F0"></div>
|
|
|
- <div @click="visible = true" class="flex items-center px-10px py-20px cursor-pointer hover:bg-gray-300">
|
|
|
+ <div style="height: 2px; background-color: #F0F0F0"></div> -->
|
|
|
+ <div @click="loginOut" class="flex items-center px-10px py-20px cursor-pointer hover:bg-gray-300">
|
|
|
<img class="w-18px h-18px mr-10px" src="@/assets/images/18-2.png" alt="">
|
|
|
<div class="text-14px font-500 text-dark-400">账号退出</div>
|
|
|
</div>
|
|
@@ -159,7 +160,7 @@ const menu = (i: number) => {
|
|
|
<!-- <div class="name">优巨引擎</div> -->
|
|
|
<div class="agreement">
|
|
|
<div @click="showAgreement = true" class="cursor-pointer">开发者服务协议</div>
|
|
|
- <div> | 苏州优巨引擎科技有限公司</div>
|
|
|
+ <div> | 苏州优巨引擎智能数字科技有限公司</div>
|
|
|
</div>
|
|
|
<div class="record-number">
|
|
|
备案号:苏ICP备2021010118号
|
|
@@ -167,7 +168,7 @@ const menu = (i: number) => {
|
|
|
</a-layout-footer>
|
|
|
</a-layout>
|
|
|
<!-- 客服、公众号 -->
|
|
|
- <div class="fixed top-40vh right-20px">
|
|
|
+ <div v-if="activeIndex !== 3" class="fixed top-40vh right-20px">
|
|
|
<a-tooltip placement="left" color="white">
|
|
|
<template #title>
|
|
|
<div class="flex flex-col items-center px-20px py-20px">
|
|
@@ -199,9 +200,6 @@ const menu = (i: number) => {
|
|
|
<a-modal centered v-model:visible="showAgreement" :footer="null" :width="900">
|
|
|
<DevelopAgreement></DevelopAgreement>
|
|
|
</a-modal>
|
|
|
- <a-modal centered v-model:visible="visible" ok-text="确认" cancel-text="取消" title="提示" @ok="loginOut">
|
|
|
- <p>此操作将退出当前登录用户, 是否继续?</p>
|
|
|
- </a-modal>
|
|
|
</template>
|
|
|
|
|
|
<style lang="scss">
|
|
@@ -219,7 +217,7 @@ const menu = (i: number) => {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- height: $header-height !important;
|
|
|
+ height: $header-height !important;
|
|
|
color: #FFFFFF !important;
|
|
|
background: none !important;
|
|
|
padding: 0 !important;
|
|
@@ -277,12 +275,21 @@ const menu = (i: number) => {
|
|
|
background-color: #ffffff !important;
|
|
|
box-shadow: 0px 4px 4px rgb(198 198 198 / 25%);
|
|
|
color: #222222 !important;
|
|
|
+
|
|
|
+ .name {
|
|
|
+ color: #0077EE;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.login-header {
|
|
|
background: rgba(255, 255, 255, 0.85);
|
|
|
box-shadow: 0px 4px 4px 1px rgba(0, 0, 0, 0.06);
|
|
|
opacity: 0.9;
|
|
|
+
|
|
|
+ .name {
|
|
|
+ color: #0077EE;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.lb-container {
|