From 58c505eb4750751e9ce2f3b77446f8a0d0d55d13 Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Fri, 28 Jul 2023 10:18:01 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2=E6=95=88?=
=?UTF-8?q?=E6=9E=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
subpkg/newPersonnel/newPersonnel.vue | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/subpkg/newPersonnel/newPersonnel.vue b/subpkg/newPersonnel/newPersonnel.vue
index 1c47770..1f02059 100644
--- a/subpkg/newPersonnel/newPersonnel.vue
+++ b/subpkg/newPersonnel/newPersonnel.vue
@@ -6,11 +6,11 @@
-
-
+
+
-
+
@@ -125,7 +125,7 @@
id_card: '',
sex: '',
avatar: '',
- name: '',
+ nickname: '',
province: '',
city: '',
area: '',
@@ -176,7 +176,7 @@
message: '头像不能为空',
trigger: ['change', 'blur']
},
- name: {
+ nickname: {
type: 'string',
required: true,
message: '姓名不能为空',
@@ -414,12 +414,16 @@
addAcountNum() {
this.$refs.uForm.validate().then(async (e) => {
if(e){
+ uni.showLoading()
let res = await loginAdd(this.formData);
+ uni.hideLoading()
uni.showToast({
icon:"none",
title:"添加成功",
success: () => {
- uni.navigateBack()
+ setTimeout(()=>{
+ uni.navigateBack()
+ },1000)
}
})
}