diff --git a/nkebao/src/pages/mobile/content/materials/form/index.tsx b/nkebao/src/pages/mobile/content/materials/form/index.tsx
index 4682209c..708caa52 100644
--- a/nkebao/src/pages/mobile/content/materials/form/index.tsx
+++ b/nkebao/src/pages/mobile/content/materials/form/index.tsx
@@ -141,6 +141,7 @@ const MaterialForm: React.FC = () => {
sendTime: sendTime || "",
resUrls,
urls: finalUrls,
+ type: contentType,
};
if (isEdit) {
@@ -184,7 +185,30 @@ const MaterialForm: React.FC = () => {
}
return (
- }>
+ }
+ footer={
+
+
+
+
+ }
+ >
{/* 基础信息 */}
@@ -370,27 +394,6 @@ const MaterialForm: React.FC = () => {
/>
-
- {/* 操作按钮 */}
-
-
-
-
diff --git a/nkebao/src/pages/mobile/content/materials/list/api.ts b/nkebao/src/pages/mobile/content/materials/list/api.ts
index d102c693..6037391f 100644
--- a/nkebao/src/pages/mobile/content/materials/list/api.ts
+++ b/nkebao/src/pages/mobile/content/materials/list/api.ts
@@ -28,7 +28,7 @@ export function updateContentItem(params: UpdateContentItemParams) {
// 删除素材
export function deleteContentItem(id: string) {
- return request("/v1/content/item/delete", { id }, "DELETE");
+ return request("/v1/content/library/delete-item", { id }, "DELETE");
}
// 获取内容库详情
diff --git a/nkebao/src/pages/mobile/content/materials/list/index.module.scss b/nkebao/src/pages/mobile/content/materials/list/index.module.scss
index 88564e71..666b75ad 100644
--- a/nkebao/src/pages/mobile/content/materials/list/index.module.scss
+++ b/nkebao/src/pages/mobile/content/materials/list/index.module.scss
@@ -393,13 +393,25 @@
}
}
- // 4张及以上:网格布局
+ // 4张图片:2x2网格布局
+ &.quad {
+ grid-template-columns: repeat(2, 1fr);
+
+ img {
+ width: 100%;
+ height: 140px;
+ object-fit: cover;
+ border-radius: 8px;
+ }
+ }
+
+ // 5张及以上:网格布局
&.grid {
grid-template-columns: repeat(3, 1fr);
img {
width: 100%;
- height: 80px;
+ height: 100px;
object-fit: cover;
border-radius: 8px;
}
@@ -413,7 +425,7 @@
color: #666;
font-size: 12px;
font-weight: 500;
- height: 80px;
+ height: 100px;
}
}
}
diff --git a/nkebao/src/pages/mobile/content/materials/list/index.tsx b/nkebao/src/pages/mobile/content/materials/list/index.tsx
index ab924d9e..11c2ed0f 100644
--- a/nkebao/src/pages/mobile/content/materials/list/index.tsx
+++ b/nkebao/src/pages/mobile/content/materials/list/index.tsx
@@ -157,7 +157,9 @@ const MaterialsList: React.FC = () => {
? style.double
: resUrls.length === 3
? style.triple
- : style.grid
+ : resUrls.length === 4
+ ? style.quad
+ : style.grid
}`}
>
{resUrls.slice(0, 9).map((url, index) => (
@@ -364,7 +366,11 @@ const MaterialsList: React.FC = () => {
{renderContentTypeTag(material.contentType)}
{/* 标题 */}
- {material.content}
+ {material.contentType != 4 && (
+
+ {material.content}
+
+ )}
{/* 内容预览 */}
{renderContentPreview(material)}