- code_ticket如何获取
开发项目。不知道怎么拿到code_ticket
2020-01-17 - 跳转的里两个小程序,必须要要绑定在同一个公众号下面?
两个小程序直接的跳转,一定要在同一个公众号下面么?
2019-11-07 - canvasToTempFilePath 针对oppo R11报错?
oppo R11再调用这个API ,先是create bitmap failed ,加了延迟,加了this,都不行
2019-10-24 - 有没有什么方法可以判断用户是否将当前小程序添加到我的小程序中?
新需求需要得到用户是否添加我的小程序,请问怎么做呢
2019-10-14 - iphone6 系统版本10 ,无法上传图片
- 点击上传图片,拍照上传,确认图片后,加载中然后就没有了,没有上传图片 - 应该是打印出返回的data - "pages/upPoto/main" - 提供一个最简复现 Demo data () { return { imgMaxWidth: 1500, imgMaxHeight: 1500 } }, methods: { getSaoyiSao (id) { var taskid = Number(id) var that = this var FSM = wx.getFileSystemManager() wx.chooseImage({ count: 1, // 默认9 sizeType: ['compressed'], // 指定只能为压缩图,首先进行一次默认压缩 sourceType: ['camera'], // 可以指定来源是相册还是相机,默认二者都有 success: function (photo) { wx.getImageInfo({ src: photo.tempFilePaths[0], success: function (res) { var imgHeight = 0 var imgWidth = 0 var containerRatio = that.imgMaxWidth / that.imgMaxHeight var imgRatio = res.width / res.height if (imgRatio > containerRatio) { imgWidth = that.imgMaxWidth imgHeight = that.imgMaxWidth / imgRatio } else if (imgRatio < containerRatio) { imgHeight = that.imgMaxHeight imgWidth = that.imgMaxHeight * imgRatio } that.cWidth = Math.min(imgWidth, res.width) that.cHeight = Math.min(imgHeight, res.height) var ctx = wx.createCanvasContext('canvas') ctx.drawImage(res.path, 0, 0, that.cWidth, that.cHeight) ctx.draw(false, setTimeout(function () { wx.canvasToTempFilePath({ fileType: 'jpg', canvasId: 'canvas', destWidth: that.cWidth, destHeight: that.cHeight, success: function (res) { FSM.readFile({ filePath: res.tempFilePath, encoding: 'base64', success: function (data) { console.log(data) } }) }, fail: function (res) { console.log(res.errMsg) } }) }, 300)) } }) } }) } }
2019-07-16 - H5连接可以跳转小程序
- 需求的场景描述(希望解决的问题)H5页面点击链接跳转小程序 - 希望提供的能力请问大家如何可以跳转
2019-07-10