收藏
回答

scroll-view卡顿,怎么解决?

这个bug解决了没有

回答关注问题邀请回答
收藏

4 个回答

  • 是小白啊
    是小白啊
    2019-12-26

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

    2019-12-26
    有用
    回复
  • 2019-12-26

    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




    2019-12-26
    有用
    回复
  • var 友原
    var 友原
    2019-12-26

    怎么个卡顿法

    2019-12-26
    有用
    回复 4
    • 2019-12-26
      上下滑动不灵活,没惯性
      2019-12-26
      回复
    • 2019-12-26
      体验感贼差
      2019-12-26
      回复
    • var 友原
      var 友原
      2019-12-26回复
      应该是你代码的问题,贴个代码片段吧
      2019-12-26
      回复
    • 黄鸿权
      黄鸿权
      2020-07-03回复
      你的解决了吗
      2020-07-03
      回复
  • 有余
    有余
    2019-12-26

    IOS卡顿吗?

    2019-12-26
    有用
    回复 2
    • 2019-12-26
      不仅是iOS
      2019-12-26
      回复
    • 有余
      有余
      2019-12-26回复
      还是来个代码片段吧 这样好解决问题
      2019-12-26
      回复
登录 后发表内容
问题标签