wx-list-index icon indicating copy to clipboard operation
wx-list-index copied to clipboard

遇到的问题,共勉

Open zhangyongfa888 opened this issue 6 years ago • 0 comments

1.无法触发scroll事件 因为没有给scroll-view 高度; 在组件的生命周期中添加 attached: function() { var _this = this; wx.getSystemInfo({ success: function(res) { _this.setData({ height: res.windowHeight

    })

  },
})

},

xml中 给scroll-view添加高度height:{{height}}px

2.list-right-wrapper设定position:fixed; 否则一起滚到上边去; 3.右侧滚动拦截下,catchtouchmove='true' 4.多次搜索空串时候 判断有没有添加过我的定位数据 this.data.myCity && this.data.data.length > 0 && this.data.data[0].title != '我的定位'

zhangyongfa888 avatar Dec 27 '18 02:12 zhangyongfa888