Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 e7cb8e33
authored
Apr 01, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整
1 parent
894478c5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
17 deletions
src/assets/material/phone-border.png
src/assets/material/phone.png
src/views/material/addMaterial.vue
src/views/material/components/materialGroup.vue
src/assets/material/phone-border.png
0 → 100644
View file @
e7cb8e3
18.5 KB
src/assets/material/phone.png
View file @
e7cb8e3
78.7 KB
|
W:
|
H:
131 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/views/material/addMaterial.vue
View file @
e7cb8e3
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
</div>
</div>
<img
slot=
"reference"
src=
"@/assets/material/view.png"
alt=
""
/>
<img
slot=
"reference"
src=
"@/assets/material/view.png"
alt=
""
/>
</el-popover>
</el-popover>
<img
src=
"@/assets/material/dele.png"
alt=
""
@
click=
"deleteImg"
/>
<img
class=
"del-img"
src=
"@/assets/material/dele.png"
alt=
""
@
click=
"deleteImg"
/>
</h3>
</h3>
</div>
</div>
</div>
</div>
...
@@ -154,11 +154,11 @@
...
@@ -154,11 +154,11 @@
<div
class=
"avatar-uploader-desc-word"
>
上传照片
</div>
<div
class=
"avatar-uploader-desc-word"
>
上传照片
</div>
<input
type=
"file"
style=
"opacity: 0"
accept=
".jpg, .jpeg, .png"
@
change=
"e => handleImgChange(e)"
/>
<input
type=
"file"
style=
"opacity: 0"
accept=
".jpg, .jpeg, .png"
@
change=
"e => handleImgChange(e)"
/>
</div>
</div>
<
div
@
click=
"phoneVisible = !phoneVisible"
class=
"view-phone"
>
查看效果>
</div
>
<
!--
<div
@
click=
"phoneVisible = !phoneVisible"
class=
"view-phone"
>
查看效果>
</div>
--
>
</div>
</div>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"share-desc-right"
v-show=
"phoneVisible"
>
<div
class=
"share-desc-right"
>
<div
class=
"share-desc-right-box"
>
<div
class=
"share-desc-right-box"
>
<img
class=
"share-desc-right-box-phone"
src=
"@/assets/material/phone.png"
alt=
""
/>
<img
class=
"share-desc-right-box-phone"
src=
"@/assets/material/phone.png"
alt=
""
/>
<div
class=
"content-show"
>
<div
class=
"content-show"
>
...
@@ -177,7 +177,7 @@
...
@@ -177,7 +177,7 @@
</el-form>
</el-form>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:dialogVisible=
"dialogVisible"
></SelectLabel>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:dialogVisible=
"dialogVisible"
></SelectLabel>
<GLFooter
class=
"gl-footer"
>
<GLFooter
class=
"gl-footer"
>
<el-button
@
click=
"onSave"
>
存草稿
</el-button>
<el-button
@
click=
"onSave"
v-if=
"this.routeInfo.addOrEdit == 1"
>
存草稿
</el-button>
<el-button
@
click=
"handleCancel"
class=
"btn-cancle"
>
取消
</el-button>
<el-button
@
click=
"handleCancel"
class=
"btn-cancle"
>
取消
</el-button>
<el-button
@
click=
"handleSubmit"
type=
"primary"
>
确定
</el-button>
<el-button
@
click=
"handleSubmit"
type=
"primary"
>
确定
</el-button>
</GLFooter>
</GLFooter>
...
@@ -223,7 +223,7 @@ export default {
...
@@ -223,7 +223,7 @@ export default {
// 分享设置显示
// 分享设置显示
descVisible
:
false
,
descVisible
:
false
,
// 手机显示
// 手机显示
phoneVisible
:
false
,
//
phoneVisible: false,
businessTypes
:
[],
businessTypes
:
[],
materialAddFormRules
:
{
materialAddFormRules
:
{
selectMaterialGroup
:
[{
required
:
true
,
message
:
'请选择素材组'
,
trigger
:
'change'
}],
selectMaterialGroup
:
[{
required
:
true
,
message
:
'请选择素材组'
,
trigger
:
'change'
}],
...
@@ -244,7 +244,6 @@ export default {
...
@@ -244,7 +244,6 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
=
this
.
$route
.
query
console
.
log
(
this
.
routeInfo
,
'this.routeInfo'
);
this
.
routeInfo
.
addOrEdit
!=
1
?
this
.
getMaterialInfo
()
:
''
this
.
routeInfo
.
addOrEdit
!=
1
?
this
.
getMaterialInfo
()
:
''
this
.
title
=
this
.
titleObj
[
this
.
routeInfo
.
addOrEdit
]
this
.
title
=
this
.
titleObj
[
this
.
routeInfo
.
addOrEdit
]
this
.
materialInsert
()
this
.
materialInsert
()
...
@@ -710,13 +709,12 @@ export default {
...
@@ -710,13 +709,12 @@ export default {
border-radius
:
10px
;
border-radius
:
10px
;
h3
{
h3
{
text-align
:
center
;
text-align
:
center
;
margin-top
:
30%
;
margin-top
:
40%
;
margin-left
:
2px
;
img
{
img
{
width
:
16px
;
width
:
16px
;
height
:
16px
;
height
:
16px
;
}
}
:last-child
{
.del-img
{
padding-left
:
12px
;
padding-left
:
12px
;
}
}
}
}
...
@@ -787,7 +785,7 @@ export default {
...
@@ -787,7 +785,7 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
&-right-box
{
&-right-box
{
margin-right
:
2
0px
;
margin-right
:
5
0px
;
width
:
290px
;
width
:
290px
;
height
:
566px
;
height
:
566px
;
position
:
relative
;
position
:
relative
;
...
@@ -796,13 +794,14 @@ export default {
...
@@ -796,13 +794,14 @@ export default {
height
:
566px
;
height
:
566px
;
}
}
.content-show
{
.content-show
{
width
:
150px
;
background-color
:
#fff
;
height
:
52px
;
width
:
160px
;
height
:
56px
;
padding
:
10px
10px
;
padding
:
10px
10px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
position
:
absolute
;
position
:
absolute
;
top
:
37
5px
;
top
:
12
5px
;
left
:
7
9
px
;
left
:
7
1
px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
&-img
{
&-img
{
...
@@ -814,6 +813,7 @@ export default {
...
@@ -814,6 +813,7 @@ export default {
}
}
}
}
.content-title
{
.content-title
{
color
:
#333333
;
max-width
:
100px
;
max-width
:
100px
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -822,6 +822,8 @@ export default {
...
@@ -822,6 +822,8 @@ export default {
margin-bottom
:
4px
;
margin-bottom
:
4px
;
}
}
.content-word
{
.content-word
{
color
:
#999999
;
line-height
:
11px
;
max-width
:
100px
;
max-width
:
100px
;
font-size
:
8px
;
font-size
:
8px
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
src/views/material/components/materialGroup.vue
View file @
e7cb8e3
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
</div>
</div>
</div>
</div>
<ul>
<ul>
<li
v-for=
"(item, index) in groupCounter"
:
key=
"index"
@
click=
"handleGroup(item
)"
>
<li
v-for=
"(item, index) in groupCounter"
:
class=
"index === currentIndex ? 'active' : ''"
:key=
"index"
@
click=
"handleGroup(item, index
)"
>
<img
src=
"@/assets/material/file.png"
alt=
""
style=
"vertical-align: middle"
/>
<img
src=
"@/assets/material/file.png"
alt=
""
style=
"vertical-align: middle"
/>
<div
class=
"group-name"
>
{{
item
.
materialGroupName
}}
</div>
<div
class=
"group-name"
>
{{
item
.
materialGroupName
}}
</div>
<el-popover
placement=
"right"
trigger=
"hover"
>
<el-popover
placement=
"right"
trigger=
"hover"
>
...
@@ -48,7 +48,8 @@ export default {
...
@@ -48,7 +48,8 @@ export default {
materialGroupName
:
''
,
materialGroupName
:
''
,
orderValue
:
''
,
orderValue
:
''
,
isDefault
:
''
// 默认素材组 0 是 -1 否(进入页面如果素材组数量为0,就会创建默认素材组,默认素材组不可删除)
isDefault
:
''
// 默认素材组 0 是 -1 否(进入页面如果素材组数量为0,就会创建默认素材组,默认素材组不可删除)
}
},
currentIndex
:
null
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -91,7 +92,8 @@ export default {
...
@@ -91,7 +92,8 @@ export default {
})
})
},
},
// 点击素材组获取素材
// 点击素材组获取素材
handleGroup
(
item
)
{
handleGroup
(
item
,
index
)
{
this
.
currentIndex
=
index
var
params
=
{}
var
params
=
{}
params
.
groupId
=
item
.
id
params
.
groupId
=
item
.
id
params
.
pageNum
=
1
params
.
pageNum
=
1
...
@@ -186,11 +188,15 @@ export default {
...
@@ -186,11 +188,15 @@ export default {
}
}
ul
{
ul
{
li
{
li
{
cursor
:
pointer
;
text-align
:
left
;
text-align
:
left
;
padding
:
8px
16px
8px
18px
;
padding
:
8px
16px
8px
18px
;
&:first-child
{
&:first-child
{
padding-top
:
16px
;
padding-top
:
16px
;
}
}
&
.active
{
background-color
:
#ebeaff
;
}
i
{
i
{
font-size
:
16px
;
font-size
:
16px
;
padding-top
:
6px
;
padding-top
:
6px
;
...
@@ -209,11 +215,13 @@ ul {
...
@@ -209,11 +215,13 @@ ul {
li
{
li
{
list-style
:
none
;
list-style
:
none
;
position
:
relative
;
position
:
relative
;
vertical-align
:
middle
;
&:nth-child(-n
+
2)
{
&:nth-child(-n
+
2)
{
padding-bottom
:
10px
;
padding-bottom
:
10px
;
}
}
&
:hover
{
&
:hover
{
color
:
#5850ff
;
color
:
#5850ff
;
background-color
:
#ebeaff
;
}
}
}
}
}
}
...
...
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