慕仰8518711
2018-05-21 17:11
onShow: function () {
var that = this;
wx.request({
url: 'http://localhost:8080/springboot/superadmin/listarea',
method: 'GET',
data: {},
success: function (res) {
var list = res.data.areaList;
if (list == null) {
var toastText = '数据回显失败' + res.data.errMsg;
wx.showToast({
title: 'toastText',
icon: '',
duration: 2000
});
} else {
that.setData({
list: list
});
}
}
})
},
同学好,这个需要你前后端联调一下,看看res里面的data是否有值,不应该跟版本相关
一样- -
要我参考文档接口升级,还有for换成key,,,取不到~~~
我暂时也拿不到后台数据 有人会的话麻烦指点一下
我也一样 拿不到后台数据
var list = res.data.areaList;
针对这一句
看看controller中是不是
modelMap.put("areaList",list);
areaList大小写前后端要一致
SpringBoot+MyBatis搭建迷你小程序
91968 学习 · 656 问题
相似问题