Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
b5ed7e99
Commit
b5ed7e99
authored
Dec 05, 2024
by
‘yangmengxue’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改证件类型
parent
28d90824
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
17 deletions
+74
-17
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+68
-11
src/config/server.js
src/config/server.js
+6
-6
No files found.
src/components/index/SignUp/referInfo.vue
View file @
b5ed7e99
...
@@ -138,7 +138,36 @@
...
@@ -138,7 +138,36 @@
</el-row>
</el-row>
</el-form-item>
</el-form-item>
</el-col>
-->
</el-col>
-->
<!-- 身份证号 -->
<!-- 证件类型 -->
<el-col
:span=
"12"
v-show=
"configJson.idCard == 1"
>
<el-form-item
:rules=
"
configJson.idCard == 1
? referInfoRules.id_type
: [
{ required: false }]
"
label="证件类型"
prop="id_type"
style="height: 73px"
>
<el-select
:popper-append-to-body=
"false"
clearable
placeholder=
"证件类型"
v-model=
"referForm.id_type"
@
change=
"changeIDType"
>
<el-option
:key=
"index"
:label=
"item"
:value=
"item"
v-for=
"(item, index) in IDArrs"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<!-- 证件号 -->
<el-col
:span=
"12"
v-show=
"configJson.idCard == 1"
>
<el-col
:span=
"12"
v-show=
"configJson.idCard == 1"
>
<el-form-item
<el-form-item
:rules=
"
:rules=
"
...
@@ -146,14 +175,15 @@
...
@@ -146,14 +175,15 @@
? referInfoRules.idCard
? referInfoRules.idCard
: [
{ required: false }]
: [
{ required: false }]
"
"
label="
身份证
号"
label="
证件
号"
prop="id_card"
prop="id_card"
style="height: 73px"
style="height: 73px"
>
>
<el-input
<el-input
placeholder=
"填写真实
身份证
号"
placeholder=
"填写真实
证件
号"
ref=
"id_card"
ref=
"id_card"
size=
"small"
size=
"small"
:disabled=
"isIDtype"
v-model=
"referForm.id_card"
v-model=
"referForm.id_card"
/>
/>
</el-form-item>
</el-form-item>
...
@@ -797,7 +827,8 @@
...
@@ -797,7 +827,8 @@
<el-col
:span=
"8"
v-show=
"configJson.guardianPhone == 1"
>
<el-col
:span=
"8"
v-show=
"configJson.guardianPhone == 1"
>
<el-form-item
<el-form-item
:rules=
"
:rules=
"
configJson.guardianPhone == 1
configJson.guardianPhone == 1 &&
referForm.guardian_phone != null
? referInfoRules.guardian_phone
? referInfoRules.guardian_phone
: [
{ required: false }]
: [
{ required: false }]
"
"
...
@@ -813,20 +844,20 @@
...
@@ -813,20 +844,20 @@
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 监护人
身份证
号 -->
<!-- 监护人
证件
号 -->
<el-col
:span=
"8"
v-show=
"configJson.guardianCard == 1"
>
<el-col
:span=
"8"
v-show=
"configJson.guardianCard == 1"
>
<el-form-item
<el-form-item
:rules=
"
:rules=
"
configJson.guardianCard == 1
configJson.guardianCard == 1
&& referForm.guardian_card != null
? referInfoRules.guardian_card
? referInfoRules.guardian_card
: [
{ required: false }]
: [
{ required: false }]
"
"
label="监护人
身份证
号"
label="监护人
证件
号"
prop="guardian_card"
prop="guardian_card"
>
>
<el-input
<el-input
clearable
clearable
placeholder=
"填写监护人
身份证
号"
placeholder=
"填写监护人
证件
号"
ref=
"code"
ref=
"code"
size=
"small"
size=
"small"
v-model=
"referForm.guardian_card"
v-model=
"referForm.guardian_card"
...
@@ -1305,6 +1336,7 @@ export default {
...
@@ -1305,6 +1336,7 @@ export default {
name
:
null
,
name
:
null
,
gender
:
null
,
gender
:
null
,
age
:
null
,
age
:
null
,
id_type
:
null
,
id_card
:
null
,
id_card
:
null
,
education
:
null
,
education
:
null
,
birthday
:
null
,
birthday
:
null
,
...
@@ -1347,8 +1379,11 @@ export default {
...
@@ -1347,8 +1379,11 @@ export default {
gender
:
[
gender
:
[
{
required
:
true
,
message
:
"
性别不能为空!
"
,
trigger
:
"
change
"
},
{
required
:
true
,
message
:
"
性别不能为空!
"
,
trigger
:
"
change
"
},
],
],
id_type
:
[
{
required
:
true
,
message
:
"
证件类型不能为空!
"
,
trigger
:
"
change
"
},
],
id_card
:
[
id_card
:
[
// { required: true, message: "
身份证
号不能为空!", trigger: "blur" },
// { required: true, message: "
证件
号不能为空!", trigger: "blur" },
{
validator
:
validator
.
validateid_card
,
trigger
:
"
blur
"
},
{
validator
:
validator
.
validateid_card
,
trigger
:
"
blur
"
},
],
],
birthday
:
[
birthday
:
[
...
@@ -1399,7 +1434,7 @@ export default {
...
@@ -1399,7 +1434,7 @@ export default {
idCard
:
[
idCard
:
[
{
{
required
:
true
,
required
:
true
,
message
:
"
身份证
号不能为空!
"
,
message
:
"
证件
号不能为空!
"
,
trigger
:
"
blur
"
,
trigger
:
"
blur
"
,
},
},
{
validator
:
validator
.
validateid_card
,
trigger
:
"
blur
"
},
{
validator
:
validator
.
validateid_card
,
trigger
:
"
blur
"
},
...
@@ -1490,7 +1525,7 @@ export default {
...
@@ -1490,7 +1525,7 @@ export default {
guardian_card
:
[
guardian_card
:
[
// {
// {
// required: true,
// required: true,
// message: "监护人
身份证
号不能为空!",
// message: "监护人
证件
号不能为空!",
// trigger: "blur",
// trigger: "blur",
// },
// },
{
validator
:
validator
.
validateid_card
,
trigger
:
"
blur
"
},
{
validator
:
validator
.
validateid_card
,
trigger
:
"
blur
"
},
...
@@ -1697,6 +1732,16 @@ export default {
...
@@ -1697,6 +1732,16 @@ export default {
name
:
"
XXL (175-180CM)
"
,
name
:
"
XXL (175-180CM)
"
,
},
},
],
],
// 证件类型
IDArrs
:
[
"
大陆居民身份证
"
,
"
港澳台居民身份证
"
,
"
港澳居民来往通行证
"
,
"
台湾居民来往通行证
"
,
"
护照
"
,
],
isIDtype
:
false
,
//是否可以修改证件号
// 中学(模糊搜索)
// 中学(模糊搜索)
// timeout: null,
// timeout: null,
// school: "",
// school: "",
...
@@ -1860,6 +1905,14 @@ export default {
...
@@ -1860,6 +1905,14 @@ export default {
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
// 证件类型
changeIDType
(
val
)
{
if
(
!
val
)
{
this
.
isIDtype
=
true
;
}
else
{
this
.
isIDtype
=
false
;
}
},
// 页面信息个人获取
// 页面信息个人获取
getAccount
()
{
getAccount
()
{
getAccount
({}).
then
((
res
)
=>
{
getAccount
({}).
then
((
res
)
=>
{
...
@@ -1873,6 +1926,7 @@ export default {
...
@@ -1873,6 +1926,7 @@ export default {
name
:
null
,
name
:
null
,
gender
:
null
,
gender
:
null
,
age
:
null
,
age
:
null
,
id_type
:
null
,
id_card
:
null
,
id_card
:
null
,
education
:
null
,
education
:
null
,
birthday
:
null
,
birthday
:
null
,
...
@@ -2459,6 +2513,9 @@ export default {
...
@@ -2459,6 +2513,9 @@ export default {
if
(
_this
.
configJson
.
gender
==
1
)
{
if
(
_this
.
configJson
.
gender
==
1
)
{
obj
.
gender
=
_this
.
referForm
.
gender
;
obj
.
gender
=
_this
.
referForm
.
gender
;
}
}
if
(
_this
.
configJson
.
idCard
==
1
)
{
obj
.
id_type
=
_this
.
referForm
.
id_type
;
}
if
(
_this
.
configJson
.
idCard
==
1
)
{
if
(
_this
.
configJson
.
idCard
==
1
)
{
obj
.
id_card
=
_this
.
referForm
.
id_card
;
obj
.
id_card
=
_this
.
referForm
.
id_card
;
}
}
...
...
src/config/server.js
View file @
b5ed7e99
// 测试
// 测试
//
export const SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; // 正式环境
export
const
SERVER_URL
=
"
https://tgwapi.campcenter.cn/modules-campsite
"
;
// 正式环境
//
export const DEVELOPMENT_SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; //开发环境
export
const
DEVELOPMENT_SERVER_URL
=
"
https://tgwapi.campcenter.cn/modules-campsite
"
;
//开发环境
//
export const SERVER_WS_URL = "wss://tgwapi.campcenter.cn"; // websocket
export
const
SERVER_WS_URL
=
"
wss://tgwapi.campcenter.cn
"
;
// websocket
// 正式
// 正式
export
const
SERVER_URL
=
"
https://gwapi.campcenter.cn/modules-campsite
"
;
// 正式环境
//
export const SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; // 正式环境
export
const
DEVELOPMENT_SERVER_URL
=
"
https://gwapi.campcenter.cn/modules-campsite
"
;
//开发环境
//
export const DEVELOPMENT_SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; //开发环境
export
const
SERVER_WS_URL
=
"
wss://gwapi.campcenter.cn
"
;
// websocket
//
export const SERVER_WS_URL = "wss://gwapi.campcenter.cn"; // websocket
// 测试
// 测试
// export const SERVER_URL = "http://192.168.1.145:8088/modules-campsite"; // 正式环境
// export const SERVER_URL = "http://192.168.1.145:8088/modules-campsite"; // 正式环境
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment