From 1ae423f71a056e06a1f8908c6ae048d865e8ff47 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 26 七月 2024 11:43:43 +0800
Subject: [PATCH] b端

---
 wechat_jiaxuan/components/disCase/index.js |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/wechat_jiaxuan/components/disCase/index.js b/wechat_jiaxuan/components/disCase/index.js
index 835f66a..ac0a0ea 100644
--- a/wechat_jiaxuan/components/disCase/index.js
+++ b/wechat_jiaxuan/components/disCase/index.js
@@ -19,7 +19,7 @@
     pageNum: 1,
     pageSize: 10,
     query: '',
-    sortType: 'NORMAL',
+    sortType: '',
     catalogCode: 'whole_case'
   },
   attached() {
@@ -53,6 +53,10 @@
           })
         }  
       })
+    },
+    scrolltoupper() {
+      this.setData({ pageNum: 1,datalist: [],total: 0})
+      this.getList()
     },
     scrolltolower() {
       console.log('瑙﹀簳浜嬩欢');
@@ -96,6 +100,15 @@
       const index = tagCodes.indexOf(code)
       
       if(index === -1){
+        // 鍚宲aram閲宑ode閲嶅
+        if(activeParam && activeParam.length > 0){
+          activeParam.forEach(item => {
+            const indexTemp = tagCodes.indexOf(item.labelValueCode)
+            if(indexTemp > -1){
+              tagCodes.splice(indexTemp, 1)
+            }
+          })
+        }
         tagCodes.push(code)
         cateList[activeIndex].paramIndex = paramIndex
         cateList[activeIndex].paramName = activeParam[paramIndex].labelValueName
@@ -117,10 +130,12 @@
       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.getList()
     },
     changeShowParams(e){

--
Gitblit v1.9.3