Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 49bd3dfa
authored
Sep 13, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
内容中心外链和预览优化
1 parent
f6d45a2a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
69 deletions
vue3-lw-pc/src/components/ContentCenter/PreviewInPhone.vue
vue3-lw-pc/src/views/contentCenter/components/MaPage.vue
vue3-lw-pc/src/views/contentCenter/trackMaterial/index.vue
vue3-lw-pc/src/components/ContentCenter/PreviewInPhone.vue
View file @
49bd3df
...
@@ -6,10 +6,7 @@
...
@@ -6,10 +6,7 @@
<div
class=
"avatar222"
><img
src=
"../../assets/drainageCode/header.png"
/></div>
<div
class=
"avatar222"
><img
src=
"../../assets/drainageCode/header.png"
/></div>
<div
class=
"msg"
>
<div
class=
"msg"
>
<div
class=
"word"
>
<div
class=
"word"
>
<p
<p
style=
"line-height: 18px"
v-html=
"templateInfo?.replace(/\n|\r\n/g, '
<br>
').replace(/ /g, '
&
nbsp')">
</p>
style=
"line-height: 18px"
v-html=
"templateInfo?.replace(/\n|\r\n/g, '
<br>
').replace(/ /g, '
&
nbsp')"
>
</p>
<div
v-if=
"liveUrl"
style=
"margin-top: 10px"
>
<div
v-if=
"liveUrl"
style=
"margin-top: 10px"
>
<p>
直播链接:
</p>
<p>
直播链接:
</p>
{{
liveUrl
}}
{{
liveUrl
}}
...
@@ -19,50 +16,46 @@
...
@@ -19,50 +16,46 @@
</div>
</div>
<div
class=
"item"
v-for=
"(data, key) in list"
:key=
"key"
>
<div
class=
"item"
v-for=
"(data, key) in list"
:key=
"key"
>
<div
class=
"avatar222"
><img
src=
"../../assets/drainageCode/header.png"
/></div>
<div
class=
"avatar222"
><img
src=
"../../assets/drainageCode/header.png"
/></div>
<div
class=
"msg"
v-if=
"data.mediaType === '4'"
>
<div
class=
"msg"
>
<div
class=
"word"
>
<!-- 文本 -->
<div
class=
"word"
v-if=
"data.mediaType === '4'"
>
<p
style=
"white-space: pre-line"
>
{{
data
.
content
}}
</p>
<p
style=
"white-space: pre-line"
>
{{
data
.
content
}}
</p>
</div>
</div>
</div>
<!-- 图片 -->
<div
class=
"msg"
v-if=
"data.mediaType === '0'"
>
<div
class=
"image"
v-else-if=
"data.mediaType === '0'"
>
<div
class=
"image"
>
<img
:src=
"data.materialUrl"
/>
<img
:src=
"data.materialUrl"
/>
</div>
</div>
</div>
<!-- 图文 -->
<div
class=
"msg"
v-if=
"['9'].includes(data.mediaType)"
>
<div
class=
"word-and-image"
v-else-if=
"['9'].includes(data.mediaType)"
>
<div
class=
"word-and-image"
>
<div
class=
"title"
v-if=
"data.materialName"
>
<div>
{{
data
.
materialName
}}
{{
data
.
materialName
}}
</div>
</div>
<div
class=
"sub-content"
>
<div
class=
"sub-content"
>
<div>
<div
v-if=
"data.content"
>
{{
data
.
content
}}
{{
data
.
content
}}
</div>
</div>
<div>
<div
class=
"img-icon"
>
<img
:src=
"data.coverUrl"
v-if=
"data.coverUrl && data.coverUrl != ''"
/>
<img
:src=
"data.coverUrl"
v-if=
"data.coverUrl && data.coverUrl != ''"
/>
<svg-icon
class=
"icon-style"
icon=
"imgText"
v-else
></svg-icon>
<svg-icon
class=
"icon-style"
icon=
"imgText"
v-else
></svg-icon>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 外链 -->
<div
class=
"msg"
v-if=
"['19'].includes(data.mediaType)"
>
<div
class=
"word-and-image"
v-else-if=
"['19'].includes(data.mediaType)"
>
<div
class=
"word-and-image"
>
<div
class=
"title"
v-if=
"data.materialName"
>
<div>
{{
data
.
materialName
}}
{{
data
.
materialName
}}
</div>
</div>
<div
class=
"sub-content"
>
<div
class=
"sub-content"
>
<div>
<div
v-if=
"data.content"
>
{{
data
.
content
}}
{{
data
.
content
}}
</div>
</div>
<div>
<div
class=
"img-icon"
>
<img
:src=
"data.coverUrl"
v-if=
"data.coverUrl && data.coverUrl != ''"
/>
<img
:src=
"data.coverUrl"
v-if=
"data.coverUrl && data.coverUrl != ''"
/>
<svg-icon
class=
"icon-style"
icon=
"outLine"
v-else
></svg-icon>
<svg-icon
class=
"icon-style"
icon=
"outLine"
v-else
></svg-icon>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"miniprogram"
v-else-if=
"data.mediaType === '11'"
>
<div
class=
"msg"
v-if=
"data.mediaType === '11'"
>
<div
class=
"miniprogram"
>
<div
class=
"mini-header"
>
<div
class=
"mini-header"
>
<img
src=
"../../assets/drainageCode/miniprogram-icon.png"
alt=
""
/>
<img
src=
"../../assets/drainageCode/miniprogram-icon.png"
alt=
""
/>
{{
data
.
materialName
}}
{{
data
.
materialName
}}
...
@@ -73,72 +66,63 @@
...
@@ -73,72 +66,63 @@
小程序
小程序
</div>
</div>
</div>
</div>
</div>
<!-- 文章 -->
<!-- 文章 -->
<div
class=
"msg"
v-if=
"data.mediaType === '12'"
>
<div
class=
"word-and-image"
v-else-if=
"data.mediaType === '12'"
>
<div
class=
"word-and-image"
>
<div
class=
"title"
v-if=
"data.materialName"
>
<div>
{{
data
.
materialName
}}
{{
data
.
materialName
}}
</div>
</div>
<div
class=
"sub-content"
>
<div
class=
"sub-content"
>
<div>
<div>
{{
data
.
digest
}}
{{
data
.
digest
}}
</div>
</div>
<div>
<div
class=
"img-icon"
>
<img
:src=
"data.coverUrl"
v-if=
"data.coverUrl && data.coverUrl != ''"
/>
<img
:src=
"data.coverUrl"
v-if=
"data.coverUrl && data.coverUrl != ''"
/>
<svg-icon
class=
"icon-style"
icon=
"article"
v-else
></svg-icon>
<svg-icon
class=
"icon-style"
icon=
"article"
v-else
></svg-icon>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 视频 -->
<!-- 视频 -->
<div
class=
"msg"
v-if=
"data.mediaType === '2'"
>
<div
class=
"word-and-image"
v-else-if=
"data.mediaType === '2'"
>
<div
class=
"word-and-image"
>
<div
class=
"title"
v-if=
"data.materialName"
>
<div>
{{
data
.
materialName
}}
{{
data
.
materialName
}}
</div>
</div>
<div
class=
"sub-content"
>
<div
class=
"sub-content"
>
<div>
<div>
{{
data
.
digest
}}
{{
data
.
digest
}}
</div>
</div>
<div>
<div
class=
"img-icon"
>
<img
:src=
"data.coverUrl"
v-if=
"data.coverUrl && data.coverUrl != ''"
/>
<img
:src=
"data.coverUrl"
v-if=
"data.coverUrl && data.coverUrl != ''"
/>
<svg-icon
class=
"icon-style"
icon=
"pic"
v-else
></svg-icon>
<svg-icon
class=
"icon-style"
icon=
"pic"
v-else
></svg-icon>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 文件 -->
<!-- 文件 -->
<div
class=
"msg"
v-if=
"data.mediaType === '3'"
>
<div
class=
"word-and-image"
v-else-if=
"data.mediaType === '3'"
>
<div
class=
"word-and-image"
>
<div
class=
"title"
v-if=
"data.materialName"
>
<div>
{{
data
.
materialName
}}
{{
data
.
materialName
}}
</div>
</div>
<div
class=
"sub-content"
>
<div
class=
"sub-content"
>
<div>
<div>
{{
data
.
digest
}}
{{
data
.
digest
}}
</div>
</div>
<div>
<div
class=
"img-icon"
>
<svg-icon
<svg-icon
class=
"icon-style"
class=
"icon-style"
:icon=
"data.materialUrl ? filType(data.materialUrl) : ''"
:icon=
"data.materialUrl ? filType(data.materialUrl) : ''"
v-if=
"data.materialUrl"
v-if=
"data.materialUrl"
></svg-icon>
></svg-icon>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 海报 -->
<!-- 海报 -->
<div
class=
"msg"
v-if=
"data.mediaType === '5'"
>
<div
class=
"word-and-image"
v-else-if=
"data.mediaType === '5'"
>
<div
class=
"word-and-image"
>
<div
class=
"title"
v-if=
"data.materialName"
>
<div>
{{
data
.
materialName
}}
{{
data
.
materialName
}}
</div>
</div>
<div
class=
"sub-content"
>
<div
class=
"sub-content"
>
<div>
<div>
{{
data
.
digest
}}
{{
data
.
digest
}}
</div>
</div>
<div>
<div
class=
"img-icon"
>
<img
:src=
"data.materialUrl"
v-if=
"data.materialUrl && data.materialUrl != ''"
/>
<img
:src=
"data.materialUrl"
v-if=
"data.materialUrl && data.materialUrl != ''"
/>
<svg-icon
class=
"icon-style"
icon=
"pic"
v-else
></svg-icon>
<svg-icon
class=
"icon-style"
icon=
"pic"
v-else
></svg-icon>
</div>
</div>
...
@@ -305,10 +289,6 @@ export default {
...
@@ -305,10 +289,6 @@ export default {
}
}
}
}
}
}
.icon-style
{
width
:
40px
;
height
:
40px
;
}
.content
{
.content
{
padding
:
15px
;
padding
:
15px
;
...
@@ -335,7 +315,7 @@ export default {
...
@@ -335,7 +315,7 @@ export default {
min-height
:
26px
;
min-height
:
26px
;
background
:
var
(
--bg-white
);
background
:
var
(
--bg-white
);
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border
:
1px
solid
var
(
--
color-light-9
);
border
:
1px
solid
var
(
--
bg-white
);
display
:
inline-block
;
display
:
inline-block
;
border-radius
:
4px
;
border-radius
:
4px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -346,14 +326,14 @@ export default {
...
@@ -346,14 +326,14 @@ export default {
content
:
' '
;
content
:
' '
;
display
:
block
;
display
:
block
;
position
:
absolute
;
position
:
absolute
;
left
:
-
5
px
;
left
:
-
6
px
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border-width
:
5
px
;
border-width
:
6
px
;
border-left
:
0
;
border-left
:
0
;
width
:
0
;
width
:
0
;
border-style
:
solid
;
border-style
:
solid
;
border-color
:
transparent
;
border-color
:
transparent
;
border-right-color
:
var
(
--b
order
-white
);
border-right-color
:
var
(
--b
g
-white
);
top
:
8px
;
top
:
8px
;
z-index
:
888
;
z-index
:
888
;
}
}
...
@@ -373,15 +353,27 @@ export default {
...
@@ -373,15 +353,27 @@ export default {
.word-and-image
{
.word-and-image
{
padding
:
12px
;
padding
:
12px
;
.title
{
font-size
:
14px
;
font-weight
:
500
;
line-height
:
1.25
;
margin-bottom
:
8px
;
}
.sub-content
{
.sub-content
{
margin-top
:
10px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
var
(
--font-black-6
);
color
:
var
(
--font-black-6
);
img
{
gap
:
10px
;
.img-icon
{
border-radius
:
var
(
--border-radius-small
);
overflow
:
hidden
;
flex
:
none
;
line-height
:
0
;
}
img
,
.icon-style
{
height
:
40px
;
height
:
40px
;
width
:
40px
;
width
:
40px
;
}
}
...
...
vue3-lw-pc/src/views/contentCenter/components/MaPage.vue
View file @
49bd3df
This diff is collapsed.
Click to expand it.
vue3-lw-pc/src/views/contentCenter/trackMaterial/index.vue
View file @
49bd3df
...
@@ -29,7 +29,7 @@ export default {
...
@@ -29,7 +29,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
activeName
:
activeTab
,
activeName
:
''
,
list
:
[
list
:
[
{
label
:
'外链'
,
name
:
'outChain'
,
component
:
OutChain
},
{
label
:
'外链'
,
name
:
'outChain'
,
component
:
OutChain
},
{
label
:
'文章'
,
name
:
'article'
,
component
:
Marticle
},
{
label
:
'文章'
,
name
:
'article'
,
component
:
Marticle
},
...
@@ -37,7 +37,7 @@ export default {
...
@@ -37,7 +37,7 @@ export default {
{
label
:
'文件'
,
name
:
'file'
,
component
:
Mfile
},
{
label
:
'文件'
,
name
:
'file'
,
component
:
Mfile
},
{
label
:
'海报'
,
name
:
'poster'
,
component
:
Mposter
},
{
label
:
'海报'
,
name
:
'poster'
,
component
:
Mposter
},
],
],
opened
:
[
activeTab
],
opened
:
[],
}
}
},
},
methods
:
{
methods
:
{
...
@@ -50,17 +50,11 @@ export default {
...
@@ -50,17 +50,11 @@ export default {
this
.
$store
.
setBusininessDesc
(
this
.
$store
.
setBusininessDesc
(
`
`
<div>支持智能记录客户访问行为,辅助运营把握客户动向。</div>
<div>支持智能记录客户访问行为,辅助运营把握客户动向。</div>
`
`
,
)
)
let
activeName
=
this
.
$route
.
query
.
activeName
if
(
activeName
)
{
this
.
activeName
=
activeTab
=
this
.
$route
.
query
.
activeName
||
activeTab
||
this
.
list
[
0
].
name
this
.
activeName
=
activeName
this
.
opened
=
[
activeTab
]
this
.
opened
=
[
'poster'
]
}
else
{
let
first
=
'outChain'
activeTab
||
(
this
.
activeName
=
activeTab
=
first
)
this
.
opened
.
push
(
activeTab
)
}
},
},
}
}
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment