''
liukangdong
2024-07-25 73393bacf16a3ab018f0688b89ca58984ddbbd70
wechat_staff/components/disProduct/index.js
@@ -6,10 +6,6 @@
  properties: {
    menuButtonInfo: Object
  },
  /**
   * 组件的初始数据
   */
  data: {
    activeIndex: -1,
    activeParam: [],
@@ -118,8 +114,6 @@
      const paramIndex = e.currentTarget.dataset.index
      const { secondCateList, tagCodes, activeParam, activeIndex } = this.data
      const index = tagCodes.indexOf(code)
      console.log('code', code);
      console.log('tagCodes', tagCodes);
      if(index === -1){
        // 同param里code重复
        if(activeParam && activeParam.length > 0){
@@ -138,7 +132,6 @@
        secondCateList[activeIndex].paramIndex = -1
        secondCateList[activeIndex].paramName = ''
      }
      this.setData({ pageNum: 1,datalist: [],total: 0})
      this.setData({ tagCodes, secondCateList })
    },
    changeShowParams(e){
@@ -164,6 +157,7 @@
        item.paramName = ''
      })
      this.setData({ tagCodes: [],activeParam: [],secondCateList,activeIndex: -1 })
      this.getList()
    },
    subParam() {
      this.setData({ activeParam: [] })