提交 eec5ee7d 编写于 作者: DCloud-yyl's avatar DCloud-yyl

修复ios平台持续下拉时宽度不正确的问题

上级 bca57a74
......@@ -65,10 +65,10 @@
},
methods: {
onScroll(e : ScrollEvent) {
let offset = e.detail.scrollTop>SEARCHBARHEIGHT?SEARCHBARHEIGHT:e.detail.scrollTop;
let offset = e.detail.scrollTop>SEARCHBARHEIGHT?SEARCHBARHEIGHT:e.detail.scrollTop;//(e.detail.scrollTop<0?0:e.detail.scrollTop)
this.naviElement?.style?.setProperty('height', (this.nviBarHeight -offset)+'px');
this.searchElement?.style?.setProperty('left', BACKWIDTH*offset/SEARCHBARHEIGHT+'px');
this.titleElement?.style?.setProperty('opacity', (1-offset/SEARCHBARHEIGHT));
this.searchElement?.style?.setProperty('left', ((offset<0)?0:BACKWIDTH*offset/SEARCHBARHEIGHT)+'px');
},
back() {
uni.navigateBack();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册