圖片的src為啥不顯示圖片
<block wx:for="{{images}}" wx:key="{{index}}">
<image src="{{item.fileID}}"></image>
<button data-id='{{item.fileID}}' size='mini' bindtap="downloadFile"></button>
</block>
getFile() {
wx.cloud.callFunction({
name : 'getUserInfo' ?
})
.then(res => { // 獲取用戶信息
console.log(res)
db.collection('img').where({
_openid : res.result.openid
}).get()
.then(res2 => {
console.log(res2)
this.setData({
images : res2.data
})
console.log(this.data.images)
})
.catch(err => {
console.error(err)
})
})
.catch(err => {
console.error(err)
})
},
2019-08-28
我的圖片也不顯示,怎么解決的?
2020-03-07
我的圖片也顯示不出來,求解,你是怎么解決的呀,群主。
2019-08-10
已解決