张延森 4 lat temu
rodzic
commit
5b2a82cd92
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3
    0
      src/pages/recommend/index.jsx

+ 3
- 0
src/pages/recommend/index.jsx Wyświetl plik

@@ -69,14 +69,17 @@ const recommend = props => {
69 69
         success: function(res) {
70 70
           if (res.confirm) {
71 71
             console.log("用户点击确定");
72
+            Taro.showLoading({ title: '删除中...' })
72 73
             request({
73 74
               url: `/taHouseSurround/${item.surroundId}`,
74 75
               method: "DELETE"
75 76
             }).then(res => {
76 77
               setList(list.filter(x => x.surroundId != item.surroundId));
78
+              Taro.hideLoading()
77 79
             });
78 80
           } else if (res.cancel) {
79 81
             console.log("用户点击取消");
82
+            Taro.hideLoading()
80 83
           }
81 84
         }
82 85
       });