項(xiàng)目中點(diǎn)擊位置 用的是picker-view
<picker-view indicator-style="height: 40px;" class="distpicker-content" value="{{value}}" bindchange="changeArea">
js 代碼
changeArea: function (e) {
console.log(1)
//讓scoll-view禁止?jié)L動
this.setData({
isScroll:false
})
console.log(this.data.job_property.city)
console.log(e)
//設(shè)置城市
this.setData({
city: this.data.job_property.city[e.detail.value[0]],
value: [e.detail.value[0], e.detail.value[1]],
cityid: this.data.job_property.city[e.detail.value[0]][e.detail.value[1]].id
})
},
但是在頁面沒打開picker-view時(shí) 頁面(scroll-view)滾動時(shí)會觸發(fā)picker-view的bindchange="changeArea"的事件
在沒有點(diǎn)擊位置時(shí)滾動頁面,在黑色區(qū)域用手指滾動正常,而在藍(lán)色區(qū)域則無法滾動,此時(shí)picker-view是被隱藏了,并沒有在頁面中顯示
scroll-view 高度設(shè)置也正常
<scroll-view scroll-y="{{isScroll}}" bindscroll="scroll" scroll-top="{{scrollTop}}" style="height:{{windowWidth}}px;height:{{windowHeight}}px;overflow: scroll" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
wx.getSystemInfo({
success: function (res) {
that.setData({
windowWidth: res.windowWidth,
windowHeight: parseInt(res.windowHeight)+200
})
},
})
求解 是BUG嗎?可有解決方案
網(wǎng)友回復(fù):
愛盈利-運(yùn)營小咖秀(www.jza6.com) 始終堅(jiān)持研究分享移動互聯(lián)網(wǎng)App運(yùn)營推廣經(jīng)驗(yàn)、策略、全案、渠道等純干貨知識內(nèi)容;是廣大App運(yùn)營從業(yè)者的知識啟蒙、成長指導(dǎo)、進(jìn)階學(xué)習(xí)的集聚平臺;
想了解更多干貨知識,請關(guān)注公眾號運(yùn)營小咖秀(ID: yunyingshow)