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
586dacfb
Commit
586dacfb
authored
Oct 21, 2024
by
‘yangmengxue’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人信息-监护人
parent
14120ac1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
120 additions
and
7 deletions
+120
-7
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+114
-1
src/config/server.js
src/config/server.js
+6
-6
No files found.
src/components/index/SignUp/referInfo.vue
View file @
586dacfb
...
@@ -697,7 +697,7 @@
...
@@ -697,7 +697,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<!--
紧急联系人
-->
<!--
联系人信息
-->
<div
v-show=
"configJson.emergency == 1 || configJson.emergencyPhone == 1"
>
<div
v-show=
"configJson.emergency == 1 || configJson.emergencyPhone == 1"
>
<div
class=
"cont_title"
>
紧急联系人
</div>
<div
class=
"cont_title"
>
紧急联系人
</div>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
...
@@ -742,6 +742,79 @@
...
@@ -742,6 +742,79 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<!-- 监护人信息 -->
<div
v-show=
"
configJson.guardianName == 1 ||
configJson.guardianPhone == 1 ||
configJson.guardianCard == 1
"
>
<div
class=
"cont_title"
>
监护人信息
</div>
<el-row
:gutter=
"20"
>
<!-- 监护人姓名 -->
<el-col
:span=
"8"
v-show=
"configJson.guardianName == 1"
>
<el-form-item
:rules=
"
configJson.guardianName == 1
? referInfoRules.guardian_name
: [
{ required: false }]
"
label="监护人姓名"
prop="guardian_name"
>
<el-input
clearable
placeholder=
"填写监护人姓名"
ref=
"code"
size=
"small"
v-model=
"referForm.guardian_name"
/>
</el-form-item>
</el-col>
<!-- 监护人联系电话 -->
<el-col
:span=
"8"
v-show=
"configJson.guardianPhone == 1"
>
<el-form-item
:rules=
"
configJson.guardianPhone == 1
? referInfoRules.guardian_phone
: [
{ required: false }]
"
label="监护人联系电话"
prop="guardian_phone"
>
<el-input
clearable
placeholder=
"填写监护人联系电话"
ref=
"code"
size=
"small"
v-model=
"referForm.guardian_phone"
/>
</el-form-item>
</el-col>
<!-- 监护人身份证号 -->
<el-col
:span=
"8"
v-show=
"configJson.guardianCard == 1"
>
<el-form-item
:rules=
"
configJson.guardianCard == 1
? referInfoRules.guardian_card
: [
{ required: false }]
"
label="监护人身份证号"
prop="guardian_card"
>
<el-input
clearable
placeholder=
"填写监护人身份证号"
ref=
"code"
size=
"small"
v-model=
"referForm.guardian_card"
/>
</el-form-item>
</el-col>
</el-row>
</div>
</div>
</div>
<!-- 学校信息 -->
<!-- 学校信息 -->
<div
<div
...
@@ -1237,6 +1310,9 @@ export default {
...
@@ -1237,6 +1310,9 @@ export default {
class
:
null
,
class
:
null
,
emergency
:
null
,
emergency
:
null
,
emergency_phone
:
null
,
emergency_phone
:
null
,
guardian_name
:
null
,
guardian_phone
:
null
,
guardian_card
:
null
,
introduce
:
null
,
introduce
:
null
,
school_province
:
null
,
school_province
:
null
,
school_city
:
null
,
school_city
:
null
,
...
@@ -1379,6 +1455,30 @@ export default {
...
@@ -1379,6 +1455,30 @@ export default {
},
},
{
validator
:
validator
.
validatePhone
,
trigger
:
"
blur
"
},
{
validator
:
validator
.
validatePhone
,
trigger
:
"
blur
"
},
],
],
guardian_name
:
[
{
required
:
true
,
message
:
"
监护人姓名不能为空!
"
,
trigger
:
"
blur
"
,
},
],
guardian_phone
:
[
{
required
:
true
,
message
:
"
监护人联系电话不能为空!
"
,
trigger
:
"
blur
"
,
},
{
validator
:
validator
.
validatePhone
,
trigger
:
"
blur
"
},
],
guardian_card
:
[
{
required
:
true
,
message
:
"
监护人身份证号不能为空!
"
,
trigger
:
"
blur
"
,
},
{
validator
:
validator
.
validateid_card
,
trigger
:
"
blur
"
},
],
clothesSize
:
[
clothesSize
:
[
{
{
required
:
true
,
required
:
true
,
...
@@ -1766,6 +1866,9 @@ export default {
...
@@ -1766,6 +1866,9 @@ export default {
class
:
null
,
class
:
null
,
emergency
:
null
,
emergency
:
null
,
emergency_phone
:
null
,
emergency_phone
:
null
,
guardian_name
:
null
,
guardian_phone
:
null
,
guardian_card
:
null
,
introduce
:
null
,
introduce
:
null
,
school_province
:
null
,
school_province
:
null
,
school_city
:
null
,
school_city
:
null
,
...
@@ -2395,6 +2498,16 @@ export default {
...
@@ -2395,6 +2498,16 @@ export default {
if
(
_this
.
configJson
.
emergencyPhone
==
1
)
{
if
(
_this
.
configJson
.
emergencyPhone
==
1
)
{
obj
.
emergency_phone
=
_this
.
referForm
.
emergency_phone
;
obj
.
emergency_phone
=
_this
.
referForm
.
emergency_phone
;
}
}
// 监护人信息
if
(
_this
.
configJson
.
guardianName
==
1
)
{
obj
.
guardian_name
=
_this
.
referForm
.
guardian_name
;
}
if
(
_this
.
configJson
.
guardianPhone
==
1
)
{
obj
.
guardian_phone
=
_this
.
referForm
.
guardian_phone
;
}
if
(
_this
.
configJson
.
guardianCard
==
1
)
{
obj
.
guardian_card
=
_this
.
referForm
.
guardian_card
;
}
//衣服尺码
//衣服尺码
if
(
_this
.
configJson
.
clothesSize
==
1
)
{
if
(
_this
.
configJson
.
clothesSize
==
1
)
{
obj
.
clothes_size
=
_this
.
referForm
.
clothes_size
;
obj
.
clothes_size
=
_this
.
referForm
.
clothes_size
;
...
...
src/config/server.js
View file @
586dacfb
...
@@ -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.146
:8088/modules-campsite"; // 正式环境
export
const
SERVER_URL
=
"
http://192.168.1.145
:8088/modules-campsite
"
;
// 正式环境
// export const DEVELOPMENT_SERVER_URL = "http://192.168.1.146
: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.146
: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