bding il y a 3 mois
Parent
commit
f1a3cdd916
1 fichiers modifiés avec 25 ajouts et 27 suppressions
  1. 25 27
      src/Column/components/ColumnContent.tsx

+ 25 - 27
src/Column/components/ColumnContent.tsx

@@ -252,35 +252,33 @@ const ColumnContent: React.FC<IColumnContentProps> = props => {
             onRefresh={handleToRefresh}
           />
         )}
-
+      {type === 'list' && (
+        <div className="g-flex g-flex-v-center g-flex-between m-b-md note-showmore-line">
+          <div className="g-flex g-flex-v-center">
+            <div className="note-pv">
+              <EyeOutlined size={14} className="pv-icon" />
+              <span>{(detail as IColumnDetail).Pv || 0}</span>
+            </div>
+            {(detail as IColumnDetail)?.IsCollect ? (
+              <StarFilled
+                className="collect-icon"
+                onClick={handleOnCollect.bind(this, (detail as IColumnDetail)?.IsCollect)}
+              />
+            ) : (
+              <StarOutlined
+                className="collect-icon"
+                onClick={handleOnCollect.bind(this, (detail as IColumnDetail)?.IsCollect)}
+              />
+            )}
+            <span className="collect-count">{(detail as IColumnDetail)?.CollectNum}</span>
+          </div>
+          <div className="note-showmore-btn" onClick={handleToDetail}>
+            查看全文
+          </div>
+        </div>
+      )}
       {(detail as IColumnDetail)?.HasPermission === INewPermissionType.OK && (
         <>
-          {type === 'list' && (
-            <div className="g-flex g-flex-v-center g-flex-between m-b-md note-showmore-line">
-              <div className="g-flex g-flex-v-center">
-                <div className="note-pv">
-                  <EyeOutlined size={14} className="pv-icon" />
-                  <span>{(detail as IColumnDetail).Pv || 0}</span>
-                </div>
-                {(detail as IColumnDetail)?.IsCollect ? (
-                  <StarFilled
-                    className="collect-icon"
-                    onClick={handleOnCollect.bind(this, (detail as IColumnDetail)?.IsCollect)}
-                  />
-                ) : (
-                  <StarOutlined
-                    className="collect-icon"
-                    onClick={handleOnCollect.bind(this, (detail as IColumnDetail)?.IsCollect)}
-                  />
-                )}
-                <span className="collect-count">{(detail as IColumnDetail)?.CollectNum}</span>
-              </div>
-              <div className="note-showmore-btn" onClick={handleToDetail}>
-                查看全文
-              </div>
-            </div>
-          )}
-
           {!login2p.jwt && type === 'detail' ? (
             <div className="please-login-btn" onClick={handleToShowMore}>
               请登录后查看更多内容