1
This commit is contained in:
@@ -62,6 +62,12 @@
|
||||
@click="handleGenerate">
|
||||
生成闲鱼文案
|
||||
</el-button>
|
||||
<el-button
|
||||
class="btn-clear"
|
||||
:disabled="!form.title && !form.remark"
|
||||
@click="handleClearInput">
|
||||
<i class="el-icon-delete"></i> 清空输入
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user