|
|
@ -134,11 +134,13 @@ export default { |
|
|
|
query = uni.createSelectorQuery() |
|
|
|
// #endif |
|
|
|
query.selectAll('.u-skeleton').boundingClientRect().exec((res) => { |
|
|
|
this.windowHeight = res[0][0].height; |
|
|
|
this.windowWinth = res[0][0].width; |
|
|
|
res[0][0].bottom = res[0][0].height |
|
|
|
this.top = this.marginTop + res[0][0].top; |
|
|
|
this.left = res[0][0].left; |
|
|
|
if(res[0][0]){ |
|
|
|
this.windowHeight = res[0][0].height; |
|
|
|
this.windowWinth = res[0][0].width; |
|
|
|
res[0][0].bottom = res[0][0].height |
|
|
|
this.top = this.marginTop + res[0][0].top; |
|
|
|
this.left = res[0][0].left; |
|
|
|
} |
|
|
|
}); |
|
|
|
// 矩形骨架元素 |
|
|
|
this.getRectEls(); |
|
|
|