提交 b0f2698a 编写于 作者: shutao-dc's avatar shutao-dc

update swiper.uvue 适配kotlin语法

上级 a6f7384b
......@@ -130,9 +130,11 @@
onReady() {
// 获取模拟滑动手势的起始点
let ele = uni.getElementById("swiper-view")
let eleRect = ele?.getBoundingClientRect()
this.swipeX = eleRect!.width - 10
this.swipeY += eleRect!.y + uni.getSystemInfoSync().safeArea.top + 44 + 35
let eleRect = ele?.getBoundingClientRect()
if(eleRect != null) {
this.swipeX = eleRect.width - 10
this.swipeY += eleRect.y + uni.getSystemInfoSync().safeArea.top + 44 + 35
}
},
methods: {
swipertouchStart(e: UniTouchEvent) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册