Commit 0847436f authored by Facius's avatar Facius

fix: 题库详情的引导页面位置

parent 28fbf680
...@@ -189,7 +189,7 @@ export default { ...@@ -189,7 +189,7 @@ export default {
return `width:614rpx;margin-top:${this.tipTop}px;margin-left:116rpx;` return `width:614rpx;margin-top:${this.tipTop}px;margin-left:116rpx;`
}, },
imageStyle1() { imageStyle1() {
return `width:730rpx;margin-top:${this.tipTop1}px;margin-left:10rpx;` return `width:730rpx;bottom:20rpx;left:10rpx;position: absolute;`
}, },
}, },
onLoad(e) { onLoad(e) {
...@@ -307,15 +307,7 @@ export default { ...@@ -307,15 +307,7 @@ export default {
}, },
showTip1() { showTip1() {
this.$nextTick(() => { this.$nextTick(() => {
const query = uni.createSelectorQuery().in(this) this.show1 = true
query
.select('.bottom-view')
.boundingClientRect((data) => {
console.log(data)
this.tipTop1 = data?.top - 226
this.show1 = true
})
.exec()
}) })
}, },
showTip() { showTip() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment