소스 검색

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