交流专区
服务市场
开发者平台
学堂
文档
小程序
  • 常用主页

    小程序

    小游戏

    企业微信

    微信支付

  • 服务市场
    微信学堂
    文档
登录
切换主页

暂无个人介绍

关注私信

正在关注

0

关注者

0

获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
文章 回答 1提问 收藏 关注问题
  • 我也出现了同样问题,之前都好好的,今天手机测试以及不行了,电脑上可以。求解答

    如何解决canvasToTempFilePath:fail no image?

    wx.getImageInfo({ src: tempFilePaths[index], success(res1) { ctx.drawImage(tempFilePaths[index], 0, 0, res1.width, res1.height, 0, 0, res1.width, res1.height); console.log(4) ctx.draw(false, function () { index = index + 1;//上传成功的数量,上传成功则加1 wx.canvasToTempFilePath({ width: res1.width, height: res1.height, destWidth: res1.width, destHeight: res1.height, fileType: 'jpg', quality: 0.3, canvasId: 'pressCanvas', success: function success(res) { console.log(5) let images = that.data.images.concat(res.tempFilePath) let status = that.data.status.concat(0) // 限制最多只能留下3张照片 images = images.length <= 9 ? images : images.slice(0, 9) if(images.length>=9){ that.setData({ jia:0 }) } that.setData({ images: images, is_upload: 1, status:status }) that.getCanvasImg(index, tempFilePaths); }, fail: function (e) { console.log(6,e) that.getCanvasImg(index, tempFilePaths); } }); }); }, fail:function(e){ common.errorShowModal() } }) 真机测试就会出问题    上周真机测试还是好好的   代码也没有动   今天测试就出现这个问题 [图片]

    2019-08-28
关闭

选择需要上架的开放服务

  • 模板开发

    针对行业、场景的小程序代开发服务,帮助企业快速搭建小程序

    上架
  • 插件

    提供可被小程序直接使用、丰富小程序能力的功能模块

    上架
  • 小商店服务

    为小商店商家提供更多的能力,帮助商家经营好小商店

    上架
关闭

案例类型

  • 小程序
  • 插件
  • 关于腾讯
  • 运营规范
  • 文档中心
  • 辟谣中心
  • 客服中心
  • Copyright © 2012-2025 Tencent. All Rights Reserved.