jiangping
2024-07-26 816d84a76c1a2f16f88dba70664397961f55caa1
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){