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
82ab8cd9
Commit
82ab8cd9
authored
Jun 27, 2022
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
c7da49ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
252 deletions
+44
-252
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+38
-246
src/config/server.js
src/config/server.js
+6
-6
No files found.
src/components/index/SignUp/referInfo.vue
View file @
82ab8cd9
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<div
class=
"referInfo"
>
<div
class=
"referInfo"
>
<!-- 测试 -->
<!-- 测试 -->
<el-form
<el-form
v-if=
"$store.state.human == 1"
ref=
"referRef"
ref=
"referRef"
:model=
"referForm"
:model=
"referForm"
label-position=
"top"
label-position=
"top"
...
@@ -11,15 +12,8 @@
...
@@ -11,15 +12,8 @@
<div
class=
"cont_title"
>
个人信息
</div>
<div
class=
"cont_title"
>
个人信息
</div>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<!-- 姓名 -->
<!-- 姓名 -->
<el-col
:span=
"12"
v-show=
"configJson.name == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"姓名"
prop=
"name"
style=
"height: 73px"
>
label=
"姓名"
prop=
"name"
style=
"height: 73px"
:rules=
"
configJson.name == 1 ? referInfoRules.name : [
{ required: false }]
"
>
<el-input
<el-input
ref=
"name"
ref=
"name"
v-model=
"referForm.name"
v-model=
"referForm.name"
...
@@ -30,7 +24,7 @@
...
@@ -30,7 +24,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 性别 -->
<!-- 性别 -->
<el-col
:span=
"12"
v-show=
"configJson.gender == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"性别"
label=
"性别"
prop=
"gender"
prop=
"gender"
...
@@ -52,15 +46,8 @@
...
@@ -52,15 +46,8 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 年龄 -->
<!-- 年龄 -->
<el-col
:span=
"12"
v-show=
"configJson.age == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"年龄"
prop=
"age"
style=
"height: 73px"
>
label=
"年龄"
prop=
"age"
style=
"height: 73px"
:rules=
"
configJson.age == 1 ? referInfoRules.age : [
{ required: false }]
"
>
<el-input
<el-input
ref=
"age"
ref=
"age"
v-model=
"referForm.age"
v-model=
"referForm.age"
...
@@ -71,17 +58,8 @@
...
@@ -71,17 +58,8 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
v-show=
"configJson.country == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"国籍"
prop=
"country"
style=
"height: 73px"
>
label=
"国籍"
prop=
"country"
style=
"height: 73px"
:rules=
"
configJson.country == 1
? referInfoRules.country
: [
{ required: false }]
"
>
<el-select
<el-select
v-model=
"referForm.country"
v-model=
"referForm.country"
placeholder=
"国籍"
placeholder=
"国籍"
...
@@ -98,79 +76,22 @@
...
@@ -98,79 +76,22 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!--
<el-col
:span=
"12"
>
<el-form-item
label=
"入学年份"
prop=
"start_school_date"
>
<el-row
:gutter=
"20"
>
-->
<!--
<el-col
:span=
"12"
>
<el-select
v-model=
"start_grade"
placeholder=
"年级"
:popper-append-to-body=
"false"
clearable
>
<el-option
v-for=
"(item, index) in gradeArrs"
:key=
"index"
:label=
"item"
:value=
"item"
>
</el-option>
</el-select>
</el-col>
-->
<!--
<el-col
:span=
"24"
>
<el-select
ref=
"start_school_date"
v-model=
"start_year"
placeholder=
"年份"
clearable
:popper-append-to-body=
"false"
@
change=
"getyear()"
>
<el-option
v-for=
"(item, index) in yearArrs"
:key=
"index"
:label=
"item"
:value=
"item"
>
</el-option>
</el-select>
</el-col>
</el-row>
</el-form-item>
</el-col>
-->
<!-- 身份证号 -->
<!-- 身份证号 -->
<el-col
:span=
"12"
v-show=
"configJson.idCard == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"身份证号"
style=
"height: 73px"
>
label=
"身份证号"
prop=
"id_card"
style=
"height: 73px"
:rules=
"
configJson.idCard == 1
? referInfoRules.id_card
: [
{ required: false }]
"
>
<el-input
<el-input
ref=
"id_card"
ref=
"id_card"
v-model=
"referForm.id_card"
v-model=
"referForm.id_card"
placeholder=
"填写真实身份证号"
placeholder=
"填写真实身份证号"
size=
"small"
size=
"small"
:disabled=
"true"
:disabled=
"true"
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 手机号 -->
<!-- 手机号 -->
<el-col
:span=
"12"
v-show=
"configJson.phone == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"手机号"
style=
"height: 73px"
>
label=
"手机号"
style=
"height: 73px"
:rules=
"
configJson.phone == 1
? referInfoRules.phone
: [
{ required: false }]
"
>
<el-input
<el-input
v-model=
"referForm.phone"
v-model=
"referForm.phone"
placeholder=
"请输入手机号"
placeholder=
"请输入手机号"
...
@@ -180,17 +101,8 @@
...
@@ -180,17 +101,8 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 学历 -->
<!-- 学历 -->
<el-col
:span=
"12"
v-show=
"configJson.education == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"学历"
prop=
"education"
style=
"height: 73px"
>
label=
"学历"
prop=
"education"
style=
"height: 73px"
:rules=
"
configJson.education == 1
? referInfoRules.education
: [
{ required: false }]
"
>
<el-select
<el-select
v-model=
"referForm.education"
v-model=
"referForm.education"
placeholder=
"请选择学历"
placeholder=
"请选择学历"
...
@@ -209,16 +121,11 @@
...
@@ -209,16 +121,11 @@
</el-col>
</el-col>
<!-- 单位名称 -->
<!-- 单位名称 -->
<el-col
:span=
"12"
v-show=
"configJson.unitandIdentity == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"单位名称及身份"
label=
"单位名称及身份"
prop=
"unit_and_identity"
prop=
"unit_and_identity"
style=
"height: 73px"
style=
"height: 73px"
:rules=
"
configJson.unitandIdentity == 1
? referInfoRules.unit_and_identity
: [
{ required: false }]
"
>
>
<el-input
<el-input
v-model=
"referForm.unit_and_identity"
v-model=
"referForm.unit_and_identity"
...
@@ -228,17 +135,8 @@
...
@@ -228,17 +135,8 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 电子邮箱 -->
<!-- 电子邮箱 -->
<el-col
:span=
"12"
v-show=
"configJson.email == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"电子邮箱"
prop=
"email"
style=
"height: 73px"
>
label=
"电子邮箱"
prop=
"email"
style=
"height: 73px"
:rules=
"
configJson.email == 1
? referInfoRules.email
: [
{ required: false }]
"
>
<el-input
<el-input
v-model=
"referForm.email"
v-model=
"referForm.email"
placeholder=
"填写电子邮箱"
placeholder=
"填写电子邮箱"
...
@@ -247,7 +145,7 @@
...
@@ -247,7 +145,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 推荐人(非必填) -->
<!-- 推荐人(非必填) -->
<el-col
:span=
"12"
v-show=
"configJson.recommend == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"什么渠道了解的该项目(或推荐人是)?"
label=
"什么渠道了解的该项目(或推荐人是)?"
style=
"height: 73px"
style=
"height: 73px"
...
@@ -261,17 +159,8 @@
...
@@ -261,17 +159,8 @@
</el-col>
</el-col>
<!-- 出生日期 -->
<!-- 出生日期 -->
<el-col
:span=
"12"
v-show=
"configJson.birthday == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"出生日期"
prop=
"birthday"
style=
"height: 73px"
>
label=
"出生日期"
prop=
"birthday"
style=
"height: 73px"
:rules=
"
configJson.birthday == 1
? referInfoRules.birthday
: [
{ required: false }]
"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-select
<el-select
...
@@ -324,17 +213,8 @@
...
@@ -324,17 +213,8 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 籍贯 -->
<!-- 籍贯 -->
<el-col
:span=
"12"
v-show=
"configJson.jiguanCity == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"籍贯"
prop=
"jiguan_code"
style=
"height: 73px"
>
label=
"籍贯"
prop=
"jiguan_code"
style=
"height: 73px"
:rules=
"
configJson.jiguanCity == 1
? referInfoRules.jiguan_code
: [
{ required: false }]
"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<!-- @keyup.enter.native="selsectProvince" -->
<!-- @keyup.enter.native="selsectProvince" -->
...
@@ -374,17 +254,8 @@
...
@@ -374,17 +254,8 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 民族 -->
<!-- 民族 -->
<el-col
:span=
"12"
v-show=
"configJson.nation == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"民族"
prop=
"nation"
style=
"height: 73px"
>
label=
"民族"
prop=
"nation"
style=
"height: 73px"
:rules=
"
configJson.nation == 1
? referInfoRules.nation
: [
{ required: false }]
"
>
<el-input
<el-input
ref=
"nation"
ref=
"nation"
v-model=
"referForm.nation"
v-model=
"referForm.nation"
...
@@ -395,35 +266,13 @@
...
@@ -395,35 +266,13 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 入学年份 -->
<!-- 入学年份 -->
<el-col
:span=
"12"
v-show=
"configJson.startSchoolDate == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"入学年份"
label=
"入学年份"
prop=
"start_school_date"
prop=
"start_school_date"
style=
"height: 73px"
style=
"height: 73px"
:rules=
"
configJson.startSchoolDate == 1
? referInfoRules.start_school_date
: [
{ required: false }]
"
>
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<!--
<el-col
:span=
"12"
>
<el-select
v-model=
"start_grade"
placeholder=
"年级"
:popper-append-to-body=
"false"
clearable
>
<el-option
v-for=
"(item, index) in gradeArrs"
:key=
"index"
:label=
"item"
:value=
"item"
>
</el-option>
</el-select>
</el-col>
-->
<!--
<el-col
:span=
"12"
>
-->
<el-select
<el-select
ref=
"start_school_date"
ref=
"start_school_date"
v-model=
"start_year"
v-model=
"start_year"
...
@@ -440,21 +289,12 @@
...
@@ -440,21 +289,12 @@
>
>
</el-option>
</el-option>
</el-select>
</el-select>
<!--
</el-col>
-->
</el-row>
</el-row>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 政治面貌 -->
<!-- 政治面貌 -->
<el-col
:span=
"12"
v-show=
"configJson.politicalStatus == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"政治面貌"
prop=
"political_status"
>
label=
"政治面貌"
prop=
"political_status"
:rules=
"
configJson.politicalStatus == 1
? referInfoRules.political_status
: [
{ required: false }]
"
>
<el-select
<el-select
ref=
"political_status"
ref=
"political_status"
v-model=
"referForm.political_status"
v-model=
"referForm.political_status"
...
@@ -474,27 +314,13 @@
...
@@ -474,27 +314,13 @@
</el-col>
</el-col>
</el-row>
</el-row>
<!-- 学校信息 -->
<!-- 学校信息 -->
<div
<div>
v-show=
"
configJson.school == 1 ||
configJson.schoolContacts == 1 ||
configJson.schoolPhone == 1
"
>
<div
class=
"cont_title"
>
学校信息
</div>
<div
class=
"cont_title"
>
学校信息
</div>
<div
class=
"school"
>
<div
class=
"school"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<div
class=
"school_info"
v-show=
"configJson.school == 1"
>
<div
class=
"school_info"
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
<el-form-item
label=
"就读中学"
prop=
"school_province"
>
label=
"就读中学"
prop=
"school_province"
:rules=
"
configJson.school == 1
? referInfoRules.school_province
: [
{ required: false }]
"
>
<el-select
<el-select
ref=
"school_province"
ref=
"school_province"
v-model=
"referForm.school_province"
v-model=
"referForm.school_province"
...
@@ -514,16 +340,7 @@
...
@@ -514,16 +340,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
<el-form-item
class=
"no_label"
label=
" "
prop=
"school_city"
>
class=
"no_label"
label=
" "
prop=
"school_city"
:rules=
"
configJson.school == 1
? referInfoRules.school_city
: [
{ required: false }]
"
>
<el-select
<el-select
ref=
"school_city"
ref=
"school_city"
v-model=
"referForm.school_city"
v-model=
"referForm.school_city"
...
@@ -543,16 +360,7 @@
...
@@ -543,16 +360,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
class=
"no_label"
label=
" "
prop=
"school"
>
class=
"no_label"
label=
" "
prop=
"school"
:rules=
"
configJson.school == 1
? referInfoRules.school
: [
{ required: false }]
"
>
<el-select
<el-select
filterable
filterable
ref=
"school"
ref=
"school"
...
@@ -579,16 +387,8 @@
...
@@ -579,16 +387,8 @@
</el-col>
</el-col>
</div>
</div>
<el-col
:span=
"12"
v-show=
"configJson.schoolContacts == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"中学联系人"
prop=
"school_contacts"
>
label=
"中学联系人"
prop=
"school_contacts"
:rules=
"
configJson.schoolContacts == 1
? referInfoRules.school_contacts
: [
{ required: false }]
"
>
<el-input
<el-input
ref=
"school_contacts"
ref=
"school_contacts"
v-model=
"referForm.school_contacts"
v-model=
"referForm.school_contacts"
...
@@ -598,16 +398,8 @@
...
@@ -598,16 +398,8 @@
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
v-show=
"configJson.schoolPhone == 1"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"中学联系人电话(手机)"
prop=
"school_phone"
>
label=
"中学联系人电话(手机)"
prop=
"school_phone"
:rules=
"
configJson.schoolPhone == 1
? referInfoRules.school_phone
: [
{ required: false }]
"
>
<el-input
<el-input
ref=
"school_phone"
ref=
"school_phone"
v-model=
"referForm.school_phone"
v-model=
"referForm.school_phone"
...
@@ -621,7 +413,7 @@
...
@@ -621,7 +413,7 @@
</div>
</div>
</div>
</div>
<!-- 学习成绩证明材料 -->
<!-- 学习成绩证明材料 -->
<div
v-show=
"configJson.achievementPath == 1"
>
<div>
<div
class=
"cont_title"
>
学习成绩证明材料
</div>
<div
class=
"cont_title"
>
学习成绩证明材料
</div>
<el-form-item
<el-form-item
label=
"上传申请资料图片"
label=
"上传申请资料图片"
...
...
src/config/server.js
View file @
82ab8cd9
...
@@ -12,11 +12,11 @@
...
@@ -12,11 +12,11 @@
// export const SERVER_WS_URL = 'wss://api1.testgate.cn' // websocket
// export const SERVER_WS_URL = 'wss://api1.testgate.cn' // websocket
// 正式
// 正式
//
export const SERVER_URL = "https://api.campcenter.cn/"; // 正式环境
export
const
SERVER_URL
=
"
https://api.campcenter.cn/
"
;
// 正式环境
//
export const DEVELOPMENT_SERVER_URL = "https://api.campcenter.cn/"; //开发环境
export
const
DEVELOPMENT_SERVER_URL
=
"
https://api.campcenter.cn/
"
;
//开发环境
//
export const SERVER_WS_URL = "wss://api.campcenter.cn"; // websocket
export
const
SERVER_WS_URL
=
"
wss://api.campcenter.cn
"
;
// websocket
// 测试
// 测试
export
const
SERVER_URL
=
"
https://ying-test.campcenter.cn
"
;
// 正式环境
//
export const SERVER_URL = "https://ying-test.campcenter.cn"; // 正式环境
export
const
DEVELOPMENT_SERVER_URL
=
"
https://ying-test.campcenter.cn/
"
;
//开发环境
//
export const DEVELOPMENT_SERVER_URL = "https://ying-test.campcenter.cn/"; //开发环境
export
const
SERVER_WS_URL
=
"
wss://ying-test.campcenter.cn
"
;
// websocket
//
export const SERVER_WS_URL = "wss://ying-test.campcenter.cn"; // 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