ソースを参照

feat:新增loading

jinx 4 年 前
コミット
8fa646c779
1 ファイル変更5 行追加1 行削除
  1. 5 1
      pages/searchRoom/searchRoom.js

+ 5 - 1
pages/searchRoom/searchRoom.js

@@ -88,11 +88,15 @@ Page({
         })
       }
     }
+   
     if (!this.data.loading) {
-
       this.setData({
         loading: true
       })
+      wx.showLoading({
+        title: '加载中...',
+      });
+    
       util.request(api.BrandList, this.data.fetcherData).then((res) => {
         this.setData({
           loading: false