Browse Source

fix: 重新注册

chenjj 4 weeks ago
parent
commit
c58a86d78f
2 changed files with 3 additions and 3 deletions
  1. 1 1
      pages_home/pages/details/index.vue
  2. 2 2
      pages_home/pages/register/index.vue

+ 1 - 1
pages_home/pages/details/index.vue

@@ -201,7 +201,7 @@ async function getRegister() {
 }
 
 const startSubmit = () => {
-    uni.navigateTo({
+    uni.redirectTo({
         url: `/pages_home/pages/register/index?data=${encodeURIComponent(JSON.stringify(data.value))}`
     })
 }

+ 2 - 2
pages_home/pages/register/index.vue

@@ -180,8 +180,8 @@ async function getRegister() {
 		});
 		const res = await getVolunteerInfo({ serviceCategory: data.value.key });
 		if (res.data) {
-			cust_form_ref.value.setData(res.data);
-			details.value = res.data;
+			details.value = {...res.data,age:res.data.age + ''};
+			cust_form_ref.value.setData(details.value);
 			Object.assign(file_url, {
 				volunteerPicture: res.data.volunteerPicture,
 				idCardPicture: res.data.idCardPicture,