|
@ -48,8 +48,8 @@ |
|
|
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p100.show()">测试组建2</button> |
|
|
<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-tname="会诊" data-pid="1402932548627206144" data-uid="1323567842540523520" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:26px;width:150px"> |
|
|
<div data-root="p103" style="height:100%;width:100%;display: flex;justify-content: space-between;align-items:center" onclick="p103.jumpDetails(this)"> |
|
|
<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;font-weight: 600;"></div> |
|
|
<div style="flex:1;font-size:22px;"></div> |
|
|
<div style="height:100%"> |
|
|
<div style="height:100%"> |
|
|
<img style="height:100%;width:100%" src="https://www.tall.wiki/staticrec/photos/right.png"> |
|
|
<img style="height:100%;width:100%" src="https://www.tall.wiki/staticrec/photos/right.png"> |
|
|
</div> |
|
|
</div> |
|
@ -64,12 +64,12 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
;(function() { |
|
|
;(function() { |
|
|
var dom = document.querySelector('div[data-root=p103]') |
|
|
var dom = document.querySelector('div[data-root=p1419895828960780288]') |
|
|
var domBox = dom.parentNode; |
|
|
var domBox = dom.parentNode; |
|
|
var domChild = document.querySelectorAll('div[data-root=p103]>div'); |
|
|
var domChild = document.querySelectorAll('div[data-root=p1419895828960780288]>div'); |
|
|
domChild[0].innerHTML = domBox.getAttribute('data-tname'); |
|
|
domChild[0].innerHTML = domBox.getAttribute('data-tname'); |
|
|
})() |
|
|
})() |
|
|
const p103 = { |
|
|
const p1419895828960780288 = { |
|
|
jumpDetails(that) { |
|
|
jumpDetails(that) { |
|
|
console.log(that.parentNode.getAttribute('data-tname')) |
|
|
console.log(that.parentNode.getAttribute('data-tname')) |
|
|
console.log(that.parentNode.getAttribute('data-pid')) |
|
|
console.log(that.parentNode.getAttribute('data-pid')) |
|
|