Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
60cea0a6
Commit
60cea0a6
authored
Jun 16, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ae233dda
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
100 additions
and
136 deletions
+100
-136
WebSiteEdit.vue
src/components/WebSet/WebSiteEdit.vue
+6
-3
image1.vue
src/components/WebSet/plug-in/image1.vue
+0
-0
movie1.vue
src/components/WebSet/plug-in/movie1.vue
+0
-113
picture.vue
src/components/WebSet/plug-in/picture.vue
+1
-1
video.vue
src/components/WebSet/plug-in/video.vue
+93
-19
No files found.
src/components/WebSet/WebSiteEdit.vue
View file @
60cea0a6
...
@@ -91,7 +91,8 @@
...
@@ -91,7 +91,8 @@
<div
class=
"WebSite_right"
>
<div
class=
"WebSite_right"
>
<div
class=
"WebSite_right_preview"
>
<div
class=
"WebSite_right_preview"
>
<div
v-for=
"(item,index) in dataList"
:key=
"index"
>
<div
v-for=
"(item,index) in dataList"
:key=
"index"
>
<movie1
v-if=
"item.Id=='white_label_video'"
:plugData=
"item.plugData"
></movie1>
<video
v-if=
"item.Id=='white_label_video'"
:plugData=
"item.plugData"
></video>
<picture
v-if=
"item.Id=='white_label_slider'"
:plugData=
"item.plugData"
></picture>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -99,7 +100,8 @@
...
@@ -99,7 +100,8 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
movie1
from
"../WebSet/plug-in/movie1.vue"
import
video
from
"../WebSet/plug-in/video.vue"
import
picture
from
"../WebSet/plug-in/picture.vue"
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -115,7 +117,8 @@
...
@@ -115,7 +117,8 @@
},
},
created
()
{},
created
()
{},
components
:
{
components
:
{
movie1
video
,
picture
},
},
methods
:
{
methods
:
{
//添加数据到组件列表
//添加数据到组件列表
...
...
src/components/WebSet/plug-in/image1.vue
deleted
100644 → 0
View file @
ae233dda
src/components/WebSet/plug-in/movie1.vue
deleted
100644 → 0
View file @
ae233dda
<
style
>
.WebSite_item
{
display
:
flex
;
border-bottom
:
1px
solid
#f6f6f6
;
background-color
:
#fff
;
}
.diy-component-preview
.WebSite_item
.temp-img
{
flex-basis
:
calc
(
60%
-
60px
);
}
.temp-img
img
{
display
:
block
;
width
:
100%
;
user-select
:
none
;
pointer-events
:
none
;
}
.WebSite_item
.temp-info
{
padding
:
15px
20px
0
;
flex-basis
:
40%
;
background-color
:
#fff
;
}
.WebSite_item
.temp-title
{
margin
:
0
;
font-size
:
18px
;
font-weight
:
500
;
}
.temp-subtitle
{
margin
:
0
;
width
:
280px
;
padding-top
:
2px
;
font-size
:
15px
;
font-weight
:
700
;
color
:
#999
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.diy-component-edit
{
position
:
absolute
;
top
:
0
;
bottom
:
0
;
left
:
465px
;
right
:
0
;
background
:
#fff
;
padding
:
20px
;
overflow
:
auto
;
min-width
:
650px
;
padding-right
:
20%
;
}
.group-tool
{
margin-top
:
20px
;
}
.Movie_sj
{
color
:
#333
;
font-size
:
14px
;
margin-left
:
20px
;
}
</
style
>
<
template
>
<div>
<div
class=
"diy-component-preview"
>
<div
class=
"WebSite_item"
>
<div
class=
"temp-img"
>
<img
:src=
"plugData.CoverImg"
alt=
""
/>
</div>
<div
class=
"temp-info"
>
<h2
class=
"temp-title"
>
{{
plugData
.
Title
}}
</h2>
<h3
class=
"temp-subtitle"
>
{{
plugData
.
Describe
}}
</h3>
<div
class=
"group-tool"
>
<el-button
type=
"primary"
size=
"small"
>
編輯
</el-button>
<el-button
type=
"danger"
size=
"small"
>
刪除
</el-button>
<span
class=
"Movie_sj"
>
上架
</span>
<el-switch
v-model=
"plugData.isShelves"
:active-value=
"1"
:inactive-value=
"0"
active-color=
"#13ce66"
inactive-color=
"#dcdfe6"
></el-switch>
</div>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
[
"plugData"
],
data
()
{
return
{
};
},
created
()
{},
methods
:
{
//向父组件传值 并调用排序
resetSord
(
IsUp
)
{
this
.
$emit
(
'getSord'
,
this
.
index
,
IsUp
);
},
//点击触发父组件删除
delPlugin
()
{
this
.
$emit
(
'comDelPlugin'
,
this
.
index
);
},
},
mounted
()
{}
};
</
script
>
\ No newline at end of file
src/components/WebSet/plug-in/picture.vue
View file @
60cea0a6
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<el-row>
<el-row>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"標題"
>
<el-form-item
label=
"標題"
>
<el-input
type=
"text"
v-model=
"plugData.
t
itle"
></el-input>
<el-input
type=
"text"
v-model=
"plugData.
T
itle"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
src/components/WebSet/plug-in/video.vue
View file @
60cea0a6
<
style
>
.WebSite_item
{
display
:
flex
;
border-bottom
:
1px
solid
#f6f6f6
;
background-color
:
#fff
;
}
.diy-component-preview
.WebSite_item
.temp-img
{
flex-basis
:
calc
(
60%
-
60px
);
}
.temp-img
img
{
display
:
block
;
width
:
100%
;
user-select
:
none
;
pointer-events
:
none
;
}
.WebSite_item
.temp-info
{
padding
:
15px
20px
0
;
flex-basis
:
40%
;
background-color
:
#fff
;
}
.WebSite_item
.temp-title
{
margin
:
0
;
font-size
:
18px
;
font-weight
:
500
;
}
.temp-subtitle
{
margin
:
0
;
width
:
280px
;
padding-top
:
2px
;
font-size
:
15px
;
font-weight
:
700
;
color
:
#999
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.diy-component-edit
{
position
:
absolute
;
top
:
0
;
bottom
:
0
;
left
:
465px
;
right
:
0
;
background
:
#fff
;
padding
:
20px
;
overflow
:
auto
;
min-width
:
650px
;
padding-right
:
20%
;
}
.group-tool
{
margin-top
:
20px
;
}
.Movie_sj
{
color
:
#333
;
font-size
:
14px
;
margin-left
:
20px
;
}
</
style
>
<
template
>
<
template
>
<div>
<div>
<el-form
label-width=
"100px"
>
<div
class=
"diy-component-preview"
>
<el-form-item
label=
"標題"
>
<div
class=
"WebSite_item"
>
<el-input
type=
"text"
v-model=
"plugData.VideoTitle"
></el-input>
<div
class=
"temp-img"
>
</el-form-item>
<el-form-item
label=
"描述"
>
<el-input
type=
"textarea"
v-model=
"plugData.VideoDescribe"
:rows=
"4"
></el-input>
</el-form-item>
<el-form-item
label=
"YouTube 影片ID"
>
<el-input
type=
"text"
v-model=
"plugData.VideoId"
></el-input>
</el-form-item>
<el-form-item>
<div>
如何取得 YouTube 影片 ID:
</div>
<div>
該影片網址 v= 後面的編號,即為該影片的 ID
</div>
<div>
<img
:src=
"plugData.CoverImg"
alt=
""
/>
<img
:src=
"plugData.CoverImg"
alt=
""
/>
</div>
</div>
</el-form-item>
<div
class=
"temp-info"
>
</el-form>
<h2
class=
"temp-title"
>
{{
plugData
.
Title
}}
</h2>
<h3
class=
"temp-subtitle"
>
{{
plugData
.
Describe
}}
</h3>
<div
class=
"group-tool"
>
<el-button
type=
"primary"
size=
"small"
>
編輯
</el-button>
<el-button
type=
"danger"
size=
"small"
>
刪除
</el-button>
<span
class=
"Movie_sj"
>
上架
</span>
<el-switch
v-model=
"plugData.isShelves"
:active-value=
"1"
:inactive-value=
"0"
active-color=
"#13ce66"
inactive-color=
"#dcdfe6"
></el-switch>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -30,9 +98,15 @@
...
@@ -30,9 +98,15 @@
},
},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
//向父组件传值 并调用排序
resetSord
(
IsUp
)
{
this
.
$emit
(
'getSord'
,
this
.
index
,
IsUp
);
},
//点击触发父组件删除
delPlugin
()
{
this
.
$emit
(
'comDelPlugin'
,
this
.
index
);
},
},
},
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