收藏
回答

选择多张图片卡顿

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 需求 wx.chooseImage 工具 7.0.3 2.5.2
wx.chooseImage({  count: 1,  sizeType: ['original', 'compressed'],  sourceType: ['album', 'camera'],

 success(res) {    // tempFilePath可以作为img标签的src属性显示图片

    返回压缩以及未压缩图片链接

   const tempFilePaths = res.tempFilePaths  } })


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

5 个回答

  • 小程序运营专员 - cunjin
    小程序运营专员 - cunjin
    2019-02-13

    可以录制个视频看下怎么操作的不?

    2019-02-13
    有用
    回复 1
    • interesting
      interesting
      2019-02-14

      能不能加微信   shiqu6788  我发给你


      2019-02-14
      回复
  • 禾店科技
    禾店科技
    2021-04-28

    学到了

    2021-04-28
    有用 1
    回复
  • 灵芝
    灵芝
    2019-02-13

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

    2019-02-13
    有用
    回复 5
    • interesting
      interesting
      2019-02-13

      微信版本7.0.3 机型vivoZ1 V1801A0  android8.1.0https://developers.weixin.qq.com/s/ennZL9mt7W6f

      2019-02-13
      回复
    • 灵芝
      灵芝
      2019-02-13回复interesting

      卡顿具体是什么表现呢?这边测试没有发现什么问题

      2019-02-13
      回复
    • interesting
      interesting
      2019-02-13

      一次连续选择8张图片,显示出来闪烁然后退出小程序

      2019-02-13
      回复
    • 灵芝
      灵芝
      2019-02-13回复interesting

      退出小程序吗?是否内存不足?

      2019-02-13
      回复
    • interesting
      interesting
      2019-02-13

      内存足的

      2019-02-13
      回复
  • interesting
    interesting
    2019-02-13

    是的,我同时选择9张原图显示卡顿


    wx.chooseImage({  count: 9,  sizeType: ['original'],  sourceType: ['album', 'camera'],

     success(res) {    // tempFilePath可以作为img标签的src属性显示图片

        返回压缩以及未压缩图片链接

       const tempFilePaths = res.tempFilePaths  }

    })


    这种

    后面用image循环显示

    2019-02-13
    有用
    回复
  • จุ๊บ
    จุ๊บ
    2019-02-13

    你这只是选择一张图片啊,count  是控制选择多少图片的,最多9张

    2019-02-13
    有用
    回复
登录 后发表内容