浏览代码

当没有更多用户足迹信息,显示提示信息。

Junling Bu 7 年之前
父节点
当前提交
9b9a50caa4
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      litemall-wx/pages/ucenter/footprint/footprint.js

+ 6 - 2
litemall-wx/pages/ucenter/footprint/footprint.js

@@ -79,11 +79,15 @@ Page({
       this.setData({
         page: this.data.page + 1
       });
+      this.getFootprintList();
     } else {
+      wx.showToast({
+        title: '没有更多用户足迹了',
+        icon: 'none',
+        duration: 2000
+      });
       return false;
     }
-
-    this.getFootprintList();
   },
   onReady: function () {