| | |
| | | } |
| | | }, |
| | | data: { |
| | | |
| | | activeValues: [1, 2], |
| | | webpageSrc: '', |
| | | cloudShoppingCart: [] |
| | | }, |
| | | ready() { |
| | | this.setData({ |
| | | |
| | | }) |
| | | console.log('准备'); |
| | | }, |
| | | onShow() { |
| | | }, |
| | | observers: { |
| | | 'treeList': function (newValue) { |
| | | |
| | | 'openIds': function (newValue) { |
| | | var myEventDetail = { |
| | | } |
| | | var myEventOption = { |
| | | bubbles: true, |
| | | composed: true |
| | | } |
| | | this.triggerEvent('handleTree', myEventDetail, myEventOption) |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | handleList(tree) { |
| | | for (let index = 0; index < tree.length; index++) { |
| | | const item = tree[index]; |
| | |
| | | }, |
| | | // 节点展开 |
| | | handleChange(e) { |
| | | // console.log(this.properties.treeList, 'this.properties.treeList'); |
| | | this.setData({ |
| | | activeValues: e.detail.value, |
| | | openIds: e.detail.value, |
| | | }); |
| | | // console.log('传递', this.properties.buyIds); |
| | | }, |
| | | handleCheck(data) { |
| | | for (let index = 0; index < data.length; index++) { |