上拉加载数据(数据为视频时),自定义定位导航偏移
[图片] <view wx:for="{{img}}" wx:key="index"> <video src='{{item}}' mode='widthFix'></video>{{index}} </view> <cover-view class='tab'> <cover-view>首页</cover-view> <cover-view>我的</cover-view> </cover-view> .tab{ display: flex; justify-content: space-around; align-items: center; width: 750rpx; height: 100rpx; background: seagreen; position: fixed; bottom: 0; } data: { img: ['https://wa.gtimg.com/qqlive/201808/BRDS_20180803091019510.mp4', 'https://wa.gtimg.com/qqlive/201808/BRDS_20180803091019510.mp4', 'https://wa.gtimg.com/qqlive/201808/BRDS_20180803091019510.mp4', 'https://wa.gtimg.com/qqlive/201808/BRDS_20180803091019510.mp4',] }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () { var that = this; console.log('loadMore'); that.setData({ img: that.data.img.concat(['https://wa.gtimg.com/qqlive/201808/BRDS_20180803091019510.mp4']) }) }, 代码片段(wechatide://minicode/1sLNErmH7c39)(真机上测试问题才会出现)