Browse Source

工资条

tall-salary
xuesinan 3 years ago
parent
commit
350a0ac58a
  1. 34
      index.html

34
index.html

@ -47,7 +47,16 @@
<!-- 示例插件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="1448173415050780672" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%">
<div data-tname="工资条"
data-pid="1473556016628244480"
data-uid="1217647686598135808"
data-rid="1473556018582790144"
data-token="eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NTM2MTQwOTksInN1YiI6IjE0ODE0NTg3NDEyOTU3MTQzMDQiLCJhdXRoSWQiOiIxNDgxNDU4NzQxNTMwNTk1MzI4IiwiZXhwIjoxNjUzNjIxMjk5fQ.kM15-gERv5j5qWBeWEG0kDxLWMJesHInnwFQnUaKcGg"
data-url="http://101.201.226.163:7320/v1.0"
data-type="1"
data-tid="tid444"
data-did="did555"
style="height:50px;width:100%">
<div data-root="p1457912674670354432" class="w-full h-full flex justify-between items-center">
<div class="title" style="font-size: 14px;"></div>
<button style="width: 50px; height: 24px; font-size: 14px; line-height: 24px; background-color: #1890FF; color: #fff; border-radius: 4px;" onclick="p1457912674670354432.jumpDetails(this)">查看</button>
@ -70,10 +79,25 @@
},
jumpDetails(that) {
var pId = that.parentNode.parentNode.getAttribute('data-pid');
var rId = that.parentNode.parentNode.getAttribute('data-rid');
var uId = that.parentNode.parentNode.getAttribute('data-uid');
location.href = `https://test.tall.wiki/checkwork/salary/?pid=${pId}&uid=${uId}&rid=${rId}`;
const pId = this.dom.parentNode.getAttribute('data-pid');
const uId = this.dom.parentNode.getAttribute('data-uid');
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 param = `http://101.201.226.163/tallsalary/?pid=${pId}&uid=${uId}&rid=${rId}&token=${token}&url=${url}`;
if (type === 1) {
sessionStorage.setItem('targetUrl', param);
} else {
location.href = param;
}
// var pId = that.parentNode.parentNode.getAttribute('data-pid');
// var rId = that.parentNode.parentNode.getAttribute('data-rid');
// var uId = that.parentNode.parentNode.getAttribute('data-uid');
// location.href = `http://101.201.226.163/checkwork/salary/?pid=${pId}&uid=${uId}&rid=${rId}`;
}
}
p1457912674670354432.init()

Loading…
Cancel
Save