// 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, }) }, } })