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
dda620ea
Commit
dda620ea
authored
Oct 22, 2024
by
‘yangmengxue’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监护人信息
parent
586dacfb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
119 additions
and
100 deletions
+119
-100
src/common/validator.js
src/common/validator.js
+15
-2
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+98
-92
src/config/server.js
src/config/server.js
+6
-6
No files found.
src/common/validator.js
View file @
dda620ea
...
@@ -22,6 +22,19 @@ export default {
...
@@ -22,6 +22,19 @@ export default {
}
else
{
}
else
{
callback
()
callback
()
}
}
},
validatePhone2
:
function
(
rule
,
value
,
callback
)
{
if
(
value
.
length
>
0
)
{
if
(
!
phoneReg
.
test
(
value
)
||
value
.
length
!==
11
)
{
callback
(
new
Error
(
'
手机号格式错误!
'
))
}
else
{
callback
()
}
}
else
{
callback
()
}
},
},
validateid_card
:
function
(
rule
,
value
,
callback
)
{
validateid_card
:
function
(
rule
,
value
,
callback
)
{
...
...
src/components/index/SignUp/referInfo.vue
View file @
dda620ea
...
@@ -742,6 +742,7 @@
...
@@ -742,6 +742,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
</div>
<!-- 监护人信息 -->
<!-- 监护人信息 -->
<div
<div
...
@@ -815,7 +816,6 @@
...
@@ -815,7 +816,6 @@
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
</div>
<!-- 学校信息 -->
<!-- 学校信息 -->
<div
<div
v-show=
"
v-show=
"
...
@@ -964,7 +964,14 @@
...
@@ -964,7 +964,14 @@
</div>
</div>
</div>
</div>
<!-- 学习成绩证明材料 -->
<!-- 学习成绩证明材料 -->
<div>
<div
v-show=
"
configJson.achievementPath == 1 ||
configJson.transcripts == 1 ||
configJson.achievementCertificate == 1 ||
configJson.safetyNotices == 1
"
>
<div
class=
"cont_title"
>
相关资料
</div>
<div
class=
"cont_title"
>
相关资料
</div>
<div
class=
"bgPic"
>
<div
class=
"bgPic"
>
<div
class=
"bgInfo"
>
<div
class=
"bgInfo"
>
...
@@ -1455,29 +1462,28 @@ export default {
...
@@ -1455,29 +1462,28 @@ export default {
},
},
{
validator
:
validator
.
validatePhone
,
trigger
:
"
blur
"
},
{
validator
:
validator
.
validatePhone
,
trigger
:
"
blur
"
},
],
],
guardian_name
:
[
//
guardian_name: [
{
//
{
required
:
true
,
//
required: true,
message
:
"
监护人姓名不能为空!
"
,
//
message: "监护人姓名不能为空!",
trigger
:
"
blur
"
,
//
trigger: "blur",
},
//
},
],
//
],
guardian_phone
:
[
guardian_phone
:
[
{
//
{
required
:
true
,
//
required: true,
message
:
"
监护人联系电话不能为空!
"
,
//
message: "监护人联系电话不能为空!",
trigger
:
"
blur
"
,
//
trigger: "blur",
},
//
},
{
validator
:
validator
.
validatePhone
,
trigger
:
"
blur
"
},
{
validator
:
validator
.
validatePhone
2
,
trigger
:
"
blur
"
},
],
],
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
"
},
],
],
clothesSize
:
[
clothesSize
:
[
{
{
...
...
src/config/server.js
View file @
dda620ea
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
// 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"; // 正式环境
export
const
DEVELOPMENT_SERVER_URL
=
"
http://192.168.1.145:8088/modules-campsite
"
;
//开发环境
//
export const DEVELOPMENT_SERVER_URL = "http://192.168.1.145:8088/modules-campsite"; //开发环境
export
const
SERVER_WS_URL
=
"
wss://192.168.1.145:8088
"
;
// websocket
//
export const SERVER_WS_URL = "wss://192.168.1.145:8088"; // websocket
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