<view wx:for="{{searchList}}" wx:key="key" class="pics">图片
<image src="{{itme.spath}}"></image>
</view>
就一个简单的搜索图片的功能
iptSearch:function(e){
this.setData({
searchName:e.detail.value
})
},
bindSearch(){
db.collection("pic").where({sname:this.data.searchName}).get()
.then(res=>{
this.setData({
searchList:res.data,
})
console.log(res)
},
)
},
要的字段也都搜到了
就是图片不显示。。。
求助
item.spath