From 0abe6ac3b77cd414e860df4979aa06c62c3e6143 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期五, 06 九月 2024 19:06:46 +0800
Subject: [PATCH] 1、【花满芫小程序项目】 小程序-花店:申请售后-售后理由字段布局调整,字数过多显示会跨行 2、【花满芫小程序项目】 管理端-合伙人:质检详情-降级、缺货、补货高亮显示 3、【花满芫小程序项目】 小程序-花店:浏览记录-浏览记录默认状态按照时间倒序排列 因为目前只显示10条记录,不按时间顺序的话最新的浏览记录就不会被看到; 4、【花满芫小程序项目】 小程序-合伙人:合伙人审核-1.已经审核通过后,现在还可以再次提交审核,不合逻辑。 2.审核后的不通过原因,需要显示在小程序端;
---
sub_pages/customer/self/history.vue | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/sub_pages/customer/self/history.vue b/sub_pages/customer/self/history.vue
index d1a2578..1664760 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', {
@@ -54,7 +55,31 @@
})
})
},
+ onShow() {
+ // 页面显示时重新加载浏览记录数据
+ this.listApi = '/api/browse/history/list'
+ this.page.size =30
+ this.getList()
+ },
+
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 +204,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