getwxacode调用后电脑上可以显示base64二维码,但是真机调试就是没反应,空白,为什么?
<view class="b1" hidden="{{flag}}">
<view class="b2">
<image src='{{qrcodeUrl}}'/>
</view>
var openid=wx.getStorageSync('openid')
if(openid){
wx.request({
url: app.globalData.host+'/getQrcode',
data: {
scene: openid+'&'+that.data.goodsid
},
method:'GET',
header: {
'content-type': 'application/json'
},
success: function(res) {
console.log(res.data)
that.setData({
qrcodeUrl:res.data,
flag:false
})
}
})