// pages/message/index.js const util = require('../../../utils/util') const app = getApp() Component({ options: { addGlobalClass: true, multipleSlots: true }, properties: { height: { type: Number, value: 0 } }, data: { tabList: [ '全部', '华中', '华南', '华东', '北部', '西部'], tabIndex: 0, navData:[ { text: '首页' }, { text: '健康' }, { text: '情感' }, { text: '职场' }, { text: '育儿' }, { text: '纠纷' }, { text: '青葱' }, { text: '上课' }, { text: '下课' } ], orderList: [] }, methods: { onRestart: function () { if(!this.data.firstShow){ setTimeout(() => { this.setData({ tabIndex: 0, firstShow: true }) }, 100) } }, fetchList: function(){ } } })