|
|
@@ -30,15 +30,18 @@ Page({
|
|
|
index: l,
|
|
|
match_id: res.data.data[l].id
|
|
|
})
|
|
|
- $api.getDate({ match_id: this.data.match_id}).then(res => {
|
|
|
- this.setData({
|
|
|
- date: res.data.data
|
|
|
- })
|
|
|
- this.getData()
|
|
|
- })
|
|
|
+ this.getDate()
|
|
|
})
|
|
|
|
|
|
},
|
|
|
+ getDate(){
|
|
|
+ $api.getDate({ match_id: this.data.match_id }).then(res => {
|
|
|
+ this.setData({
|
|
|
+ date: res.data.data
|
|
|
+ })
|
|
|
+ this.getData()
|
|
|
+ })
|
|
|
+ },
|
|
|
getData() {
|
|
|
wx.showNavigationBarLoading()
|
|
|
if (!this.data.match_id){
|
|
|
@@ -61,7 +64,7 @@ Page({
|
|
|
index: e.detail.value,
|
|
|
match_id: match[e.detail.value].id
|
|
|
})
|
|
|
- this.getData()
|
|
|
+ this.getDate()
|
|
|
},
|
|
|
bindDateChange(e) {
|
|
|
this.setData({
|