收藏
回答

ios手机,提示:“小程序意外退出,请稍候重试”

操作系统 操作系统版本 手机型号 微信版本
iOS 11.2.1(15c153) MG692LL/A 6.6.1


 ios下使用scroll-view加载内容会出现“小程序意外退出,请稍候重试”的提示,

然后自动闪退 。

具体的WXML代码如下:

    

  <view class="cart-tab-wrp">

    <view class="cart-item-total">

      <view class="cart-item-icon-wrp">

        <view class="shoppingcar-btn {{totalcount>0?shoppingcarActive:''}}" bindtap="shoppingShow"></view>

        <text hidden="{{totalcount}}" class="cart-item-total-num" style="display:{{totalcount>0?numMeuns:''}}">{{totalcount}}</text>

      </view>

      <text class="cart-item-total-price">¥{{allmoney}}</text>

    </view>

    <view class="cart-tab-item">

      <view class="shoppingcar-bar-right" bindtap="Balance" hover-class="navigator-hover">去结算</view>

    </view>

  </view>

  <view class="menu-wrp">

    <scroll-view scroll-y="true" class="nav">

      <!--菜单列表-->

      <block wx:for="{{drinkMenus}}" wx:key="index" wx:for-item="menu">

        <view bindtap="selectMenu" data-tog="{{menu.tog}}" data-name="{{menu.drtyName}}" data-id="{{menu.id}}" class="nav-item {{menu.id==currentMenu?'nav-item-current':''}}">

          <view>

            <text class="nav-text">{{menu.drtyName}}</text>

          </view>

        </view>

      </block>

      <view class="menu-footer"></view>

    </scroll-view>

    <!--内容列表-->

    <scroll-view scroll-y="true" scroll-into-view="{{toView}}" class="right-side">

      <view style="margin-top:50rpx;" wx:if="{{nodrinks}}">

            <image class="_noCoupon-img" src="http://oxpi2mdao.bkt.clouddn.com/bar/icon_notaochan.png"></image>

            <view class="_noCoupon-text">暂无任何精品套餐呢~</view>

        </view>

      <view class="dish-header"></view>

      <block wx:for="{{drinkMenus}}" wx:key="index" wx:for-item="menu">

        <view>

          <view  id="{{menu.id}}" class="dish-category-title" wx:if="{{menu.clist!=''}}">{{menu.drtyName}}</view>

          <block wx:for="{{menu.clist}}" wx:key="index" wx:for-item="list">

            <view class="drink-item-wrap" data-image="{{list.clistImgUrl}}" data-name="{{list.clistName}}" data-info="{{list.clistInfo}}" data-price="{{list.clistFavorablePrice}}"  bindtap="showModel" data-oldprice="{{list.clistOriginalPrice==null?'':list.clistOriginalPrice}}">

              <view class="dish-item-pic">

                <image class="image-item" src="{{(list.clistImgUrl==''||list.clistImgUrl ==undefined)?'http://oxpi2mdao.bkt.clouddn.com/bar/nodrink.png':list.clistImgUrl}}" />

              </view>

              <view class="drink-text">

                <view>

                  <text class="drink-name" id="{{list.clistId}}">{{list.clistName}}</text>

                </view>

                <view>

                  <text class="drink-content">{{list.clistInfo}}</text>

                </view>

                <view>

                  <text class="dish-item-money">¥{{list.clistFavorablePrice}}</text>

                </view>

              </view>

              <view class="dish-item-count">

                <view class="dish-item-tab">

                  <view class="reduce-btn reduce-btn-show" hidden="{{list.quantity == 0}}" data-id="{{list.clistId}}" data-cid="{{list.merchantId}}" catchtap="minusCount">

                  </view>

                </view>

                <view class="dish-item-count-text dish-item-tab">

                  <text hidden="{{list.quantity== 0}}">{{list.quantity}}</text>

                </view>

                <view class="plus-default {{list.quantity > 0 ? plusbtn:''}}" data-id="{{list.clistId}}" data-cid="{{list.merchantId}}" catchtap="addCount">

                </view>

              </view>

            </view>

          </block>

        </view>

      </block>

      <view class="dish-footer"></view>

    </scroll-view>

  </view>

  <!-- 购物车 -->


  <!--<view class="haze" style="display:{{showCart}}" bindtap=" "></view>-->

  <view class="shopping_cart" style="display:{{showCart}}">

    <view class="shopping_title">

      <text class="cart_ping">购物车</text>

      <view class="clear_cart" bindtap="ClearCart">

        <image src="" class=""></image>

        <text>清空</text>

      </view>

    </view>

    <scroll-view scroll-y="true" class="commodity_menu">

      <block wx:for="{{drinkMenus1}}" wx:for-item="menu">

        <block wx:for="{{menu.clist}}" wx:for-item="list">

          <view class="commodity_item" hidden="{{list.quantity== 0}}">

            <text class="commod_name">{{list.clistName}}</text>

            <text class="commodity_num">¥{{list.clistFavorablePrice}}</text>

            <view class="commodity-item-count" style="">

              <view class="dish-item-tab">

                <view class="reduce-btn reduce-btn-show" bindtap="minusCount" data-id="{{list.clistId}}" data-cid="{{list.merchantId}}">

                </view>

              </view>

              <view class="dish-item-count-text dish-item-tab">

                <text>{{list.quantity}}</text>

              </view>

              <view class="plus-default plus-btn" bindtap="addCount" data-id="{{list.clistId}}" data-cid="{{menu.merchantid}}">

              </view>

            </view>

          </view>

        </block>

      </block>

    </scroll-view>

  </view>

  <!--无商品-->

  <view class="haze_two" style="display:{{emptyHaze}}"></view>

  <view class="empty" style="display:{{emptyHaze}}">

    <text>购物车空空如也,先去选购吧~</text>

  </view>


  <view class="mask"  wx:if="{{showCart=='block'}}" bindtap="delete"></view>

  <view class="mask1" wx:if="{{showDetail}}"  bindtap="delete"></view>

  <!--弹出提示-->

  <view class="model" wx:if="{{showDetail}}">

    <view class="model-image">

      <image  src="{{(Dimg==''|| Dimg==null)?'http://oxpi2mdao.bkt.clouddn.com/bar/nodrink.png':Dimg}}"  class="model-image1"></image>

    </view>

    <view class="model-name">

      {{Dname}}

    </view>

    <view class="model-money">¥{{Dprice}} <text class="oldprice" wx:if="{{Oprice==''?false:true}}">¥{{Oprice}}</text></view>


    <view class="model-info">

       <view  style="font-size:26rpx;color:rgba(0,0,0,0.5);height:70rpx;line-height:70rpx;">商品信息</view>

       <view  style="font-size:28rpx;color:#000000;">{{Dinfo}}</view>

    </view>

    <view class="model-delete"><image src="http://oxpi2mdao.bkt.clouddn.com/drinks/icon_deleteone.png"  class="delete"  bindtap="delete"></image></view>

  </view>


回答关注问题邀请回答
收藏
登录 后发表内容