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.
 

68 lines
1.6 KiB

// pages/look-list/look-list.js
Page({
/**
* 页面的初始数据
*/
data: {
active: '',
tabs:[{id:1,name:'排序'},{id:2,name:'日期'},{id:3,name:'交易状态'},{id:4,name:'区域'},{id:5,name:'类型'}],
list:[],
refresher: false,
setScroll: true
},
comeBack(){
wx.navigateBack({
delta: 1
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
this.refresh()
},
tabDowm(e){
let active = e.currentTarget.dataset.id
if(active===this.data.active){
this.setData({active:'',setScroll:true})
}else{
this.setData({active,setScroll:false})
}
},
getList(){
let list = this.data.list.concat(this.data.list);
this.setData({list})
},
refresh(){
let list = [
{title:'CQ210003-九龙坡区大桥石S区十组245-2',timer:'2021/01/01',state:1},
{title:'CQ210003-九龙坡区大桥石S区十组245-2',timer:'2021/01/01',state:2},
{title:'CQ210003-九龙坡区大桥石S区十组245-2',timer:'2021/01/01',state:3},
{title:'CQ210003-九龙坡区大桥石S区十组245-2',timer:'2021/01/01',state:2},
{title:'CQ210003-九龙坡区大桥石S区十组245-2',timer:'2021/01/01',state:3},
{title:'CQ210003-九龙坡区大桥石S区十组245-2',timer:'2021/01/01',state:1},
]
setTimeout(()=>{this.setData({list,refresher:false})},200)
},
hideMark(){
this.setData({active:'',setScroll:true})
},
comeDetail(){
wx.navigateTo({
url: '/pages/look-detail/look-detail',
})
}
})