| | |
| | | |
| | | // 全选 |
| | | checkAll() { |
| | | wx.showLoading() |
| | | const ids = []; |
| | | let list = []; |
| | | let checked = ""; |
| | |
| | | composed: true, |
| | | }; // 触发事件的选项 |
| | | this.triggerEvent("changeCheckAll", myEventDetail, myEventOption); |
| | | wx.hideLoading() |
| | | }, |
| | | |
| | | // 章节勾选 |
| | | checkResourceTitle(e) { |
| | | wx.showLoading() |
| | | const flag = e.detail.checked; |
| | | // 这个时候checked的值是fals |
| | | const item = e.currentTarget.dataset.item; |
| | |
| | | this.setData({ |
| | | openIds: this.data.openIds, |
| | | }); |
| | | wx.hideLoading() |
| | | }, |
| | | // 子项勾选 |
| | | checkResource(e) { |
| | | wx.showLoading() |
| | | const citem = e.currentTarget.dataset.item; |
| | | const parent = e.currentTarget.dataset.parent; |
| | | let outermost; |
| | |
| | | this.triggerEvent("changeListChecked", myEventDetail, myEventOption); |
| | | } |
| | | } |
| | | wx.hideLoading() |
| | | }, |
| | | // 加入购物车 |
| | | async onCloudShoppingCart(e) { |