Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-pc
Commits
eae16bc5
提交
eae16bc5
authored
5月 07, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
26f9f8d3
隐藏空白字符变更
内嵌
并排
正在显示
30 个修改的文件
包含
190 行增加
和
88 行删除
+190
-88
index.js
api/index.js
+2
-2
Head.vue
components/Head.vue
+21
-4
home.vue
modules/my/account/home.vue
+3
-2
cjd.js
modules/my/admission/form/cjd.js
+5
-5
xfjn.js
modules/my/admission/form/xfjn.js
+3
-3
xy.js
modules/my/admission/form/xy.js
+3
-3
declare.js
modules/my/application/form/declare.js
+2
-2
answer.js
modules/my/application/form/info/answer.js
+2
-2
career.js
modules/my/application/form/info/career.js
+2
-2
education.js
modules/my/application/form/info/education.js
+2
-2
first.js
modules/my/application/form/info/first.js
+12
-12
honor.js
modules/my/application/form/info/honor.js
+2
-2
profile.js
modules/my/application/form/info/profile.js
+12
-12
training.js
modules/my/application/form/info/training.js
+2
-2
tjx.js
modules/my/application/form/tjx.js
+2
-2
wfzzm.js
modules/my/application/form/wfzzm.js
+3
-3
pay.vue
modules/my/application/pay.vue
+4
-1
byzs.js
modules/my/interview/form/byzs.js
+3
-3
cjd.js
modules/my/interview/form/cjd.js
+6
-6
xwzs.js
modules/my/interview/form/xwzs.js
+3
-3
xwzszm.js
modules/my/interview/form/xwzszm.js
+3
-3
ywjl.js
modules/my/interview/form/ywjl.js
+3
-3
zp.js
modules/my/interview/form/zp.js
+4
-4
indexPay.vue
modules/my/welcome/indexPay.vue
+4
-1
nuxt.config.js
nuxt.config.js
+6
-2
element-ui.js
plugins/element-ui.js
+6
-0
router.js
plugins/router.js
+13
-0
routes.js
router/routes.js
+5
-1
index.js
store/index.js
+41
-0
httpRequest.js
utils/httpRequest.js
+11
-1
没有找到文件。
api/index.js
浏览文件 @
eae16bc5
...
@@ -2,12 +2,12 @@ import httpRequest from '@/utils/httpRequest'
...
@@ -2,12 +2,12 @@ import httpRequest from '@/utils/httpRequest'
// 获取新闻列表
// 获取新闻列表
export
function
getNewsList
(
params
)
{
export
function
getNewsList
(
params
)
{
return
httpRequest
.
get
(
`/zws/v1/cms/news`
,
{
params
})
return
httpRequest
.
get
(
`/
api/
zws/v1/cms/news`
,
{
params
})
}
}
// 获取新闻详情
// 获取新闻详情
export
function
getNewsDetails
(
params
)
{
export
function
getNewsDetails
(
params
)
{
return
httpRequest
.
get
(
`/zws/v1/cms/new`
,
{
params
})
return
httpRequest
.
get
(
`/
api/
zws/v1/cms/new`
,
{
params
})
}
}
/**
/**
...
...
components/Head.vue
浏览文件 @
eae16bc5
...
@@ -8,10 +8,11 @@
...
@@ -8,10 +8,11 @@
alt=
""
alt=
""
@
click=
"goPage('/')"
@
click=
"goPage('/')"
/>
/>
<!--
<div
class=
"login-btn-box"
>
<div
class=
"user"
v-if=
"user.id"
>
{{
user
.
realname
}}
</div>
<div
class=
"login"
>
快速登录
</div>
<div
class=
"login-btn-box"
v-else
>
<div
class=
"register"
>
注册
</div>
<div
class=
"login"
><a
:href=
"loginURL"
>
快速登录
</a></div>
</div>
-->
<div
class=
"register"
><a
:href=
"registerURL"
>
注册
</a></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"head-nav-content max-width-content"
>
<div
class=
"head-nav-content max-width-content"
>
...
@@ -167,6 +168,10 @@ export default {
...
@@ -167,6 +168,10 @@ export default {
path
:
'/alumni/sharing'
path
:
'/alumni/sharing'
}
}
]
]
},
{
name
:
'报名申请'
,
path
:
'/my'
}
}
],
],
time
:
null
time
:
null
...
@@ -222,6 +227,18 @@ export default {
...
@@ -222,6 +227,18 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
user
()
{
return
this
.
$store
.
state
.
user
||
{}
},
loginURL
()
{
return
`
${
process
.
env
.
loginURL
}
/login/index?redirect_uri=
${
encodeURIComponent
(
location
.
origin
+
this
.
$route
.
fullPath
)}
`
},
registerURL
()
{
console
.
log
(
this
.
$route
)
return
`
${
process
.
env
.
loginURL
}
/register?redirect_uri=
${
encodeURIComponent
(
location
.
origin
+
this
.
$route
.
fullPath
)}
`
},
getNameActive
()
{
getNameActive
()
{
return
item
=>
{
return
item
=>
{
const
currentPath
=
this
.
$route
.
path
const
currentPath
=
this
.
$route
.
path
...
...
modules/my/account/home.vue
浏览文件 @
eae16bc5
...
@@ -45,9 +45,7 @@ import 'driver.js/dist/driver.min.css'
...
@@ -45,9 +45,7 @@ import 'driver.js/dist/driver.min.css'
export
default
{
export
default
{
name
:
'AppHome'
,
name
:
'AppHome'
,
data
()
{
data
()
{
const
user
=
window
.
G
.
UserInfo
return
{
return
{
user
,
material
:
{},
material
:
{},
progress
:
{},
progress
:
{},
submissionStage
:
{
submissionStage
:
{
...
@@ -61,6 +59,9 @@ export default {
...
@@ -61,6 +59,9 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
user
()
{
return
this
.
$store
.
state
.
user
},
activeProgress
()
{
activeProgress
()
{
for
(
const
key
in
this
.
submissionStage
)
{
for
(
const
key
in
this
.
submissionStage
)
{
const
list
=
this
.
submissionStage
[
key
]
const
list
=
this
.
submissionStage
[
key
]
...
...
modules/my/admission/form/cjd.js
浏览文件 @
eae16bc5
...
@@ -3,7 +3,7 @@ export default function(_this) {
...
@@ -3,7 +3,7 @@ export default function(_this) {
id
:
'admission_cjd'
,
id
:
'admission_cjd'
,
title
:
'成绩单(中+英)'
,
title
:
'成绩单(中+英)'
,
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
const
stageList
=
[
...
@@ -45,8 +45,8 @@ export default function(_this) {
...
@@ -45,8 +45,8 @@ export default function(_this) {
label
:
'中文成绩单'
,
label
:
'中文成绩单'
,
model
:
'REPORT_CARD_CN'
,
model
:
'REPORT_CARD_CN'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'REPORT_CARD_CN'
}
data
:
{
file_type
:
'REPORT_CARD_CN'
}
}
}
},
},
...
@@ -55,8 +55,8 @@ export default function(_this) {
...
@@ -55,8 +55,8 @@ export default function(_this) {
label
:
'英文成绩单'
,
label
:
'英文成绩单'
,
model
:
'REPORT_CARD_EN'
,
model
:
'REPORT_CARD_EN'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'REPORT_CARD_EN'
}
data
:
{
file_type
:
'REPORT_CARD_EN'
}
}
}
}
}
...
...
modules/my/admission/form/xfjn.js
浏览文件 @
eae16bc5
...
@@ -3,7 +3,7 @@ export default function(_this) {
...
@@ -3,7 +3,7 @@ export default function(_this) {
id
:
'admission_xfjn'
,
id
:
'admission_xfjn'
,
title
:
'缴费凭证'
,
title
:
'缴费凭证'
,
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
const
stageList
=
[
...
@@ -41,8 +41,8 @@ export default function(_this) {
...
@@ -41,8 +41,8 @@ export default function(_this) {
model
:
'PAYMENT_VOUCHER'
,
model
:
'PAYMENT_VOUCHER'
,
label
:
'上传缴费凭证'
,
label
:
'上传缴费凭证'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'PAYMENT_VOUCHER'
}
data
:
{
file_type
:
'PAYMENT_VOUCHER'
}
},
},
append
:
`申请者可将转账/支付缴费凭证截图或拍照后提交。<br>
append
:
`申请者可将转账/支付缴费凭证截图或拍照后提交。<br>
...
...
modules/my/admission/form/xy.js
浏览文件 @
eae16bc5
...
@@ -3,7 +3,7 @@ export default function(_this) {
...
@@ -3,7 +3,7 @@ export default function(_this) {
id
:
'admission_xy'
,
id
:
'admission_xy'
,
title
:
'入学协议'
,
title
:
'入学协议'
,
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
const
stageList
=
[
...
@@ -34,8 +34,8 @@ export default function(_this) {
...
@@ -34,8 +34,8 @@ export default function(_this) {
required
:
true
,
required
:
true
,
model
:
'ADMISSION_AGREEMENT'
,
model
:
'ADMISSION_AGREEMENT'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'ADMISSION_AGREEMENT'
}
data
:
{
file_type
:
'ADMISSION_AGREEMENT'
}
},
},
prepend
:
`
prepend
:
`
...
...
modules/my/application/form/declare.js
浏览文件 @
eae16bc5
...
@@ -10,7 +10,7 @@ export default function(_this) {
...
@@ -10,7 +10,7 @@ export default function(_this) {
return
_this
.
visible
return
_this
.
visible
},
},
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
isSubmited
=
submissionStage
!==
'FILLING'
const
isSubmited
=
submissionStage
!==
'FILLING'
...
@@ -22,7 +22,7 @@ export default function(_this) {
...
@@ -22,7 +22,7 @@ export default function(_this) {
}
}
},
},
update
:
{
update
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/submit/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/submit/
${
process
.
env
.
projectId
}
`
,
callback
()
{
callback
()
{
_this
.
getApplication
()
_this
.
getApplication
()
this
.
form
.
options
.
disabled
=
true
this
.
form
.
options
.
disabled
=
true
...
...
modules/my/application/form/info/answer.js
浏览文件 @
eae16bc5
...
@@ -11,7 +11,7 @@ export default function(_this) {
...
@@ -11,7 +11,7 @@ export default function(_this) {
return
_this
.
visible
return
_this
.
visible
},
},
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
answers
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
answers
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
...
@@ -28,7 +28,7 @@ export default function(_this) {
...
@@ -28,7 +28,7 @@ export default function(_this) {
}
}
},
},
update
:
{
update
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
/put`
,
beforeRequest
(
data
)
{
beforeRequest
(
data
)
{
return
{
return
{
answers
:
[
answers
:
[
...
...
modules/my/application/form/info/career.js
浏览文件 @
eae16bc5
...
@@ -11,7 +11,7 @@ export default function(_this) {
...
@@ -11,7 +11,7 @@ export default function(_this) {
return
_this
.
visible
return
_this
.
visible
},
},
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
careers
:
list
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
careers
:
list
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
...
@@ -19,7 +19,7 @@ export default function(_this) {
...
@@ -19,7 +19,7 @@ export default function(_this) {
}
}
},
},
update
:
{
update
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
/put`
,
beforeRequest
(
data
)
{
beforeRequest
(
data
)
{
const
careers
=
data
.
map
(
item
=>
{
const
careers
=
data
.
map
(
item
=>
{
return
[
return
[
...
...
modules/my/application/form/info/education.js
浏览文件 @
eae16bc5
...
@@ -11,7 +11,7 @@ export default function(_this) {
...
@@ -11,7 +11,7 @@ export default function(_this) {
return
_this
.
visible
return
_this
.
visible
},
},
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
educations
:
list
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
educations
:
list
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
...
@@ -19,7 +19,7 @@ export default function(_this) {
...
@@ -19,7 +19,7 @@ export default function(_this) {
}
}
},
},
update
:
{
update
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
/put`
,
beforeRequest
(
data
)
{
beforeRequest
(
data
)
{
const
educations
=
data
.
map
(
item
=>
{
const
educations
=
data
.
map
(
item
=>
{
return
[
'start_date'
,
'end_date'
,
'school_name_cn'
,
'major_cn'
,
'degree'
].
reduce
((
result
,
key
)
=>
{
return
[
'start_date'
,
'end_date'
,
'school_name_cn'
,
'major_cn'
,
'degree'
].
reduce
((
result
,
key
)
=>
{
...
...
modules/my/application/form/info/first.js
浏览文件 @
eae16bc5
...
@@ -11,7 +11,7 @@ export default function(_this) {
...
@@ -11,7 +11,7 @@ export default function(_this) {
return
this
.
tabActive
===
'application_info_first'
return
this
.
tabActive
===
'application_info_first'
},
},
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
const
{
basic_info
:
basicInfo
=
{},
basic_info
:
basicInfo
=
{},
...
@@ -37,7 +37,7 @@ export default function(_this) {
...
@@ -37,7 +37,7 @@ export default function(_this) {
}
}
},
},
update
:
{
update
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
/put`
,
beforeRequest
(
data
)
{
beforeRequest
(
data
)
{
const
basicInfo
=
[
'phone_number'
,
'email'
,
'id_type'
].
reduce
((
result
,
key
)
=>
{
const
basicInfo
=
[
'phone_number'
,
'email'
,
'id_type'
].
reduce
((
result
,
key
)
=>
{
result
[
key
]
=
data
[
key
]
result
[
key
]
=
data
[
key
]
...
@@ -79,8 +79,8 @@ export default function(_this) {
...
@@ -79,8 +79,8 @@ export default function(_this) {
label
:
'身份证人像面'
,
label
:
'身份证人像面'
,
model
:
'ID_CARD_BACK'
,
model
:
'ID_CARD_BACK'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'ID_CARD_BACK'
},
data
:
{
file_type
:
'ID_CARD_BACK'
},
limit
:
1
,
limit
:
1
,
accept
:
'image/*'
,
accept
:
'image/*'
,
...
@@ -97,8 +97,8 @@ export default function(_this) {
...
@@ -97,8 +97,8 @@ export default function(_this) {
label
:
'身份证国徽面'
,
label
:
'身份证国徽面'
,
model
:
'ID_CARD_FRONT'
,
model
:
'ID_CARD_FRONT'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'ID_CARD_FRONT'
},
data
:
{
file_type
:
'ID_CARD_FRONT'
},
limit
:
1
,
limit
:
1
,
accept
:
'image/*'
,
accept
:
'image/*'
,
...
@@ -115,8 +115,8 @@ export default function(_this) {
...
@@ -115,8 +115,8 @@ export default function(_this) {
label
:
'港澳台身份证'
,
label
:
'港澳台身份证'
,
model
:
'HK_ID_CARD'
,
model
:
'HK_ID_CARD'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'HK_ID_CARD'
},
data
:
{
file_type
:
'HK_ID_CARD'
},
limit
:
1
,
limit
:
1
,
accept
:
'image/*'
accept
:
'image/*'
...
@@ -132,8 +132,8 @@ export default function(_this) {
...
@@ -132,8 +132,8 @@ export default function(_this) {
label
:
'中国护照'
,
label
:
'中国护照'
,
model
:
'PASSPORT'
,
model
:
'PASSPORT'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'PASSPORT'
},
data
:
{
file_type
:
'PASSPORT'
},
limit
:
1
,
limit
:
1
,
accept
:
'image/*'
accept
:
'image/*'
...
@@ -149,8 +149,8 @@ export default function(_this) {
...
@@ -149,8 +149,8 @@ export default function(_this) {
label
:
'其他证件'
,
label
:
'其他证件'
,
model
:
'OTHER_ID_CARD_PHOTO'
,
model
:
'OTHER_ID_CARD_PHOTO'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'OTHER_ID_CARD_PHOTO'
},
data
:
{
file_type
:
'OTHER_ID_CARD_PHOTO'
},
limit
:
1
,
limit
:
1
,
accept
:
'image/*'
accept
:
'image/*'
...
...
modules/my/application/form/info/honor.js
浏览文件 @
eae16bc5
...
@@ -10,7 +10,7 @@ export default function(_this) {
...
@@ -10,7 +10,7 @@ export default function(_this) {
return
_this
.
visible
return
_this
.
visible
},
},
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
honors
:
list
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
honors
:
list
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
...
@@ -18,7 +18,7 @@ export default function(_this) {
...
@@ -18,7 +18,7 @@ export default function(_this) {
}
}
},
},
update
:
{
update
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
/put`
,
beforeRequest
(
data
)
{
beforeRequest
(
data
)
{
const
honors
=
data
.
map
(
item
=>
{
const
honors
=
data
.
map
(
item
=>
{
return
[
'time'
,
'title'
,
'institution_cn'
].
reduce
((
result
,
key
)
=>
{
return
[
'time'
,
'title'
,
'institution_cn'
].
reduce
((
result
,
key
)
=>
{
...
...
modules/my/application/form/info/profile.js
浏览文件 @
eae16bc5
...
@@ -13,7 +13,7 @@ export default function(_this) {
...
@@ -13,7 +13,7 @@ export default function(_this) {
return
_this
.
visible
return
_this
.
visible
},
},
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
const
{
basic_info
:
basicInfo
=
{},
basic_info
:
basicInfo
=
{},
...
@@ -39,7 +39,7 @@ export default function(_this) {
...
@@ -39,7 +39,7 @@ export default function(_this) {
}
}
},
},
update
:
{
update
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
/put`
,
beforeRequest
(
data
)
{
beforeRequest
(
data
)
{
// let [province, city] = data.city.split('-')
// let [province, city] = data.city.split('-')
// data.address_province = province
// data.address_province = province
...
@@ -101,8 +101,8 @@ export default function(_this) {
...
@@ -101,8 +101,8 @@ export default function(_this) {
label
:
'身份证人像面'
,
label
:
'身份证人像面'
,
model
:
'ID_CARD_BACK'
,
model
:
'ID_CARD_BACK'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'ID_CARD_BACK'
},
data
:
{
file_type
:
'ID_CARD_BACK'
},
limit
:
1
,
limit
:
1
,
accept
:
'image/*'
,
accept
:
'image/*'
,
...
@@ -119,8 +119,8 @@ export default function(_this) {
...
@@ -119,8 +119,8 @@ export default function(_this) {
label
:
'身份证国徽面'
,
label
:
'身份证国徽面'
,
model
:
'ID_CARD_FRONT'
,
model
:
'ID_CARD_FRONT'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'ID_CARD_FRONT'
},
data
:
{
file_type
:
'ID_CARD_FRONT'
},
limit
:
1
,
limit
:
1
,
accept
:
'image/*'
,
accept
:
'image/*'
,
...
@@ -137,8 +137,8 @@ export default function(_this) {
...
@@ -137,8 +137,8 @@ export default function(_this) {
label
:
'港澳台身份证'
,
label
:
'港澳台身份证'
,
model
:
'HK_ID_CARD'
,
model
:
'HK_ID_CARD'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'HK_ID_CARD'
},
data
:
{
file_type
:
'HK_ID_CARD'
},
limit
:
1
,
limit
:
1
,
accept
:
'image/*'
accept
:
'image/*'
...
@@ -154,8 +154,8 @@ export default function(_this) {
...
@@ -154,8 +154,8 @@ export default function(_this) {
label
:
'中国护照'
,
label
:
'中国护照'
,
model
:
'PASSPORT'
,
model
:
'PASSPORT'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'PASSPORT'
},
data
:
{
file_type
:
'PASSPORT'
},
limit
:
1
,
limit
:
1
,
accept
:
'image/*'
accept
:
'image/*'
...
@@ -171,8 +171,8 @@ export default function(_this) {
...
@@ -171,8 +171,8 @@ export default function(_this) {
label
:
'其他证件'
,
label
:
'其他证件'
,
model
:
'OTHER_ID_CARD_PHOTO'
,
model
:
'OTHER_ID_CARD_PHOTO'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'OTHER_ID_CARD_PHOTO'
},
data
:
{
file_type
:
'OTHER_ID_CARD_PHOTO'
},
limit
:
1
,
limit
:
1
,
accept
:
'image/*'
accept
:
'image/*'
...
...
modules/my/application/form/info/training.js
浏览文件 @
eae16bc5
...
@@ -10,7 +10,7 @@ export default function(_this) {
...
@@ -10,7 +10,7 @@ export default function(_this) {
return
_this
.
visible
return
_this
.
visible
},
},
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
trainings
:
list
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
trainings
:
list
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
...
@@ -18,7 +18,7 @@ export default function(_this) {
...
@@ -18,7 +18,7 @@ export default function(_this) {
}
}
},
},
update
:
{
update
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
/put`
,
beforeRequest
(
data
)
{
beforeRequest
(
data
)
{
const
trainings
=
data
.
map
(
item
=>
{
const
trainings
=
data
.
map
(
item
=>
{
return
[
'start_date'
,
'end_date'
,
'institution_cn'
,
'course_cn'
].
reduce
((
result
,
key
)
=>
{
return
[
'start_date'
,
'end_date'
,
'institution_cn'
,
'course_cn'
].
reduce
((
result
,
key
)
=>
{
...
...
modules/my/application/form/tjx.js
浏览文件 @
eae16bc5
...
@@ -10,7 +10,7 @@ export default function(_this) {
...
@@ -10,7 +10,7 @@ export default function(_this) {
return
_this
.
visible
return
_this
.
visible
},
},
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
const
stageList
=
[
...
@@ -29,7 +29,7 @@ export default function(_this) {
...
@@ -29,7 +29,7 @@ export default function(_this) {
}
}
},
},
update
:
{
update
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
/put`
,
beforeRequest
(
data
)
{
beforeRequest
(
data
)
{
return
{
reco_letters
:
data
}
return
{
reco_letters
:
data
}
}
}
...
...
modules/my/application/form/wfzzm.js
浏览文件 @
eae16bc5
...
@@ -6,7 +6,7 @@ export default function(_this) {
...
@@ -6,7 +6,7 @@ export default function(_this) {
return
_this
.
visible
return
_this
.
visible
},
},
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
...
@@ -28,8 +28,8 @@ export default function(_this) {
...
@@ -28,8 +28,8 @@ export default function(_this) {
required
:
true
,
required
:
true
,
model
:
'NO_CRIMINAL_CERT'
,
model
:
'NO_CRIMINAL_CERT'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'NO_CRIMINAL_CERT'
},
data
:
{
file_type
:
'NO_CRIMINAL_CERT'
},
limit
:
1
limit
:
1
},
},
...
...
modules/my/application/pay.vue
浏览文件 @
eae16bc5
...
@@ -44,6 +44,9 @@ export default {
...
@@ -44,6 +44,9 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
user
()
{
return
this
.
$store
.
state
.
user
},
// 二维码地址
// 二维码地址
qrcodeValue
()
{
qrcodeValue
()
{
return
this
.
order
.
payment_url
return
this
.
order
.
payment_url
...
@@ -88,7 +91,7 @@ export default {
...
@@ -88,7 +91,7 @@ export default {
},
},
// 检查支付状态
// 检查支付状态
checkPay
(
order
)
{
checkPay
(
order
)
{
const
userId
=
window
.
G
.
UserInfo
.
id
const
userId
=
this
.
user
.
id
api
.
checkPay
(
order
.
id
,
{
user_id
:
userId
}).
then
(
response
=>
{
api
.
checkPay
(
order
.
id
,
{
user_id
:
userId
}).
then
(
response
=>
{
if
(
response
.
data
.
payment_status
===
'SUCCESS'
)
{
if
(
response
.
data
.
payment_status
===
'SUCCESS'
)
{
this
.
timer
&&
clearInterval
(
this
.
timer
)
this
.
timer
&&
clearInterval
(
this
.
timer
)
...
...
modules/my/interview/form/byzs.js
浏览文件 @
eae16bc5
...
@@ -2,7 +2,7 @@ export default {
...
@@ -2,7 +2,7 @@ export default {
id
:
'interview_byzs'
,
id
:
'interview_byzs'
,
title
:
'毕业证书'
,
title
:
'毕业证书'
,
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
const
stageList
=
[
...
@@ -32,8 +32,8 @@ export default {
...
@@ -32,8 +32,8 @@ export default {
required
:
true
,
required
:
true
,
model
:
'DIPLOMA_CN'
,
model
:
'DIPLOMA_CN'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'DIPLOMA_CN'
}
data
:
{
file_type
:
'DIPLOMA_CN'
}
},
},
append
:
append
:
...
...
modules/my/interview/form/cjd.js
浏览文件 @
eae16bc5
...
@@ -3,7 +3,7 @@ export default function(_this) {
...
@@ -3,7 +3,7 @@ export default function(_this) {
id
:
'interview_cjd'
,
id
:
'interview_cjd'
,
title
:
'成绩单(中+英)'
,
title
:
'成绩单(中+英)'
,
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
const
stageList
=
[
...
@@ -32,7 +32,7 @@ export default function(_this) {
...
@@ -32,7 +32,7 @@ export default function(_this) {
}
}
},
},
update
:
{
update
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/submit/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/submit/
${
process
.
env
.
projectId
}
`
,
beforeRequest
(
data
)
{
beforeRequest
(
data
)
{
return
{
submission_stage
:
'INTERVIEW_APPLICATION'
}
return
{
submission_stage
:
'INTERVIEW_APPLICATION'
}
},
},
...
@@ -60,8 +60,8 @@ export default function(_this) {
...
@@ -60,8 +60,8 @@ export default function(_this) {
label
:
'中文成绩单'
,
label
:
'中文成绩单'
,
model
:
'REPORT_CARD_CN'
,
model
:
'REPORT_CARD_CN'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'REPORT_CARD_CN'
}
data
:
{
file_type
:
'REPORT_CARD_CN'
}
}
}
},
},
...
@@ -70,8 +70,8 @@ export default function(_this) {
...
@@ -70,8 +70,8 @@ export default function(_this) {
label
:
'英文成绩单'
,
label
:
'英文成绩单'
,
model
:
'REPORT_CARD_EN'
,
model
:
'REPORT_CARD_EN'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'REPORT_CARD_EN'
}
data
:
{
file_type
:
'REPORT_CARD_EN'
}
}
}
}
}
...
...
modules/my/interview/form/xwzs.js
浏览文件 @
eae16bc5
...
@@ -2,7 +2,7 @@ export default {
...
@@ -2,7 +2,7 @@ export default {
id
:
'interview_xwzs'
,
id
:
'interview_xwzs'
,
title
:
'学位证书'
,
title
:
'学位证书'
,
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
const
stageList
=
[
...
@@ -33,8 +33,8 @@ export default {
...
@@ -33,8 +33,8 @@ export default {
required
:
true
,
required
:
true
,
model
:
'DEGREE_CERT_CN'
,
model
:
'DEGREE_CERT_CN'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'DEGREE_CERT_CN'
}
data
:
{
file_type
:
'DEGREE_CERT_CN'
}
},
},
append
:
append
:
...
...
modules/my/interview/form/xwzszm.js
浏览文件 @
eae16bc5
...
@@ -2,7 +2,7 @@ export default {
...
@@ -2,7 +2,7 @@ export default {
id
:
'interview_xwzsywzm'
,
id
:
'interview_xwzsywzm'
,
title
:
'学位证书英文证明'
,
title
:
'学位证书英文证明'
,
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
const
stageList
=
[
...
@@ -33,8 +33,8 @@ export default {
...
@@ -33,8 +33,8 @@ export default {
required
:
true
,
required
:
true
,
model
:
'DEGREE_CERT_EN'
,
model
:
'DEGREE_CERT_EN'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'DEGREE_CERT_EN'
}
data
:
{
file_type
:
'DEGREE_CERT_EN'
}
},
},
append
:
'请将学校出具的学位证书英文证明原件扫描或者拍照后提交。'
append
:
'请将学校出具的学位证书英文证明原件扫描或者拍照后提交。'
...
...
modules/my/interview/form/ywjl.js
浏览文件 @
eae16bc5
...
@@ -2,7 +2,7 @@ export default {
...
@@ -2,7 +2,7 @@ export default {
id
:
'interview_ywjl'
,
id
:
'interview_ywjl'
,
title
:
'英文简历'
,
title
:
'英文简历'
,
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
const
stageList
=
[
...
@@ -33,8 +33,8 @@ export default {
...
@@ -33,8 +33,8 @@ export default {
required
:
true
,
required
:
true
,
model
:
'RESUME_EN'
,
model
:
'RESUME_EN'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'RESUME_EN'
}
data
:
{
file_type
:
'RESUME_EN'
}
},
},
append
:
`
append
:
`
...
...
modules/my/interview/form/zp.js
浏览文件 @
eae16bc5
...
@@ -3,7 +3,7 @@ export default function(_this) {
...
@@ -3,7 +3,7 @@ export default function(_this) {
id
:
'interview_zp'
,
id
:
'interview_zp'
,
title
:
'2寸照片'
,
title
:
'2寸照片'
,
get
:
{
get
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
const
stageList
=
[
...
@@ -24,7 +24,7 @@ export default function(_this) {
...
@@ -24,7 +24,7 @@ export default function(_this) {
}
}
},
},
update
:
{
update
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/submit/
${
webConf
.
others
.
projectId
}
`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/submit/
${
process
.
env
.
projectId
}
`
,
beforeRequest
(
data
)
{
beforeRequest
(
data
)
{
return
{
submission_stage
:
'INTERVIEW_APPLICATION'
}
return
{
submission_stage
:
'INTERVIEW_APPLICATION'
}
},
},
...
@@ -47,8 +47,8 @@ export default function(_this) {
...
@@ -47,8 +47,8 @@ export default function(_this) {
type
:
'v-upload'
,
type
:
'v-upload'
,
model
:
'PERSONAL_PHOTO_FOR_ID'
,
model
:
'PERSONAL_PHOTO_FOR_ID'
,
attrs
:
{
attrs
:
{
action
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/put`
,
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/put`
,
deleteAction
:
`
${
webConf
.
apiBaseURL
}
/enrollment/v1.0/application-materials/attachments/
${
webConf
.
others
.
projectId
}
/delete`
,
deleteAction
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/attachments/
${
process
.
env
.
projectId
}
/delete`
,
data
:
{
file_type
:
'PERSONAL_PHOTO_FOR_ID'
},
data
:
{
file_type
:
'PERSONAL_PHOTO_FOR_ID'
},
limit
:
1
limit
:
1
},
},
...
...
modules/my/welcome/indexPay.vue
浏览文件 @
eae16bc5
...
@@ -47,6 +47,9 @@ export default {
...
@@ -47,6 +47,9 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
user
()
{
return
this
.
$store
.
state
.
user
},
// 二维码地址
// 二维码地址
qrcodeValue
()
{
qrcodeValue
()
{
return
this
.
order
.
payment_url
return
this
.
order
.
payment_url
...
@@ -91,7 +94,7 @@ export default {
...
@@ -91,7 +94,7 @@ export default {
},
},
// 检查支付状态
// 检查支付状态
checkPay
(
order
)
{
checkPay
(
order
)
{
const
userId
=
window
.
G
.
UserInfo
.
id
const
userId
=
this
.
user
.
id
api
.
checkPay
(
order
.
id
,
{
user_id
:
userId
}).
then
(
response
=>
{
api
.
checkPay
(
order
.
id
,
{
user_id
:
userId
}).
then
(
response
=>
{
if
(
response
.
data
.
payment_status
===
'SUCCESS'
)
{
if
(
response
.
data
.
payment_status
===
'SUCCESS'
)
{
this
.
timer
&&
clearInterval
(
this
.
timer
)
this
.
timer
&&
clearInterval
(
this
.
timer
)
...
...
nuxt.config.js
浏览文件 @
eae16bc5
...
@@ -7,7 +7,8 @@ if (process.env.NODE_ENV === 'production') {
...
@@ -7,7 +7,8 @@ if (process.env.NODE_ENV === 'production') {
config
=
{
config
=
{
env
:
{
env
:
{
projectId
:
'1001'
,
projectId
:
'1001'
,
baseURL
:
'https://project-api.ezijing.com'
baseURL
:
'https://project-api.ezijing.com'
,
loginURL
:
'https://login.ezijing.com/auth'
},
},
server
:
{
port
:
2048
,
host
:
'0.0.0.0'
}
server
:
{
port
:
2048
,
host
:
'0.0.0.0'
}
}
}
...
@@ -15,7 +16,8 @@ if (process.env.NODE_ENV === 'production') {
...
@@ -15,7 +16,8 @@ if (process.env.NODE_ENV === 'production') {
config
=
{
config
=
{
env
:
{
env
:
{
projectId
:
'1001'
,
projectId
:
'1001'
,
baseURL
:
'https://project-api.ezijing.com'
baseURL
:
'https://project-api.ezijing.com'
,
loginURL
:
'https://login.ezijing.com/auth'
},
},
server
:
{
server
:
{
host
:
'dev.ezijing.com'
,
host
:
'dev.ezijing.com'
,
...
@@ -29,6 +31,7 @@ if (process.env.NODE_ENV === 'production') {
...
@@ -29,6 +31,7 @@ if (process.env.NODE_ENV === 'production') {
export
default
{
export
default
{
...
config
,
...
config
,
ssr
:
false
,
// Global page headers: https://go.nuxtjs.dev/config-head
// Global page headers: https://go.nuxtjs.dev/config-head
head
:
{
head
:
{
title
:
'紫荆教育-在线MBA课程-MBA在线课程-专业金融在线教育品牌'
,
title
:
'紫荆教育-在线MBA课程-MBA在线课程-专业金融在线教育品牌'
,
...
@@ -63,6 +66,7 @@ export default {
...
@@ -63,6 +66,7 @@ export default {
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins
:
[
plugins
:
[
'@/plugins/router'
,
'@/plugins/axios'
,
'@/plugins/axios'
,
'@/plugins/element-ui'
,
'@/plugins/element-ui'
,
{
{
...
...
plugins/element-ui.js
浏览文件 @
eae16bc5
import
Vue
from
'vue'
import
Vue
from
'vue'
import
VuePassport
from
'@ezijing/vue-passport'
import
'@ezijing/vue-passport/dist/vue-passport.css'
import
VueForm
from
'@ezijing/vue-form'
import
'@ezijing/vue-form/dist/vue-form.css'
import
Element
from
'element-ui'
import
Element
from
'element-ui'
import
locale
from
'element-ui/lib/locale/lang/en'
import
locale
from
'element-ui/lib/locale/lang/en'
Vue
.
use
(
Element
,
{
locale
})
Vue
.
use
(
Element
,
{
locale
})
Vue
.
use
(
VueForm
)
Vue
.
use
(
VuePassport
)
plugins/router.js
0 → 100644
浏览文件 @
eae16bc5
export
default
({
app
,
store
})
=>
{
app
.
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
const
isLogin
=
store
.
state
.
user
.
id
||
(
await
store
.
dispatch
(
'checkLogin'
))
if
(
to
.
meta
.
requiredLogin
&&
!
isLogin
)
{
next
()
location
.
href
=
`
${
process
.
env
.
loginURL
}
/login/index?redirect_uri=
${
encodeURIComponent
(
location
.
href
)}
`
return
}
console
.
log
(
to
,
isLogin
)
next
()
})
}
router/routes.js
浏览文件 @
eae16bc5
/**
* 报名申请相关的自定义路由
*/
export
default
(
routes
,
resolve
)
=>
{
export
default
(
routes
,
resolve
)
=>
{
routes
.
push
(
routes
.
push
(
{
{
path
:
'/my'
,
path
:
'/my'
,
component
:
resolve
(
__dirname
,
'../
modules/my/layout
.vue'
),
component
:
resolve
(
__dirname
,
'../
layouts/main
.vue'
),
children
:
[
children
:
[
{
{
name
:
'apply'
,
name
:
'apply'
,
...
...
store/index.js
0 → 100644
浏览文件 @
eae16bc5
import
{
getUser
,
logout
}
from
'@/api/my'
export
const
state
=
()
=>
({
user
:
{}
})
export
const
mutations
=
{
setUser
(
state
,
user
)
{
state
.
user
=
user
},
removeUser
(
state
)
{
state
.
user
=
{}
}
}
export
const
actions
=
{
getUser
({
commit
})
{
getUser
().
then
(
response
=>
{
commit
(
'setUser'
,
response
.
data
)
})
},
// 退出登录
logout
({
commit
})
{
return
logout
().
then
(
response
=>
{
commit
(
'setUser'
,
{})
return
response
})
},
// 检测登录状态
async
checkLogin
({
commit
})
{
const
isLogin
=
await
getUser
()
.
then
(
response
=>
{
commit
(
'setUser'
,
response
.
data
)
return
true
})
.
catch
(()
=>
{
commit
(
'setUser'
,
{})
return
false
})
return
isLogin
}
}
utils/httpRequest.js
浏览文件 @
eae16bc5
...
@@ -35,8 +35,18 @@ httpRequest.interceptors.request.use(
...
@@ -35,8 +35,18 @@ httpRequest.interceptors.request.use(
httpRequest
.
interceptors
.
response
.
use
(
httpRequest
.
interceptors
.
response
.
use
(
function
(
response
)
{
function
(
response
)
{
const
{
data
}
=
response
const
{
data
}
=
response
// zws
if
(
parseInt
(
data
.
code
))
{
if
(
parseInt
(
data
.
code
))
{
Message
.
error
(
data
.
msg
)
return
Promise
.
reject
(
data
)
}
if
(
parseInt
(
data
.
error
)
&&
data
.
message
===
'需要登录才能调用接口'
)
{
location
.
href
=
`
${
process
.
env
.
loginURL
}
/login/index?redirect_uri=
${
encodeURIComponent
(
location
.
href
)}
`
return
Promise
.
reject
(
data
)
}
// enrollment
if
(
parseInt
(
data
.
error
))
{
Message
.
error
(
data
.
message
)
return
Promise
.
reject
(
data
)
return
Promise
.
reject
(
data
)
}
}
return
data
return
data
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论