zhangsijie 1 год назад
Родитель
Сommit
8caf5de4fa

+ 3 - 3
minggao/src/page/home/newHome/components/Title.vue

@@ -3,7 +3,7 @@
  * @Autor: lin
  * @Date: 2024-04-12 13:48:21
  * @LastEditors: lin
- * @LastEditTime: 2024-04-23 14:13:23
+ * @LastEditTime: 2024-04-28 15:25:28
 -->
 <template>
     <div class="titlebox">
@@ -56,8 +56,8 @@ export default {
     background: #3ACD9C;
   }
   .text{
-    color: #ffffffe6;
-    font-size: 1.6rem;
+    color: #fff;
+    font-size: 1.5rem;
     font-weight: 500;
     line-height: 2.8rem;
     letter-spacing: 1px;

+ 1 - 1
minggao/src/page/home/newHome/components/scrollInfo.vue

@@ -61,7 +61,7 @@ export default {
   display: flex;
   align-items: center;
   justify-content: space-between;
-  color: #ffffffcc;
+  color: #fff;
   font-size: 1.2rem;
   height: 3.3vh;
   border-bottom: 1px solid #ffffff4d;

+ 6 - 6
minggao/src/page/home/newHome/deviceHome.vue

@@ -3,7 +3,7 @@
  * @Autor: lin
  * @Date: 2024-04-09 14:26:43
  * @LastEditors: lin
- * @LastEditTime: 2024-04-23 14:11:27
+ * @LastEditTime: 2024-04-28 15:31:39
 -->
 <template>
   <div class="bigBg" v-loading="loading">
@@ -546,7 +546,7 @@ export default {
             },
           },
           axisLabel: {
-            show: true,
+            show: false,
           },
           splitLine: {
             show: false, // 不显示 x 轴分隔线
@@ -711,7 +711,7 @@ export default {
 
     .el-input__inner {
       background: #ffffff1a;
-      color: #ffffffcc;
+      color: #fff;
       border: none;
     }
   }
@@ -723,7 +723,7 @@ export default {
   align-items: center;
 
   .nameContent {
-    color: #ffffffcc;
+    color: #fff;
     font-size: 2rem;
   }
 
@@ -796,7 +796,7 @@ export default {
       display: flex;
       align-items: center;
       justify-content: space-between;
-      color: #ffffffcc;
+      color: #fff;
       font-size: 1.2rem;
       height: 3.3vh;
       border-bottom: 1px solid #ffffff4d;
@@ -907,7 +907,7 @@ export default {
     display: flex;
     align-items: center;
     height: 3.7vh;
-    color: #ffffffcc;
+    color: #fff;
     font-size: 1.4rem;
     border-bottom: 1px solid #ffffff4d;
 

+ 4 - 4
minggao/src/page/home/newHome/index.vue

@@ -3,7 +3,7 @@
  * @Autor: lin
  * @Date: 2024-04-09 14:29:42
  * @LastEditors: lin
- * @LastEditTime: 2024-04-20 14:03:46
+ * @LastEditTime: 2024-04-28 15:28:58
 -->
 <template>
   <div class="bigBox">
@@ -41,7 +41,7 @@
 <script>
 // 设置rem
 const setBaseFontSize = () => {
-  const baseFontSize = (window.innerWidth / 1920) * 9; // 根据屏幕宽度计算基准字体大小
+  const baseFontSize = (window.innerWidth / 1920) * 10; // 根据屏幕宽度计算基准字体大小
   document.documentElement.style.fontSize = `${baseFontSize}px`; // 设置根元素字体大小
 };
 export default {
@@ -177,7 +177,7 @@ export default {
     position: absolute;
     color: #ffffff;
     text-align: center;
-    text-shadow: 0 0 4px #FFF;
+    // text-shadow: 0 0 4px #FFF;
     font-size: 2.8rem;
     font-weight: 700;
     letter-spacing: 5.6px;
@@ -226,7 +226,7 @@ export default {
     line-height: 17.76vh;
     text-align: center;
     color: #ffffff;
-    text-shadow: 0 0 4px #FFF;
+    // text-shadow: 0 0 4px #FFF;
     font-size: 1.6rem;
     letter-spacing: 1.6px;
     font-weight: 600;

+ 45 - 43
minggao/src/page/home/newHome/newHome.vue

@@ -3,7 +3,7 @@
  * @Autor: lin
  * @Date: 2024-04-09 14:26:07
  * @LastEditors: lin
- * @LastEditTime: 2024-04-24 16:34:04
+ * @LastEditTime: 2024-04-28 16:07:10
 -->
 <template>
   <div class="box">
@@ -61,17 +61,17 @@
                   :key="item.category"
                   indicator-position="outside"
                 >
+                  <div class="infoTitle">{{ item.category }}</div>
                   <div class="small">{{ item.warning }}</div>
                   <div class="charInfo">
-                    <div class="infoTitle">{{ item.category }}</div>
-                    <div class="detailInfo" v-if="item.category != '杂草'">
-                      <div>有害生物总数</div>
-                      <div>{{ item.sum }}</div>
-                    </div>
                     <div class="detailInfo">
                       <div>有害生物种类</div>
                       <div>{{ item.count }}</div>
                     </div>
+                    <div class="detailInfo" v-if="item.category != '杂草'">
+                      <div>有害生物总数</div>
+                      <div>{{ item.sum }}</div>
+                    </div>
                   </div>
                 </el-carousel-item>
               </el-carousel>
@@ -321,13 +321,13 @@
                 </div>
                 <div class="info">
                   <div>
-                    总数:
-                    <span>{{ bannerData.count }}</span>
-                  </div>
-                  <div>
                     种类:
                     <span>{{ bannerData.cg_count }}</span>
                   </div>
+                  <div>
+                    总数:
+                    <span>{{ bannerData.count }}</span>
+                  </div>
                 </div>
               </div>
             </div>
@@ -730,16 +730,16 @@ export default {
           yAxisIndex: index < 2 ? 0 : 1,
         });
         if (!type) return;
-        if (index == 0 || index == 2) {
-          series.push({
-            data: data,
-            type: 'line',
-            smooth: true,
-            name: nameList[index],
-            color: colorList[index],
-            yAxisIndex: index == 0 ? 0 : 1,
-          });
-        }
+        // if (index == 0 || index == 2) {
+        //   series.push({
+        //     data: data,
+        //     type: 'line',
+        //     smooth: true,
+        //     name: nameList[index],
+        //     color: colorList[index],
+        //     yAxisIndex: index == 0 ? 0 : 1,
+        //   });
+        // }
       });
       console.log(yAxis, series);
       let optionsPestLine = {
@@ -1196,7 +1196,7 @@ export default {
 
     .el-input__inner {
       background: #ffffff1a;
-      color: #ffffffcc;
+      color: #fff;
       border: none;
     }
   }
@@ -1266,9 +1266,9 @@ export default {
           display: flex;
           justify-content: space-between;
           align-items: center;
-          color: #ffffffcc;
+          color: #fff;
           font-size: 1.4rem;
-          height: 3.3vh;
+          height: 3.8vh;
           border-bottom: 1px solid #ffffff4d;
           font-weight: 400;
 
@@ -1285,7 +1285,7 @@ export default {
 
             span {
               cursor: pointer;
-              color: #3acd9c;
+              color: yellow;
               margin-right: 0.8rem;
             }
 
@@ -1296,8 +1296,8 @@ export default {
         }
 
         .el-carousel {
-          height: 19.8vh;
-          color: #ffffffcc;
+          height: 22.8vh;
+          color: #fff;
           font-size: 1.4rem;
 
           /deep/ .el-carousel__container {
@@ -1310,36 +1310,37 @@ export default {
             line-height: 2rem;
           }
 
+          .infoTitle {
+            font-size: 2rem;
+            // writing-mode: vertical-rl;
+            color: yellow;
+            margin-bottom: 1rem;
+          }
           .charInfo {
             width: 90%;
             margin: 0 auto;
             display: flex;
             justify-content: space-around;
             align-items: center;
-            height: calc(100% - 2rem);
+            height: calc(100% - 5rem);
 
-            .infoTitle {
-              font-size: 1.6rem;
-              writing-mode: vertical-rl;
-              color: #aaf0d2;
-            }
 
             .detailInfo {
               width: 40%;
-              height: 16vh;
+              height: 12vh;
               box-sizing: border-box;
               text-align: center;
-              background: url(../../../assets/images/newHome/all.png) top center
+              background: url(../../../assets/images/newHome/all.png) bottom center
                 no-repeat;
               background-size: cover;
 
               :first-child {
-                margin-top: 3rem;
+                margin-top: 1rem;
               }
 
               :last-child {
                 color: #fff;
-                font-size: 4rem;
+                font-size: 3rem;
                 font-weight: 400;
                 text-shadow: 0px 0px 0.4rem #fff;
               }
@@ -1440,7 +1441,7 @@ export default {
           align-items: center;
           height: 3.7vh;
           width: 21vw;
-          color: #ffffffcc;
+          color: #fff;
           font-size: 1.4rem;
           border-bottom: 1px solid #ffffff4d;
 
@@ -1468,6 +1469,7 @@ export default {
 
           .infoContent {
             width: 18.38vw;
+            color: yellow;
 
             .marginBtn {
               margin-top: 2.3vh;
@@ -1555,10 +1557,10 @@ export default {
         border-radius: 2px;
         background: #ffffff1a;
         box-sizing: border-box;
-        padding-top: 5vh;
+        padding-top: 1vh;
 
         .table {
-          height: 42.5vh;
+          height: 52.5vh;
           overflow: auto;
           width: 95%;
           margin: 0 auto;
@@ -1599,7 +1601,7 @@ export default {
           padding-right: 2.5%;
 
           div {
-            color: #ffffff80;
+            color: #ffffff;
             margin-left: 1rem;
 
             span {
@@ -1652,14 +1654,14 @@ export default {
 
   .warningBox {
     position: absolute;
-    top: 8.4vh;
+    top: 7.4vh;
     left: 50%;
     z-index: 190;
     transform: translateX(-50%);
-    width: 18.8vw;
+    width: 19.8vw;
     height: 3.7vh;
     cursor: pointer;
-    color: #ffffff;
+    color: yellow;
     font-size: 1.4rem;
     white-space: nowrap;
     /* 禁止文本换行 */