From cd049329e9987d016d385d0a35e9c01b01c079fb Mon Sep 17 00:00:00 2001
From: xuesinan <1404152492@qq.com>
Date: Fri, 29 Oct 2021 15:16:20 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=90=8D=E7=BC=B4=E8=B4=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 29 +++++++----------------------
1 file changed, 7 insertions(+), 22 deletions(-)
diff --git a/index.html b/index.html
index d8185c4..28c4ad9 100644
--- a/index.html
+++ b/index.html
@@ -42,7 +42,7 @@
-
+
@@ -153,9 +153,6 @@
getAppointStatus() {
var that = this;
- // that.dom.querySelector('.student-box').style.display = 'block';
- // that.dom.querySelector('.student-load').style.display = 'none';
-
fetch(`https://test.tall.wiki/gateway/sports/teacher/getAppoint`, {
headers: new Headers({
'Authorization': 'Bearer ' + that.token,
@@ -172,10 +169,7 @@
.then(function(res) {
const { success, code, data, msg } = res;
if (success && code === 200) {
- if (!data) {
- // that.dom.querySelector('.student-box').style.display = 'block';
- // that.dom.querySelector('.student-load').style.display = 'none';
- }
+
} else {
console.log('msg: ', msg);
}
@@ -194,7 +188,6 @@
method: 'POST',
body: JSON.stringify({
param: {
- playerId: that.playerId,
projectId: that.projectId
}
})
@@ -206,17 +199,9 @@
const { success, code, data, msg } = res;
if (success && code === 200) {
if (data) {
- var personInfo = that.dom.querySelector('.person-info');
- personInfo.style.display = 'flex';
- var registrationSuccess = that.dom.querySelector('#registrationSuccess');
- registrationSuccess.style.display = 'block';
- var applyBtn = that.dom.querySelector('#applyBtn');
- applyBtn.style.display = 'none';
-
- if (data.payStatus === 0) {
- var notPay = that.dom.querySelector('.not-pay');
- notPay.style.display = 'block';
- }
+ that.dom.querySelector('.person-info').style.display = 'flex';
+ that.dom.querySelector('.apply-btn').style.display = 'none';
+ that.dom.querySelector('.not-pay').style.display = 'block';
}
} else {
console.log('msg: ', msg);