Merge branch 'master' into ebiz-uat-2025-11-06

This commit is contained in:
joshen
2025-12-04 19:30:29 +08:00
2 changed files with 1456 additions and 928 deletions

View File

@@ -1,55 +1,110 @@
<template> <template>
<div class="portal-header"> <div class="portal-header">
<div class="portal-top" :style="{color:textColor}"> <div class="portal-top" :style="{ color: textColor }">
<div class="portal-top-left"> <div class="portal-top-left">
<div class="portal-top-logo"> <div class="portal-top-logo">
<img src="../assets/logo/logo-white.png" v-if="textColor == '#fff' || textColor == '#ffffff'" style="width:160px;height: 27px;" /> <img
<img src="../assets/logo/logo.png" v-else style="width:160px;height: 27px;" /> src="../assets/logo/logo-white.png"
v-if="textColor == '#fff' || textColor == '#ffffff'"
style="width: 160px; height: 27px"
/>
<img
src="../assets/logo/logo.png"
v-else
style="width: 160px; height: 27px"
/>
</div> </div>
<div class="portal-top-nav" v-if="userInfo.role === 1"> <div class="portal-top-nav" v-if="userInfo.role === 1">
<div class="top-nav" :style="{color:textColor}" :class="current == 'index' ? activeNav : ''"> <div
<router-link to="/index" >首页 class="top-nav"
:style="{ color: textColor }"
:class="current == 'index' ? activeNav : ''"
>
<router-link to="/index"
>首页
<div :class="current == 'index' ? 'nav-bottbor' : ''"></div> <div :class="current == 'index' ? 'nav-bottbor' : ''"></div>
</router-link> </router-link>
</div> </div>
<div class="top-nav" :style="{color:textColor}" :class="current == 'course' ? activeNav : ''"> <div
<a @click="handleChangeCourse">课程 class="top-nav"
:style="{ color: textColor }"
:class="current == 'course' ? activeNav : ''"
>
<a @click="handleChangeCourse"
>课程
<div :class="current == 'course' ? 'nav-bottbor' : ''"></div> <div :class="current == 'course' ? 'nav-bottbor' : ''"></div>
</a> </a>
</div> </div>
<div class="top-nav" :style="{color:textColor}" :class="current == 'case' ? activeNav : ''"> <div
<router-link to="/case">案例 class="top-nav"
:style="{ color: textColor }"
:class="current == 'case' ? activeNav : ''"
>
<router-link to="/case"
>案例
<div :class="current == 'case' ? 'nav-bottbor' : ''"></div> <div :class="current == 'case' ? 'nav-bottbor' : ''"></div>
</router-link> </router-link>
</div> </div>
<div class="top-nav" :style="{color:textColor}" :class="current == 'article' ? activeNav : ''"> <div
<router-link to="/article">文章 class="top-nav"
:style="{ color: textColor }"
:class="current == 'article' ? activeNav : ''"
>
<router-link to="/article"
>文章
<div :class="current == 'article' ? 'nav-bottbor' : ''"></div> <div :class="current == 'article' ? 'nav-bottbor' : ''"></div>
</router-link> </router-link>
</div> </div>
<div class="top-nav" :style="{color:textColor}" :class="current == 'qa' ? activeNav : ''"> <div
<router-link to="/qa" >问答 class="top-nav"
:style="{ color: textColor }"
:class="current == 'qa' ? activeNav : ''"
>
<router-link to="/qa"
>问答
<div :class="current == 'qa' ? 'nav-bottbor' : ''"></div> <div :class="current == 'qa' ? 'nav-bottbor' : ''"></div>
</router-link> </router-link>
</div> </div>
<div class="top-nav"> <div class="top-nav">
<el-dropdown placement="bottom" @command="handleCommand"> <el-dropdown placement="bottom" @command="handleCommand">
<span class="el-dropdown-link" style="font-size:16px;cursor: pointer;" :style="{color:textColor}">专区</span> <span
class="el-dropdown-link"
style="font-size: 16px; cursor: pointer"
:style="{ color: textColor }"
>专区</span
>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="zero">热点论坛</el-dropdown-item> <el-dropdown-item command="zero">热点论坛</el-dropdown-item>
<el-dropdown-item command="one" divided>BOE系列公开课</el-dropdown-item> <el-dropdown-item command="one" divided
<el-dropdown-item command="two" divided>Grow180</el-dropdown-item> >BOE系列公开课</el-dropdown-item
<el-dropdown-item command="three" divided>管理者进阶</el-dropdown-item> >
<el-dropdown-item command="four" divided>U选小课堂</el-dropdown-item> <el-dropdown-item command="two" divided
<el-dropdown-item command="five" divided>社招新员工</el-dropdown-item> >Grow180</el-dropdown-item
>
<el-dropdown-item command="three" divided
>管理者进阶</el-dropdown-item
>
<el-dropdown-item command="four" divided
>U选小课堂</el-dropdown-item
>
<el-dropdown-item command="five" divided
>社招新员工</el-dropdown-item
>
<!-- <el-dropdown-item command="six" divided>贡献者专区</el-dropdown-item> --> <!-- <el-dropdown-item command="six" divided>贡献者专区</el-dropdown-item> -->
<el-dropdown-item command="seven" divided>教师专区</el-dropdown-item> <el-dropdown-item command="seven" divided
>教师专区</el-dropdown-item
>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
<div class="top-nav"> <div class="top-nav">
<el-dropdown placement="bottom" @command="handleContributor"> <el-dropdown placement="bottom" @command="handleContributor">
<span class="el-dropdown-link" style="font-size:16px;cursor: pointer;" :style="{color:textColor}">贡献者大会</span> <span
class="el-dropdown-link"
style="font-size: 16px; cursor: pointer"
:style="{ color: textColor }"
>贡献者大会</span
>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="three">2024</el-dropdown-item> <el-dropdown-item command="three">2024</el-dropdown-item>
<el-dropdown-item command="one" divided>2023</el-dropdown-item> <el-dropdown-item command="one" divided>2023</el-dropdown-item>
@@ -58,18 +113,40 @@
</el-dropdown> </el-dropdown>
</div> </div>
<div class="top-nav" :style="{color:textColor}" :class="current == 'follow' ? activeNav : ''"> <div
<router-link to="/follow">我的关注 class="top-nav"
:style="{ color: textColor }"
:class="current == 'follow' ? activeNav : ''"
>
<router-link to="/follow"
>我的关注
<div :class="current == 'follow' ? 'nav-bottbor' : ''"></div> <div :class="current == 'follow' ? 'nav-bottbor' : ''"></div>
</router-link> </router-link>
</div> </div>
</div> </div>
</div> </div>
<div class="portal-top-right"> <div class="portal-top-right">
<div v-if="goSearch !=10 && userInfo.role === 1" style="position: relative;"> <div
<el-input class="portal-input" v-show="!hideSearch" placeholder="搜索全部" style="border-radius: 20px !important; " @keyup.enter.native="searchJump()" clearable maxlength="50" v-model="keyword" > v-if="goSearch != 10 && userInfo.role === 1"
<el-select v-if="current == 'index'" v-model="findType" style="width: 75px; border-radius:20px !important;" slot="prepend" placeholder="请选择"> style="position: relative"
>
<el-input
class="portal-input"
v-show="!hideSearch"
placeholder="搜索全部"
style="border-radius: 20px !important"
@keyup.enter.native="searchJump()"
clearable
maxlength="50"
v-model="keyword"
>
<el-select
v-if="current == 'index'"
v-model="findType"
style="width: 75px; border-radius: 20px !important"
slot="prepend"
placeholder="请选择"
>
<el-option label="课程" value="1"></el-option> <el-option label="课程" value="1"></el-option>
<el-option label="案例" value="2"></el-option> <el-option label="案例" value="2"></el-option>
<el-option label="文章" value="3"></el-option> <el-option label="文章" value="3"></el-option>
@@ -77,7 +154,14 @@
<!-- <el-option label="专区" value="5"></el-option> --> <!-- <el-option label="专区" value="5"></el-option> -->
</el-select> </el-select>
</el-input> </el-input>
<el-button v-show="!hideSearch" class="sear-but" @click="searchJump()" type="primary" size="mini">搜索</el-button> <el-button
v-show="!hideSearch"
class="sear-but"
@click="searchJump()"
type="primary"
size="mini"
>搜索</el-button
>
</div> </div>
<div class="person-action"> <div class="person-action">
@@ -86,11 +170,25 @@
<el-link v-else class="person-action-index" type="primary" style="margin-right:10px; color:#fff;" :href="`${webBaseUrl}${isTiao ? '/uc/study/task' : '/uc/study/courses'}`" :underline="false">个人中心</el-link> --> <el-link v-else class="person-action-index" type="primary" style="margin-right:10px; color:#fff;" :href="`${webBaseUrl}${isTiao ? '/uc/study/task' : '/uc/study/courses'}`" :underline="false">个人中心</el-link> -->
<!-- <el-link type="primary" @click="logout()" icon="el-icon-switch-button" :underline="false">退出</el-link> --> <!-- <el-link type="primary" @click="logout()" icon="el-icon-switch-button" :underline="false">退出</el-link> -->
<div class="person-action-item"> <div class="person-action-item">
<el-badge class="person-action-index" :value="userMsg" :hidden="userMsg == 0"> <el-badge
<el-tooltip content="消息" placement="bottom" effect="light" :visible-arrow="false" popper-class="text-tooltip"> class="person-action-index"
:value="userMsg"
:hidden="userMsg == 0"
>
<el-tooltip
content="消息"
placement="bottom"
effect="light"
:visible-arrow="false"
popper-class="text-tooltip"
>
<!-- <el-link type="primary" :href="`${webBaseUrl}/message/center/index`" :underline="false"> --> <!-- <el-link type="primary" :href="`${webBaseUrl}/message/center/index`" :underline="false"> -->
<router-link to="/message/center/index"> <router-link to="/message/center/index">
<svg-icon :style="{color:textColor}" style="margin-right: 0;font-size:22px;" icon-class="messfff"></svg-icon> <svg-icon
:style="{ color: textColor }"
style="margin-right: 0; font-size: 22px"
icon-class="messfff"
></svg-icon>
</router-link> </router-link>
<!-- </el-link> --> <!-- </el-link> -->
</el-tooltip> </el-tooltip>
@@ -99,40 +197,94 @@
<div class="person-action-item"> <div class="person-action-item">
<el-dropdown class="person-action-index"> <el-dropdown class="person-action-index">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
<span :style="{color:textColor}">学员</span> <span :style="{ color: textColor }">学员</span>
<i :style="{color:textColor}" class="el-icon-arrow-down el-icon--right"></i> <i
:style="{ color: textColor }"
class="el-icon-arrow-down el-icon--right"
></i>
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item><router-link to="/index">学员</router-link></el-dropdown-item> <el-dropdown-item
<el-dropdown-item v-if="identity == 2 || identity == 5" @click.native="setCurIdentity(2)"><router-link to="/need/waitaudit">教师</router-link></el-dropdown-item> ><router-link to="/index">学员</router-link></el-dropdown-item
<el-dropdown-item v-if="identity == 3 || identity == 5" ><a :href="managerPath+'/learningpath'">管理员</a></el-dropdown-item> >
<el-dropdown-item
v-if="identity == 2 || identity == 5"
@click.native="setCurIdentity(2)"
><router-link to="/need/waitaudit"
>教师</router-link
></el-dropdown-item
>
<el-dropdown-item v-if="identity == 3 || identity == 5"
><a :href="managerPath + '/learningpath'"
>管理员</a
></el-dropdown-item
>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
<div class="person-action-item"> <div class="person-action-item">
<el-dropdown> <el-dropdown>
<div class="el-dropdown-link" style="display:flex" :style="{color:textColor}"> <div
class="el-dropdown-link"
style="display: flex"
:style="{ color: textColor }"
>
<div class="person-action-index"> <div class="person-action-index">
<div v-if="userInfo.avatar !== '' " class="user-avatar"> <div v-if="userInfo.avatar !== ''" class="user-avatar">
<img :src="userInfo.avatar" style="width: 35px;height: 35px;"/> <img
:src="userInfo.avatar"
style="width: 35px; height: 35px"
/>
</div> </div>
<div v-else class="uavatar"> <div v-else class="uavatar">
<div v-if="sex === 1 "><img src="../../public/images/Avatarman.png" alt="" style="width: 30px;height: 30px;"></div> <div v-if="sex === 1">
<div v-else><img src="../../public/images/Avatarwoman.png" alt="" style="width: 30px;height: 30px;"></div> <img
src="../../public/images/Avatarman.png"
alt=""
style="width: 30px; height: 30px"
/>
</div>
<div v-else>
<img
src="../../public/images/Avatarwoman.png"
alt=""
style="width: 30px; height: 30px"
/>
</div> </div>
</div> </div>
<div style="font-weight: 400;font-size: 16px; margin-top: 8px;">{{userInfo.name}}</div> </div>
<div style="font-weight: 400; font-size: 16px; margin-top: 8px">
{{ userInfo.name }}
</div>
</div> </div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item @click.native="setCurIdentity(1)"><a :href="`${webBaseUrl}${isTiao ? '/uc/study/task' : '/uc/study/courses'}`">个人中心</a></el-dropdown-item> <el-dropdown-item @click.native="setCurIdentity(1)"
<el-dropdown-item><router-link :to="'/home/'+userInfo.aid">个人主页</router-link></el-dropdown-item> ><a
:href="`${webBaseUrl}${
isTiao ? '/uc/study/task' : '/uc/study/courses'
}`"
>个人中心</a
></el-dropdown-item
>
<el-dropdown-item
><router-link :to="'/home/' + userInfo.aid"
>个人主页</router-link
></el-dropdown-item
>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
<div class="person-action-item"> <div class="person-action-item">
<div
<div class="person-action-index pointer" :style="{color:textColor}" @click="logout()"> class="person-action-index pointer"
<svg-icon style="margin-right: 4px;font-size:16px;" icon-class="white-out"></svg-icon>登出 :style="{ color: textColor }"
@click="logout()"
>
<svg-icon
style="margin-right: 4px; font-size: 16px"
icon-class="white-out"
></svg-icon
>登出
</div> </div>
</div> </div>
</div> </div>
@@ -142,95 +294,110 @@
</div> </div>
</template> </template>
<script> <script>
import { mapGetters, mapActions } from 'vuex'; import { mapGetters, mapActions } from "vuex";
import apiMessage from '@/api/system/message.js'; import apiMessage from "@/api/system/message.js";
import popup from '@/components/AlertPopup.vue'; import popup from "@/components/AlertPopup.vue";
import yearMedal from '@/components/Popup/China2023.vue'; import yearMedal from "@/components/Popup/China2023.vue";
import apiBoeCourse from '@/api/boe/course.js'; import apiBoeCourse from "@/api/boe/course.js";
import {userAvatarText} from "@/utils/tools.js"; import { userAvatarText } from "@/utils/tools.js";
import apiCase from "@/api/modules/cases.js"; import apiCase from "@/api/modules/cases.js";
export default { export default {
props: { props: {
current: { current: {
type: String, type: String,
default: '', default: "",
}, },
hideSearch:{ hideSearch: {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
textColor:{ textColor: {
type: String, type: String,
default: '', default: "",
}, },
goSearch:{ goSearch: {
type: Number, type: Number,
default: 0, default: 0,
}, },
keywords:{ keywords: {
type:String, type: String,
default:'' default: "",
}, },
}, },
components:{popup,yearMedal}, components: { popup, yearMedal },
computed: { computed: {
...mapGetters(['userInfo','curIdentity', 'userMsg','identity','studyTaskCount']), ...mapGetters([
"userInfo",
"curIdentity",
"userMsg",
"identity",
"studyTaskCount",
]),
avatarText(){ avatarText() {
return userAvatarText(this.userInfo.name); return userAvatarText(this.userInfo.name);
}, },
activeNav(){ activeNav() {
return { return {
'top-nav-active-blue': this.textColor=='#000000', "top-nav-active-blue": this.textColor == "#000000",
'top-nav-active-white': this.textColor=='#fff' || this.textColor=='#ffffff', "top-nav-active-white":
} this.textColor == "#fff" || this.textColor == "#ffffff",
};
},
},
watch: {
keywords(newval) {
console.log(newval, 9999);
if (this.findType == "1") {
this.keyword = newval;
} }
}, },
watch:{ "$route.query.keyword": {
keywords(newval){ handler(newval) {
console.log(newval,9999); if (newval && this.current == "case") {
if(this.findType == '1'){ this.keyword = newval;
this.keyword = newval
}
} }
}, },
immediate: true,
},
},
data() { data() {
return { return {
popupConfig:{}, popupConfig: {},
ctx:process.env.VUE_APP_PUBLIC_PATH, ctx: process.env.VUE_APP_PUBLIC_PATH,
managerPath:process.env.VUE_APP_MANAGER_PATH, managerPath: process.env.VUE_APP_MANAGER_PATH,
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL, fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
findType: '1', findType: "1",
keyword: '', keyword: "",
isTiao: false, isTiao: false,
sex:'', sex: "",
}; };
}, },
mounted() { mounted() {
this.sex = this.userInfo.sex; this.sex = this.userInfo.sex;
this.$store.dispatch('refrashMsg'); this.$store.dispatch("refrashMsg");
this.loadBoeData(); this.loadBoeData();
// console.log('this.userInfo::',this.userInfo) // console.log('this.userInfo::',this.userInfo)
//this.loadPopupConfig(); //this.loadPopupConfig();
}, },
methods: { methods: {
handleChangeCourse() { handleChangeCourse() {
const paths = ["/course","/qualityCourse"] const paths = ["/course", "/qualityCourse"];
// 如果是 课程 和 精品课程, 那么就不再重定向 // 如果是 课程 和 精品课程, 那么就不再重定向
const needReload = paths.findIndex(e=> e === this.$route.path) === -1 const needReload = paths.findIndex((e) => e === this.$route.path) === -1;
if (needReload) this.$router.push({path: paths[0]}) if (needReload) this.$router.push({ path: paths[0] });
}, },
setCurIdentity(iden){ setCurIdentity(iden) {
this.$store.dispatch('SetCurIdentity',iden); this.$store.dispatch("SetCurIdentity", iden);
}, },
tomy(){ tomy() {
console.log('lll') console.log("lll");
}, },
loadBoeData() { loadBoeData() {
if(this.studyTaskCount>0){ if (this.studyTaskCount > 0) {
this.isTiao = true; this.isTiao = true;
}else{ } else {
this.isTiao = false; this.isTiao = false;
} }
// let params = { // let params = {
@@ -248,18 +415,18 @@ export default {
// } // }
// }); // });
}, },
handleContributor(val){ handleContributor(val) {
let urlPre = window.location.protocol + "//" + window.location.host; let urlPre = window.location.protocol + "//" + window.location.host;
let obj = { let obj = {
one: urlPre + "/web/contributornew/index", one: urlPre + "/web/contributornew/index",
two: urlPre + "/web/contributor/index", two: urlPre + "/web/contributor/index",
three: urlPre + "/web/contributor_2024/index" three: urlPre + "/web/contributor_2024/index",
}; };
window.open(obj[val]); window.open(obj[val]);
}, },
handleCommand(val) { handleCommand(val) {
if (val === "four") { if (val === "four") {
window.open("https://m.qingxuetang.com/x/?appId=qxtcorp306130") window.open("https://m.qingxuetang.com/x/?appId=qxtcorp306130");
// this.$emit('showClass',true) // this.$emit('showClass',true)
} else { } else {
let urlPre = window.location.protocol + "//" + window.location.host; let urlPre = window.location.protocol + "//" + window.location.host;
@@ -272,83 +439,104 @@ export default {
// four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130', // four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130',
five: urlPre + "/boe/new-employee/index.html", five: urlPre + "/boe/new-employee/index.html",
six: urlPre + "/web/contributor/index", six: urlPre + "/web/contributor/index",
seven: this.webBaseUrl + '/grateful/index' seven: this.webBaseUrl + "/grateful/index",
}; };
window.open(obj[val]); window.open(obj[val]);
} }
}, },
handleUcCommand(val) { handleUcCommand(val) {
if (val == 'uc') { if (val == "uc") {
window.location.href = `${this.webBaseUrl}${this.isTiao ? '/uc/study/task' : '/uc/study/courses'}`; window.location.href = `${this.webBaseUrl}${
} else if (val == 'logout') { this.isTiao ? "/uc/study/task" : "/uc/study/courses"
}`;
} else if (val == "logout") {
this.logout(); this.logout();
} }
}, },
searchJump() { searchJump() {
this.$emit('type1', '') this.$emit("type1", "");
if(this.current == 'index') { if (this.current == "index") {
if (this.findType == '1') { if (this.findType == "1") {
if(this.keyword==''){return;} if (this.keyword == "") {
return;
}
// 课程 // 课程
location.href=`${this.webBaseUrl}/course?keyword=${this.keyword}`; location.href = `${this.webBaseUrl}/course?keyword=${this.keyword}`;
//window.open(`${this.webBaseUrl}/course?keyword=${this.keyword}`); //window.open(`${this.webBaseUrl}/course?keyword=${this.keyword}`);
} else if (this.findType == '2') { } else if (this.findType == "2") {
if(this.keyword==''){return;} if (this.keyword == "") {
return;
}
// 案例 // 案例
location.href=`${this.webBaseUrl}/case?keyword=${this.keyword}`; location.href = `${this.webBaseUrl}/case?keyword=${this.keyword}`;
//window.open(`${this.webBaseUrl}/case?keyword=${this.keyword}`); //window.open(`${this.webBaseUrl}/case?keyword=${this.keyword}`);
} else if (this.findType == '3') { } else if (this.findType == "3") {
if(this.keyword==''){return;} if (this.keyword == "") {
return;
}
//文章 //文章
location.href=`${this.webBaseUrl}/article?keyword=${this.keyword}`; location.href = `${this.webBaseUrl}/article?keyword=${this.keyword}`;
//window.open(`${this.webBaseUrl}/article?keyword=${this.keyword}`); //window.open(`${this.webBaseUrl}/article?keyword=${this.keyword}`);
} else if (this.findType == '4') { } else if (this.findType == "4") {
if(this.keyword==''){return;} if (this.keyword == "") {
return;
}
// 问答 // 问答
location.href=`${this.webBaseUrl}/qa?keyword=${this.keyword}`; location.href = `${this.webBaseUrl}/qa?keyword=${this.keyword}`;
//window.open(`${this.webBaseUrl}/qa?keyword=${this.keyword}`); //window.open(`${this.webBaseUrl}/qa?keyword=${this.keyword}`);
} else if (this.findType == '5') { } else if (this.findType == "5") {
// 专区,专区要单独的写,因为不是一个系统呀 // 专区,专区要单独的写,因为不是一个系统呀
window.open(`${this.webBaseUrl}/zone?keyword=${this.keyword}`); window.open(`${this.webBaseUrl}/zone?keyword=${this.keyword}`);
} }
} else { } else {
this.$emit('emitInput',this.keyword) this.$emit("emitInput", this.keyword);
if(this.goSearch == 1) { if (this.goSearch == 1) {
if(this.keyword==''){return;} if (this.keyword == "") {
return;
}
// 课程 // 课程
location.href=`${this.webBaseUrl}/course?keyword=${this.keyword}`; location.href = `${this.webBaseUrl}/course?keyword=${this.keyword}`;
} else if (this.goSearch == 2) { } else if (this.goSearch == 2) {
if(this.keyword==''){return;} if (this.keyword == "") {
return;
}
// 案例 // 案例
// location.href=`${this.webBaseUrl}/case?keyword=${this.keyword}`; // location.href=`${this.webBaseUrl}/case?keyword=${this.keyword}`;
this.$router.push(`/case?keyword=${this.keyword}`) this.$router.push(`/case?keyword=${this.keyword}`);
//window.open(`${this.webBaseUrl}/case?keyword=${this.keyword}`); //window.open(`${this.webBaseUrl}/case?keyword=${this.keyword}`);
} else if (this.goSearch == 3) { } else if (this.goSearch == 3) {
if(this.keyword==''){return;} if (this.keyword == "") {
return;
}
//文章 //文章
location.href=`${this.webBaseUrl}/article?keyword=${this.keyword}`; location.href = `${this.webBaseUrl}/article?keyword=${this.keyword}`;
//window.open(`${this.webBaseUrl}/article?keyword=${this.keyword}`); //window.open(`${this.webBaseUrl}/article?keyword=${this.keyword}`);
} else if (this.goSearch == 4) { } else if (this.goSearch == 4) {
if(this.keyword==''){return;} if (this.keyword == "") {
return;
}
// 问答 // 问答
location.href=`${this.webBaseUrl}/qa?keyword=${this.keyword}`; location.href = `${this.webBaseUrl}/qa?keyword=${this.keyword}`;
//window.open(`${this.webBaseUrl}/qa?keyword=${this.keyword}`); //window.open(`${this.webBaseUrl}/qa?keyword=${this.keyword}`);
} else if (this.goSearch == 5) { } else if (this.goSearch == 5) {
// 专区,专区要单独的写,因为不是一个系统呀 // 专区,专区要单独的写,因为不是一个系统呀
window.open(`${this.webBaseUrl}/zone?keyword=${this.keyword}`); window.open(`${this.webBaseUrl}/zone?keyword=${this.keyword}`);
} }
} }
}, },
logout() { logout() {
this.$confirm('您确定要退出系统吗?', '提示', { this.$confirm("您确定要退出系统吗?", "提示", {
confirmButtonText: '确定', confirmButtonText: "确定",
cancelButtonText: '取消', cancelButtonText: "取消",
type: 'warning' type: "warning",
}).then(() => { })
this.$store.dispatch('LogOut').then(() => { .then(() => {
this.$store.dispatch("LogOut").then(() => {
//location.href = this.webBaseUrl + '/login'; //location.href = this.webBaseUrl + '/login';
sessionStorage.setItem('dialog_session_show'+this.userInfo.aid,null); // 清除兴趣采集的"关闭"缓存 sessionStorage.setItem(
"dialog_session_show" + this.userInfo.aid,
null
); // 清除兴趣采集的"关闭"缓存
location.href = process.env.VUE_APP_LOGIN_URL; location.href = process.env.VUE_APP_LOGIN_URL;
}); });
}) })
@@ -356,49 +544,52 @@ export default {
}, },
//获取未读消息数量 //获取未读消息数量
getMsgNum() { getMsgNum() {
apiMessage.isRead().then(res => { apiMessage.isRead().then((res) => {
if (res.status == 200) { if (res.status == 200) {
this.msgNum = res.result; this.msgNum = res.result;
} }
}); });
} },
} },
}; };
</script> </script>
<style scoped rel="stylesheet/scss" lang="scss"> <style scoped rel="stylesheet/scss" lang="scss">
::v-deep .el-dropdown-menu__item:not(.is-disabled):hover {
::v-deep .el-dropdown-menu__item:not(.is-disabled):hover{
background-color: #fff !important; background-color: #fff !important;
color: #0059FF !important; color: #0059ff !important;
} }
::v-deep.el-dropdown-menu { ::v-deep.el-dropdown-menu {
text-align: center; text-align: center;
border: none !important; border: none !important;
} }
//定义消息的图标的样式按ui未完成 //定义消息的图标的样式按ui未完成
.msg-icon{ .msg-icon {
font-size:16px; font-size: 16px;
background-color:#fff; background-color: #fff;
border-radius:50%; border-radius: 50%;
} }
.top-nav-active-blue{ .top-nav-active-blue {
color: #387DF7; color: #387df7;
a{color:#387DF7;} a {
div{ color: #387df7;
}
div {
width: 75%; width: 75%;
height: 4px; height: 4px;
top: 75%; top: 75%;
left: 13%; left: 13%;
background: #387DF7; background: #387df7;
border-radius: 5px; border-radius: 5px;
position: absolute; position: absolute;
} }
} }
.top-nav-active-white{ .top-nav-active-white {
color: #fff; color: #fff;
a{color:#fff;} a {
div{ color: #fff;
}
div {
width: 75%; width: 75%;
height: 4px; height: 4px;
top: 75%; top: 75%;
@@ -409,15 +600,15 @@ text-align: center;
} }
} }
.sear-but{ .sear-but {
position: absolute; position: absolute;
bottom: 10%; bottom: 10%;
right: 5px; right: 5px;
} }
::v-deep .el-input__inner{ ::v-deep .el-input__inner {
border-radius: 6px; border-radius: 6px;
border-right: none; border-right: none;
} }
::v-deep .el-badge__content.is-fixed { ::v-deep .el-badge__content.is-fixed {
right: 10px; right: 10px;
} }
@@ -426,42 +617,41 @@ text-align: center;
// margin: 0 87px; // margin: 0 87px;
height: 72px; height: 72px;
display: flex; display: flex;
background: rgba(255,255,255,0.1); background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(61,61,61,0.15); border: 1px solid rgba(61, 61, 61, 0.15);
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
} }
.portal-top{ .portal-top {
width: 100%; width: 100%;
margin: 0px 40px; margin: 0px 40px;
display: flex; display: flex;
justify-content:space-between; justify-content: space-between;
.portal-top-left{ .portal-top-left {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
.portal-top-logo{ .portal-top-logo {
} }
.portal-top-nav{ .portal-top-nav {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
margin-left: 20px; margin-left: 20px;
} }
} }
.portal-top-right{ .portal-top-right {
flex:1; flex: 1;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
} }
//width: 1050px; //width: 1050px;
.person-action{ .person-action {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
margin-left: 10px; margin-left: 10px;
.person-action-index{ .person-action-index {
//margin-left: 40px; //margin-left: 40px;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
@@ -476,20 +666,20 @@ text-align: center;
// // right: 48px; // // right: 48px;
// // } // // }
// } // }
::v-deep.el-avatar{ ::v-deep.el-avatar {
margin-right: 8px; margin-right: 8px;
img{ img {
width: 100% !important; width: 100% !important;
} }
} }
.el-button{ .el-button {
margin-left: 15px; margin-left: 15px;
margin-top: 1px; margin-top: 1px;
// font-size: 14px; // font-size: 14px;
} }
} }
} }
.person-action-item{ .person-action-item {
margin-left: 30px; margin-left: 30px;
} }
.top-nav { .top-nav {
@@ -499,42 +689,42 @@ text-align: center;
color: #000000; color: #000000;
line-height: 72px; line-height: 72px;
padding: 0px 10px; padding: 0px 10px;
white-space:nowrap; white-space: nowrap;
position: relative; position: relative;
} }
//此处理应该移到单独的一个样式中比较好 //此处理应该移到单独的一个样式中比较好
@media screen and (max-width: 1366px){ @media screen and (max-width: 1366px) {
.top-nav { .top-nav {
padding: 0px 10px; padding: 0px 10px;
} }
.person-action-item{ .person-action-item {
margin-left: 20px; margin-left: 20px;
} }
} }
@media screen and (max-width: 1680px) and (min-width:1367px){ @media screen and (max-width: 1680px) and (min-width: 1367px) {
.top-nav { .top-nav {
padding: 0px 15px; padding: 0px 15px;
} }
.person-action-item{ .person-action-item {
margin-left: 30px; margin-left: 30px;
} }
} }
@media screen and (max-width: 1920px) and (min-width: 1681px){ @media screen and (max-width: 1920px) and (min-width: 1681px) {
.top-nav { .top-nav {
padding: 0px 30px; padding: 0px 30px;
} }
.person-action-item{ .person-action-item {
margin-left: 40px; margin-left: 40px;
} }
} }
@media screen and (min-width: 1921px){ @media screen and (min-width: 1921px) {
.top-nav { .top-nav {
padding: 0px 40px; padding: 0px 40px;
} }
.person-action-item{ .person-action-item {
margin-left: 45px; margin-left: 45px;
} }
} }
@@ -542,7 +732,6 @@ text-align: center;
::v-deep .el-badge { ::v-deep .el-badge {
.el-badge__content { .el-badge__content {
top: 0px; top: 0px;
} }
} }
@@ -553,7 +742,7 @@ text-align: center;
// border: 1px solid #333333; // border: 1px solid #333333;
border-radius: 0 20px 20px 0; border-radius: 0 20px 20px 0;
border-left: none; border-left: none;
background: rgba(255,255,255,0.12); background: rgba(255, 255, 255, 0.12);
} }
.message-count a { .message-count a {
@@ -563,7 +752,6 @@ text-align: center;
} }
::v-deep .el-badge { ::v-deep .el-badge {
margin-top: 0 !important; margin-top: 0 !important;
} }
::v-deep .el-link.el-link--primary:hover { ::v-deep .el-link.el-link--primary:hover {
color: #588afc; color: #588afc;
@@ -572,10 +760,10 @@ text-align: center;
cursor: pointer; cursor: pointer;
color: #000000; color: #000000;
} }
.uavatar{ .uavatar {
div{ div {
border-radius: 50%; border-radius: 50%;
img{ img {
border-radius: 50%; border-radius: 50%;
width: 30px; width: 30px;
height: 30px; height: 30px;
@@ -587,11 +775,11 @@ text-align: center;
font-size: 14px; font-size: 14px;
margin-right: 8px; margin-right: 8px;
border-radius: 50%; border-radius: 50%;
} }
.user-avatar{ .user-avatar {
display: inline-block; display: inline-block;
border-radius: 50%; border-radius: 50%;
img{ img {
border-radius: 50%; border-radius: 50%;
width: 30px; width: 30px;
height: 30px; height: 30px;
@@ -603,5 +791,5 @@ text-align: center;
font-size: 14px; font-size: 14px;
margin-right: 8px; margin-right: 8px;
border-radius: 50%; border-radius: 50%;
} }
</style> </style>

File diff suppressed because it is too large Load Diff