|
|
@ -38,6 +38,9 @@ Component({ |
|
|
methods: { |
|
|
methods: { |
|
|
onRestart: function () { |
|
|
onRestart: function () { |
|
|
if(!this.data.firstShow){ |
|
|
if(!this.data.firstShow){ |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
this.setData({ tabIndex: 0, tabList: [ '推荐', '关注', '全部' , '资讯'] }) |
|
|
|
|
|
}, 100) |
|
|
params.date = util.formatDate(new Date(), 'Y-M-D') |
|
|
params.date = util.formatDate(new Date(), 'Y-M-D') |
|
|
} |
|
|
} |
|
|
this.data.firstShow = true |
|
|
this.data.firstShow = true |
|
|
@ -98,12 +101,10 @@ Component({ |
|
|
this.setData({noticeList: this.data.noticeList}) |
|
|
this.setData({noticeList: this.data.noticeList}) |
|
|
} |
|
|
} |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err) |
|
|
|
|
|
this.data.loopRequesting = false |
|
|
this.data.loopRequesting = false |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
handResult: function(record){ |
|
|
handResult: function(record){ |
|
|
console.log(record) |
|
|
|
|
|
// if(record.latestQuoteTime.indexOf(params.data) < 0){
|
|
|
// if(record.latestQuoteTime.indexOf(params.data) < 0){
|
|
|
// return
|
|
|
// return
|
|
|
// }
|
|
|
// }
|
|
|
|