Explorar o código

增加loading

tanxue hai 1 mes
pai
achega
6b9447cde5
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      pages/admin/Hetong/components/addKh.vue

+ 6 - 1
pages/admin/Hetong/components/addKh.vue

@@ -88,7 +88,10 @@ function htAdd(){
 		})
 		return;
 	}
-	
+	uni.showLoading({
+	      title: '新增中...',
+	      mask: true
+	    });
 	const opt = {
 		realName: formData.realName,
 		userName: formData.userName,
@@ -103,6 +106,8 @@ function htAdd(){
 			goback2();
 			emits('success')
 		}
+	}).finally(()=>{
+		uni.hideLoading()
 	})
 }