修复结算页中有无效商品店铺显示问题。优化购物车页。管理端增加搜索热词全删除

This commit is contained in:
paulGao
2022-04-22 16:48:43 +08:00
parent 7ff51b5e53
commit 0635dd38a2
3 changed files with 172 additions and 75 deletions

View File

@@ -3,6 +3,7 @@
<Card>
<Row class="operation">
<Button @click="add()" type="primary">设置今日热词</Button>
<Button @click="deleteWords('')" type="primary">清空热词</Button>
</Row>
<Row>
<p>
@@ -112,10 +113,16 @@ export default {
this.modalVisible = true;
},
deleteWords(words) {
let title = "是否确定删除热词";
let content = "<p>您确定要删除此热词吗?</p>";
if (words === '') {
title = "是否确定清空热词";
content = "<p>您确定要清空热词吗?</p>";
}
this.$Modal.confirm({
title: "是否确定删除热词",
content: "<p>您确定要删除此热词吗?</p>",
okText: "确",
title: title,
content: content,
okText: "确",
cancelText: "取消",
onOk: () => {
deleteHotWords(words).then((res) => {