diff --git a/index.html b/index.html index e1b7a20..d45c870 100644 --- a/index.html +++ b/index.html @@ -105,12 +105,6 @@ -->
- -

选择模板

@@ -121,7 +115,15 @@
- +
+ +
+
+ +
+
+ +
@@ -314,46 +316,46 @@ */ getAllTemp() { var that = this; - fetch(`https://test.tall.wiki/gateway/sports/training/template`, { - headers: new Headers({ - 'Authorization': 'Bearer ' + that.token, - 'Content-Type': 'application/json; charset=utf-8' - }), - method: 'POST', - body: JSON.stringify({ - param: {projectId: that.projectId} - }) - }) - .then(function(response) { - return response.json(); - }) - .then(function(res) { - const { success, code, data, msg } = res; - if (success && code === 200) { - for (let i = 0; i < data.length; i++) { - if (data[i].type === 0) { - that.tempList = data[i].templateList; - } - } - - let html = ''; - - for (let j = 0; j < that.tempList.length; j++) { - html += `
- -
`; - } - - that.dom.querySelector('.temp-list').html = html; - - html += `
- -
`; - - } else { - console.log('msg: ', msg); - } - }); + // fetch(`https://test.tall.wiki/gateway/sports/training/template`, { + // headers: new Headers({ + // 'Authorization': 'Bearer ' + that.token, + // 'Content-Type': 'application/json; charset=utf-8' + // }), + // method: 'POST', + // body: JSON.stringify({ + // param: {projectId: that.projectId} + // }) + // }) + // .then(function(response) { + // return response.json(); + // }) + // .then(function(res) { + // const { success, code, data, msg } = res; + // if (success && code === 200) { + // for (let i = 0; i < data.length; i++) { + // if (data[i].type === 0) { + // that.tempList = data[i].templateList; + // } + // } + + // let html = ''; + + // for (let j = 0; j < that.tempList.length; j++) { + // html += `
+ // + //
`; + // } + + // that.dom.querySelector('.temp-list').html = html; + + // html += `
+ // + //
`; + + // } else { + // console.log('msg: ', msg); + // } + // }); }, /**