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
cca229c5
提交
cca229c5
authored
4月 19, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
名片查询图片修改
上级
e82c47fc
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
23 行增加
和
14 行删除
+23
-14
BusinessCardQuery.vue
src/modules/query/components/BusinessCardQuery.vue
+23
-14
没有找到文件。
src/modules/query/components/BusinessCardQuery.vue
浏览文件 @
cca229c5
...
@@ -18,7 +18,8 @@ onMounted(() => {
...
@@ -18,7 +18,8 @@ onMounted(() => {
getUserInfo
()
getUserInfo
()
})
})
// 名片图片
// 名片图片
const
imgUrl
=
ref
(
''
)
const
imgUrl1
=
ref
(
''
)
const
imgUrl2
=
ref
(
''
)
// 获取用户信息
// 获取用户信息
function
getUserInfo
()
{
function
getUserInfo
()
{
api
.
getUserInfo
().
then
(
res
=>
{
api
.
getUserInfo
().
then
(
res
=>
{
...
@@ -35,14 +36,15 @@ function handleSubmit() {
...
@@ -35,14 +36,15 @@ 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
imgUrl1
.
value
=
res
.
data
.
url
.
jpg1
imgUrl2
.
value
=
res
.
data
.
url
.
jpg2
})
})
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"main_content"
>
<div
class=
"main_content"
>
<van-form
v-if=
"imgUrl === ''"
>
<van-form
v-if=
"imgUrl
1
=== ''"
>
<van-cell-group
inset
>
<van-cell-group
inset
>
<van-field
<van-field
v-model=
"userInfo.name"
v-model=
"userInfo.name"
...
@@ -98,9 +100,11 @@ function handleSubmit() {
...
@@ -98,9 +100,11 @@ function handleSubmit() {
</van-form>
</van-form>
<div
v-else
>
<div
v-else
>
<div
class=
"main_content_card"
>
<div
class=
"main_content_card"
>
<img
:src=
"imgUrl"
alt=
""
/>
<!--
<div
class=
"img"
>
{{
imgUrl
}}
</div>
-->
<img
:src=
"imgUrl1"
alt=
""
/>
<img
:src=
"imgUrl2"
alt=
""
class=
"imgUrl2"
/>
</div>
</div>
<
div
class=
"main_content_bottom"
></div
>
<
!--
<div
class=
"main_content_bottom"
></div>
--
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -111,20 +115,25 @@ function handleSubmit() {
...
@@ -111,20 +115,25 @@ function handleSubmit() {
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
;
background-color
:
red
;
background
:
#ffffff
;
// background-color: red;
img
{
img
{
width
:
100%
;
width
:
100%
;
display
:
block
;
display
:
block
;
}
}
.imgUrl2
{
margin-top
:
0
.66rem
;
}
}
}
.main_content_bottom
{
//
.main_content_bottom {
width
:
100%
;
//
width: 100%;
height
:
3
.28rem
;
//
height: 3.28rem;
display
:
block
;
//
display: block;
margin-top
:
0
.66rem
;
//
margin-top: 0.66rem;
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%;
}
//
}
}
}
::v-deep
.van-button
{
::v-deep
.van-button
{
font-size
:
0
.28rem
;
font-size
:
0
.28rem
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论