(index, miniWallKey, type)
| 74 | // this._getRealCategoryDetail(currentIndex, miniWallKey, 'sell'); |
| 75 | }, |
| 76 | _getRealCategoryDetail(index, miniWallKey, type) { |
| 77 | getCategoryDetail(miniWallKey, type).then(res => { |
| 78 | // 1.获取categoryData |
| 79 | const categoryData = this.data.categoryData; |
| 80 | |
| 81 | // 2.修改数据 |
| 82 | categoryData[index].categoryDetail = res; |
| 83 | |
| 84 | // 3.修改data中的数据 |
| 85 | this.setData({ |
| 86 | categoryData: categoryData |
| 87 | }) |
| 88 | }) |
| 89 | }, |
| 90 | menuClick(e) { |
| 91 | // 1.改变当前的currentIndex |
| 92 | const currentIndex = e.detail.currentIndex; |
nothing calls this directly
no test coverage detected