1234567891011121314151617181920212223242526 |
- Page({
- data: {
- tab: [
- {
- text: "全部"
- },
- {
- text: "待进行"
- },
- {
- text: "待评价"
- }
- ],
- tabCurrent: 0
- },
- changeTab (e) {
- const {index} = e.currentTarget.dataset
- const {tabCurrent} = this.data
- if (index !== tabCurrent) {
- this.setData({
- tabCurrent: index
- })
- }
- }
- });
|