微信小程序 > 微信公开课 > 微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效
微信小程序,微信公开课,微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效

微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效

2019-03-15 18:14:57

微信公开课小程序热门讨论关于「微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效」的小程序开发问题
补充:微信scrollviewbindscroll=scroll失效
展开:用scrollview做分页处理但是bindscroll绑定函数无效(我在写静态页面的时候,是可以拖动的,打印出来值,但是在渲染层就不行)求解下图是自己写的静态这是渲染出来的效果源码如下:wxml<viewclass=flexpage_con<textclass=page_listdecode=truebindtap=pageMdataori=leftM&lt;<text<viewclass=page_num<scrollviewclass=scrollview_Hscrollleft={{scrollLeft}}scrollx=truebindscroll=scrollstyle=width:100%<viewclass=scrollviewitem_H<textwx:for={{lessonnumbers}}wx:key=class=page_list{{lessonnumber==item?active:}}bindtap=changeNumdatanum={{item}}{{item}}<text<view<scrollview<view<textclass=page_listdecode=truebindtap=pageMdataori=rightM&gt;<text<viewjschangeNum:function(e){thissetData({lessonnumber:etargetdatasetnum})thisreq_answerlist();},pageM:function(e){consolelog(ecurrentTargetdatasetori);varthat=this;if(ecurrentTargetdatasetori===leftM){if(1<thatdatalessonnumber&&thatdatalessonnumber<=thatdatamaxlessonnumber){thatsetData({scrollLeft:thatdatascrollLeft20,lessonnumber:parseInt(thatdatalessonnumber)1})}}else{if(0<thatdatalessonnumber&&thatdatalessonnumber<thatdatamaxlessonnumber){thatsetData({scrollLeft:thatdatascrollLeft+20,lessonnumber:parseInt(thatdatalessonnumber)+1})}}thisreq_answerlist();},页面滚动scroll:function(e){consolelog(edetailscrollLeft)thissetData({scrollLeft:edetailscrollLeft})},wxss*page*page_con{background:fff;justifycontent:spacebetween;padding:20rpx;}page_list{width:48rpx;height:48rpx;border:1rpxsolid209ee4;borderradius:50%;textalign:center;lineheight:48rpx;fontsize:30rpx;color:209ee4;}page_listactive{background:209ee4;color:fff;}page_num{width:82%;display:flex;justifycontent:spacebetween;position:relative;top:2rpx;}scrollview_Hpage_list{display:inlineblock;marginright:20rpx;}scrollview_H{whitespace:nowrap;}scrollviewitem_H{display:inlineblock;width:100%;}*pageend*即速小程序:知道原因了太艰辛了本页面引入了@importwxParsewxParsewxss;此wxss里面view{wordbreak:breakall;overflow:auto;}影响了去掉就行了
更多有关「微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效」的讨论可以前往微信公开课小程序参与互动哦!
标签:微信公开课,小程序
微信小程序,微信公开课,微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效

「微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效」热门讨论订阅

方法1:微信扫描微信公开课小程序码即可订阅热门讨论「微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效」

方法2:微信搜索微信公开课小程序名称进入,即可订阅热门讨论「微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效」

方法3:微信网页访问即速商店,长按识别微信公开课小程序码即可订阅热门讨论「微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效」

微信公开课小程序热门讨论「微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效」由微信公开课原创摘录于微信小程序商店shop.jisuapp.cn,转载请注明出处。

微信公开课热门讨论「微信小程序开发scroll-viewbindscroll=quot;scrollquot;失效」由微信公开课开发者向微信用户提供,并对本服务内容、数据资料及其运营行为等真实性、合法性及有效性承担全部责任。