Browse Source

测试

tall-check-work
xuesinan 3 years ago
parent
commit
e738864660
  1. 21
      index.html

21
index.html

@ -47,7 +47,19 @@
<!-- 示例插件2 id=100-->
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p100.show()">测试组建2</button>
<div data-tname="考勤" data-pid="1502190532024344576" data-uid="1481458741295714304" data-rid="1502190532368277504" data-token="eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NDc1MDAzMzQsInN1YiI6IjE0ODE0NTg3NDEyOTU3MTQzMDQiLCJhdXRoSWQiOiIxNDgxNDU4NzQxNTMwNTk1MzI4IiwiZXhwIjoxNjQ3NTA3NTM0fQ.37r2nqteT5d05bb3Jjc2zuQf6AXS3bV-UXOITrKzBGg" data-url="http://101.201.226.163:7320/v1.0" data-longitude="" data-latitude="" data-tid="tid444" data-did="did555" style="height:50px;width:100%">
<div data-tname="考勤"
data-pid="1511976097183703040"
data-uid="1481458741295714304"
data-rid="1511976097510858752"
data-token="eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NTA2MTA0MjQsInN1YiI6IjE0ODE0NTg3NDEyOTU3MTQzMDQiLCJhdXRoSWQiOiIxNDgxNDU4NzQxNTMwNTk1MzI4IiwiZXhwIjoxNjUwNjUzNjI0fQ.Pc4z55qjSAg54ndU5aA7_oVrAy5iKOn1U6O-aAMCgxo"
data-url="http://101.201.226.163:7320/v1.0"
data-type="1"
data-longitude=""
data-latitude=""
data-tid="tid444"
data-did="did555"
style="height:50px;width:100%"
>
<!-- 考勤插件 -->
<div data-root="p1485171846022434817" class="flex flex-row justify-space items-center" style="height:100%;width:100%;">
<div class="title"></div>
@ -455,11 +467,16 @@
const token = this.dom.parentNode.getAttribute('data-token');
const rId = this.dom.parentNode.getAttribute('data-rid');
const url = this.dom.parentNode.getAttribute('data-url');
const type = this.dom.parentNode.getAttribute('data-type') ? 1 : 0;
const longitude = this.dom.parentNode.getAttribute('data-longitude');
const latitude = this.dom.parentNode.getAttribute('data-latitude');
const path = "http://101.201.226.163/tall/v4.0.0/pages/detailWebview/detailWebview";
const param = `http://101.201.226.163/checkwork/?pid=${pId}&uid=${uId}&rid=${rId}&token=${token}&url=${url}&longitude=${longitude}&latitude=${latitude}`;
location.href = `${path}/?url=${encodeURIComponent(param)}`;
if (type === 1) {
sessionStorage.setItem('targetUrl', param);
} else {
location.href = `${path}/?url=${encodeURIComponent(param)}`;
}
}
}
p1485171846022434817.init()

Loading…
Cancel
Save