|
|
@@ -30,7 +30,7 @@ Page({
|
|
|
index: l,
|
|
|
match_id: res.data.data[l].id
|
|
|
})
|
|
|
- $api.getDate().then(res => {
|
|
|
+ $api.getDate({ match_id: this.data.match_id}).then(res => {
|
|
|
this.setData({
|
|
|
date: res.data.data
|
|
|
})
|
|
|
@@ -41,6 +41,9 @@ Page({
|
|
|
},
|
|
|
getData() {
|
|
|
wx.showNavigationBarLoading()
|
|
|
+ if (!this.data.match_id){
|
|
|
+ return
|
|
|
+ }
|
|
|
$api.getRank({ stock_date: this.data.date, match_id: this.data.match_id}).then(res => {
|
|
|
wx.hideNavigationBarLoading()
|
|
|
this.setData({
|