提交 31feb6e2 authored 作者: matian's avatar matian

updates

上级 08f3f29a
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})
}
// 获取验证码
export function getPhoneCode(params: unknown) {
export function getPhoneCode(params: {phone:string;}) {
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})
}
// 持证人权益-持证人列表
......
......@@ -30,7 +30,7 @@ function getUserInfo() {
}
// 查询名片
function handleSubmit() {
const params: unknown = {
const params = {
email: FormInfo.email,
address: FormInfo.address
}
......
......@@ -14,18 +14,16 @@ const time = ref(60)
const isDisposed = ref(false)
const isShowForm = ref(false)
function getCode() {
console.log('00000', FormInfo.phone)
if (FormInfo.phone === '') {
Toast('请输入手机号')
return
}
const params: unknown = {
const params = {
phone: FormInfo.phone
}
api.getPhoneCode(params).then(res => {
console.log('获取验证码结果', res)
console.log('验证码发送成功!')
isDisposed.value = true
handleTimeChange()
})
......@@ -44,13 +42,12 @@ const handleTimeChange = () => {
}
// 查询名片
function handleQuery() {
const params: unknown = {
const params = {
phone: FormInfo.phone,
code: FormInfo.code
}
api.getCertificate(params).then(res => {
url.value = res.data.url
console.log(res.data.url, 'res.data.url')
FormInfo.phone = ''
FormInfo.code = ''
isDisposed.value = false
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论