فهرست منبع

更新 提示

wzg 2 سال پیش
والد
کامیت
1db36e93f2
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      miniprogram/pages/maritime/maritime.js

+ 6 - 1
miniprogram/pages/maritime/maritime.js

@@ -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) {