Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-old
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-old
Commits
68b6ef1a
提交
68b6ef1a
authored
6月 08, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 证书相关接口对接为api/psp
上级
ace04be8
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
65 行增加
和
84 行删除
+65
-84
my.js
src/api/my.js
+18
-39
index.vue
src/pages/card/index.vue
+39
-37
index.vue
src/pages/cert/index.vue
+3
-3
admissionNotice.vue
src/pages/personal/admissionNotice.vue
+1
-1
index.vue
src/pages/showcase/index.vue
+2
-2
uploadAvatar.vue
src/pages/showcase/uploadAvatar.vue
+2
-2
没有找到文件。
src/api/my.js
浏览文件 @
68b6ef1a
...
...
@@ -73,54 +73,38 @@ export function getApplicationStatus() {
* 获取支付二维码
*/
export
function
getOrder
(
params
)
{
return
httpRequest
.
get
(
`/enrollment/v1.0/application-materials/payment-records/request/
${
projectId
}
/APPLICATION_FEE`
,
params
)
return
httpRequest
.
get
(
`/enrollment/v1.0/application-materials/payment-records/request/
${
projectId
}
/APPLICATION_FEE`
,
params
)
}
/**
* 检查支付状态
*/
export
function
checkPay
(
id
,
params
)
{
return
httpRequest
.
get
(
`/enrollment/v1.0/application-materials/payment-records/check-status/
${
projectId
}
/APPLICATION_FEE/
${
id
}
`
,
params
)
return
httpRequest
.
get
(
`/enrollment/v1.0/application-materials/payment-records/check-status/
${
projectId
}
/APPLICATION_FEE/
${
id
}
`
,
params
)
}
/**
* 写推荐信
*/
export
function
addLetter
(
userId
,
letterId
,
data
)
{
return
httpRequest
.
post
(
`/enrollment/v1.0/application-materials/reco-letters/submit/
${
projectId
}
/
${
userId
}
/
${
letterId
}
/put`
,
data
,
{
headers
:
{
'Content-Type'
:
'application/json'
}
}
)
return
httpRequest
.
post
(
`/enrollment/v1.0/application-materials/reco-letters/submit/
${
projectId
}
/
${
userId
}
/
${
letterId
}
/put`
,
data
,
{
headers
:
{
'Content-Type'
:
'application/json'
}
})
}
/**
* 更换推荐人
*/
export
function
updateProvider
(
letterId
,
data
)
{
return
httpRequest
.
post
(
`/enrollment/v1.0/application-materials/reco-letters/change-provider/
${
projectId
}
/
${
letterId
}
/put`
,
data
,
{
headers
:
{
'Content-Type'
:
'application/json'
}
}
)
return
httpRequest
.
post
(
`/enrollment/v1.0/application-materials/reco-letters/change-provider/
${
projectId
}
/
${
letterId
}
/put`
,
data
,
{
headers
:
{
'Content-Type'
:
'application/json'
}
})
}
/**
* 再次邀请
*/
export
function
sendToProvider
(
letterId
)
{
return
httpRequest
.
get
(
`/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-provider/
${
projectId
}
/
${
letterId
}
`
)
return
httpRequest
.
get
(
`/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-provider/
${
projectId
}
/
${
letterId
}
`
)
}
/**
* 退出登录
...
...
@@ -133,10 +117,7 @@ export function logout() {
* 更改附件状态
*/
export
function
changeFileStatus
(
userId
,
recordId
,
status
)
{
return
httpRequest
.
get
(
`/enrollment/v1.0/application-materials/attachments/change-status/
${
projectId
}
/
${
userId
}
/
${
recordId
}
`
,
{
status
}
)
return
httpRequest
.
get
(
`/enrollment/v1.0/application-materials/attachments/change-status/
${
projectId
}
/
${
userId
}
/
${
recordId
}
`
,
{
status
})
}
/**
...
...
@@ -196,53 +177,51 @@ export function getPaymentList() {
* 获取证书手机验证码
*/
export
function
certSendCode
(
params
)
{
return
httpRequest
.
get
(
'/
certs/v1/prp/send-code'
,
params
,
{
headers
:
{
'Content-Type'
:
'application/json'
}
}
)
return
httpRequest
.
get
(
'/
psp/v1/welfare/send-code'
,
params
)
}
/**
* 获取证书地址
*/
export
function
certSearch
(
params
)
{
return
httpRequest
.
get
(
'/
certs/v1/prp/search'
,
params
,
{
headers
:
{
'Content-Type'
:
'application/json'
}
}
)
return
httpRequest
.
get
(
'/
psp/v1/welfare/get-certificate'
,
params
)
}
/**
* 获取用户名片相关信息
*/
export
function
getCardInfo
()
{
return
httpRequest
.
get
(
'/
certs/v1/prp/card-info'
,
{},
{
headers
:
{
'Content-Type'
:
'application/json'
}
}
)
return
httpRequest
.
get
(
'/
psp/v1/my/info'
)
}
/**
* 获取用户名片下载地址
*/
export
function
getCardUrl
(
params
)
{
return
httpRequest
.
post
(
'/certs/v1/prp/get-card'
,
params
,
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
return
httpRequest
.
get
(
'/psp/v1/welfare/get-card'
,
params
)
}
/**
* 获取入学通知书
*/
export
function
getAdmissionNotice
()
{
return
httpRequest
.
get
(
'/
certs/v1/prp
/get-notice'
)
return
httpRequest
.
get
(
'/
psp/v1/admission
/get-notice'
)
}
/**
* 权益人展示列表
*/
export
function
getAvatarList
(
data
)
{
return
httpRequest
.
get
(
'/
certs/v1/prp
/avatar-list'
,
data
)
return
httpRequest
.
get
(
'/
psp/v1/welfare
/avatar-list'
,
data
)
}
/**
* 权益人详情
*/
export
function
getAvatar
()
{
return
httpRequest
.
get
(
'/
certs/v1/prp/avatar
'
)
return
httpRequest
.
get
(
'/
psp/v1/my/info
'
)
}
/**
* 上传权益人头像
*/
export
function
uploadAvatar
(
data
)
{
return
httpRequest
.
post
(
'/
certs/v1/prp
/avatar'
,
data
)
return
httpRequest
.
post
(
'/
psp/v1/welfare
/avatar'
,
data
)
}
src/pages/card/index.vue
浏览文件 @
68b6ef1a
...
...
@@ -23,7 +23,7 @@
</el-form-item>
</el-form>
<div
class=
"card"
v-if=
"cardUrl"
>
<embed
:src=
"cardUrl"
>
<embed
:src=
"cardUrl"
/
>
</div>
</div>
</
template
>
...
...
@@ -34,7 +34,7 @@ const EMAIL_REG = /^[A-Za-z0-9]+([_.\\-][A-Za-z0-9]+)*@([A-Za-z0-9-]+\.)+[A-Za-z
const
checkEmail
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
)
{
if
(
!
EMAIL_REG
.
test
(
value
))
{
callback
(
new
Error
(
'邮箱格式错误'
))
;
callback
(
new
Error
(
'邮箱格式错误'
))
}
else
{
callback
()
}
...
...
@@ -82,22 +82,23 @@ export default {
this
.
fileDownload
(
this
.
cardUrl
,
this
.
cardUrl
)
},
async
fileDownload
(
fileUrl
,
fileName
)
{
const
elink
=
document
.
createElement
(
'a'
)
// 创建一个a标签
elink
.
download
=
fileName
;
// 设置a标签的下载属性
elink
.
style
.
display
=
'none'
;
// 将a标签设置为隐藏
elink
.
href
=
fileUrl
;
// 把之前处理好的地址赋给a标签的href
document
.
body
.
appendChild
(
elink
)
;
// 将a标签添加到body中
elink
.
click
()
;
// 执行a标签的点击方法
const
elink
=
document
.
createElement
(
'a'
)
// 创建一个a标签
elink
.
download
=
fileName
// 设置a标签的下载属性
elink
.
style
.
display
=
'none'
// 将a标签设置为隐藏
elink
.
href
=
fileUrl
// 把之前处理好的地址赋给a标签的href
document
.
body
.
appendChild
(
elink
)
// 将a标签添加到body中
elink
.
click
()
// 执行a标签的点击方法
// URL.revokeObjectURL(elink.href) // 下载完成释放URL 对象
document
.
body
.
removeChild
(
elink
)
// 移除a标签
document
.
body
.
removeChild
(
elink
)
// 移除a标签
},
fetchCardInfo
()
{
this
.
isLogin
=
true
getCardInfo
().
then
(
res
=>
{
if
(
res
.
code
===
0
&&
res
.
data
&&
res
.
data
.
sso_id
)
{
this
.
form
.
name
=
res
.
data
.
name
this
.
form
.
mobile
=
res
.
data
.
mobile
this
.
form
.
number
=
res
.
data
.
number
if
(
res
.
code
===
0
)
{
const
info
=
res
.
data
.
info
this
.
form
.
name
=
info
.
name
this
.
form
.
mobile
=
info
.
mobile
this
.
form
.
number
=
info
.
certificate_number
}
else
{
this
.
$message
.
error
(
res
.
message
||
'请先登录'
)
}
...
...
@@ -105,15 +106,17 @@ export default {
},
fetchCertSearch
()
{
const
{
email
,
address
}
=
this
.
form
getCardUrl
({
email
,
address
}).
then
(
res
=>
{
if
(
res
.
code
===
0
&&
res
.
name
===
'Bad Request'
)
{
this
.
$message
.
error
(
res
.
message
||
'获取名片失败'
)
}
else
{
this
.
cardUrl
=
res
.
url
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
getCardUrl
({
email
,
address
})
.
then
(
res
=>
{
if
(
res
.
code
===
1
)
{
this
.
$message
.
error
(
res
.
message
||
'获取名片失败'
)
}
else
{
this
.
cardUrl
=
res
.
data
.
url
.
pdf
}
})
.
catch
(
err
=>
{
console
.
log
(
err
)
})
},
async
needLogin
()
{
const
isLogin
=
await
BeforeRouter
.
loginInfo
.
isLogin
()
...
...
@@ -124,23 +127,23 @@ export default {
}
</
script
>
<
style
scoped
>
h5
{
font-size
:
20px
;
line-height
:
80px
;
text-align
:
center
;
h5
{
font-size
:
20px
;
line-height
:
80px
;
text-align
:
center
;
}
.rule-form
{
.rule-form
{
width
:
400px
;
margin
:
0
auto
;
margin
:
0
auto
;
}
.card
{
width
:
1200px
;
height
:
500px
;
margin
:
0
auto
;
.card
{
width
:
1200px
;
height
:
500px
;
margin
:
0
auto
;
padding
:
10px
0
30px
;
}
.card
embed
{
width
:
100%
;
height
:
100%
;
.card
embed
{
width
:
100%
;
height
:
100%
;
}
</
style
>
\ No newline at end of file
</
style
>
src/pages/cert/index.vue
浏览文件 @
68b6ef1a
...
...
@@ -135,16 +135,16 @@ export default {
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
'验证码发送成功'
)
}
else
{
this
.
$message
.
error
(
res
.
m
sg
||
'发送验证码失败'
)
this
.
$message
.
error
(
res
.
m
essage
||
'发送验证码失败'
)
}
})
},
fetchCertSearch
()
{
certSearch
(
this
.
form
).
then
(
res
=>
{
if
(
res
.
code
===
0
&&
res
.
name
===
'Bad Request'
)
{
if
(
res
.
code
===
1
)
{
this
.
$message
.
error
(
res
.
message
||
'获取证书失败'
)
}
else
{
this
.
certUrl
=
res
.
url
this
.
certUrl
=
res
.
data
.
url
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
...
...
src/pages/personal/admissionNotice.vue
浏览文件 @
68b6ef1a
...
...
@@ -20,7 +20,7 @@ export default {
getAdmissionNotice
()
{
getAdmissionNotice
()
.
then
(
res
=>
{
this
.
url
=
res
.
url
this
.
url
=
res
.
data
.
url
})
.
catch
(
error
=>
{
this
.
$message
.
error
(
error
.
message
)
...
...
src/pages/showcase/index.vue
浏览文件 @
68b6ef1a
...
...
@@ -59,9 +59,9 @@ export default {
},
infiniteHandler
(
$state
)
{
getAvatarList
({
page
:
this
.
page
,
page_size
:
18
}).
then
(
response
=>
{
if
(
response
.
list
.
length
)
{
if
(
response
.
data
.
list
.
length
)
{
this
.
page
+=
1
this
.
list
=
this
.
list
.
concat
(
response
.
list
)
this
.
list
=
this
.
list
.
concat
(
response
.
data
.
list
)
$state
.
loaded
()
}
else
{
$state
.
complete
()
...
...
src/pages/showcase/uploadAvatar.vue
浏览文件 @
68b6ef1a
...
...
@@ -8,7 +8,7 @@
{{
form
.
mobile
}}
</el-form-item>
<el-form-item
label=
"证书编号"
>
{{
form
.
number
}}
{{
form
.
certificate_
number
}}
</el-form-item>
<el-form-item
prop=
"avatar"
label=
"头像"
>
<upload-image
v-model=
"form.avatar"
></upload-image>
...
...
@@ -49,7 +49,7 @@ export default {
}
else
if
(
res
.
status
===
403
)
{
this
.
$router
.
push
({
query
:
{
needLogin
:
Date
.
now
()
}
})
}
else
{
this
.
form
=
res
.
dat
e
this
.
form
=
res
.
dat
a
.
info
}
})
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论