|
- <template>
- <div class="head-view">
- <div class="head-left">
- <div class="logo-box">
- <img :src="mod.applyLogo" style="width: 100%; height: 100%" alt="" />
- </div>
- <div class="for-item" v-for="(item, index) in mod.listStyle" :key="index">
- <a :href="item.url" :style="colorHover(item)" target="_blank">{{
- item.name
- }}</a>
- </div>
- </div>
- <!--
- <div class="head-right">
- <div class="myTou-box">
- <img
- src="../assets/png/touxiang.png "
- style="width: 100%; height: 100%"
- alt=""
- />
- </div>
- <div class="for-item">未登录</div>
- </div> -->
- </div>
- </template>
-
- <script>
- export default {
- props: {
- mod: {
- type: Object,
- default: () => {},
- },
- },
- computed: {
- colorHover() {
- return function (data) {
- return {
- "--text-color": data.unSelectColor,
- "--text-color-hover": data.selectColor,
- };
- };
- },
- },
-
- data() {
- return {
- headList: [
- {
- name: "智莺",
- id: 1,
- },
- {
- name: "方案解决",
- id: 2,
- },
- {
- name: "功能特色",
- id: 3,
- },
- {
- name: " 智莺联盟",
- id: 4,
- },
- ],
- };
- },
- };
- </script>
-
- <style scoped>
- .head-view {
- height: 76px;
- display: flex;
- align-items: center;
- padding: 18px 0;
- position: absolute;
- width: 1200px;
- margin: 0 auto;
- left: 0;
- z-index: 99;
- box-sizing: border-box;
- right: 0;
- }
-
- .head-left {
- margin-right: auto;
- display: flex;
- align-items: center;
- font-weight: 500;
- }
-
- .head-right {
- display: flex;
- align-items: center;
- font-weight: 500;
- cursor: pointer;
- }
-
- .logo-box {
- width: 40px;
- height: 40px;
- border-radius: 50%;
-
- margin-right: 30px;
- cursor: pointer;
- overflow: hidden;
- }
-
- .myTou-box {
- width: 36px;
- height: 36px;
- border-radius: 50%;
- margin-right: 12px;
- }
-
- .for-item {
- font-size: 18px;
- margin-right: 40px;
- cursor: pointer;
- }
-
- .for-item:last-child {
- margin-right: 0;
- }
-
- a {
- color: var(--text-color);
- text-decoration: none;
- }
-
- a:hover {
- color: var(--text-color-hover);
- }
-
- @media screen and (max-width: 1500px) {
- .head-view {
- padding: 18px 60px;
- }
- }
- </style>
|