Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-psp-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-psp-show-h5
Commits
31feb6e2
提交
31feb6e2
authored
4月 20, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
08f3f29a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
6 行增加
和
9 行删除
+6
-9
api.ts
src/modules/query/api.ts
+3
-3
BusinessCardQuery.vue
src/modules/query/components/BusinessCardQuery.vue
+1
-1
CertificateQuery.vue
src/modules/query/components/CertificateQuery.vue
+2
-5
没有找到文件。
src/modules/query/api.ts
浏览文件 @
31feb6e2
import
httpRequest
from
'@/utils/axios'
import
httpRequest
from
'@/utils/axios'
// 查询名片
// 查询名片
export
function
getBussinessCard
(
params
:
unknown
)
{
export
function
getBussinessCard
(
params
:
{
email
:
string
;
address
:
string
}
)
{
return
httpRequest
.
get
(
'/api/psp/v1/welfare/get-card'
,{
params
})
return
httpRequest
.
get
(
'/api/psp/v1/welfare/get-card'
,{
params
})
}
}
// 获取验证码
// 获取验证码
export
function
getPhoneCode
(
params
:
unknown
)
{
export
function
getPhoneCode
(
params
:
{
phone
:
string
;}
)
{
return
httpRequest
.
get
(
'/api/psp/v1/welfare/send-code'
,{
params
})
return
httpRequest
.
get
(
'/api/psp/v1/welfare/send-code'
,{
params
})
}
}
// 查询证书
// 查询证书
export
function
getCertificate
(
params
:
unknown
)
{
export
function
getCertificate
(
params
:
{
phone
:
string
;
code
:
string
}
)
{
return
httpRequest
.
get
(
'/api/psp/v1/welfare/get-certificate'
,{
params
})
return
httpRequest
.
get
(
'/api/psp/v1/welfare/get-certificate'
,{
params
})
}
}
// 持证人权益-持证人列表
// 持证人权益-持证人列表
...
...
src/modules/query/components/BusinessCardQuery.vue
浏览文件 @
31feb6e2
...
@@ -30,7 +30,7 @@ function getUserInfo() {
...
@@ -30,7 +30,7 @@ function getUserInfo() {
}
}
// 查询名片
// 查询名片
function
handleSubmit
()
{
function
handleSubmit
()
{
const
params
:
unknown
=
{
const
params
=
{
email
:
FormInfo
.
email
,
email
:
FormInfo
.
email
,
address
:
FormInfo
.
address
address
:
FormInfo
.
address
}
}
...
...
src/modules/query/components/CertificateQuery.vue
浏览文件 @
31feb6e2
...
@@ -14,18 +14,16 @@ const time = ref(60)
...
@@ -14,18 +14,16 @@ const time = ref(60)
const
isDisposed
=
ref
(
false
)
const
isDisposed
=
ref
(
false
)
const
isShowForm
=
ref
(
false
)
const
isShowForm
=
ref
(
false
)
function
getCode
()
{
function
getCode
()
{
console
.
log
(
'00000'
,
FormInfo
.
phone
)
if
(
FormInfo
.
phone
===
''
)
{
if
(
FormInfo
.
phone
===
''
)
{
Toast
(
'请输入手机号'
)
Toast
(
'请输入手机号'
)
return
return
}
}
const
params
:
unknown
=
{
const
params
=
{
phone
:
FormInfo
.
phone
phone
:
FormInfo
.
phone
}
}
api
.
getPhoneCode
(
params
).
then
(
res
=>
{
api
.
getPhoneCode
(
params
).
then
(
res
=>
{
console
.
log
(
'获取验证码结果'
,
res
)
console
.
log
(
'获取验证码结果'
,
res
)
console
.
log
(
'验证码发送成功!'
)
isDisposed
.
value
=
true
isDisposed
.
value
=
true
handleTimeChange
()
handleTimeChange
()
})
})
...
@@ -44,13 +42,12 @@ const handleTimeChange = () => {
...
@@ -44,13 +42,12 @@ const handleTimeChange = () => {
}
}
// 查询名片
// 查询名片
function
handleQuery
()
{
function
handleQuery
()
{
const
params
:
unknown
=
{
const
params
=
{
phone
:
FormInfo
.
phone
,
phone
:
FormInfo
.
phone
,
code
:
FormInfo
.
code
code
:
FormInfo
.
code
}
}
api
.
getCertificate
(
params
).
then
(
res
=>
{
api
.
getCertificate
(
params
).
then
(
res
=>
{
url
.
value
=
res
.
data
.
url
url
.
value
=
res
.
data
.
url
console
.
log
(
res
.
data
.
url
,
'res.data.url'
)
FormInfo
.
phone
=
''
FormInfo
.
phone
=
''
FormInfo
.
code
=
''
FormInfo
.
code
=
''
isDisposed
.
value
=
false
isDisposed
.
value
=
false
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论