Browse Source

报名缴费

ts-sign-up
xuesinan 4 years ago
parent
commit
cd049329e9
  1. 29
      index.html

29
index.html

@ -42,7 +42,7 @@
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="alert('hello')">测试组建1</button>
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p100.show()">测试组建2</button>
<div data-tname="考勤" data-pid="1451447721818071040" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%">
<div data-tname="考勤" data-pid="1453661473401479168" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%">
<div data-root="p1449996929974149120" style="height:100%;width:100%;">
<div class="certificate-box px-2 py-1.5 flex justify-between w-full border border-gray-200 rounded-sm text-sm">
<p class="w-20 flex-shrink-0 text-gray-400">红头文件</p>
@ -61,8 +61,8 @@
</div>
<div class="mt-4 flex justify-center items-center w-full text-sm">
<button class="border border-blue-500 bg-blue-500 text-white rounded-sm" style="width: 45%; height: 34px;" onclick="p1449996929974149120.apply()">报名</button>
<button class="not-pay px-2.5 h-6 bg-blue-500 text-sm rounded text-white" style="width: 45%; height: 34px; display: none;" onclick="p1449996929974149120.toPay()">去缴费</button>
<button class="apply-btn border border-blue-500 bg-blue-500 text-white rounded-sm" style="width: 45%; height: 34px;" onclick="p1449996929974149120.apply()">报名</button>
<button class="not-pay px-2.5 h-6 bg-blue-500 text-sm rounded-sm text-white" style="width: 45%; height: 34px; display: none;" onclick="p1449996929974149120.toPay()">去缴费</button>
</div>
</div>
</div>
@ -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);

Loading…
Cancel
Save