// 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, proviceList: ['全部', '华中', '华南', '华东', '北部', '西部', '全部', '华中', '华南', '华东', '北部', '西部'], pIndex: 0, //tab标题的滚动条位置 orderList: [] }, methods: { onRestart: function () { if(!this.data.firstShow){ setTimeout(() => { this.setData({ tabIndex: 0, firstShow: true }) }, 100) } }, onTabChange: function({ detail }){ if (this.data.tabIndex == Number(detail.index)) { return } this.setData({ pIndex: 0 }) }, onProviceChange: function(){ if (this.data.pIndex == Number(detail.index)) { return } }, fetchList: function(){ } } })