提交 e0d2b073 authored 作者: matian's avatar matian

updates

上级 7e514250
import httpRequest from '@/utils/axios'
// 查询名片
export function getBussinessCard(params: {email: string;address: string}) {
export function getBusinessCard(params: {email: string;address: string}) {
return httpRequest.get('/api/psp/v1/welfare/get-card',{params})
}
// 获取验证码
......
......@@ -34,7 +34,7 @@ function handleSubmit() {
email: FormInfo.email,
address: FormInfo.address
}
api.getBussinessCard(params).then(res => {
api.getBusinessCard(params).then(res => {
console.log(res, '0000')
imgUrl1.value = res.data.url.jpg1
imgUrl2.value = res.data.url.jpg2
......
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import BusinessBusinessCardQuery 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 router = useRouter()
const route = useRoute()
onMounted(() => {
if (router.currentRoute.value.query.active === '0') {
if (route.query.active === '0') {
active.value = 0
} else if (router.currentRoute.value.query.active === '1') {
} else if (route.query.active === '1') {
active.value = 1
} else if (router.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="名片查询&nbsp;&nbsp;&nbsp;|"><BusinessBusinessCardQuery /> </van-tab>
<van-tab title="名片查询&nbsp;&nbsp;&nbsp;|"><BusinessCardQuery /> </van-tab>
<van-tab title="证书查询&nbsp;&nbsp;&nbsp;|"> <CertificateQuery /></van-tab>
<van-tab title="&nbsp;持证人查看"><LicenseeView /> </van-tab>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论