|
|
@ -111,9 +111,19 @@ |
|
|
|
|
|
|
|
getTrainPlan(){ |
|
|
|
var that = this |
|
|
|
var params = JSON.stringify({ |
|
|
|
param: { |
|
|
|
projectId: that.projectId |
|
|
|
} |
|
|
|
}); |
|
|
|
fetch(`https://www.tall.wiki/gateway/sports/training/get`, { |
|
|
|
method: 'post', |
|
|
|
body: 'projectId' = this.projectId |
|
|
|
headers: new Headers({ |
|
|
|
'Authorization': 'Bearer ' + that.token, |
|
|
|
'Content-Type': 'application/json;charset=utf-8' |
|
|
|
}), |
|
|
|
method: 'POST', |
|
|
|
mode: 'cors', |
|
|
|
body: params |
|
|
|
}) |
|
|
|
.then(function(response) { |
|
|
|
return response.json(); |
|
|
|