Browse Source

修改已打卡状态样式

21-tall-login
song 4 years ago
parent
commit
c32fa68433
  1. 26
      index.html

26
index.html

@ -57,7 +57,7 @@
<button class="morningClockBtn bg-blue-500 text-xs rounded-md py-1 px-3 text-white" onclick="p1432643387798069248.punch(0)">早打卡</button>
<div style="position: relative;float: left;">
<div class="morningClockText" style="display: none;font-weight: 700;"></div>
<span class="morningDot rounded-full bg-red-500" style="position: absolute;top: 0;right: -10px;width: 8px;height: 8px;display: none;"></span>
<span class="morningDot rounded-full bg-red-500" style="position: absolute;top: 0;right: -10px;width: 6px;height: 6px;display: none;"></span>
</div>
<div class="morningClockReject" style="text-decoration:line-through;color: #f00;font-weight: 700;display: none;"></div>
<div class="morningClockAgree" style="color: #13acc4;font-weight: 700;display: none;"></div>
@ -67,16 +67,18 @@
<button class="nightClockBtn bg-blue-500 text-xs rounded-md py-1 px-3 text-white" onclick="p1432643387798069248.punch(1)">晚打卡</button>
<div style="position: relative;float: left;">
<span class="nightClockText" style="display: none;font-weight: 700;"></span>
<span class="nightDot rounded-full bg-red-500" style="position: absolute;top: 0;right: -10px;width: 8px;height: 8px;display: none;"></span>
<span class="nightDot rounded-full bg-red-500" style="position: absolute;top: 0;right: -10px;width: 6px;height: 6px;display: none;"></span>
</div>
<span class="nightClockReject" style="text-decoration:line-through;color: #f00;font-weight: 700;display: none;"></span>
<span class="nightClockAgree" style="color: #13acc4;font-weight: 700;display: none;"></span>
</div>
</div>
<div class="flex flex-nowrap border py-1 px-3 rounded-md" onclick="p1432643387798069248.show()">
<div class="flex flex-nowrap border py-1 px-3 rounded-md startBtnBox" onclick="p1432643387798069248.show()">
<div class="startBtn mr-1">审核人</div>
<img style="width:15px" src="https://www.tall.wiki/staticrec/icon/down.svg" />
</div>
<div class="startText mr-1" style="display: none;">审核人</div>
<div class="flex flex-nowrap ml-4" onclick="p1432643387798069248.jumpDetails(this)">
<img style="width:15px" src="https://www.tall.wiki/staticrec/icon/right.svg" />
</div>
@ -121,7 +123,7 @@
// 获取token
getTokenByUserId(userId){
var that = this
fetch(`https://test.tall.wiki/gateway/tall/v1.0/users/userId?userId=${userId}`)
fetch(`https://www.tall.wiki/gateway/tall/v1.0/users/userId?userId=${userId}`)
.then(function(response) {
return response.json();
})
@ -150,7 +152,7 @@
const params = JSON.stringify({
param: { projectId: that.projectId, memberIdList: [], startTime, endTime: startTime }
});
var url = 'https://test.tall.wiki/gateway/defaultwbs/clock/query';
var url = 'https://www.tall.wiki/gateway/defaultwbs/clock/query';
fetch(url, {
method: 'POST',
mode: 'cors',
@ -210,7 +212,7 @@
const params = JSON.stringify({
param: { projectId: that.projectId }
});
var url = 'https://test.tall.wiki/gateway/defaultwbs/deliver/queryChecker';
var url = 'https://www.tall.wiki/gateway/defaultwbs/deliver/queryChecker';
fetch(url, {
method: 'POST',
mode: 'cors',
@ -256,7 +258,7 @@
const params = JSON.stringify({
param: { checkerId, id, memberId, dateTime, clockType }
});
var url = 'https://test.tall.wiki/gateway/defaultwbs/clock/punch';
var url = 'https://www.tall.wiki/gateway/defaultwbs/clock/punch';
fetch(url, {
method: 'POST',
mode: 'cors',
@ -399,7 +401,13 @@
nightClockAgree.innerHTML = night;
}
var startBtnBox = dom.querySelector('.startBtnBox');
var startText = dom.querySelector('.startText');
if(morningStatus !== 0 && nightStatus!== 0){
startBtnBox.style.display='none';
startText.style.display='block';
startText.innerHTML = this.checkerName;
}
},
// 取消
@ -427,7 +435,7 @@
jumpDetails(that) {
const pId = this.dom.parentNode.getAttribute('data-pid');
const uId = this.dom.parentNode.getAttribute('data-uid');
location.href = `https://test.tall.wiki/checkwork/?pid=${pId}&uid=${uId}`;
location.href = `https://www.tall.wiki/checkwork/?pid=${pId}&uid=${uId}`;
}
}
p1432643387798069248.init()

Loading…
Cancel
Save