|
|
@@ -15,7 +15,7 @@ Page({
|
|
|
shipId: wx.getStorageSync("shipId"),
|
|
|
userId: wx.getStorageSync("userId"),
|
|
|
});
|
|
|
- let { total, status } = data;
|
|
|
+ let { total, status, msg } = data;
|
|
|
if (status == 0) {
|
|
|
if (isScroll) {
|
|
|
list = [...list, ...data.result];
|
|
|
@@ -23,6 +23,10 @@ Page({
|
|
|
list = data.result;
|
|
|
}
|
|
|
} else {
|
|
|
+ wx.showToast({
|
|
|
+ title: msg,
|
|
|
+ icon: "none",
|
|
|
+ });
|
|
|
if (!isScroll) {
|
|
|
list = [];
|
|
|
}
|
|
|
@@ -30,6 +34,7 @@ Page({
|
|
|
this.setData({
|
|
|
list,
|
|
|
total,
|
|
|
+ isFreshing: false,
|
|
|
});
|
|
|
},
|
|
|
async openFile(e) {
|