Browse Source

showToast

dongyuan0658 6 years ago
parent
commit
901dd14928

+ 6 - 6
pages/groupPage/collage-details/collage-details.json

@@ -1,7 +1,7 @@
 {
-    "component": true,
-    "usingComponents": {
-        "shareDialog": "/component/share/share",
-        "popup": "/component/popup/popup"
-    }
-  }
+  "component": true,
+  "usingComponents": {
+      "shareDialog": "/component/share/share",
+      "popup": "/component/popup/popup"
+  }
+}

+ 0 - 1
pages/user/myread/myread.wxml

@@ -1,4 +1,3 @@
-<wxs src="../../commonWxs/format.wxs" module="format" />
 <view class='my-read'>
   <view class='read-article' wx:for="{{ wareCards }}" wx:key="{{ index }}" bindtap='toWork' data-lessonId='{{ item.id }}' data-title='{{ item.title }}'>
     <view class='video-preview'>

+ 9 - 2
pages/user/myworks/myworks.js

@@ -28,13 +28,16 @@ Page({
     APIClient.getUserMsg(uid, pageNo, pageSize).success(res => {
       this.setData({
         wareCards: res.data.data
-      })
+      });
+      wx.hideToast();
+    }).fail(err => {
+      console.log(err);
     });
     APIClient.userWorks(uid, pageNo, pageSize).success(res => {
-      console.log(res.data.data);
       this.setData({
         worksList: res.data.data.list
       });
+      wx.hideToast();
     }).fail(err => {
       console.log(err);
     });
@@ -48,6 +51,10 @@ Page({
     },() => {
       console.log(options.uid);
     });
+    wx.showToast({
+      title: '加载中...',
+      icon: 'loading'
+    });
     this.getResults();
   },