From 0ed7d1e926997ca27e61784244178799e6333cf6 Mon Sep 17 00:00:00 2001 From: wangzimeng <3297159934@qq.com> Date: Tue, 12 Aug 2025 10:40:01 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=8A=A5=E5=90=8D=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E6=8A=A5=E5=90=8D=E4=BA=BA=E7=9A=84=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=8A=A5=E5=90=8D=E4=BA=BA=E7=9A=84=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=9A=84=E6=96=B0=E5=A2=9E=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E5=8F=B7=E5=92=8C=E6=98=AF=E5=90=A6=E5=85=AC=E5=BC=80=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageB/team/index.vue | 49 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/packageB/team/index.vue b/packageB/team/index.vue index b2c43ab..fa79a30 100644 --- a/packageB/team/index.vue +++ b/packageB/team/index.vue @@ -3,7 +3,7 @@ - {{ item.name }} + {{ item.name }} {{item.mobile}} 身份证 {{ item.idnum }} @@ -49,6 +49,23 @@ + + + 手机号 + + + + + + + + + + + 隐私报名(报名信息仅对我和组织者公开) + 你的个人信息我们将严格保密并仅用于投保使用,详情可查看 《隐私政策》 @@ -67,10 +84,12 @@ export default { data() { return { + privacyShow: false, show: false, form: { name: '', - idnum: '' + idnum: '', + mobile: '' }, isAdd:1, list: [] @@ -83,8 +102,9 @@ export default { edit(item){ this.isAdd=0; this.form.name=item.name; - // this.form.idnum=item.idnum; + this.form.idnum=item.idnum; this.form.ids=item.id; + this.form.mobile = item.mobile; this.show=true; }, del(item){ @@ -152,6 +172,14 @@ export default { }); return; } + if (this.form.mobile == '') { + uni.showToast({ + title: '请填写手机号', + icon: 'none', + duration: 2000 + }); + return; + } //正则判断身份证 const reg = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/; if(!reg.test(this.form.idnum)){ @@ -162,6 +190,20 @@ export default { }); return; } + if (!/^1[3-9]\d{9}$/.test(this.form.mobile)) { + uni.showToast({ + title: '请输入正确的手机号', + icon: 'none', + duration: 2000 + }) + return; + } + console.log('privacyShow',this.privacyShow); + if(this.privacyShow == true) { + this.form.open = 0 + }else { + this.form.open = 1 + } var url="/api/school.newactivity.activity_join/add"; if(this.isAdd==0){ url="/api/school.newactivity.activity_join/edit"; @@ -176,6 +218,7 @@ export default { }); this.getList() this.show = false; + this.privacyShow = false; this.form = { name: '', idnum: ''