Просмотр исходного кода

feat: 1、Home页面添加copyright公司版权信息 2、隐藏Home页和Main页面的版权信息

sequoia tungfang дней назад: 2
Родитель
Сommit
fab8882ffd
2 измененных файлов с 36 добавлено и 0 удалено
  1. 35 0
      src/views/Home.vue
  2. 1 0
      src/views/Main.vue

+ 35 - 0
src/views/Home.vue

@@ -17,6 +17,7 @@
       </div>
 
       <div class="top-right">
+        <div class="copyright">东土科技</div>
         <div class="clock">
           <div class="time">{{ header.timeText }}</div>
           <div class="date">
@@ -1343,6 +1344,9 @@ onlineChart: null,
   align-self: start;
   padding-top: calc(var(--s) * 60px);
 }
+.top-right {
+  position: relative;
+}
 .weather{
   display:flex;
   align-items:center;
@@ -1408,4 +1412,35 @@ onlineChart: null,
   color: rgba(235,255,255,0.92) !important;
   text-shadow: 0 0 calc(var(--s) * 8px) rgba(0, 160, 255, 0.28);
 }
+
+/* 版权信息 */
+.copyright {
+  display: flex;
+  align-items: center;
+  font-size: 14px;
+  color: #FFF;
+  line-height: 30px;
+  text-align: center;
+  position: absolute;
+  right: 160px;
+  display: none;
+}
+
+.copyright::before,
+.copyright::after {
+  content: "";
+  display: block;
+  width: 4px;
+  height: 4px;
+  border-radius: 2px;
+  background: #e7e7e7;
+}
+
+.copyright::before {
+  margin-right: 10px;
+}
+
+.copyright::after {
+  margin-left: 10px;
+}
 </style>

+ 1 - 0
src/views/Main.vue

@@ -336,6 +336,7 @@ export default {
   position: absolute;
   bottom: 20px;
   left: calc(50% - 35px);
+  display: none;
 }
 
 .copyright::before,