Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
da826258
Commit
da826258
authored
Jul 27, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面更新
parent
013ac2e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
322 additions
and
317 deletions
+322
-317
nav-page.vue
src/components/sallCenter/plugin/nav-page.vue
+322
-317
No files found.
src/components/sallCenter/plugin/nav-page.vue
View file @
da826258
<
style
>
<
style
>
.diynav-container
{
.diynav-container
{
min-height
:
100px
;
min-height
:
100px
;
width
:
100%
;
width
:
100%
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
}
}
.Headernav-item
{
.Headernav-item
{
text-align
:
center
;
text-align
:
center
;
font-size
:
24px
;
font-size
:
24px
;
padding
:
20px
0
;
padding
:
20px
0
;
}
}
.Navabout-text
{
.Navabout-text
{
color
:
#909399
;
color
:
#909399
;
font-size
:
12px
;
font-size
:
12px
;
margin-top
:
-10px
;
margin-top
:
-10px
;
}
}
.navigation_pic_boxDiv
{
.navigation_pic_boxDiv
{
width
:
70px
;
width
:
70px
;
height
:
70px
;
height
:
70px
;
border
:
1px
solid
#ccc
;
border
:
1px
solid
#ccc
;
...
@@ -28,48 +28,48 @@
...
@@ -28,48 +28,48 @@
background-position
:
center
;
background-position
:
center
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
position
:
relative
;
position
:
relative
;
}
}
.navigation_pic_boxDiv
i
{
.navigation_pic_boxDiv
i
{
font-size
:
22px
;
font-size
:
22px
;
color
:
#909399
;
color
:
#909399
;
}
}
.divbg_position
{
.divbg_position
{
width
:
170px
;
width
:
170px
;
height
:
180px
;
height
:
180px
;
}
}
.divbg_position
>
div
{
.divbg_position
>
div
{
height
:
50px
;
height
:
50px
;
width
:
50px
;
width
:
50px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
cursor
:
pointer
;
cursor
:
pointer
;
background-color
:
#F5F7F9
;
background-color
:
#F5F7F9
;
}
}
.bg_active
{
.bg_active
{
background-color
:
#E6F4FF
;
background-color
:
#E6F4FF
;
border
:
2px
dashed
#5CB3FD
;
border
:
2px
dashed
#5CB3FD
;
}
}
.edit-nav-item
{
.edit-nav-item
{
border
:
1px
solid
#e2e2e2
;
border
:
1px
solid
#e2e2e2
;
line-height
:
normal
;
line-height
:
normal
;
padding
:
5px
;
padding
:
5px
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
.nav-edit-options
{
.nav-edit-options
{
position
:
relative
;
position
:
relative
;
}
}
.navapp-image-upload
{
.navapp-image-upload
{
display
:
inline-block
;
display
:
inline-block
;
margin-right
:
5px
;
margin-right
:
5px
;
}
}
.nav-edit-options
.el-button
{
.nav-edit-options
.el-button
{
height
:
25px
;
height
:
25px
;
line-height
:
25px
;
line-height
:
25px
;
width
:
25px
;
width
:
25px
;
...
@@ -79,13 +79,13 @@
...
@@ -79,13 +79,13 @@
border-radius
:
0
;
border-radius
:
0
;
position
:
absolute
;
position
:
absolute
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.nav-edit-options
a
{
.nav-edit-options
a
{
color
:
#5CB3FD
!important
;
color
:
#5CB3FD
!important
;
}
}
.navapp-image-upload
.pic-box
{
.navapp-image-upload
.pic-box
{
width
:
70px
;
width
:
70px
;
height
:
70px
;
height
:
70px
;
border
:
1px
solid
#ccc
;
border
:
1px
solid
#ccc
;
...
@@ -95,14 +95,14 @@
...
@@ -95,14 +95,14 @@
background-position
:
center
;
background-position
:
center
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
position
:
relative
;
position
:
relative
;
}
}
.navapp-image-upload
.pic-box
i
{
.navapp-image-upload
.pic-box
i
{
font-size
:
22px
;
font-size
:
22px
;
color
:
#909399
;
color
:
#909399
;
}
}
.navapp-image-upload
.pic-box
.size-tip
{
.navapp-image-upload
.pic-box
.size-tip
{
line-height
:
1.35
;
line-height
:
1.35
;
text-align
:
center
;
text-align
:
center
;
position
:
absolute
;
position
:
absolute
;
...
@@ -116,86 +116,86 @@
...
@@ -116,86 +116,86 @@
color
:
#fff
;
color
:
#fff
;
background
:
rgba
(
0
,
0
,
0
,
0.2
);
background
:
rgba
(
0
,
0
,
0
,
0.2
);
letter-spacing
:
-1px
;
letter-spacing
:
-1px
;
}
}
.navapp-image-upload
.image-delete
{
.navapp-image-upload
.image-delete
{
position
:
absolute
;
position
:
absolute
;
top
:
-10px
;
top
:
-10px
;
right
:
-10px
;
right
:
-10px
;
padding
:
5px
;
padding
:
5px
;
visibility
:
hidden
;
visibility
:
hidden
;
z-index
:
1
;
z-index
:
1
;
}
}
.navapp-image-upload
.image-delete
i
{
.navapp-image-upload
.image-delete
i
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#fff
;
color
:
#fff
;
}
}
.navapp-image-upload
:hover
.image-delete
{
.navapp-image-upload
:hover
.image-delete
{
visibility
:
visible
;
visibility
:
visible
;
}
}
.Headernav-item
img
{
.Headernav-item
img
{
display
:
block
;
display
:
block
;
width
:
88px
;
width
:
88px
;
height
:
88px
;
height
:
88px
;
margin
:
0
auto
5px
auto
;
margin
:
0
auto
5px
auto
;
}
}
.Headernav-item
>
div
{
.Headernav-item
>
div
{
height
:
25px
;
height
:
25px
;
line-height
:
25px
;
line-height
:
25px
;
}
}
.navigation_pic_boxDiv
.image-delete
{
.navigation_pic_boxDiv
.image-delete
{
position
:
absolute
;
position
:
absolute
;
top
:
-10px
;
top
:
-10px
;
right
:
-10px
;
right
:
-10px
;
padding
:
5px
;
padding
:
5px
;
visibility
:
hidden
;
visibility
:
hidden
;
z-index
:
1
;
z-index
:
1
;
}
}
.navigation_pic_boxDiv
:hover
.image-delete
{
.navigation_pic_boxDiv
:hover
.image-delete
{
visibility
:
visible
;
visibility
:
visible
;
}
}
.navigation_pic_boxDiv
.image-delete
i
{
.navigation_pic_boxDiv
.image-delete
i
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#fff
;
color
:
#fff
;
}
}
.chooseformwork
{
.chooseformwork
{
padding
:
20px
0
;
padding
:
20px
0
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
.chooseformwork
>
div
>
div
{
.chooseformwork
>
div
>
div
{
margin
:
10px
0
;
margin
:
10px
0
;
}
}
.chooseformwork
>
div
{
.chooseformwork
>
div
{
flex
:
1
;
flex
:
1
;
}
}
.chooseformwork
.categroy
{
.chooseformwork
.categroy
{
padding-right
:
32px
;
padding-right
:
32px
;
}
}
.chooseformwork
.isdisplay
{
.chooseformwork
.isdisplay
{
padding-right
:
4px
;
padding-right
:
4px
;
}
}
.chooseimgname-title
{
.chooseimgname-title
{
margin-top
:
10px
;
margin-top
:
10px
;
}
}
.chooseformwork
.chooseformwork-one
{
.chooseformwork
.chooseformwork-one
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
:class=
"
{ 'active': navData.isCked }">
<div
:class=
"
{ 'active': navData.isCked }">
...
@@ -261,9 +261,14 @@
...
@@ -261,9 +261,14 @@
</a>
</a>
</div>
</div>
<div
class=
"chooseimgname"
>
<div
class=
"chooseimgname"
>
<span
style=
"padding-right:5px;"
>
名称
</span>
<el-input
v-model=
"navData.data.navs[index].name"
style=
"width:200px; margin: 10px 0;"
placeholder=
"名称"
>
</el-input>
<div>
<div>
<div
class=
"navapp-image-upload"
>
<div
class=
"navapp-image-upload"
>
<p
class=
"chooseimgname-title"
>
默认图标
</p>
<p
class=
"chooseimgname-title"
>
默认图标
</p>
<div>
</div>
<div
flex=
"main:center cross:center"
@
click=
"choiceMyImg(index, 1)"
class=
"pic-box"
<div
flex=
"main:center cross:center"
@
click=
"choiceMyImg(index, 1)"
class=
"pic-box"
:style=
"
{ backgroundImage: 'url(' + getIconLink(item.icon) + ')' }">
:style=
"
{ backgroundImage: 'url(' + getIconLink(item.icon) + ')' }">
<i
class=
"el-icon-picture-outline"
v-if=
"item.icon == ''"
></i>
<i
class=
"el-icon-picture-outline"
v-if=
"item.icon == ''"
></i>
...
@@ -283,6 +288,7 @@
...
@@ -283,6 +288,7 @@
<div
class=
"size-tip"
>
88 × 88
</div>
<div
class=
"size-tip"
>
88 × 88
</div>
<el-button
type=
"danger"
v-if=
"item.checkIcon != ''"
class=
"image-delete"
size=
"mini"
<el-button
type=
"danger"
v-if=
"item.checkIcon != ''"
class=
"image-delete"
size=
"mini"
icon=
"el-icon-close"
@
click
.
stop=
"item.checkIcon = ''"
circle
></el-button>
icon=
"el-icon-close"
@
click
.
stop=
"item.checkIcon = ''"
circle
></el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -419,10 +425,10 @@
...
@@ -419,10 +425,10 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
choiceModule
from
"@/components/common/choiceModule.vue"
;
import
choiceModule
from
"@/components/common/choiceModule.vue"
;
export
default
{
export
default
{
props
:
[
"navData"
,
"index"
,
"dataLeng"
],
props
:
[
"navData"
,
"index"
,
"dataLeng"
],
data
()
{
data
()
{
return
{
return
{
...
@@ -493,10 +499,9 @@
...
@@ -493,10 +499,9 @@
addNavigatiton
()
{
addNavigatiton
()
{
let
obj
=
{
let
obj
=
{
icon
:
''
,
icon
:
''
,
checkIcon
:
''
,
//选中导航图标
checkIcon
:
''
,
//选中导航图标
checkBgImg
:
''
,
//选中背景图片
checkBgImg
:
''
,
//选中背景图片
name
:
''
,
name
:
''
,
//名称
ShowType
:
0
,
//0-组件,1-模板
ShowType
:
0
,
//0-组件,1-模板
ComponentName
:
""
,
//组件名称
ComponentName
:
""
,
//组件名称
url
:
""
,
//组件URL
url
:
""
,
//组件URL
...
@@ -545,5 +550,5 @@
...
@@ -545,5 +550,5 @@
mounted
()
{
mounted
()
{
}
}
};
};
</
script
>
</
script
>
\ No newline at end of file
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