1234567891011121314151617 |
- const app = getApp();
- Page({
- data: {
- StatusBar: app.globalData.StatusBar,
- CustomBar: app.globalData.CustomBar,
- ColorList: app.globalData.ColorList,
- scrollLeft: 0,
- TabCur: 0,
- },
- tabSelect(e) {
- console.log(e);
- this.setData({
- TabCur: e.currentTarget.dataset.id,
- scrollLeft: (e.currentTarget.dataset.id - 1) * 60
- })
- },
- });
|