自己回答一下吧,这确实是安卓手机存在的问题,这里有个兼容写法,就是在 touchMove 事件里判断一下 touchStart 里的触摸点 x 坐标与 touchMove 里的触摸点 x 坐标是否一致,如果一致证明没有横向的触摸后移动。
小程序 touchMove 事件的触发条件 安卓与 IOS 和开发者工具为什么不一致?开发者工具和 IOS 设备上调试一切正常,当“手指触摸后移动”触发,但是安卓手机上手指不管触摸后移动不移动,都会触发 touchMove,请问是什么原因?代码如下: [代码]<[代码][代码]view[代码] [代码]bindtouchmove[代码][代码]=[代码][代码]"towerMove"[代码] [代码]>[代码] [代码] [代码] [代码]towerMove(e) {[代码] [代码] [代码][代码]console.log(e.type)[代码][代码]}[代码]微信版本:7.0.7 设备版本:Android 7.0
2019-12-17解决了吗?我也遇到这个问题了
微信小程序wx.openDocument在ios打开没有反应微信小程序文件下载成功后调用 wx.openDocument console提示打开成功,但是ios没有任何反应,在安卓是正常的,域名是绑定的
2018-11-05统一回复下这个问题,是因为current超出范围导致空白页,再次感谢大家的帮助
swiper动态删除导致空白wxml: <view class="page-section page-section-spacing swiper"> <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" circular="{{circular}}" vertical="{{vertical}}" interval="{{interval}}" duration="{{duration}}" previous-margin="{{previousMargin}}px" next-margin="{{nextMargin}}px"> <block wx:for="{{background}}" wx:key="*this"> <swiper-item> <view bindtap='delete' class="swiper-item {{item}}"></view> </swiper-item> </block> </swiper> </view> js: Page({ data: { background: ['demo-text-1', 'demo-text-2', 'demo-text-3'], indicatorDots: true, vertical: false, autoplay: false, circular: false, interval: 2000, duration: 500, previousMargin: 0, nextMargin: 0 }, changeProperty: function (e) { var propertyName = e.currentTarget.dataset.propertyName var newData = {} newData[propertyName] = e.detail.value this.setData(newData) }, changeIndicatorDots: function (e) { this.setData({ indicatorDots: !this.data.indicatorDots }) }, changeAutoplay: function (e) { this.setData({ autoplay: !this.data.autoplay }) }, intervalChange: function (e) { this.setData({ interval: e.detail.value }) }, durationChange: function (e) { this.setData({ duration: e.detail.value }) }, delete: function(e) { this.data.background.splice(2, 1) this.setData({ background: this.data.background }) } }) 初始化页面: [图片] 滑动到C点击页面删除后,swiper呈现空白: [图片] 代码用的就是官方的demo,增加了tap删除功能。
2018-06-20同样的问题啊,我是删除最后一个swiper-item就会“白屏”,小程序bug还是这么多,对了,你这个问题解决了吗?
[swiper]动态减少数量时swiper区域白屏如题, 在autoplay属性为true的情况下, 1. swiper数据动态减少时候, swiper区域白屏. 2. 数量增加时候, 无此问题. 已在官方demo代码中做测试, 数据变动如: background: ['demo-text-1', 'demo-text-2', 'demo-text-3'] 到 background: ['demo-text-1', 'demo-text-3'] 数量由3变为2, 在从2滚动3的时候, 更改数据, 问题发生. 问题界面 [图片]
2018-06-18