``` onLoad: function(options) {
var that = this;
var access_token = that.data.access_token
var scene = decodeURIComponent(options.scene)
wx.request({
url: 'https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=' + this.data.access_token,
data: {
scene: '000',
page: "../../pages/home/home",
width: 200
},
method: "POST",
responseType: 'arraybuffer',
success: res => {
var base64 = wx.arrayBufferToBase64(res.data);
this.setData({
urlIMG: 'data:image/PNG;base64,' + base64
})
console.log(that.data)
},
fail(e) {
}
})
},