Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-old
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-old
Commits
d02656ab
提交
d02656ab
authored
4月 12, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
表单支付
上级
bbf645c4
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
57 行增加
和
8 行删除
+57
-8
dev.ezijing.com.key
build/dev.ezijing.com.key
+0
-0
dev.ezijing.com.pem
build/dev.ezijing.com.pem
+0
-0
ArticleAction.js
src/action/ArticleAction.js
+1
-0
article_api.js
src/api/article_api.js
+2
-0
payPop.vue
src/pages/train/components/payPop.vue
+46
-6
form.vue
src/pages/train/form.vue
+8
-2
没有找到文件。
build/dev.ezijing.com.key
100755 → 100644
浏览文件 @
d02656ab
File mode changed from 100755 to 100644
build/dev.ezijing.com.pem
100755 → 100644
浏览文件 @
d02656ab
File mode changed from 100755 to 100644
src/action/ArticleAction.js
浏览文件 @
d02656ab
...
@@ -11,4 +11,5 @@ export default class ArticleAction {
...
@@ -11,4 +11,5 @@ export default class ArticleAction {
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
()
{
return
articleApi
.
getFormDetail
().
then
(
res
=>
res
)
}
getOrder
(
obj
)
{
return
articleApi
.
getOrder
(
obj
).
then
(
res
=>
res
)
}
}
}
src/api/article_api.js
浏览文件 @
d02656ab
...
@@ -21,4 +21,6 @@ export default class ScoreAPI extends BaseAPI {
...
@@ -21,4 +21,6 @@ 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
=
()
=>
this
.
get
(
'/api/microservices/api/v3/apply/teacher-form-detail'
)
// 下单
getOrder
=
(
obj
=
{})
=>
this
.
post
(
'/api/microservices/api/v3/apply/unified-order'
,
obj
)
}
}
src/pages/train/components/payPop.vue
浏览文件 @
d02656ab
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<div
class=
"tips-top"
>
<div
class=
"tips-top"
>
<div
class=
"name"
>
支付方式:
</div>
<div
class=
"name"
>
支付方式:
</div>
<div
class=
"pay-method"
>
<div
class=
"pay-method"
>
<div
:class=
"payMethod ===
0 ? 'li active' : 'li'"
@
click=
"tabPayMethod(0
)"
>
<div
:class=
"payMethod ===
2 ? 'li active' : 'li'"
@
click=
"tabPayMethod(2
)"
>
<div
class=
"icon"
></div>
<div
class=
"icon"
></div>
<div
class=
"pay-text"
>
支付宝支付
</div>
<div
class=
"pay-text"
>
支付宝支付
</div>
</div>
</div>
...
@@ -23,30 +23,69 @@
...
@@ -23,30 +23,69 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"pay-btn"
@
click=
"
isCodeShow = true
"
>
去支付
</div>
<div
class=
"pay-btn"
@
click=
"
getOrder
"
>
去支付
</div>
<div
class=
"tips-text"
>
注:请核对报名表信息,支付后将不能修改报名信息。
</div>
<div
class=
"tips-text"
>
注:请核对报名表信息,支付后将不能修改报名信息。
</div>
</div>
</div>
<div
class=
"content-box ewm-code"
v-if=
"isCodeShow"
>
<div
class=
"content-box ewm-code"
v-if=
"isCodeShow"
>
<i
class=
"el-icon-close"
@
click=
"$emit('closePayPop')"
></i>
<i
class=
"el-icon-close"
@
click=
"$emit('closePayPop')"
></i>
<div
class=
"title"
>
{{
payMethod
?
'微信支付'
:
'支付宝支付'
}}
</div>
<div
class=
"title"
>
{{
payMethod
?
'微信支付'
:
'支付宝支付'
}}
</div>
<div
class=
"ewm-box"
>
<div
class=
"ewm-box"
>
<div
class=
"block"
></div>
<div
class=
"block"
>
<qrcode-vue
:value=
"payInfo.url"
size=
"200"
></qrcode-vue>
</div>
<div
class=
"text"
>
微信扫一扫支付
</div>
<div
class=
"text"
>
微信扫一扫支付
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
action
from
'@action'
import
QrcodeVue
from
'qrcode.vue'
export
default
{
export
default
{
components
:
{
QrcodeVue
},
props
:
{
formData
:
{
type
:
Object
}
},
data
()
{
data
()
{
return
{
return
{
payMethod
:
0
,
payMethod
:
2
,
isCodeShow
:
false
isCodeShow
:
false
,
product_id
:
'6734697826573352960'
,
payInfo
:
{}
}
}
},
},
methods
:
{
methods
:
{
tabPayMethod
(
n
)
{
tabPayMethod
(
n
)
{
this
.
payMethod
=
n
this
.
payMethod
=
n
},
getOrder
()
{
const
param
=
{
pay_type
:
this
.
payMethod
,
product_id
:
this
.
product_id
,
form_id
:
this
.
formData
.
id
.
toString
()
}
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
})
console
.
log
(
param
)
action
.
articleAction
.
getOrder
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
payInfo
=
res
.
data
this
.
isCodeShow
=
true
loading
.
close
()
}
else
{
this
.
$message
.
error
(
res
.
msg
)
loading
.
close
()
}
// isCodeShow = true
})
}
}
}
}
}
}
...
@@ -68,7 +107,8 @@ export default {
...
@@ -68,7 +107,8 @@ export default {
margin
:
43px
auto
0
;
margin
:
43px
auto
0
;
text-align
:
center
;
text-align
:
center
;
.block
{
.block
{
height
:
220px
;
height
:
200px
;
padding
:
10px
;
border
:
1px
solid
#D0D0D0
;
border
:
1px
solid
#D0D0D0
;
}
}
.text
{
.text
{
...
...
src/pages/train/form.vue
浏览文件 @
d02656ab
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<pay-pop
v-if=
"isPayPopShow"
@
closePayPop=
"closePayPop"
class=
"payPop"
/>
<pay-pop
v-if=
"isPayPopShow"
:formData=
"form"
@
closePayPop=
"closePayPop"
class=
"payPop"
/>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -176,6 +176,8 @@ export default {
...
@@ -176,6 +176,8 @@ export default {
action
.
articleAction
.
getFormDetail
().
then
(
res
=>
{
action
.
articleAction
.
getFormDetail
().
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
form
=
res
.
data
.
detail
this
.
form
=
res
.
data
.
detail
this
.
form
.
sex
=
this
.
form
.
sex
.
toString
()
this
.
form
.
live_status
=
this
.
form
.
live_status
.
toString
()
}
}
})
})
// $('#name label').html('姓 名')
// $('#name label').html('姓 名')
...
@@ -221,9 +223,13 @@ export default {
...
@@ -221,9 +223,13 @@ export default {
}
}
}, */
}, */
onSubmit
()
{
onSubmit
()
{
console
.
log
(
this
.
isLogin
,
this
.
form
)
if
(
this
.
isLogin
)
{
if
(
this
.
isLogin
)
{
this
.
form
.
mobile
=
'13111111111'
this
.
form
.
mobile
=
'13111111111'
this
.
form
.
checked_code
=
'1234'
this
.
form
.
checked_code
=
'1234'
if
(
this
.
form
.
order_no
===
''
)
{
this
.
form
.
order_no
=
'1'
}
}
}
let
flag
=
true
let
flag
=
true
// console.log(this.form)
// console.log(this.form)
...
@@ -530,6 +536,6 @@ export default {
...
@@ -530,6 +536,6 @@ export default {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background
:
rgba
(
#000000
,
.5
);
background
:
rgba
(
#000000
,
.5
);
z-index
:
99
99
;
z-index
:
99
;
}
}
</
style
>
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论