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
cdf42a24
Commit
cdf42a24
authored
Oct 28, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
e721a0f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
35 deletions
+10
-35
Educationvideo.vue
src/components/Educationvideo.vue
+2
-2
EducationvideoList.vue
src/components/EducationvideoList.vue
+8
-33
No files found.
src/components/Educationvideo.vue
View file @
cdf42a24
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<span>
{{
item
.
UpdateDate
}}
</span>
<span>
{{
item
.
UpdateDate
}}
</span>
</p>
</p>
</el-col>
</el-col>
<el-col
:span=
"12"
style=
"text-align:right;
display:none;
"
>
<el-col
:span=
"12"
style=
"text-align:right;"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('salesModule.ShareTrip')"
placement=
"top-start"
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('salesModule.ShareTrip')"
placement=
"top-start"
style=
"float: right"
>
style=
"float: right"
>
<el-popover
width=
"180"
trigger=
"click"
>
<el-popover
width=
"180"
trigger=
"click"
>
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<div
v-show=
"nodata && msg.pageIndex>1"
class=
"wryh"
<div
v-show=
"nodata && msg.pageIndex>1"
class=
"wryh"
style=
"text-align:center;padding:15px 0;font-size:12px;color:#aaaaaa"
>
无更多数据
</div>
style=
"text-align:center;padding:15px 0;font-size:12px;color:#aaaaaa"
>
无更多数据
</div>
</div>
</div>
<div
style=
"opacity: 0;"
ref=
"bottomDiv"
>
1111
</div>
<div
style=
"opacity: 0;"
ref=
"bottomDiv"
>
</div>
</div>
</div>
<div
class=
"videoDiv"
v-show=
"videoDivState"
>
<div
class=
"videoDiv"
v-show=
"videoDivState"
>
<div
style=
"text-align:right;padding-right:15px;cursor:pointer"
><span
@
click=
"Setvideo"
<div
style=
"text-align:right;padding-right:15px;cursor:pointer"
><span
@
click=
"Setvideo"
...
...
src/components/EducationvideoList.vue
View file @
cdf42a24
<
template
>
<
template
>
<div
class=
"EducationvideoList"
>
<div
class=
"EducationvideoList"
>
<!--
<div
class=
"left"
>
<ul
class=
"lineUl"
style=
"margin-top:30px"
>
<li
v-for=
"(item,index) in LineList"
:key=
"index"
>
{{
item
.
LineName
}}
</li>
</ul>
</div>
-->
<div
class=
"right"
>
<div
class=
"right"
>
<div
class=
"search"
>
<div
class=
"search"
>
<el-input
size=
"small"
style=
"width:600px"
:placeholder=
"$t('fnc.qsrneirong')"
v-model=
"msg.Name"
<el-input
size=
"small"
style=
"width:600px"
:placeholder=
"$t('fnc.qsrneirong')"
v-model=
"msg.Name"
class=
"input-with-select"
>
class=
"input-with-select"
>
<el-button
@
click=
"Search"
slot=
"append"
icon=
"el-icon-search"
></el-button>
<el-button
@
click=
"Search"
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
</el-input>
<el-button
style=
"margin-left:20px"
size=
"small"
type=
"danger"
@
click=
"addList"
round
>
{{
$t
(
'pub.addBtn'
)
}}
</el-button>
<el-button
style=
"margin-left:20px"
size=
"small"
type=
"danger"
@
click=
"addList"
round
>
{{
$t
(
'pub.addBtn'
)
}}
<
!--
<el-button
style=
"margin-left:20px"
size=
"small"
type=
"primary"
@
click=
"goUrlHome"
round
>
{{
$t
(
'pub.returnBack'
)
}}
</el-button>
--
>
<
/el-button
>
</div>
</div>
<div
v-loading=
"loading"
class=
"Content"
>
<div
v-loading=
"loading"
class=
"Content"
>
<ul
class=
"videoUl"
>
<ul
class=
"videoUl"
>
<li
v-for=
"(item,index) in dataList"
:key=
"index"
>
<li
v-for=
"(item,index) in dataList"
:key=
"index"
>
<div
:style=
"
{backgroundImage: 'url(' + item.background + ')', backgroundSize:'cover'}"
<div
:style=
"
{backgroundImage: 'url(' + item.background + ')', backgroundSize:'cover'}"
@click.prevent="goUrl('EducationvideoSee',item)" class="imgDiv">
@click.prevent="goUrl('EducationvideoSee',item)" class="imgDiv">
<!--
<img
v-if=
"item.Cover && item.Cover!=''"
:onerror=
"defaultImg"
style=
"min-height: 199px;width:100%"
:src=
"item.Cover"
alt=
""
>
<img
v-else
style=
"height:199px;width:100%"
src=
"../assets/img/hotel/biefu.png"
alt=
""
>
-->
<div
class=
"backDiv"
>
<div
class=
"backDiv"
>
<span
class=
"iconfont icon-ico_bofang"
></span>
<span
class=
"iconfont icon-ico_bofang"
></span>
<div
class=
"icon"
>
<div
class=
"icon"
>
...
@@ -46,9 +37,6 @@
...
@@ -46,9 +37,6 @@
</el-tooltip>
</el-tooltip>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"contentDiv"
>
<div
class=
"contentDiv"
>
<img
v-if=
"item.EmPhoto && item.EmPhoto!=''"
:src=
"item.EmPhoto"
alt=
""
>
<img
v-if=
"item.EmPhoto && item.EmPhoto!=''"
:src=
"item.EmPhoto"
alt=
""
>
...
@@ -76,13 +64,9 @@
...
@@ -76,13 +64,9 @@
<div
v-if=
"dataList.length==0"
style=
"text-align:center;padding-top:40px"
>
<div
v-if=
"dataList.length==0"
style=
"text-align:center;padding-top:40px"
>
<span
style=
"font-size:60px;color:#ccc"
class=
"iconfont icon-wushuju"
></span>
<span
style=
"font-size:60px;color:#ccc"
class=
"iconfont icon-wushuju"
></span>
</div>
</div>
<!--
<el-pagination
background
@
current-change=
"handleCurrentChange"
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
'total'
>
</el-pagination>
-->
<div
v-show=
"nodata && msg.pageIndex>1"
class=
"wryh"
<div
v-show=
"nodata && msg.pageIndex>1"
class=
"wryh"
style=
"text-align:center;padding:15px 0;font-size:12px;color:#aaaaaa"
>
无更多数据
</div>
style=
"text-align:center;padding:15px 0;font-size:12px;color:#aaaaaa"
>
无更多数据
</div>
<div
style=
"opacity: 0;"
ref=
"bottomDiv"
>
1111
</div>
<div
style=
"opacity: 0;"
ref=
"bottomDiv"
>
1111
</div>
</div>
</div>
</div>
</div>
<el-dialog
title=
"上传"
:visible
.
sync=
"dialogVisible"
width=
"800px"
>
<el-dialog
title=
"上传"
:visible
.
sync=
"dialogVisible"
width=
"800px"
>
...
@@ -91,7 +75,6 @@
...
@@ -91,7 +75,6 @@
<el-input
style=
"width:220px"
v-model=
"addMsg.Name"
></el-input>
<el-input
style=
"width:220px"
v-model=
"addMsg.Name"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
style=
"display:inline-block"
label=
"标签"
prop=
"Label"
>
<el-form-item
style=
"display:inline-block"
label=
"标签"
prop=
"Label"
>
<!--
<el-input
style=
"width:220px"
v-model=
"addMsg.Label"
></el-input>
-->
<el-select
style=
"width:220px"
v-model=
"addMsg.Label"
:placeholder=
"$t('objFill.v101.activity.qingxzzt')"
>
<el-select
style=
"width:220px"
v-model=
"addMsg.Label"
:placeholder=
"$t('objFill.v101.activity.qingxzzt')"
>
<el-option
:label=
"$t('hotel.hotel')"
value=
"酒店"
></el-option>
<el-option
:label=
"$t('hotel.hotel')"
value=
"酒店"
></el-option>
<el-option
label=
"景点"
value=
"景点"
></el-option>
<el-option
label=
"景点"
value=
"景点"
></el-option>
...
@@ -102,7 +85,8 @@
...
@@ -102,7 +85,8 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
style=
"display:inline-block"
:label=
"$t('admin.admin_status')"
prop=
"VideoStatus"
>
<el-form-item
style=
"display:inline-block"
:label=
"$t('admin.admin_status')"
prop=
"VideoStatus"
>
<el-select
style=
"width:220px"
v-model=
"addMsg.VideoStatus"
:placeholder=
"$t('objFill.v101.activity.qingxzzt')"
>
<el-select
style=
"width:220px"
v-model=
"addMsg.VideoStatus"
:placeholder=
"$t('objFill.v101.activity.qingxzzt')"
>
<el-option
label=
"发布"
:value=
"1"
></el-option>
<el-option
label=
"发布"
:value=
"1"
></el-option>
<el-option
:label=
"$t('objFill.caogao')"
:value=
"2"
></el-option>
<el-option
:label=
"$t('objFill.caogao')"
:value=
"2"
></el-option>
<el-option
label=
"撤回"
:value=
"3"
></el-option>
<el-option
label=
"撤回"
:value=
"3"
></el-option>
...
@@ -135,7 +119,8 @@
...
@@ -135,7 +119,8 @@
<div
style=
"text-align:right;margin-bottom:10px"
>
<div
style=
"text-align:right;margin-bottom:10px"
>
<el-button
style=
"font-size:12px"
size=
"samll"
@
click=
"dialogVisible = false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
<el-button
style=
"font-size:12px"
size=
"samll"
@
click=
"dialogVisible = false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</el-button>
</el-button>
<el-button
style=
"font-size:12px"
size=
"samll"
type=
"danger"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.sureBtn'
)
}}
</el-button>
<el-button
style=
"font-size:12px"
size=
"samll"
type=
"danger"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.sureBtn'
)
}}
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<div
class=
"videoDiv"
v-show=
"videoDivState"
>
<div
class=
"videoDiv"
v-show=
"videoDivState"
>
...
@@ -267,7 +252,6 @@
...
@@ -267,7 +252,6 @@
UserType
:
1
,
UserType
:
1
,
}
}
},
},
UploadFileToAli
(
file
)
{
UploadFileToAli
(
file
)
{
if
([
'video/mp4'
,
'video/ogg'
,
'video/webm'
,
'video/avi'
,
'video/wmv'
,
'video/rmvb'
,
'video/mov'
].
indexOf
(
file
if
([
'video/mp4'
,
'video/ogg'
,
'video/webm'
,
'video/avi'
,
'video/wmv'
,
'video/rmvb'
,
'video/mov'
].
indexOf
(
file
.
file
.
type
)
==
-
1
)
{
.
file
.
type
)
==
-
1
)
{
...
@@ -280,7 +264,7 @@
...
@@ -280,7 +264,7 @@
this
.
scLoad
=
true
;
this
.
scLoad
=
true
;
this
.
UploadFileToAli2024
(
path
,
newArr
,
x
=>
{
this
.
UploadFileToAli2024
(
path
,
newArr
,
x
=>
{
this
.
scLoad
=
false
;
this
.
scLoad
=
false
;
this
.
addMsg
.
VideoAddress
=
this
.
baseurl
+
x
.
name
;
this
.
addMsg
.
VideoAddress
=
this
.
baseurl
+
x
.
data
.
FilePath
;
let
lastUrl
=
"?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast"
;
let
lastUrl
=
"?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast"
;
this
.
addMsg
.
Cover
=
this
.
addMsg
.
VideoAddress
+
lastUrl
;
this
.
addMsg
.
Cover
=
this
.
addMsg
.
VideoAddress
+
lastUrl
;
});
});
...
@@ -317,7 +301,7 @@
...
@@ -317,7 +301,7 @@
},
},
Chehui
(
item
,
e
)
{
Chehui
(
item
,
e
)
{
e
.
stopPropagation
()
e
.
stopPropagation
()
this
.
$confirm
m
(
this
.
$t
(
'adm.adm_sfchehui'
)
+
"?"
,
this
.
$t
(
'tips.tips'
),
{
this
.
$confirm
(
this
.
$t
(
'adm.adm_sfchehui'
)
+
"?"
,
this
.
$t
(
'tips.tips'
),
{
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
type
:
"warning"
type
:
"warning"
...
@@ -391,7 +375,6 @@
...
@@ -391,7 +375,6 @@
this
.
getList
()
this
.
getList
()
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
)
this
.
Error
(
res
.
data
.
message
)
}
}
})
})
}
else
{}
}
else
{}
...
@@ -406,7 +389,6 @@
...
@@ -406,7 +389,6 @@
this
.
addMsg
.
VideoAddress
=
item
.
VideoAddress
;
this
.
addMsg
.
VideoAddress
=
item
.
VideoAddress
;
this
.
addMsg
.
VideoStatus
=
item
.
VideoStatus
;
this
.
addMsg
.
VideoStatus
=
item
.
VideoStatus
;
this
.
addMsg
.
Label
=
item
.
Label
;
this
.
addMsg
.
Label
=
item
.
Label
;
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
},
},
goUrlHome
()
{
goUrlHome
()
{
...
@@ -431,8 +413,6 @@
...
@@ -431,8 +413,6 @@
});
});
}
}
},
},
AddWidthHeight
(
VideoWH
,
id
)
{
AddWidthHeight
(
VideoWH
,
id
)
{
let
msg
=
{
let
msg
=
{
...
@@ -442,9 +422,7 @@
...
@@ -442,9 +422,7 @@
this
.
apipost
(
this
.
apipost
(
"Video_set_SetPCVideoWHInfo"
,
msg
,
"Video_set_SetPCVideoWHInfo"
,
msg
,
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
}
}
}
}
);
);
...
@@ -455,9 +433,7 @@
...
@@ -455,9 +433,7 @@
VideoId
:
id
VideoId
:
id
},
},
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
}
}
}
}
);
);
...
@@ -474,7 +450,6 @@
...
@@ -474,7 +450,6 @@
);
);
},
},
},
},
}
}
</
script
>
</
script
>
...
...
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