|
@@ -7,6 +7,9 @@ Component({
|
|
|
list: {
|
|
|
type: Array,
|
|
|
value: ['最新', '最热']
|
|
|
+ },
|
|
|
+ change: {
|
|
|
+ type: Function
|
|
|
}
|
|
|
},
|
|
|
lifetimes: {
|
|
@@ -40,7 +43,7 @@ Component({
|
|
|
this.setData({
|
|
|
checkedItem: this.data.checkedItem == 0 ? 1 : 0
|
|
|
})
|
|
|
- console.log(this.data.list[this.data.checkedItem])
|
|
|
+ this.triggerEvent('change', this.data.list[this.data.checkedItem])
|
|
|
this.chengeSelect()
|
|
|
},
|
|
|
chengeSelect() {
|