Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-old
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-old
Commits
957dd03b
提交
957dd03b
authored
6月 22, 2021
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
师资培训表单提交时更新登录用户真实姓名
上级
f2074015
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
17 行增加
和
4 行删除
+17
-4
ArticleAction.js
src/action/ArticleAction.js
+1
-0
article_api.js
src/api/article_api.js
+2
-0
base_api.js
src/api/base_api.js
+0
-1
header.vue
src/components/layout/header.vue
+1
-1
payPop.vue
src/pages/train/components/payPop.vue
+1
-1
form.vue
src/pages/train/form.vue
+12
-1
没有找到文件。
src/action/ArticleAction.js
浏览文件 @
957dd03b
...
...
@@ -14,4 +14,5 @@ export default class ArticleAction {
getOrder
(
obj
)
{
return
articleApi
.
getOrder
(
obj
).
then
(
res
=>
res
)
}
checkPay
(
id
)
{
return
articleApi
.
checkPay
(
id
).
then
(
res
=>
res
)
}
payEnd
(
obj
)
{
return
articleApi
.
payEnd
(
obj
).
then
(
res
=>
res
)
}
updateUserInfo
(
obj
)
{
return
articleApi
.
updateUserInfo
(
obj
).
then
(
res
=>
res
)
}
}
src/api/article_api.js
浏览文件 @
957dd03b
...
...
@@ -29,4 +29,6 @@ export default class ScoreAPI extends BaseAPI {
checkPay
=
(
id
)
=>
this
.
get
(
`/api/pay/v1/order/status/
${
id
}
`
)
// 支付完成通知
payEnd
=
(
obj
=
{})
=>
this
.
post
(
'/api/microservices/api/v3/apply/pay-end'
,
obj
)
// 更新用户信息
updateUserInfo
=
(
obj
=
{})
=>
this
.
post
(
'/api/usercenter/user/update-user'
,
obj
)
}
src/api/base_api.js
浏览文件 @
957dd03b
...
...
@@ -50,7 +50,6 @@ export default class API {
_config
.
data
=
fr
}
/* 创建并根据参数发起请求 */
console
.
log
(
_config
)
return
this
.
_axios
(
_config
).
then
(
beforeSuccess
.
bind
(
this
),
beforeFail
.
bind
(
this
))
}
...
...
src/components/layout/header.vue
浏览文件 @
957dd03b
...
...
@@ -197,7 +197,7 @@ export default {
},
mounted
()
{
// this.loginSuccess()
console
.
log
(
JSON
.
parse
(
window
.
sessionStorage
.
userInfo
))
//
console.log(JSON.parse(window.sessionStorage.userInfo))
this
.
user
=
JSON
.
parse
(
window
.
sessionStorage
.
userInfo
)
},
methods
:
{
...
...
src/pages/train/components/payPop.vue
浏览文件 @
957dd03b
...
...
@@ -52,7 +52,7 @@ export default {
type
:
Object
},
periods
:
{
type
:
String
,
type
:
Number
,
default
:
'1'
}
},
...
...
src/pages/train/form.vue
浏览文件 @
957dd03b
...
...
@@ -129,6 +129,7 @@
</template>
<
script
>
import
action
from
'@action'
// import { updateUserInfo } from '@/api/common'
import
breadcrumb
from
'@/components/breadcrumb'
import
payPop
from
'./components/payPop'
import
nations
from
'@/tool/nations'
...
...
@@ -394,6 +395,7 @@ export default {
this
.
isInfoNull
=
false
this
.
getDetail
()
this
.
message
(
'提交成功!'
,
'success'
,
6000
)
this
.
fetchUpdateUserInfo
()
// setTimeout(() => {
// this.message('手机号注册成功!','success', 6000)
// }, 300)
...
...
@@ -599,7 +601,16 @@ export default {
type
:
type
||
'info'
,
duration
:
dur
||
3000
})
}
},
fetchUpdateUserInfo
()
{
console
.
log
(
1111
)
const
params
=
{
real_name
:
this
.
form
.
username
||
''
}
action
.
articleAction
.
updateUserInfo
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
})
},
}
}
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论