You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
602 B
31 lines
602 B
5 years ago
|
|
||
|
// import { getEventDynamicTop10 } from '../../../../../../api/partyInteract'
|
||
|
Component({
|
||
|
data: {
|
||
|
orderType: 'asc',
|
||
|
type: 'first'
|
||
|
},
|
||
|
properties: {
|
||
|
|
||
|
},
|
||
|
methods: {
|
||
|
// 正序倒序切换
|
||
|
changeOrder() {
|
||
|
let type = 'asc'
|
||
|
if (this.data.orderType === 'asc') {
|
||
|
type = 'desc'
|
||
|
} else if (this.data.orderType === 'desc') {
|
||
|
type = 'asc'
|
||
|
}
|
||
|
this.setData({
|
||
|
orderType: type,
|
||
|
})
|
||
|
},
|
||
|
// 类目切换
|
||
|
onButtonChange(e: AnyObject) {
|
||
|
this.setData({
|
||
|
type: e.currentTarget.dataset.type,
|
||
|
})
|
||
|
},
|
||
|
}
|
||
|
})
|