//页面的初始数据
data: {
data1:""
},
//生命周期函数--监听页面加载
onLoad:function (e) {
var that = this;
wx.request({
url: 'https://api.it120.cc/small4/shop/goods/list',
method: "post",
success: function (res) {
console.log(res)
that.setData({ data1: res.data })
}
})
},
网友评论