<view wx:for='{{images}}' wx:key = 'index'>
<image src='{{item.pic}}'></image>
<view>{{item.name}}</view>
</view>
Page({
data:{
images:[]
},
onLoad:function(){
var that = this;
wx.request({
url: 'https://way.jd.com/jisuapi/byclass? classid=2&start=0&num=10&appkey=e7f381ade61cdf0d5a11d9740726e9b4';,
success:function(res){
that.setData({ images: res.data.result.result.list});
console.log(res.data.result.result.list)
}
})
}
})