1.河南省青企协身份证填写添加规则验证

2.河南省青企协紧急(助理)联系人 字眼更改
3.河南省青企协手机端提交资料,身份证正反面上传入口
This commit is contained in:
王创世 2025-04-16 16:11:05 +08:00
parent 573cfcdd35
commit 1a687baeef
10 changed files with 30 additions and 42 deletions

View File

@ -206,8 +206,9 @@
<tn-form-item label="手机号" required>
<tn-input disabled placeholder="填写手机号" :clearable="false" inputAlign="right"
v-model="formData.phone" />
<tn-button slot="right" size="sm" backgroundColor="tn-bg-blue" fontColor="tn-color-white"
open-type="getPhoneNumber" @getphonenumber="getPhone">获取手机号</tn-button>
<tn-button slot="right" size="sm" backgroundColor="tn-bg-blue"
fontColor="tn-color-white" open-type="getPhoneNumber"
@getphonenumber="getPhone">获取手机号</tn-button>
</tn-form-item>
<tn-form-item label="邮箱">
<tn-input placeholder="填写邮箱" :clearable="false" inputAlign="right"
@ -233,7 +234,7 @@
@confirm="getDqId"></tn-select>
</tn-form-item>
<!-- <tn-form-item prop="bank" :borderBottom="false">
<tn-form-item prop="bank" :borderBottom="false">
<view>
<view style="font-size: 32rpx;font-weight: 600;">证件照</view>
<view style="color: #FF7474;">请上传证件照照片将作为会员证照</view>
@ -246,8 +247,8 @@
</view>
</view>
</view>
</tn-form-item> -->
<!-- <tn-form-item prop="bank" :borderBottom="false">
</tn-form-item>
<tn-form-item prop="bank" :borderBottom="false">
<view>
<view style="font-size: 32rpx;font-weight: 600;">身份证照</view>
<view style="text-align: center;">
@ -267,7 +268,7 @@
</view>
</view>
</view>
</tn-form-item> -->
</tn-form-item>
</tn-form>
<view style="height: 1px;background-color: rgba(0, 0, 0, 0.1);width: 100%;"></view>
<view style="padding: 30rpx 0px;">
@ -348,7 +349,7 @@
</view>
<view style="padding: 30rpx;background-color: #FFFFFF;border-radius: 20rpx;margin-top: 20rpx;">
<view>
<view style="font-size: 30rpx;font-weight: 600">其他联系人</view>
<view style="font-size: 30rpx;font-weight: 600">紧急助理联系人</view>
<tn-form v-for="(item,index) in contactsList" ref="form" :labelWidth="150">
<tn-form-item label="姓名" :borderBottom="false">
<tn-input placeholder="填写姓名" :clearable="false" inputAlign="right"
@ -1189,6 +1190,7 @@
});
return params;
},
getExamineType() {
examineType()
.then(res => {
@ -1485,6 +1487,14 @@
}
});
},
validateIdCard(idCard) {
// 1518
const reg15 = /^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$/;
const reg18 = /^[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]$/;
// truefalse
return reg15.test(idCard) || reg18.test(idCard);
},
newSubmit() {
if (this.formData.phone == '') {
@ -1553,6 +1563,15 @@
});
return;
}
//
if (!this.validateIdCard(this.formData.card_number)) {
uni.showToast({
title: '请输入有效的身份证号码!',
icon: 'none',
duration: 2000
});
return;
}
if (this.formData.enterprise_name == '') {
uni.showToast({
title: '请填写企业名称!',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +0,0 @@
wx.createComponent({
generic:true,
props: {},
render: function(){}
})

View File

@ -1,21 +0,0 @@
{
"component": true,
"usingComponents": {
"apply_in-tn-button-default": "/pages/packageA/user/apply_in-tn-button-default",
"tn-nav-bar": "/tuniao-ui/components/tn-nav-bar/tn-nav-bar",
"tn-steps": "/tuniao-ui/components/tn-steps/tn-steps",
"tn-checkbox": "/tuniao-ui/components/tn-checkbox/tn-checkbox",
"tn-button": "/tuniao-ui/components/tn-button/tn-button",
"tn-form": "/tuniao-ui/components/tn-form/tn-form",
"tn-form-item": "/tuniao-ui/components/tn-form-item/tn-form-item",
"tn-action-sheet": "/tuniao-ui/components/tn-action-sheet/tn-action-sheet",
"tn-input": "/tuniao-ui/components/tn-input/tn-input",
"tn-select": "/tuniao-ui/components/tn-select/tn-select",
"tn-picker": "/tuniao-ui/components/tn-picker/tn-picker",
"tn-checkbox-group": "/tuniao-ui/components/tn-checkbox-group/tn-checkbox-group",
"tn-radio-group": "/tuniao-ui/components/tn-radio-group/tn-radio-group",
"tn-radio": "/tuniao-ui/components/tn-radio/tn-radio",
"tn-time-line": "/tuniao-ui/components/tn-time-line/tn-time-line",
"tn-time-line-item": "/tuniao-ui/components/tn-time-line-item/tn-time-line-item"
}
}

View File

@ -1,2 +0,0 @@
@import "./apply_in.wxss"

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,6 @@
{
"navigationBarTitleText": "河南省青年企业家协会",
"usingComponents": {
"apply_in-tn-button-default": "/pages/packageA/user/apply_in-tn-button-default",
"tn-nav-bar": "/tuniao-ui/components/tn-nav-bar/tn-nav-bar",
"tn-steps": "/tuniao-ui/components/tn-steps/tn-steps",
"tn-checkbox": "/tuniao-ui/components/tn-checkbox/tn-checkbox",

File diff suppressed because one or more lines are too long