张延森 4 年前
父节点
当前提交
5b2a82cd92
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/pages/recommend/index.jsx

+ 3
- 0
src/pages/recommend/index.jsx 查看文件

@@ -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
       });