绝对是bug

<view class="container">

 <scroll-view scroll-y="true" scroll-into-view="{{scrollIntoView}}" bindscroll="onScroll">

   <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">

     <block wx:for="{{imgUrls}}">

       <swiper-item>

         <image src="{{item}}" class="slide-image" width="355" height="150" />

       </swiper-item>

     </block>

   </swiper>

   <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoPlay}}">

     <swiper-item wx:for="{{icons}}" wx:for-item="list" wx:key="id">

        <view class="icon" wx:for="{{list}}" wx:for-item="icon" wx:key="id" bindtap="toNearby">

          <image src="{{icon.img}}"/>

          <text>{{icon.name}}</text>

        </view>

      </swiper-item>

   </swiper>

 </scroll-view>

</view>



var qcloud = require('../../vendor/wafer2-client-sdk/index')

var config = require('../../config')

var util = require('../../utils/util.js')


Page({

 data: {

   imgUrls: [

     '../../imgs/index/404625.jpg',

     '../../imgs/index/404625.jpg',

     '../../imgs/index/404625.jpg'

   ],

   indicatorDots: true,

   autoplay: true,

   interval: 5000,

   duration: 1000,

   autoPlay: false,

   icons: [

     [

       

展开全部
收起
1回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • 布偶小天使

    13人对此回答表示赞同

    在图片加个binderror打印一下错误呢

    展开
    13
    7回复
    发布于 6年前

    评论(7)

    收起评论

    • 在劫难逃 2019-01-03 19:37

      手机上也会有报错吗?可在手机预览时,点击右上角-打开调试,查看log错误日志。

      回复
    • Nathan 2019-01-05 22:02

      个人觉得与开发工具的没有关系,因为打包发出去在手机上测试也不会执行success中的程序

      回复
    • Grace 2019-01-08 00:05

      工具的版本是多少呢

      回复
    • Willow 2019-01-09 17:15


      回复
    • Black&RED 2019-01-11 20:06

      我看了一下报错的位置,是jssdk文件中的这里在报错

      回复
    • Christopher 2019-01-13 15:29

      从这个错误信息index.js:387点进去断点看看报错详细信息呢

      回复
    • 何加男 2019-01-15 12:23

      我用wx.chooseImage突然报错了,开始都好好的,突然报错,然后在success回调里面的方法的代码都不执行了,我把success里面的代码注释完了还是报这个错

      回复
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部