哈哈哈哈哈哈
1.this 指向问题
一大早上就要被这个搞得晕。要定义到回调函数的外面。
2.swiper 的高度问题
swiper 的高度需要获取屏幕高度再重新赋值。不然撑不开页面。我用了我认为最简单的方法,网上也还有其他的方法。
<swiper current="{{currentTab}}" duration="200" bindchange="swiperChange" style="height:{{clineheight?clineheight+'px':'auto'}}"> </swiper>
data: { currentTab:0, clineheight:'' }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { this.getheight(); }, getheight:function(){ const that=this; wx.getSystemInfo({ success: function (res) { that.setData({ clineheight: res.windowHeight }) }, }) },
3.如何禁用右上角三点转发分享?
在该对应js页面中删除 onShareAppMessage
4.scroll-view根据索引不跳转的问题
没有好好看文档,看实例。是需要赋值id,而不是自定义data-id .
點擊查看更多內(nèi)容
為 TA 點贊
評論
評論
共同學(xué)習(xí),寫下你的評論
評論加載中...
作者其他優(yōu)質(zhì)文章
正在加載中
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦