Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
member
Overview
Overview
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
member
member
Commits
a387bf2e
Commit
a387bf2e
authored
May 11, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 会员通
parent
8eb094bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
22 deletions
+50
-22
customerDetail.vue
src/components/allCustomers/customerDetail.vue
+46
-22
info.js
src/components/allCustomers/info.js
+4
-0
No files found.
src/components/allCustomers/customerDetail.vue
View file @
a387bf2e
...
...
@@ -51,7 +51,7 @@
<el-tag
type=
"success"
v-if=
"member.customerType"
class=
"tag"
>
{{
member
.
customerType
|
customerTypeFilter
}}
</el-tag>
<div
class=
"channel-box"
v-for=
"channel in
(member.memberSources || []).filter(el => el.highlight == 1 || el.highlight == 2)
"
:key=
"channel.parentSourceCode"
>
<div
class=
"channel-box"
v-for=
"channel in
member.memberSources
"
:key=
"channel.parentSourceCode"
>
<el-popover
popper-class=
"channel-info-popover"
v-if=
"channel.highlight == 1"
trigger=
"hover"
placement=
"top"
>
<div
class=
"channel-info"
>
<div
class=
"channel-title"
>
{{
channel
.
sourceName
}}
</div>
...
...
@@ -72,27 +72,51 @@
<img
class=
"channel-icon"
v-if=
"channel.parentSourceCode == 1302"
src=
"../../../static/img/channel-icon/tianmao-1.png"
alt=
""
>
</
template
>
</el-popover>
<el-popover
popper-class=
"channel-info-popover"
v-if=
"channel.highlight == 2 && (channel.parentSourceCode == 1100 || channel.parentSourceCode == 1302 || channel.parentSourceCode == 1700)"
trigger=
"hover"
placement=
"top"
>
<div
class=
"channel-info"
>
<div
class=
"channel-title"
>
{{ channel.sourceName }}
<span
class=
"channel-title-tip"
>
{{ channel.parentSourceCode == 1100 ? '(已取关)' : '(好友关系已解除)' }}
</span>
</div>
<div
class=
"channel-info-item"
>
<span
class=
"channel-info-label"
>
{{ channel.parentSourceCode == 1100 ? '取关时间:' : '解除时间:' }}
</span>
<span
class=
"channel-info-value"
>
{{ channel.lastUnEffectiveTime }}
</span>
</div>
</div>
<
template
slot=
"reference"
>
<img
class=
"channel-icon"
v-if=
"channel.parentSourceCode == 1100"
src=
"../../../static/img/channel-icon/weixin-2.png"
alt=
""
>
<img
class=
"channel-icon"
v-if=
"channel.parentSourceCode == 1700"
src=
"../../../static/img/channel-icon/qiyeweixin-2.png"
alt=
""
>
<img
class=
"channel-icon"
v-if=
"channel.parentSourceCode == 1302"
src=
"../../../static/img/channel-icon/tianmao-2.png"
alt=
""
>
</
template
>
</el-popover>
<img
class=
"channel-icon"
v-if=
"channel.highlight == 2 && channel.parentSourceCode == 1600"
src=
"../../../static/img/channel-icon/xiaochengxu-2.png"
alt=
""
>
<img
class=
"channel-icon"
v-if=
"channel.highlight == 2 && channel.parentSourceCode == 1303"
src=
"../../../static/img/channel-icon/weimen-2.png"
alt=
""
>
<
template
v-if=
"channel.highlight == 2"
>
<el-popover
popper-class=
"channel-info-popover"
v-if=
"[1100, 1302, 1700].some(code => code == channel.parentSourceCode)"
trigger=
"hover"
placement=
"top"
>
<template
v-if=
"channel.parentSourceCode == 1100"
>
<div
class=
"channel-info"
>
<div
class=
"channel-title"
>
{{
channel
.
sourceName
}}
<span
class=
"channel-title-tip"
>
(已取关)
</span>
</div>
<div
class=
"channel-info-item"
>
<span
class=
"channel-info-label"
>
取关时间:
</span>
<span
class=
"channel-info-value"
>
{{
channel
.
lastUnEffectiveTime
}}
</span>
</div>
</div>
<img
slot=
"reference"
class=
"channel-icon"
src=
"../../../static/img/channel-icon/weixin-2.png"
alt=
""
>
</
template
>
<
template
v-if=
"channel.parentSourceCode == 1700"
>
<div
class=
"channel-info"
>
<div
class=
"channel-title"
>
{{
channel
.
sourceName
}}
<span
class=
"channel-title-tip"
>
(好友关系已解除)
</span>
</div>
<div
class=
"channel-info-item"
>
<span
class=
"channel-info-label"
>
解除时间:
</span>
<span
class=
"channel-info-value"
>
{{
channel
.
lastUnEffectiveTime
}}
</span>
</div>
</div>
<img
slot=
"reference"
class=
"channel-icon"
src=
"../../../static/img/channel-icon/qiyeweixin-2.png"
alt=
""
>
</
template
>
<
template
v-if=
"channel.parentSourceCode == 1302"
>
<div
class=
"channel-info"
>
<div
class=
"channel-title"
>
{{
channel
.
sourceName
}}
<span
class=
"channel-title-tip"
>
(已解绑)
</span>
</div>
<div
class=
"channel-info-item"
>
<span
class=
"channel-info-label"
>
解绑时间:
</span>
<span
class=
"channel-info-value"
>
{{
channel
.
lastUnEffectiveTime
}}
</span>
</div>
</div>
<img
slot=
"reference"
class=
"channel-icon"
src=
"../../../static/img/channel-icon/tianmao-2.png"
alt=
""
>
</
template
>
</el-popover>
<img
class=
"channel-icon"
v-if=
"channel.parentSourceCode == 1600"
src=
"../../../static/img/channel-icon/xiaochengxu-2.png"
alt=
""
>
<img
class=
"channel-icon"
v-if=
"channel.parentSourceCode == 1303"
src=
"../../../static/img/channel-icon/weimen-2.png"
alt=
""
>
</template>
</div>
</el-descriptions-item>
<el-descriptions-item
label=
"性别"
>
...
...
src/components/allCustomers/info.js
View file @
a387bf2e
...
...
@@ -282,6 +282,10 @@ export default {
const
ret
=
res
.
data
.
result
;
if
(
api
===
'memberLoadBaseDetail'
)
{
this
.
member
=
Object
.
assign
({},
ret
.
member
);
if
(
!
Array
.
isArray
(
this
.
member
.
memberSources
))
{
this
.
member
.
memberSources
=
[];
}
this
.
member
.
memberSources
=
this
.
member
.
memberSources
.
filter
(
el
=>
el
.
highlight
==
1
||
el
.
highlight
==
2
);
const
extendInfo
=
{
babyConfigTemplate
:
ret
.
extendInfo
.
babyConfigTemplate
||
{},
fieldList
:
ret
.
extendInfo
.
fieldList
||
[],
...
...
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