Explorar el Código

pc端去掉名字和类型,移动端隐藏类型

shaogen1995 hace 2 años
padre
commit
7d2c375dbe

+ 1 - 1
webNew/src/pages/Home/index.module.scss

@@ -166,7 +166,7 @@
 
           &>img {
             width: 264px;
-            height: 224px;
+            height: 264px;
             object-fit: cover;
           }
 

+ 2 - 2
webNew/src/pages/Home/index.tsx

@@ -203,12 +203,12 @@ export default function Home() {
                   height={260}
                   alt=""
                 />
-                <p>
+                {/* <p>
                   {item.dictTextureName ? (
                     <span className="row_txt1">{item.dictTextureName}</span>
                   ) : null}
                   <span className="row_txt2">{item.name}</span>
-                </p>
+                </p> */}
               </div>
             ))
           ) : dataOne ? (

+ 1 - 1
webNew/src/pages/HomeM/index.tsx

@@ -195,7 +195,7 @@ export default function HomeM() {
                   <p>{item.name}</p>
                   {/* 右上角分类 */}
                   {item.dictTextureName ? (
-                    <div className="sortName">{item.dictTextureName}</div>
+                    <div className="sortName" style={{display:'none'}}>{item.dictTextureName}</div>
                   ) : null}
                 </div>
               ))}