|
|
|
@ -46,26 +46,14 @@ Component({
|
|
|
|
|
id: options.id
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
this.getData().then(() => {
|
|
|
|
|
this.getLikeData()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
//页面上拉触底事件的处理函数
|
|
|
|
|
onReachBottom: function () {
|
|
|
|
|
// console.log("上拉触底事件")
|
|
|
|
|
let that = this
|
|
|
|
|
if (!that.data.loadMore) {
|
|
|
|
|
that.setData({
|
|
|
|
|
loadMore: true, //加载中
|
|
|
|
|
loadAll: false //是否加载完所有数据
|
|
|
|
|
});
|
|
|
|
|
//加载更多,这里做下延时加载
|
|
|
|
|
that.getLikeData();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// onShow() {
|
|
|
|
|
// this.getData().then(() => {
|
|
|
|
|
// this.getLikeData()
|
|
|
|
|
// })
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
searchScrollLower() {
|
|
|
|
|
this.getLikeData();
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getData(sTimeType, sStartTime, sEndTime) {
|
|
|
|
@ -100,7 +88,7 @@ Component({
|
|
|
|
|
loadAll: false //把“没有数据”设为false,隐藏
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
app.globalData.request(obj).then(res => {
|
|
|
|
|
app.globalData.request(obj ,res => {
|
|
|
|
|
let arr = []
|
|
|
|
|
res.forEach(ele => {
|
|
|
|
|
let ol = {
|
|
|
|
@ -320,12 +308,6 @@ Component({
|
|
|
|
|
intervalSel: e.currentTarget.dataset.index
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// bindAccountChange(e){
|
|
|
|
|
// // console.log('切换改变的值', e.detail.value);
|
|
|
|
|
// this.setData({
|
|
|
|
|
// accountIndex: e.detail.value
|
|
|
|
|
// })
|
|
|
|
|
// },
|
|
|
|
|
//弹出框
|
|
|
|
|
times(val){
|
|
|
|
|
var month=val.substring(0,4) //获取年份
|
|
|
|
@ -383,6 +365,19 @@ Component({
|
|
|
|
|
models
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
//页面上拉触底事件的处理函数
|
|
|
|
|
onReachBottom: function () {
|
|
|
|
|
console.log("上拉触底事件")
|
|
|
|
|
let that = this
|
|
|
|
|
if (!that.data.loadMore) {
|
|
|
|
|
that.setData({
|
|
|
|
|
loadMore: true, //加载中
|
|
|
|
|
loadAll: false //是否加载完所有数据
|
|
|
|
|
});
|
|
|
|
|
//加载更多,这里做下延时加载
|
|
|
|
|
that.getData();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
exit() {
|
|
|
|
|
this.setData({
|
|
|
|
|