shaogen1995 2 tahun lalu
induk
melakukan
9c5aafc390
2 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. 4 4
      houtai/src/pages/A1Hot/index.tsx
  2. 2 2
      houtai/src/pages/B2Goods/index.tsx

+ 4 - 4
houtai/src/pages/A1Hot/index.tsx

@@ -46,7 +46,7 @@ function Hot() {
 
   // 日期下拉框
   const [select1, setSelect1] = useState<1 | 7 | 30 | "">(7);
-  // 藏排行下拉框
+  // 藏排行下拉框
   const [select2, setSelect2] = useState("visit");
   // 场景排行下拉框
   const [select3, setSelect3] = useState("visit");
@@ -195,7 +195,7 @@ function Hot() {
     echartsFu2("#echarts4", data4, data4Obj);
   }, [echartsFu2, select1]);
 
-  // 藏排行
+  // 藏排行
   const getlikeData1Fu = useCallback(async () => {
     const res = await getHotInfo4API(select1, select2);
     const data: HotInfo4Type[] = res.data;
@@ -236,7 +236,7 @@ function Hot() {
     echartsB1();
   }, [echartsB1]);
 
-  // 关于藏排行改变数据重新发请求拿数据
+  // 关于藏排行改变数据重新发请求拿数据
   useEffect(() => {
     getlikeData1Fu();
   }, [getlikeData1Fu]);
@@ -410,7 +410,7 @@ function Hot() {
 
                 <div className="downBoxLMain2L">
                   <div className="hotTitSelect">
-                    <div>藏排行</div>
+                    <div>藏排行</div>
                     <Select
                       value={select2}
                       style={{ width: 100 }}

+ 2 - 2
houtai/src/pages/B2Goods/index.tsx

@@ -295,9 +295,9 @@ function Goods() {
         title: "简介",
         render: (item: GoodsTableType) =>
           item.description ? (
-            item.description.length >= 20 ? (
+            item.description.length >= 25 ? (
               <span style={{ cursor: "pointer" }} title={item.description}>
-                {item.description.substring(0, 20) + "..."}
+                {item.description.substring(0, 25) + "..."}
               </span>
             ) : (
               item.description