From 437d2d880c7479c848d0617fa1d95189e803300d Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 26 七月 2024 19:32:02 +0800
Subject: [PATCH] 提交

---
 wechat_jiaxuan/components/disRealpic/index.js |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/wechat_jiaxuan/components/disRealpic/index.js b/wechat_jiaxuan/components/disRealpic/index.js
index bf22744..95e7e49 100644
--- a/wechat_jiaxuan/components/disRealpic/index.js
+++ b/wechat_jiaxuan/components/disRealpic/index.js
@@ -18,7 +18,7 @@
     pageNum: 1,
     pageSize: 10,
     query: '',
-    sortType: 'NORMAL',
+    sortType: '',
     catalogCode: 'real_case'
   },
   attached() {
@@ -50,6 +50,10 @@
           total: res.data.total,
         })
       })
+    },
+    scrolltoupper() {
+      this.setData({ pageNum: 1,datalist: [],total: 0})
+      this.getList()
     },
     scrolltolower() {
       console.log('瑙﹀簳浜嬩欢');
@@ -147,16 +151,17 @@
       const { cateList } = this.data
       cateList.forEach(item => {
         item.paramIndex = -1
-        item.paramName = ''
+        item.paramName = item.paramName || ''
       })
       this.setData({ tagCodes: [],activeParam: [],cateList,activeIndex: -1 })
     },
     bindblur() {
+      this.setData({ pageNum: 1,dataList: [],total: 0})
       this.getList()
     },
     subParam() {
       this.setData({ activeParam: [] })
-      this.setData({ pageNum: 1,dataList: [],total: 0})
+      this.setData({ pageNum: 1,activeIndex: -1,dataList: [],total: 0})
       this.getList()
     },
     changeShowParams(e){

--
Gitblit v1.9.3