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
e0d2b073
提交
e0d2b073
authored
4月 21, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
7e514250
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
9 行删除
+9
-9
api.ts
src/modules/query/api.ts
+1
-1
BusinessCardQuery.vue
src/modules/query/components/BusinessCardQuery.vue
+1
-1
Index.vue
src/modules/query/views/Index.vue
+7
-7
没有找到文件。
src/modules/query/api.ts
浏览文件 @
e0d2b073
import
httpRequest
from
'@/utils/axios'
// 查询名片
export
function
getBus
s
inessCard
(
params
:
{
email
:
string
;
address
:
string
})
{
export
function
getBusinessCard
(
params
:
{
email
:
string
;
address
:
string
})
{
return
httpRequest
.
get
(
'/api/psp/v1/welfare/get-card'
,{
params
})
}
// 获取验证码
...
...
src/modules/query/components/BusinessCardQuery.vue
浏览文件 @
e0d2b073
...
...
@@ -34,7 +34,7 @@ function handleSubmit() {
email
:
FormInfo
.
email
,
address
:
FormInfo
.
address
}
api
.
getBus
s
inessCard
(
params
).
then
(
res
=>
{
api
.
getBusinessCard
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'0000'
)
imgUrl1
.
value
=
res
.
data
.
url
.
jpg1
imgUrl2
.
value
=
res
.
data
.
url
.
jpg2
...
...
src/modules/query/views/Index.vue
浏览文件 @
e0d2b073
<
script
setup
lang=
"ts"
>
import
{
ref
,
onMounted
}
from
'vue'
import
{
useRoute
r
}
from
'vue-router'
import
Business
Business
CardQuery
from
'../components/BusinessCardQuery.vue'
import
{
useRoute
}
from
'vue-router'
import
BusinessCardQuery
from
'../components/BusinessCardQuery.vue'
import
CertificateQuery
from
'../components/CertificateQuery.vue'
import
LicenseeView
from
'../components/LicenseeView.vue'
const
active
=
ref
<
number
>
(
0
)
const
route
r
=
useRouter
()
const
route
=
useRoute
()
onMounted
(()
=>
{
if
(
route
r
.
currentRoute
.
value
.
query
.
active
===
'0'
)
{
if
(
route
.
query
.
active
===
'0'
)
{
active
.
value
=
0
}
else
if
(
route
r
.
currentRoute
.
value
.
query
.
active
===
'1'
)
{
}
else
if
(
route
.
query
.
active
===
'1'
)
{
active
.
value
=
1
}
else
if
(
route
r
.
currentRoute
.
value
.
query
.
active
===
'2'
)
{
}
else
if
(
route
.
query
.
active
===
'2'
)
{
active
.
value
=
2
}
})
...
...
@@ -29,7 +29,7 @@ onMounted(() => {
title-inactive-color=
"#4E4E4E"
line-height=
"0"
>
<van-tab
title=
"名片查询 |"
><Business
Business
CardQuery
/>
</van-tab>
<van-tab
title=
"名片查询 |"
><BusinessCardQuery
/>
</van-tab>
<van-tab
title=
"证书查询 |"
>
<CertificateQuery
/></van-tab>
<van-tab
title=
" 持证人查看"
><LicenseeView
/>
</van-tab>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论