瀏覽代碼

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