From 4080d2de9b93bf1050892936fca3103819512e64 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 14 Jan 2023 00:17:35 +0800 Subject: [PATCH] =?UTF-8?q?mp=EF=BC=9A=E5=88=9D=E6=AD=A5=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E3=80=90=E8=8D=89=E7=A8=BF=E3=80=91=E7=9A=84=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/api/mp/draft.js | 11 ++ yudao-ui-admin/src/views/mp/draft/index.vue | 170 +++++++++++--------- 2 files changed, 105 insertions(+), 76 deletions(-) diff --git a/yudao-ui-admin/src/api/mp/draft.js b/yudao-ui-admin/src/api/mp/draft.js index b1623c6d7..4b8d58385 100644 --- a/yudao-ui-admin/src/api/mp/draft.js +++ b/yudao-ui-admin/src/api/mp/draft.js @@ -8,3 +8,14 @@ export function getDraftPage(query) { params: query }) } + +// 创建草稿 +export function createDraft(accountId, articles) { + return request({ + url: '/mp/draft/create?accountId=' + accountId, + method: 'post', + data: { + articles + } + }) +} diff --git a/yudao-ui-admin/src/views/mp/draft/index.vue b/yudao-ui-admin/src/views/mp/draft/index.vue index 9e9da9fbd..39467d810 100644 --- a/yudao-ui-admin/src/views/mp/draft/index.vue +++ b/yudao-ui-admin/src/views/mp/draft/index.vue @@ -60,14 +60,14 @@ SOFTWARE. -
+
暂无数据
- 下移 上移 - 删除
-
+
@@ -121,40 +121,30 @@ SOFTWARE. v-if="hackResetEditor"/>



+
封面和摘要:
+ :src="articlesAdd[isActiveAddNews].thumbUrl" :class="isActiveAddNews === 0 ? 'avatar':'avatar1'">
- - - 本地上传 - - 素材库选择 - -
支持bmp/png/jpeg/jpg/gif格式,大小不超过2M
+ + 本地上传 + 素材库选择 +
支持 bmp/png/jpeg/jpg/gif 格式,大小不超过 2M
- +
+
标题:
作者:
@@ -171,13 +161,12 @@ SOFTWARE.