浏览代码

修改筛选问题

xiaohaizhao 4 天之前
父节点
当前提交
9aa8aace2e
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      prsx/select/product/index.js

+ 5 - 5
prsx/select/product/index.js

@@ -11,7 +11,7 @@ Page({
     active: "Receive",
     filterShow: true,
     filterSearchShow: false,
-    filtratelist:[]
+    filtratelist: []
   },
   onLoad(options) {
     if (options.params) {
@@ -190,7 +190,7 @@ Page({
 
   },
   interrupt(e) {
-    console.log(e)
+    console.log("2323", e)
     _Http.basic({
       "id": "20230325141103",
       "content": {
@@ -199,10 +199,10 @@ Page({
     }).then(res => {
       console.log("获取营销类别", res)
       if (res.code != 1) return
-      this.data.filtratelist.find(v => v.label == '营销类别').list = res.data[0].ttemclass
-      this.data.filtratelist.find(v => v.label == '品牌').value = e.detail.data.value
+      e.detail.list.find(v => v.label == '营销类别').list = res.data[0].ttemclass
+      e.detail.list.find(v => v.label == '品牌').value = e.detail.data.value
       this.setData({
-        filtratelist:this.data.filtratelist
+        filtratelist: e.detail.list
       })
     })
   }