收藏
回答

微信小程序图片预览在ios里面可以展示出来,在Android 里面展示不出来?

  // 预览图片
  previewImageHandle (imageList, index) {
    const imageListValue = imageList.map((res) => {
      return UtilsBox.getUrlPrefix(res.picUrl)
    })
      //imageListValue: ["https://image.dada365.com/group1/20200901/926feca0-b2e4-48cc-a9ee-4167b14754fd.jpeg", "https://image.dada365.com/group1/20200901/b02e23d7-9245-43c5-87b7-5817971a38bf.jpeg", "https://image.dada365.com/group1/20200901/6ed52b75-23fd-4d5b-a478-f4d62424fa73.jpeg", "https://image.dada365.com/group1/20200901/36771264-ffb0-4d1d-b338-29030f68f474.jpeg", "https://image.dada365.com/group1/20200901/8da1fd6b-a7eb-4316-b793-dad5c2b664bb.jpeg"]
    wx.previewImage({
      current: imageListValue[index],
      urls: imageListValue,
      failfunction(res){
        console.log(res, '------')// 没有打印
      },
      completefunction(res){
        console.log(res, '------')// {errMsg: "previewImage:ok"}
      }
    })
  }
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容
问题标签