Explorar o código

feat:新增loading

jinx %!s(int64=4) %!d(string=hai) anos
pai
achega
8fa646c779
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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