From da906d52c08151a8bf4759715ed4d71eabf77ac1 Mon Sep 17 00:00:00 2001 From: van Date: Wed, 11 Mar 2026 22:17:12 +0800 Subject: [PATCH] 1 --- .../system/social-media/xianyu-wenan.vue | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/views/system/social-media/xianyu-wenan.vue b/src/views/system/social-media/xianyu-wenan.vue index 2e340b8..8aee209 100644 --- a/src/views/system/social-media/xianyu-wenan.vue +++ b/src/views/system/social-media/xianyu-wenan.vue @@ -62,6 +62,12 @@ @click="handleGenerate"> 生成闲鱼文案 + + 清空输入 + @@ -152,6 +158,11 @@ export default { if (this.resizeTimer) clearTimeout(this.resizeTimer) this.resizeTimer = setTimeout(this.checkMobile, 150) }, + handleClearInput() { + this.form.title = '' + this.form.remark = '' + this.$message.success('已清空输入') + }, async handleGenerate() { const title = (this.form.title || '').trim() if (!title) { @@ -267,6 +278,9 @@ export default { overflow-y: auto; -webkit-overflow-scrolling: touch; } +.btn-clear { + margin-left: 12px; +} /* 移动端适配 */ @media (max-width: 767px) { @@ -307,6 +321,12 @@ export default { display: block; height: 44px; font-size: 15px; + margin-bottom: 8px; + } + .btn-clear { + width: 100%; + height: 44px; + margin-left: 0; } .result-section { margin-top: 16px;