Kaynağa Gözat

库存并库init

zh 3 ay önce
ebeveyn
işleme
bae1c9eb8d
2 değiştirilmiş dosya ile 19 ekleme ve 8 silme
  1. 1 1
      .env.sit
  2. 18 7
      src/views/robot/merge/index.vue

+ 1 - 1
.env.sit

@@ -7,5 +7,5 @@ PORT = 80
 
 
 # base api
-VITE_APP_BASE_API = http://sit.api.baoshi56.com/
+VITE_APP_BASE_API = https://sit-api.baoshi56.com/
 

+ 18 - 7
src/views/robot/merge/index.vue

@@ -1182,20 +1182,28 @@ const submitMove = () => {
 
   .box-item {
     width: 100%;
-    aspect-ratio: 0.8;
     border: 1px solid #ddd;
-    display: flex;
-    flex-direction: column;
-    align-items: center;
-    justify-content: center;
     font-size: 14px;
     color: #333;
     background: #fff;
     cursor: pointer;
     border-radius: 4px;
     position: relative;
+    box-sizing: border-box;
+    overflow: hidden;
+
+    /* 使用伪元素实现宽高比,兼容安卓WebView */
+    &::before {
+      content: '';
+      display: block;
+      padding-top: 125%; /* 0.8的宽高比 = 1/0.8 = 125% */
+    }
 
     .box-label {
+      position: absolute;
+      top: 50%;
+      left: 50%;
+      transform: translate(-50%, -50%);
       font-size: 11px;
       color: #666;
       text-align: center;
@@ -1236,8 +1244,11 @@ const submitMove = () => {
       cursor: default;
 
       .sub-grid {
-        width: 100%;
-        height: 100%;
+        position: absolute;
+        top: 3px;
+        left: 3px;
+        right: 3px;
+        bottom: 3px;
         display: grid;
         gap: 2px;
       }