From c0452331382ba2422d67bdc5fb8867573f62949b Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Tue, 1 Apr 2025 10:37:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(add=5Fclues):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=80=A7=E5=88=AB=E9=80=89=E6=8B=A9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在表单中增加性别选择项,使用单选框组件 - 添加性别相关的数据属性和事件处理方法 - 优化表单提交时的控制台日志输出 --- pages/market/clue/add_clues.vue | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/pages/market/clue/add_clues.vue b/pages/market/clue/add_clues.vue index 7389eb8..925563e 100644 --- a/pages/market/clue/add_clues.vue +++ b/pages/market/clue/add_clues.vue @@ -29,6 +29,28 @@ + + + + + + + + + + + + + + + + + + + + + @@ -261,6 +283,7 @@ export default { //表单 formData: { + sex:'1',//性别|0=保密,1=男,2=女 student_name: '',//学员姓名* student_phone: '',//学员手机号* age: '',//年龄* @@ -570,7 +593,7 @@ export default { //提交 async submit() { - console.log(this.formData) + console.log('提交',this.formData) let data = {...this.formData} //表单验证 let validatorForm = await this.validatorForm(data) @@ -727,7 +750,12 @@ export default { } else { this.switchChange_type = 2 } - } + }, + + //性别选择器 + changeSex(e){ + this.formData.sex = e.detail.value + }, } }