qq_卿风徐来_0
2019-01-10 17:13
onLoad: function (options) {
var that = this;
that.setData({
areaId: options.areaId
});
if (options.areaId == undefined) {
return;
}
wx.request({
url: "http://localhost:8088/superadmin/getareabyid",
data: {"areaId": options.areaId },
method: 'GET',
success: function (res) {
var area = res.data.area;
if (area == undefined) {
var toastText = '获取数据失败' + res.data.errMsg;
wx.showToast({
title: toastText,
icon: '',
duration: 2000
});
} else {
that.setData({
areaName: area.areaName,
priority: area.priority
});
}
}
});
},
删除了一样不显示?
找到原因了,当初写异常报告时那个 int a=1/0 没删,wtf!
SpringBoot+MyBatis搭建迷你小程序
91657 学习 · 622 问题
相似问题