From fb0a6f1f2107919bdfe8bd849e2cbf0a196f435d Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 06 九月 2024 10:28:31 +0800
Subject: [PATCH] 1
---
sub_pages/customer/self/history.vue | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/sub_pages/customer/self/history.vue b/sub_pages/customer/self/history.vue
index d1a2578..0c60b89 100644
--- a/sub_pages/customer/self/history.vue
+++ b/sub_pages/customer/self/history.vue
@@ -26,6 +26,7 @@
},
onLoad() {
this.listApi = '/api/browse/history/list'
+ this.page.size =30
this.getList()
this.$http.request('get', '/api/code/value', {
@@ -55,6 +56,23 @@
})
},
methods: {
+
+ async deleteExpired() {
+ await this.$message.confirm('是否清空已失效的商品')
+ this.$message.showLoading()
+ const {
+ code
+ } = await this.$http.request('post', '/api/browse/history/clear', {
+ data: {
+
+ }
+ })
+ this.$message.hideLoading()
+ if (code === 0) {
+ this.refreshList()
+ }
+ },
+
toDetail(item) {
if (item.status == 'UP') {
@@ -179,6 +197,10 @@
{{ query.levelStr || '级别' }}
<image src="../../../static/common/icon-arrow-down.png" class="icon-arrow-down"></image>
</view>
+ <view class="flex1" @click="deleteExpired()">
+ 一键清空已失效
+ <!-- <image src="../../../static/common/icon-arrow-down.png" class="icon-arrow-down"></image> -->
+ </view>
</view>
</view>
--
Gitblit v1.9.3