You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
927 B

// pages/order/order-list/index.js
const event = require('../../../utils/event.js')
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
height: app.globalData.fragmentHeight - 80,
index: 1,
tabs: ['待出车', '进行中', '已完成', '进行中', '已完成', '进行中', '已完成', '进行中', '已完成'],
loading: true,
finished: false,
requesting: false,
taskList: [],
form: {
pageSize: 10,
pageNum: 1
},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
height: app.globalData.fragmentHeight - 80,
CustomBar: app.globalData.CustomBar,
index: Number(options.index)
})
},
onTabChange: function (e) {
if(this.data.index == Number(e.detail.index)){
return
}
this.data.index = Number(e.detail.index)
console.log(e.detail.index)
}
})