|
|
@ -47,35 +47,34 @@ |
|
|
|
<!-- 示例插件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="1402932548627206144" data-uid="1323567842540523520" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:26px;width:150px"> |
|
|
|
<div data-root="p1419895828960780288" style="height:100%;width:100%;display: flex;justify-content: space-between;align-items:center" onclick="p1419895828960780288.jumpDetails(this)"> |
|
|
|
<div style="flex:1;font-size:22px;"></div> |
|
|
|
<div style="height:100%"> |
|
|
|
<img style="height:100%;width:100%" src="https://www.tall.wiki/staticrec/photos/right.png"> |
|
|
|
</div> |
|
|
|
<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-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> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<script> |
|
|
|
const p100 = { |
|
|
|
name: 'hello tall plugin', |
|
|
|
show() { |
|
|
|
alert(this.name) |
|
|
|
} |
|
|
|
} |
|
|
|
;(function() { |
|
|
|
var dom = document.querySelector('div[data-root=p1419895828960780288]') |
|
|
|
var domBox = dom.parentNode; |
|
|
|
var domChild = document.querySelectorAll('div[data-root=p1419895828960780288]>div'); |
|
|
|
domChild[0].innerHTML = domBox.getAttribute('data-tname'); |
|
|
|
})() |
|
|
|
const p1419895828960780288 = { |
|
|
|
var p1457912674670354432 = { |
|
|
|
dom: '', |
|
|
|
|
|
|
|
init() { |
|
|
|
this.dom = document.querySelector("div[data-root=p1457912674670354432]"); |
|
|
|
var title = this.dom.querySelector('.title'); |
|
|
|
|
|
|
|
var myDate = new Date(); |
|
|
|
var tMonth = myDate.getMonth(); |
|
|
|
title.innerHTML = tMonth + 1 + '月份工资表'; |
|
|
|
}, |
|
|
|
|
|
|
|
jumpDetails(that) { |
|
|
|
console.log(that.parentNode.getAttribute('data-tname')) |
|
|
|
console.log(that.parentNode.getAttribute('data-pid')) |
|
|
|
location.href = 'https://www.baidu.com' |
|
|
|
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}`; |
|
|
|
} |
|
|
|
} |
|
|
|
p1457912674670354432.init() |
|
|
|
</script> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|