IOS下,提示“小程序意外退出,请稍候重试”。
发布于 5 年前 作者 yanglong 15548 次浏览 来自 问答

IOS下使用swiper组件滑动图片时出现闪退是什么原因,提示小程序意外退出,请稍候重试。

7 回复

大家解决了吗 我这也是这样 是不是图片多的问题 有没有懒加载的方案

我也遇到这个问题

什么时候能解决啊

我也遇到这问题了,到现在还没解决

你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码示例。

我也遇到这问题了,到现在还没解决

同样遇到,请问有解决方案了么?

机身型号:iphone  MNGR2CH/A   版本:10.3.2(14F89)微信版本: wechat 6.6.0

示例代码:

<!-- 图片组件 -->

<template name=“img-player-applet”>

<view class=“img-player-bg” hidden="{{showImg}}" bindtap=“hideImg”>

 <swiper bindchange=“swipeSlider” current="{{curIndex-1}}" duration=“50” circular=“true”>

   <block wx:for="{{imgData}}" wx:for-item=“swiperItem” wx:for-index=“idx” wx:key=“unique”>

     <swiper-item>

         <image data-id="{{idx}}" src="{{swiperItem}}" mode=“widthFix”/>

     </swiper-item>

   </block>

 </swiper>

 <view class=“dots”>  

    <text>{{curIndex}}</text> / <text>{{total}}</text>

 </view>  

</view>

</template>

回到顶部