1、报名活动时的报名人的管理报名人的信息管理的新增手机号和是否公开信息
This commit is contained in:
parent
42e9f064e3
commit
0ed7d1e926
@ -3,7 +3,7 @@
|
|||||||
<view v-for="item in list" style="padding:0rpx 30rpx;">
|
<view v-for="item in list" style="padding:0rpx 30rpx;">
|
||||||
<view style="display: flex;align-items: center;justify-content: space-between;">
|
<view style="display: flex;align-items: center;justify-content: space-between;">
|
||||||
<view>
|
<view>
|
||||||
<view style="font-size: 28rpx;color: #323232;">{{ item.name }}</view>
|
<view style="font-size: 28rpx;color: #323232;">{{ item.name }} {{item.mobile}}</view>
|
||||||
<view style="color: #9C9C9C;font-size: 24rpx;margin-top: 10rpx;">
|
<view style="color: #9C9C9C;font-size: 24rpx;margin-top: 10rpx;">
|
||||||
<text>身份证</text>
|
<text>身份证</text>
|
||||||
<text style="margin-left: 10rpx;">{{ item.idnum }}</text>
|
<text style="margin-left: 10rpx;">{{ item.idnum }}</text>
|
||||||
@ -49,6 +49,23 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="height: 1px;background-color: #eeeeee;width: 100%;"></view>
|
<view style="height: 1px;background-color: #eeeeee;width: 100%;"></view>
|
||||||
|
<view style="display: flex;align-items: center;justify-content: space-between;padding: 30rpx 0rpx;">
|
||||||
|
<view style="font-size: 30rpx;">
|
||||||
|
手机号
|
||||||
|
</view>
|
||||||
|
<view style="width: 75%;">
|
||||||
|
<input :cursor-spacing="300" type="number" placeholder="请填写手机号" class="input" v-model="form.mobile" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view style="height: 1px;background-color: #eeeeee;width: 100%;"></view>
|
||||||
|
|
||||||
|
<view style="display: flex;justify-content: flex-start;align-items: center;margin-top: 30rpx;">
|
||||||
|
<image v-if="privacyShow == false" src="../../static/fabu/nocheck.png"
|
||||||
|
style="width: 34rpx;height: 34rpx;border-radius: 63rpx;" @click="privacyShow = true"></image>
|
||||||
|
<image v-else src="../../static/fabu/check.png" @click="privacyShow = false"
|
||||||
|
style="width: 34rpx;height: 34rpx;border-radius: 63rpx;"></image>
|
||||||
|
<view style="color: #3D3D3D;font-size: 22rpx;line-height: 33rpx;margin-left: 15rpx;">隐私报名(报名信息仅对我和组织者公开)</view>
|
||||||
|
</view>
|
||||||
<view style="font-size: 24rpx;color: #9C9C9C;margin-top: 40rpx;">
|
<view style="font-size: 24rpx;color: #9C9C9C;margin-top: 40rpx;">
|
||||||
<text>你的个人信息我们将严格保密并仅用于投保使用,详情可查看</text>
|
<text>你的个人信息我们将严格保密并仅用于投保使用,详情可查看</text>
|
||||||
<text style="color: #0CA013;" @click="go('/packageB/privacy?type=privacy')">《隐私政策》</text>
|
<text style="color: #0CA013;" @click="go('/packageB/privacy?type=privacy')">《隐私政策》</text>
|
||||||
@ -67,10 +84,12 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
privacyShow: false,
|
||||||
show: false,
|
show: false,
|
||||||
form: {
|
form: {
|
||||||
name: '',
|
name: '',
|
||||||
idnum: ''
|
idnum: '',
|
||||||
|
mobile: ''
|
||||||
},
|
},
|
||||||
isAdd:1,
|
isAdd:1,
|
||||||
list: []
|
list: []
|
||||||
@ -83,8 +102,9 @@ export default {
|
|||||||
edit(item){
|
edit(item){
|
||||||
this.isAdd=0;
|
this.isAdd=0;
|
||||||
this.form.name=item.name;
|
this.form.name=item.name;
|
||||||
// this.form.idnum=item.idnum;
|
this.form.idnum=item.idnum;
|
||||||
this.form.ids=item.id;
|
this.form.ids=item.id;
|
||||||
|
this.form.mobile = item.mobile;
|
||||||
this.show=true;
|
this.show=true;
|
||||||
},
|
},
|
||||||
del(item){
|
del(item){
|
||||||
@ -152,6 +172,14 @@ export default {
|
|||||||
});
|
});
|
||||||
return;
|
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]$/;
|
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)){
|
if(!reg.test(this.form.idnum)){
|
||||||
@ -162,6 +190,20 @@ export default {
|
|||||||
});
|
});
|
||||||
return;
|
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";
|
var url="/api/school.newactivity.activity_join/add";
|
||||||
if(this.isAdd==0){
|
if(this.isAdd==0){
|
||||||
url="/api/school.newactivity.activity_join/edit";
|
url="/api/school.newactivity.activity_join/edit";
|
||||||
@ -176,6 +218,7 @@ export default {
|
|||||||
});
|
});
|
||||||
this.getList()
|
this.getList()
|
||||||
this.show = false;
|
this.show = false;
|
||||||
|
this.privacyShow = false;
|
||||||
this.form = {
|
this.form = {
|
||||||
name: '',
|
name: '',
|
||||||
idnum: ''
|
idnum: ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user