Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-frontend
liyeyun
Commits
d6333b27
Commit
d6333b27
authored
Dec 13, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 详情页,暂无对接人修改
parent
9bfdfdda
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
ContactInfo.vue
src/components/detail/ContactInfo.vue
+20
-8
No files found.
src/components/detail/ContactInfo.vue
View file @
d6333b27
<!-- 联系人信息 -->
<
template
>
<div
class=
"flex h-[95px] flex-col"
>
<div
v-if=
"personName"
class=
"flex h-[100px] flex-none items-center justify-between bg-[#FAFAFC] px-10"
>
<div
class=
"flex h-[100px] flex-none items-center justify-between bg-[#FAFAFC] px-10"
>
<div
class=
"flex items-center space-x-4"
>
<div
class=
"flex items-center justify-center"
>
<div
class=
"flex h-[60px] w-[60px] items-center justify-center rounded bg-[#cccccc] font-yahei text-lg leading-5 text-white"
>
{{
personName
?.[
0
]
}}
{{
noPerson
?
'空'
:
personName
?.[
0
]
}}
</div>
</div>
<div>
<div
class=
"text-center font-yahei text-sm font-bold text-[#1A1A1A]"
>
{{
personName
}}
{{
personName
||
'暂无对接人'
}}
</div>
<div
class=
"mt-[5px] rounded-sm text-sm text-[#4F4F4F]"
>
园区对接人
</div>
</div>
...
...
@@ -23,9 +20,10 @@
<div>
<div
class=
"flex h-[44px] w-[128px] cursor-pointer items-center justify-center rounded-[4px] bg-[#C0322B] px-[23px] text-base leading-[22px] text-white"
:class=
"
{ 'cursor-not-allowed opacity-[.45]': noPerson }"
@click="handleContact"
>
{{
isShowPhone
&&
phone
?
phone
:
'立即沟通'
}}
{{
btnContent
}}
</div>
</div>
</div>
...
...
@@ -85,6 +83,20 @@ const isLogin = computed(() => {
return
appStore
.
isLogin
;
});
const
noPerson
=
computed
(()
=>
{
return
!
props
.
personName
;
});
const
btnContent
=
computed
(()
=>
{
if
(
isShowPhone
.
value
&&
phone
.
value
)
{
return
phone
.
value
;
}
else
if
(
noPerson
.
value
)
{
return
'暂无对接人'
;
}
else
{
return
'立即沟通'
;
}
});
const
changeShowPhone
=
(
b
:
boolean
)
=>
{
isShowPhone
.
value
=
b
;
};
...
...
@@ -109,7 +121,7 @@ const handlePhone = async () => {
};
const
handleContact
=
()
=>
{
if
(
!
phone
.
value
)
{
if
(
!
phone
.
value
&&
!
noPerson
.
value
)
{
if
(
isLogin
.
value
)
{
handlePhone
();
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment