Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-old
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-old
Commits
792f084e
提交
792f084e
authored
6月 16, 2021
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
师资报名分期提交
上级
c6bbf9d3
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
23 行增加
和
9 行删除
+23
-9
ArticleAction.js
src/action/ArticleAction.js
+1
-1
article_api.js
src/api/article_api.js
+3
-1
base_api.js
src/api/base_api.js
+1
-0
detail.vue
src/pages/train/detail.vue
+5
-3
form.vue
src/pages/train/form.vue
+12
-3
index.vue
src/pages/train/index.vue
+1
-1
没有找到文件。
src/action/ArticleAction.js
浏览文件 @
792f084e
...
@@ -10,7 +10,7 @@ export default class ArticleAction {
...
@@ -10,7 +10,7 @@ export default class ArticleAction {
register
(
obj
)
{
return
articleApi
.
register
(
obj
).
then
(
res
=>
res
)
}
register
(
obj
)
{
return
articleApi
.
register
(
obj
).
then
(
res
=>
res
)
}
register2
(
obj
)
{
return
articleApi
.
register2
(
obj
).
then
(
res
=>
res
)
}
register2
(
obj
)
{
return
articleApi
.
register2
(
obj
).
then
(
res
=>
res
)
}
getUserInfo
(
obj
)
{
return
articleApi
.
getUserInfo
(
obj
).
then
(
res
=>
res
)
}
getUserInfo
(
obj
)
{
return
articleApi
.
getUserInfo
(
obj
).
then
(
res
=>
res
)
}
getFormDetail
(
)
{
return
articleApi
.
getFormDetail
(
).
then
(
res
=>
res
)
}
getFormDetail
(
obj
)
{
return
articleApi
.
getFormDetail
(
obj
).
then
(
res
=>
res
)
}
getOrder
(
obj
)
{
return
articleApi
.
getOrder
(
obj
).
then
(
res
=>
res
)
}
getOrder
(
obj
)
{
return
articleApi
.
getOrder
(
obj
).
then
(
res
=>
res
)
}
checkPay
(
id
)
{
return
articleApi
.
checkPay
(
id
).
then
(
res
=>
res
)
}
checkPay
(
id
)
{
return
articleApi
.
checkPay
(
id
).
then
(
res
=>
res
)
}
payEnd
(
obj
)
{
return
articleApi
.
payEnd
(
obj
).
then
(
res
=>
res
)
}
payEnd
(
obj
)
{
return
articleApi
.
payEnd
(
obj
).
then
(
res
=>
res
)
}
...
...
src/api/article_api.js
浏览文件 @
792f084e
...
@@ -20,7 +20,9 @@ export default class ScoreAPI extends BaseAPI {
...
@@ -20,7 +20,9 @@ export default class ScoreAPI extends BaseAPI {
// 获取用户信息
// 获取用户信息
getUserInfo
=
()
=>
this
.
get
(
'/api/passport/account/get-user-info'
)
getUserInfo
=
()
=>
this
.
get
(
'/api/passport/account/get-user-info'
)
// 表单回显
// 表单回显
getFormDetail
=
()
=>
this
.
get
(
'/api/microservices/api/v3/apply/teacher-form-detail'
)
getFormDetail
=
(
params
=
{})
=>
{
return
this
.
get
(
'/api/microservices/api/v3/apply/teacher-form-detail'
,
params
,
{})
}
// 下单
// 下单
getOrder
=
(
obj
=
{})
=>
this
.
post
(
'/api/microservices/api/v3/apply/unified-order'
,
obj
)
getOrder
=
(
obj
=
{})
=>
this
.
post
(
'/api/microservices/api/v3/apply/unified-order'
,
obj
)
// 查看订单状态
// 查看订单状态
...
...
src/api/base_api.js
浏览文件 @
792f084e
...
@@ -50,6 +50,7 @@ export default class API {
...
@@ -50,6 +50,7 @@ export default class API {
_config
.
data
=
fr
_config
.
data
=
fr
}
}
/* 创建并根据参数发起请求 */
/* 创建并根据参数发起请求 */
console
.
log
(
_config
)
return
this
.
_axios
(
_config
).
then
(
beforeSuccess
.
bind
(
this
),
beforeFail
.
bind
(
this
))
return
this
.
_axios
(
_config
).
then
(
beforeSuccess
.
bind
(
this
),
beforeFail
.
bind
(
this
))
}
}
...
...
src/pages/train/detail.vue
浏览文件 @
792f084e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<p>
培训地点:
{{
details
.
addr
}}
</p>
<p>
培训地点:
{{
details
.
addr
}}
</p>
<p>
培训时间:
{{
details
.
time
}}
</p>
<p>
培训时间:
{{
details
.
time
}}
</p>
</div>
</div>
<router-link
to=
"/train/form
"
>
<router-link
:to=
"
{ path: '/train/form', query: { id: details.id }}
">
<div
class=
"detail-btn"
>
立即报名
</div>
<div
class=
"detail-btn"
>
立即报名
</div>
</router-link>
</router-link>
</div>
</div>
...
@@ -87,14 +87,16 @@ export default {
...
@@ -87,14 +87,16 @@ export default {
title
:
'2021年第2期“1+X金融产品数字化营销职业技能等级证书(中级)”师资培训班'
,
title
:
'2021年第2期“1+X金融产品数字化营销职业技能等级证书(中级)”师资培训班'
,
time
:
'6月27日-7月1日'
,
time
:
'6月27日-7月1日'
,
count
:
100
,
count
:
100
,
addr
:
'河南郑州'
addr
:
'河南郑州'
,
id
:
2
},
},
3
:
{
3
:
{
imgUri
:
'http://vocational-store.oss-cn-beijing.aliyuncs.com/files/20210225/9e74559a240db3b39b824418353ec3a3.jpg'
,
imgUri
:
'http://vocational-store.oss-cn-beijing.aliyuncs.com/files/20210225/9e74559a240db3b39b824418353ec3a3.jpg'
,
title
:
'2021年第3期“1+X金融产品数字化营销职业技能等级证书(中级)”师资培训班'
,
title
:
'2021年第3期“1+X金融产品数字化营销职业技能等级证书(中级)”师资培训班'
,
time
:
'7月5日-7月9日'
,
time
:
'7月5日-7月9日'
,
count
:
100
,
count
:
100
,
addr
:
'吉林长春'
addr
:
'吉林长春'
,
id
:
3
}
}
}
}
}
}
...
...
src/pages/train/form.vue
浏览文件 @
792f084e
...
@@ -212,6 +212,13 @@ export default {
...
@@ -212,6 +212,13 @@ export default {
isLogin
:
false
isLogin
:
false
}
}
},
},
computed
:
{
id
()
{
let
id
=
1
if
(
this
.
$route
.
query
.
id
)
id
=
parseInt
(
this
.
$route
.
query
.
id
)
return
id
}
},
created
()
{
created
()
{
action
.
articleAction
.
getUserInfo
().
then
(
res
=>
{
action
.
articleAction
.
getUserInfo
().
then
(
res
=>
{
if
(
res
&&
res
.
code
===
0
)
{
if
(
res
&&
res
.
code
===
0
)
{
...
@@ -241,7 +248,10 @@ export default {
...
@@ -241,7 +248,10 @@ export default {
},
},
getDetail
(
call
)
{
getDetail
(
call
)
{
// 登录状态不需要手机号验证码
// 登录状态不需要手机号验证码
action
.
articleAction
.
getFormDetail
().
then
(
res
=>
{
const
params
=
{
periods
:
this
.
id
}
action
.
articleAction
.
getFormDetail
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
if
(
!
Object
.
keys
(
res
.
data
.
detail
).
length
)
{
if
(
!
Object
.
keys
(
res
.
data
.
detail
).
length
)
{
this
.
isInfoNull
=
true
this
.
isInfoNull
=
true
...
@@ -428,6 +438,7 @@ export default {
...
@@ -428,6 +438,7 @@ export default {
sendEnrollInfo
()
{
sendEnrollInfo
()
{
let
promise
=
new
Promise
((
resolve
,
reject
)
=>
{
let
promise
=
new
Promise
((
resolve
,
reject
)
=>
{
const
form
=
{...
this
.
form
}
const
form
=
{...
this
.
form
}
form
.
periods
=
this
.
id
if
(
form
.
invoice_type
!==
'增值税专用发票'
)
{
if
(
form
.
invoice_type
!==
'增值税专用发票'
)
{
form
.
invoice_address_mobile
=
''
form
.
invoice_address_mobile
=
''
form
.
opening_bank_account
=
''
form
.
opening_bank_account
=
''
...
@@ -437,8 +448,6 @@ export default {
...
@@ -437,8 +448,6 @@ export default {
form
.
invoice_detail
=
''
form
.
invoice_detail
=
''
}
}
}
}
console
.
log
(
form
)
console
.
log
(
this
.
form
)
action
.
articleAction
.
formCommit
(
form
).
then
(
res
=>
{
action
.
articleAction
.
formCommit
(
form
).
then
(
res
=>
{
if
(
res
&&
res
.
code
===
200
)
{
if
(
res
&&
res
.
code
===
200
)
{
resolve
({
resolve
({
...
...
src/pages/train/index.vue
浏览文件 @
792f084e
...
@@ -110,7 +110,7 @@ export default {
...
@@ -110,7 +110,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
newsList
()
//
this.newsList()
},
},
methods
:
{
methods
:
{
HandleTabChange
(
index
)
{
HandleTabChange
(
index
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论