scroll-view卡顿,怎么解决?
发布于 5 年前 作者 wei29 11539 次浏览 来自 问答

这个bug解决了没有

4 回复

怎么个卡顿法

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

viewclass"tabar_box">

viewclass"tabar_one “data-id"0"bindtap"tabOneTap”>

textclass"{{current == 0 ? ‘tabar_text’:’’}}">精选</text

viewclass"{{current == 0 ? ‘line’:’’}}"></view

</view

viewclass"tabar_one"  data-id"1"bindtap"tabTowTap">

textclass"{{current == 1 ? ‘tabar_text’:’’}}">分析 </text

viewclass"{{current == 1 ? ‘line’:’’}}"></view

</view

</view

swiperbindchange"tabChange"current"{{current}}“style"height:1880rpx”

swiper-item

scroll-viewscroll-y"true"class’top-nav-container’bindscrolltolower"scrollTap"lower-threshold"0"style"height:1880rpx">

viewclass"nameLists_again">

block  wx:for"{{nameLists}}“wx:for-item"item”

viewclass"collect_box">

viewclass"collect_boxone">

viewclass"radioa_box">

viewclass"mzg_box">

textstyle"font-size:20rpx;">{{item.pronunciationa}}</text

imagesrc"/images/mzg.png"class"mzg"></image

viewclass"mzgtext">

{{item.surnamea}}

</view

</view

viewclass"mzg_box"wx:if"{{cursor == 2 &&  type == 2 || cursor == 2 &&  type == 1}}">

text  style"font-size:20rpx;"{{item.pronunciationd}}</text

imagesrc"/images/mzg.png"class"mzg"></image

viewclass"mzgtext">

{{item.surnamed}}

</view

</view

viewclass"mzg_box"

text  style"font-size:20rpx;">{{item.pronunciationb}}</text

imagesrc"/images/mzg.png"class"mzg"></image

viewclass"mzgtext">

{{item.surnameb}}

</view

</view

viewclass"mzg_box"wx:if"{{cursor == 1 &&  type == 2 || cursor == 2 &&  type == 2}}">

text  style"font-size:20rpx;">{{item.pronunciationc}}</text

imagesrc"/images/mzg.png"class"mzg"></image

viewclass"mzgtext">

{{item.surnamec}}

</view

</view

<!-- <view class=“collect_gard”>{{passStara}}分</view> -->

viewclass"collect_gard">{{item.totalScore}}</view

</view

viewclass"collect_card">

viewclass"collect_cardlittle"wx:if"{{item.luckyUseGodScore == 100 }}"><imagesrc"/imgs/daji.png"class"ji"></image></view

viewclass"collect_cardlittle"wx:if"{{item.luckyUseGodScore == 95 }}"><imagesrc"/imgs/zhongji.png"class"ji"></image></view

viewclass"collect_cardlittle"wx:if"{{item.luckyUseGodScore == 90 }}"><imagesrc"/imgs/xiaoji.png"class"ji"></image></view

viewclass"collect_cardlittle"wx:if"{{item.specialNameScore == 100 }}"><imagesrc"/imgs/shiyi.png"class"ji"></image></view

viewclass"collect_cardlittle"wx:if"{{item.nameMatchingScore >= 95}}"><imagesrc"/imgs/meiguan.png"class"ji"></image></view

viewclass"collect_cardlittle"wx:if"{{item.syllableToneScore >= 94}}"><imagesrc"/imgs/haoting.png"class"ji"></image></view

</view

</view

viewclass"collect_xin">

imagesrc"{{item.check ? ‘/images/xxa.png’:’/images/xx.png’}}"  bindtap"collectimgTap"  data-id"{{index}}"></image

textwx:if"{{!item.check }}"收藏</text

textwx:else已收藏</text

</view

viewclass"lastimg"bindtap"collctListTap"id"{{index}}">

imagesrc"/images/y.png"></image

</view

</view

</block

</view

  </scroll-view 

</swiper-item

swiper-itemcatchtouchmove’catchTouchMove’>

scroll-viewscroll-y"true"class’top-nav-container’style"height:100%“bindscrolltolower"scrollTap”

templateis"select"data"{{…item}}"></template

  </scroll-view

</swiper-item

</swiper

IOS卡顿吗?

回到顶部