index.js 239 Bytes Edit 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import { getFormatDate } from '../../utils/utils' Page({ data: { tabBarIndex: '0' }, onLoad() { }, // 修改tabBar changeTabBar(e) { this.setData({ tabBarIndex: e.currentTarget.dataset.tabbar }) }, });