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
36bfee90
提交
36bfee90
authored
4月 18, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
权益查看开发
上级
bc137dec
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
30 行增加
和
21 行删除
+30
-21
Menu.vue
src/modules/home/components/Menu.vue
+1
-1
BusinessCardQuery.vue
src/modules/query/components/BusinessCardQuery.vue
+19
-8
CertificateQuery.vue
src/modules/query/components/CertificateQuery.vue
+6
-10
axios.ts
src/utils/axios.ts
+4
-2
没有找到文件。
src/modules/home/components/Menu.vue
浏览文件 @
36bfee90
...
@@ -18,7 +18,7 @@ const menus: Array<{
...
@@ -18,7 +18,7 @@ const menus: Array<{
icon
:
'https://webapp-pub.ezijing.com/project/prp-h5/home_menu_2.png'
icon
:
'https://webapp-pub.ezijing.com/project/prp-h5/home_menu_2.png'
},
},
{
{
path
:
'
#
query'
,
path
:
'query'
,
name
:
'权益查看'
,
name
:
'权益查看'
,
icon
:
'https://webapp-pub.ezijing.com/project/prp-h5/home_menu_3.png'
icon
:
'https://webapp-pub.ezijing.com/project/prp-h5/home_menu_3.png'
},
},
...
...
src/modules/query/components/BusinessCardQuery.vue
浏览文件 @
36bfee90
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
*
as
api
from
'../api'
import
*
as
api
from
'../api'
import
{
reactive
,
onMounted
}
from
'vue'
import
{
reactive
,
ref
,
onMounted
}
from
'vue'
// 表单数据
const
FormInfo
=
reactive
({
const
FormInfo
=
reactive
({
email
:
''
,
email
:
''
,
address
:
''
address
:
''
})
})
// 个人信息
const
userInfo
=
reactive
({
const
userInfo
=
reactive
({
name
:
''
,
name
:
''
,
mobile
:
''
,
mobile
:
''
,
certificate_number
:
''
certificate_number
:
''
})
})
onMounted
(()
=>
{
onMounted
(()
=>
{
// 获取用户个人信息
getUserInfo
()
getUserInfo
()
})
})
// 名片图片
const
imgUrl
=
ref
(
''
)
// 获取用户信息
// 获取用户信息
function
getUserInfo
()
{
function
getUserInfo
()
{
api
.
getUserInfo
().
then
(
res
=>
{
api
.
getUserInfo
().
then
(
res
=>
{
...
@@ -30,13 +35,14 @@ function handleSubmit() {
...
@@ -30,13 +35,14 @@ function handleSubmit() {
}
}
api
.
getBussinessCard
(
params
).
then
(
res
=>
{
api
.
getBussinessCard
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'0000'
)
console
.
log
(
res
,
'0000'
)
imgUrl
.
value
=
res
.
data
.
url
})
})
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"main_content"
>
<div
class=
"main_content"
>
<van-form>
<van-form
v-if=
"imgUrl === ''"
>
<van-cell-group
inset
>
<van-cell-group
inset
>
<van-field
<van-field
v-model=
"userInfo.name"
v-model=
"userInfo.name"
...
@@ -90,27 +96,32 @@ function handleSubmit() {
...
@@ -90,27 +96,32 @@ function handleSubmit() {
</van-button>
</van-button>
</div>
</div>
</van-form>
</van-form>
<template>
<div
v-else
>
<div
class=
"main_content_card"
></div>
<div
class=
"main_content_card"
>
<img
:src=
"imgUrl"
alt=
""
/>
</div>
<div
class=
"main_content_bottom"
></div>
<div
class=
"main_content_bottom"
></div>
</
template
>
</
div
>
</div>
</div>
</
template
>
</
template
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.main_content
{
.main_content
{
height
:
8
.02rem
;
padding
:
0
.23rem
0
.3rem
0
0
.3rem
;
padding
:
0
.23rem
0
.3rem
0
0
.3rem
;
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
0
.2rem
;
border-radius
:
0
.2rem
;
.main_content_card
{
.main_content_card
{
margin
:
0
.83rem
0
.38rem
0
0
.34rem
;
margin
:
0
.83rem
0
.38rem
0
0
.34rem
;
height
:
3
.22rem
;
background-color
:
red
;
background-color
:
red
;
img
{
width
:
100%
;
display
:
block
;
}
}
}
.main_content_bottom
{
.main_content_bottom
{
width
:
100%
;
height
:
3
.28rem
;
height
:
3
.28rem
;
display
:
block
;
margin-top
:
0
.66rem
;
margin-top
:
0
.66rem
;
// background-color: red;
background
:
url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/prp_h5/card_img.png)
no-repeat
;
background
:
url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/prp_h5/card_img.png)
no-repeat
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
}
}
...
...
src/modules/query/components/CertificateQuery.vue
浏览文件 @
36bfee90
...
@@ -16,9 +16,7 @@ const isShowForm = ref(false)
...
@@ -16,9 +16,7 @@ const isShowForm = ref(false)
function
getCode
()
{
function
getCode
()
{
console
.
log
(
'00000'
,
FormInfo
.
phone
)
console
.
log
(
'00000'
,
FormInfo
.
phone
)
if
(
FormInfo
.
phone
===
''
)
{
if
(
FormInfo
.
phone
===
''
)
{
console
.
log
(
'1111'
)
Toast
(
'请输入手机号'
)
Toast
(
'请输入手机号'
)
console
.
log
(
'2222'
)
return
return
}
}
...
@@ -53,6 +51,9 @@ function handleQuery() {
...
@@ -53,6 +51,9 @@ function handleQuery() {
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'
)
console
.
log
(
res
.
data
.
url
,
'res.data.url'
)
FormInfo
.
phone
=
''
FormInfo
.
code
=
''
isDisposed
.
value
=
false
})
})
}
}
// 他人代查
// 他人代查
...
@@ -72,13 +73,6 @@ function handleOther() {
...
@@ -72,13 +73,6 @@ function handleOther() {
placeholder=
"请输入手机号"
placeholder=
"请输入手机号"
:rules=
"[
{ required: true, message: '请输入手机号' }]"
:rules=
"[
{ required: true, message: '请输入手机号' }]"
/>
/>
<!--
<van-field
v-model=
"FormInfo.code"
name=
"验证码"
label=
"验证码"
placeholder=
"请输入验证码"
/>
-->
<van-field
<van-field
v-model=
"FormInfo.code"
v-model=
"FormInfo.code"
:center=
"true"
:center=
"true"
...
@@ -110,7 +104,7 @@ function handleOther() {
...
@@ -110,7 +104,7 @@ function handleOther() {
@
click
=
"handleQuery"
@
click
=
"handleQuery"
:
disabled
=
"FormInfo.code === '' || FormInfo.code === ''"
:
disabled
=
"FormInfo.code === '' || FormInfo.code === ''"
>
>
确认信息正确,查询名片
查询证书
<
/van-button
>
<
/van-button
>
<
/div
>
<
/div
>
<
/van-form
>
<
/van-form
>
...
@@ -133,6 +127,8 @@ function handleOther() {
...
@@ -133,6 +127,8 @@ function handleOther() {
background
-
color
:
rgb
(
3
,
57
,
116
);
background
-
color
:
rgb
(
3
,
57
,
116
);
}
}
.
main_content_card
{
.
main_content_card
{
padding
:
0
0.3
rem
0
0.3
rem
;
.
main_content_card_img
{
.
main_content_card_img
{
width
:
100
%
;
width
:
100
%
;
display
:
block
;
display
:
block
;
...
...
src/utils/axios.ts
浏览文件 @
36bfee90
import
axios
from
'axios'
import
axios
from
'axios'
import
qs
from
'qs'
import
qs
from
'qs'
import
{
Toast
}
from
'vant'
const
httpRequest
=
axios
.
create
({
const
httpRequest
=
axios
.
create
({
baseURL
:
'https://project-api.ezijing.com'
,
//
baseURL: 'https://project-api.ezijing.com',
timeout
:
60000
,
timeout
:
60000
,
withCredentials
:
true
,
withCredentials
:
true
,
headers
:
{
headers
:
{
...
@@ -39,7 +40,8 @@ httpRequest.interceptors.response.use(
...
@@ -39,7 +40,8 @@ httpRequest.interceptors.response.use(
return
Promise
.
reject
(
data
)
return
Promise
.
reject
(
data
)
}
}
if
(
data
.
code
===
1
)
{
if
(
data
.
code
===
1
)
{
return
Promise
.
reject
(
data
)
Toast
.
fail
(
data
.
message
)
// return Promise.reject(data)
}
}
return
data
return
data
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论