时间:2019-05-07 来源:小程序工厂
任***:
之前我弄的时候不支持,大概是两个月前;现在不知道了
河***:
目前是要先发布,然后设为体验版,才能生成二维码
微信小程序可以使用AirKiss 2.0的微信配网JSAPI吗##微信小程序开发
付***:
使用开发者工具调试即可,建议你先使用接口A或者接口C,接口B的代码写上,发上线后,测试接口B
付***:
if (!options.scene) {
this.setData({
partJobId: options.partJobId,
authorizedKey: options.authorizedKey
})
} else {
this.setData({
partJobId: decodeURIComponent(options.scene)
})
}
付***:
页面上 这样写 partJobId是每个不一样的数据的唯一标示, 扫码后即可进到详情页拿到partJobId然后调用数据
canvas的draw方法不走回调函数(开发工具和ios不走。安卓走)#微信小程序开发 ...
付***:
createXcxCode() {
if (!this.data.imagePath) {
后端拿到token和菊花码接口,修改接口为 前端传入scene字段和页面地址。
let postData = {
url: '后端接口',
data: {
scene: this.data.partJobId,
page: 'pages/partdetails/partdetails'
}
}
app.ajax(postData).then((res) => {
if (res.success) {
this.setData({
qrCode: `xxx${res.data}`
})
let that = this
wx.getImageInfo({
src: 'xxx',
success: function(res) {
that.setData({
qtPaths: res.path
})
}
})
} else {
this.wetoast.toast({
title: '服务器错误,请稍后再试',
duration: 1500
})
}
})
} else {
return
}
},