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

4 years ago
// pages/look-list/look-list.js
Page({
/**
* 页面的初始数据
*/
data: {
4 years ago
active: '',
tabs:[{id:1,name:'排序'},{id:2,name:'日期'},{id:3,name:'交易状态'},{id:4,name:'区域'},{id:5,name:'类型'}],
list:[],
refresher: false,
setScroll: true
},
4 years ago
4 years ago
comeBack(){
wx.navigateBack({
delta: 1
})
4 years ago
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
4 years ago
this.refresh()
4 years ago
},
4 years ago
tabDowm(e){
let active = e.currentTarget.dataset.id
if(active===this.data.active){
this.setData({active:'',setScroll:true})
}else{
this.setData({active,setScroll:false})
}
4 years ago
},
4 years ago
getList(){
let list = this.data.list.concat(this.data.list);
this.setData({list})
4 years ago
},
4 years ago
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)
4 years ago
},
4 years ago
hideMark(){
this.setData({active:'',setScroll:true})
4 years ago
},
4 years ago
comeDetail(){
wx.navigateTo({
url: '/pages/look-detail/look-detail',
})
4 years ago
}
})