|
@@ -79,70 +79,75 @@ const formatterName = (val: string) => {
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <div class="header_p">
|
|
|
- <div class="header_image">
|
|
|
- <!-- <img style="width: 239px; height: 55px" src="../assets/home/trademarkNew.png"></img> -->
|
|
|
- <!-- <img style="width: 239px; height: 55px" src="../assets/home/trademarkNew.png"></img> -->
|
|
|
- <div>郑大计智心理测评系统</div>
|
|
|
- </div>
|
|
|
- <el-menu :default-active="activeIndex" class="el-menu-demo" style="display: flex;" mode="horizontal"
|
|
|
- :ellipsis="false" @select="handleSelect">
|
|
|
- <el-menu-item index="1">首 页</el-menu-item>
|
|
|
-
|
|
|
-
|
|
|
- <!-- <el-badge :value="200" :max="99" class="item">
|
|
|
+ <!-- :style="{ backgroundColor: activeIndex == '1' ? '#ffffff' : '' }" -->
|
|
|
+ <div class="header_qp" :style="{ backgroundColor: activeIndex == '1' ? '#ffffff' : '' }">
|
|
|
+ <div class="header_p">
|
|
|
+ <div class="header_image">
|
|
|
+ <!-- <img style="width: 239px; height: 55px" src="../assets/home/trademarkNew.png"></img> -->
|
|
|
+ <!-- <img style="width: 239px; height: 55px" src="../assets/home/trademarkNew.png"></img> -->
|
|
|
+ <div>郑大计智心理测评系统</div>
|
|
|
+ </div>
|
|
|
+ <el-menu :default-active="activeIndex" class="el-menu-demo" style="display: flex;" mode="horizontal"
|
|
|
+ :ellipsis="false" @select="handleSelect">
|
|
|
+ <el-menu-item index="1">首 页</el-menu-item>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- <el-badge :value="200" :max="99" class="item">
|
|
|
<el-menu-item index="4">测试计划</el-menu-item>
|
|
|
</el-badge> -->
|
|
|
- <el-menu-item index="4">
|
|
|
- <div class="badge_custom" v-show="userInfo.planCurrentNum != 0">
|
|
|
- {{ userInfo.planCurrentNum }}
|
|
|
- </div>
|
|
|
- <span>测试计划</span>
|
|
|
- </el-menu-item>
|
|
|
- <el-menu-item index="5">测试记录</el-menu-item>
|
|
|
- <el-menu-item index="2">更多测试</el-menu-item>
|
|
|
- <el-menu-item index="3">留言社区</el-menu-item>
|
|
|
- </el-menu>
|
|
|
-
|
|
|
- <div class="login_button_bg" @mouseenter="comeMenu" @mouseleave="leaveMenu" v-show="userInfo.userInfo.userName">
|
|
|
- <img width="20px" src="../assets/home/button_login.png" />
|
|
|
-
|
|
|
- <span :title="userInfo.userInfo.userName">{{ formatterName(userInfo.userInfo.userName) }}</span>
|
|
|
- <transition>
|
|
|
- <div class="login_user" v-show="falgMenu">
|
|
|
- <div class="update_pass" @click="updatePassFun">
|
|
|
- 修改密码
|
|
|
+ <el-menu-item index="4">
|
|
|
+ <div class="badge_custom" v-show="userInfo.planCurrentNum != 0">
|
|
|
+ {{ userInfo.planCurrentNum }}
|
|
|
</div>
|
|
|
- <div class="exit_login" @click="exitFun">
|
|
|
- 退出登录
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </transition>
|
|
|
-
|
|
|
- </div>
|
|
|
- <div class="login_button_bg" v-show="!userInfo.userInfo.userName" @click="login">
|
|
|
- <img width="20px" src="../assets/home/button_login.png" />
|
|
|
-
|
|
|
-
|
|
|
- <span v-if="!userInfo.userInfo?.userName">登录账号</span>
|
|
|
-
|
|
|
- </div>
|
|
|
- <el-dialog v-model="visible" :show-close="true" width="500" style="border-radius: 20px;">
|
|
|
- <template #header="{ close, titleId, titleClass }">
|
|
|
- <div class="my-header" style="text-align: center;">
|
|
|
- <div class="exit_login_title">退出登录</div>
|
|
|
- <div class="exit_login_info">是否退出当前账号?</div>
|
|
|
- <div class="start_button_out">
|
|
|
- <div class="start_button_self" @click="comT">
|
|
|
- 确定
|
|
|
+ <span>测试计划</span>
|
|
|
+ </el-menu-item>
|
|
|
+ <el-menu-item index="5">测试记录</el-menu-item>
|
|
|
+ <el-menu-item index="2">更多测试</el-menu-item>
|
|
|
+ <el-menu-item index="3">留言社区</el-menu-item>
|
|
|
+ </el-menu>
|
|
|
+
|
|
|
+ <div class="login_button_bg" @mouseenter="comeMenu" @mouseleave="leaveMenu"
|
|
|
+ v-show="userInfo.userInfo.userName">
|
|
|
+ <img width="20px" src="../assets/home/button_login.png" />
|
|
|
+
|
|
|
+ <span :title="userInfo.userInfo.userName">{{ formatterName(userInfo.userInfo.userName) }}</span>
|
|
|
+ <transition>
|
|
|
+ <div class="login_user" v-show="falgMenu">
|
|
|
+ <div class="update_pass" @click="updatePassFun">
|
|
|
+ 修改密码
|
|
|
+ </div>
|
|
|
+ <div class="exit_login" @click="exitFun">
|
|
|
+ 退出登录
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </transition>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="login_button_bg" v-show="!userInfo.userInfo.userName" @click="login">
|
|
|
+ <img width="20px" src="../assets/home/button_login.png" />
|
|
|
+
|
|
|
+
|
|
|
+ <span v-if="!userInfo.userInfo?.userName">登录账号</span>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <el-dialog v-model="visible" :show-close="true" width="500" style="border-radius: 20px;">
|
|
|
+ <template #header="{ close, titleId, titleClass }">
|
|
|
+ <div class="my-header" style="text-align: center;">
|
|
|
+ <div class="exit_login_title">退出登录</div>
|
|
|
+ <div class="exit_login_info">是否退出当前账号?</div>
|
|
|
+ <div class="start_button_out">
|
|
|
+ <div class="start_button_self" @click="comT">
|
|
|
+ 确定
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- </div>
|
|
|
- </template>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
</template>
|
|
|
<style lang="scss" scoped>
|
|
|
.el-menu {
|
|
@@ -245,99 +250,109 @@ const formatterName = (val: string) => {
|
|
|
|
|
|
}
|
|
|
|
|
|
-.header_p {
|
|
|
- padding-top: 20px;
|
|
|
+.header_qp {
|
|
|
+
|
|
|
display: flex;
|
|
|
- flex-direction: row;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
-
|
|
|
-
|
|
|
- .header_image {
|
|
|
- // flex: 1
|
|
|
- // margin-right: 100px;
|
|
|
-
|
|
|
- div {
|
|
|
- color: #48D68E;
|
|
|
- font-weight: 700;
|
|
|
- font-size: 26px;
|
|
|
- -webkit-transform: skew(-10deg);
|
|
|
- letter-spacing: 2px;
|
|
|
- /* for Chrome||Safari */
|
|
|
- -ms-transform: skew(-10deg);
|
|
|
- /* for IE */
|
|
|
- -moz-transform: skew(-10deg);
|
|
|
- /* for Firefox */
|
|
|
- -o-transform: skew(-10deg);
|
|
|
- /* for Opera */
|
|
|
- }
|
|
|
- }
|
|
|
+ justify-content: center;
|
|
|
+ width: 100%;
|
|
|
|
|
|
- .login_button_bg {
|
|
|
- position: relative;
|
|
|
- background-color: #000000;
|
|
|
- border-radius: 12px;
|
|
|
- border: 3px solid #48D68E;
|
|
|
- color: #ffffff;
|
|
|
- padding: 8px 20px;
|
|
|
- cursor: pointer;
|
|
|
+ .header_p {
|
|
|
+ // background-color: #ffffff;
|
|
|
+ padding-top: 20px;
|
|
|
display: flex;
|
|
|
+ flex-direction: row;
|
|
|
align-items: center;
|
|
|
-
|
|
|
- .login_user {
|
|
|
- border-bottom-left-radius: 20px;
|
|
|
- border-bottom-right-radius: 20px;
|
|
|
- width: 80%;
|
|
|
- position: absolute;
|
|
|
- background-color: #ffffff;
|
|
|
- bottom: -105px;
|
|
|
- margin-left: calc(10% - 20px);
|
|
|
- z-index: 200;
|
|
|
- color: #000000;
|
|
|
-
|
|
|
- .update_pass {
|
|
|
- text-align: center;
|
|
|
- margin-top: 20px;
|
|
|
- // padding: 5px;
|
|
|
- color: #999999
|
|
|
- }
|
|
|
-
|
|
|
- .update_pass:hover {
|
|
|
- text-align: center;
|
|
|
- margin-top: 20px;
|
|
|
- color: #48D68E // padding: 5px;
|
|
|
+ justify-content: space-between;
|
|
|
+ width: 1200px;
|
|
|
+
|
|
|
+
|
|
|
+ .header_image {
|
|
|
+ // flex: 1
|
|
|
+ // margin-right: 100px;
|
|
|
+
|
|
|
+ div {
|
|
|
+ color: #48D68E;
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 26px;
|
|
|
+ -webkit-transform: skew(-10deg);
|
|
|
+ letter-spacing: 2px;
|
|
|
+ /* for Chrome||Safari */
|
|
|
+ -ms-transform: skew(-10deg);
|
|
|
+ /* for IE */
|
|
|
+ -moz-transform: skew(-10deg);
|
|
|
+ /* for Firefox */
|
|
|
+ -o-transform: skew(-10deg);
|
|
|
+ /* for Opera */
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .exit_login {
|
|
|
- text-align: center;
|
|
|
- // padding: 5px;
|
|
|
- margin-top: 20px;
|
|
|
- margin-bottom: 20px;
|
|
|
- color: #999999
|
|
|
+ .login_button_bg {
|
|
|
+ position: relative;
|
|
|
+ background-color: #000000;
|
|
|
+ border-radius: 12px;
|
|
|
+ border: 3px solid #48D68E;
|
|
|
+ color: #ffffff;
|
|
|
+ padding: 8px 20px;
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .login_user {
|
|
|
+ border-bottom-left-radius: 20px;
|
|
|
+ border-bottom-right-radius: 20px;
|
|
|
+ width: 80%;
|
|
|
+ position: absolute;
|
|
|
+ background-color: #ffffff;
|
|
|
+ bottom: -105px;
|
|
|
+ margin-left: calc(10% - 20px);
|
|
|
+ z-index: 200;
|
|
|
+ color: #000000;
|
|
|
+
|
|
|
+ .update_pass {
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 20px;
|
|
|
+ // padding: 5px;
|
|
|
+ color: #999999
|
|
|
+ }
|
|
|
+
|
|
|
+ .update_pass:hover {
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 20px;
|
|
|
+ color: #48D68E // padding: 5px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .exit_login {
|
|
|
+ text-align: center;
|
|
|
+ // padding: 5px;
|
|
|
+ margin-top: 20px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ color: #999999
|
|
|
+ }
|
|
|
+
|
|
|
+ .exit_login:hover {
|
|
|
+ text-align: center;
|
|
|
+ // padding: 5px;
|
|
|
+ margin-top: 20px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ color: #48D68E // padding: 5px;
|
|
|
+ }
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .exit_login:hover {
|
|
|
- text-align: center;
|
|
|
- // padding: 5px;
|
|
|
- margin-top: 20px;
|
|
|
- margin-bottom: 20px;
|
|
|
- color: #48D68E // padding: 5px;
|
|
|
- }
|
|
|
+ .flex-grow {
|
|
|
+ flex: 1;
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .flex-grow {
|
|
|
- flex: 1;
|
|
|
+ .menu_gen {
|
|
|
+ width: 80px;
|
|
|
+ height: 20px;
|
|
|
+ font-family: Alibaba PuHuiTi 2.0;
|
|
|
+ font-weight: normal;
|
|
|
+ font-size: 20px;
|
|
|
+ color: #333333;
|
|
|
+ line-height: 26px
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- .menu_gen {
|
|
|
- width: 80px;
|
|
|
- height: 20px;
|
|
|
- font-family: Alibaba PuHuiTi 2.0;
|
|
|
- font-weight: normal;
|
|
|
- font-size: 20px;
|
|
|
- color: #333333;
|
|
|
- line-height: 26px
|
|
|
- }
|
|
|
}
|
|
|
</style>
|