From 4b676fb73ae88e4ccfc372532e135c75be7fa625 Mon Sep 17 00:00:00 2001 From: xuesinan <1404152492@qq.com> Date: Fri, 29 Oct 2021 15:04:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 2dbec47..9eb5db1 100644 --- a/index.html +++ b/index.html @@ -44,10 +44,36 @@
-
+
+
+

选择模板

+
+ 请选择证书模板 + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +

已结业学员

+ +
+ +
@@ -90,6 +116,38 @@ }); }, + /** + * 发证 + */ + certificate() { + var that = this + fetch(`https://test.tall.wiki/gateway/sports/player/certificate`, { + headers: new Headers({ + 'Authorization': 'Bearer ' + that.token, + 'Content-Type': 'application/json; charset=utf-8' + }), + method: 'POST', + body: JSON.stringify({ + param: { + "fileId": 0, + "playerId": 0, + "projectId": that.projectId + } + }) + }) + .then(function(response) { + return response.json(); + }) + .then(function(res) { + const { success, code, data, msg } = res; + if (success && code === 200) { + + } else { + console.log('msg: ', msg); + } + }); + }, + getList() { const pId = this.dom.parentNode.getAttribute('data-pid'); const uId = this.dom.parentNode.getAttribute('data-uid');