-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
liweiwei
committed
Jul 4, 2020
1 parent
0fd16a7
commit 68e7afd
Showing
11 changed files
with
1,440 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<template> | ||
<div id="blue_video_tag"> | ||
<el-form :inline="true" :model="formInline" class="demo-form-inline"> | ||
<el-form-item label="分类:"> | ||
<el-input v-model="formInline.tag" placeholder=""></el-input> | ||
</el-form-item> | ||
<el-form-item label='分页:'> | ||
<el-input-number v-model="formInline.num" :min="1" :max="10" label="分页"></el-input-number> | ||
</el-form-item> | ||
<el-form-item> | ||
<el-button type="primary" @click="onSubmit">查询</el-button> | ||
</el-form-item> | ||
</el-form> | ||
|
||
<el-table :data="tableData" style="width: 100%" @row-click="handdle"> | ||
<el-table-column prop="date" style="width: 100%"> | ||
<template slot-scope="props"> | ||
<el-form label-position="left" inline class="demo-table-expand"> | ||
<el-row :gutter="20"> | ||
<el-col :span="10"> | ||
<div class="grid-content bg-purple"> | ||
<img :src="props.row.imgBase64" style="width: 200px"/> | ||
</div> | ||
</el-col> | ||
<el-col :span="14"> | ||
<el-form-item label="片名"> | ||
<span>{{ props.row.title }}</span> | ||
</el-form-item> | ||
<el-form-item label="时间"> | ||
<span>{{ props.row.date }}</span> | ||
</el-form-item> | ||
</el-col> | ||
</el-row> | ||
</el-form> | ||
</template> | ||
</el-table-column> | ||
</el-table> | ||
</div> | ||
</template> | ||
|
||
|
||
<script> | ||
import { request, URL } from "../common/request"; | ||
export default { | ||
data() { | ||
return { | ||
formInline: { | ||
num: 1, | ||
tag: "" | ||
}, | ||
tableData: [] | ||
}; | ||
}, | ||
methods: { | ||
onSubmit() { | ||
if (this.formInline.videoName === "") { | ||
return false; | ||
} | ||
request(URL.site("server_url", "/api/video/blue/list"), { | ||
method: "GET", | ||
params: { | ||
tag: this.formInline.tag, | ||
page: this.formInline.num | ||
} | ||
}).then(res => { | ||
// console.log(res.response); | ||
this.tableData = res.response.data; | ||
}); | ||
}, | ||
handdle(row, event, column) { | ||
this.$router.push("/blue_video_detail?videoId=" + row.id+"&videoName="+row.title+"&original="+row.original); | ||
}, | ||
handleChange(value) { | ||
// console.log(value); | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style> | ||
.demo-table-expand { | ||
font-size: 0; | ||
} | ||
.demo-table-expand label { | ||
width: 80px; | ||
color: #99a9bf; | ||
} | ||
.demo-table-expand .el-form-item { | ||
margin-right: 0; | ||
margin-bottom: 0; | ||
width: 100%; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<template> | ||
<div id="catalog"> | ||
<el-row :gutter="20"> | ||
<el-col :span="8"> | ||
<div class="grid-content bg-purple"> | ||
<img :src="data.imgBase64" style="width: 220px" /> | ||
</div> | ||
</el-col> | ||
<el-col :span="14"> | ||
<el-form label-position="left" label-width="80px" class="demo-table-expand"> | ||
<el-form-item label="片名"> | ||
<span>{{ title }}</span> | ||
</el-form-item> | ||
</el-form> | ||
</el-col> | ||
</el-row> | ||
<div style="height: 100px"></div> | ||
<el-row> | ||
<el-button type="primary" @click.native="lu1">线路1</el-button> | ||
<el-button type="success" @click.native="lu2">线路2</el-button> | ||
<el-button type="warning" @click.native="lu3">线路3</el-button> | ||
</el-row> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { request, URL } from "../common/request"; | ||
export default { | ||
// :href='"#/chapter?resourceId=" + video.resourceID + "&chapterId=" + video.lastSerialid ' | ||
data() { | ||
return { | ||
resourceId: 0, | ||
imgBase64: "", | ||
original: "", | ||
title: "", | ||
page: 1, | ||
pageSize: 10, | ||
data: {} | ||
}; | ||
}, | ||
created: function() { | ||
this.resourceId = parseInt(this.$route.query.videoId); | ||
this.title = this.$route.query.videoName; | ||
this.original = this.$route.query.original; | ||
if (this.resourceId == undefined || this.resourceId == NaN) { | ||
return; | ||
} | ||
request(URL.site("server_url", "/api/video/blue/detail"), { | ||
method: "GET", | ||
params: { | ||
id: this.resourceId, | ||
original: this.original | ||
} | ||
}).then(res => { | ||
this.data = res.response.data; | ||
}); | ||
}, | ||
methods: { | ||
lu1: function() { | ||
window.open(this.data.host + this.data.path, "_blank"); | ||
console.log(this.data.host + this.data.path); | ||
}, | ||
lu2: function() { | ||
window.open(this.data.host2 + this.data.path, "_blank"); | ||
console.log(this.data.host2 + this.data.path); | ||
}, | ||
lu3: function() { | ||
window.open(this.data.host3 + this.data.path, "_blank"); | ||
console.log(this.data.host3 + this.data.path); | ||
} | ||
}, | ||
name: "blue_video_detail" | ||
}; | ||
</script> | ||
|
||
<style> | ||
.demo-table-expand { | ||
font-size: 0; | ||
} | ||
.demo-table-expand label { | ||
width: 80px; | ||
color: #99a9bf; | ||
} | ||
.demo-table-expand .el-form-item { | ||
margin-right: 0; | ||
margin-bottom: 0; | ||
width: 100%; | ||
} | ||
.jianjie { | ||
font-size: 10px; | ||
line-height: 5px; | ||
height: 20px; | ||
padding: 0px; | ||
line-height: 1.5; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<template> | ||
<div id="video_search"> | ||
<el-form :inline="true" :model="formInline" class="demo-form-inline"> | ||
<el-form-item label> | ||
<el-input v-model="formInline.videoName" placeholder="搜索"></el-input> | ||
</el-form-item> | ||
<el-form-item> | ||
<el-button type="primary" @click="onSubmit">查询</el-button> | ||
</el-form-item> | ||
</el-form> | ||
|
||
<el-table :data="tableData" style="width: 100%" @row-click="handdle"> | ||
<el-table-column prop="date" style="width: 100%"> | ||
<template slot-scope="props"> | ||
<el-form label-position="left" inline class="demo-table-expand"> | ||
<el-row :gutter="20"> | ||
<el-col :span="10"> | ||
<div class="grid-content bg-purple"> | ||
<img :src="props.row.pic" style="width: 100px; height: 100px" /> | ||
</div> | ||
</el-col> | ||
<el-col :span="14"> | ||
<el-form-item label="片名"> | ||
<span>{{ props.row.name }}</span> | ||
</el-form-item> | ||
<el-form-item label="类型"> | ||
<span>{{ props.row.type }}</span> | ||
</el-form-item> | ||
<el-form-item label="看过"> | ||
<span>{{ props.row.hits }}</span> | ||
</el-form-item> | ||
<el-form-item label="评分"> | ||
<span>{{ props.row.pf }}</span> | ||
</el-form-item> | ||
</el-col> | ||
</el-row> | ||
</el-form> | ||
</template> | ||
</el-table-column> | ||
</el-table> | ||
</div> | ||
</template> | ||
|
||
|
||
<script> | ||
import { request, URL } from "../common/request"; | ||
export default { | ||
data() { | ||
return { | ||
formInline: { | ||
videoName: "" | ||
}, | ||
tableData: [ | ||
] | ||
}; | ||
}, | ||
methods: { | ||
onSubmit() { | ||
if (this.formInline.videoName === "") { | ||
return false; | ||
} | ||
request(URL.site("server_url", "/api/video/search"), { | ||
method: "GET", | ||
params: { | ||
key: this.formInline.videoName | ||
} | ||
}).then(res => { | ||
console.log(res.response); | ||
this.tableData = res.response.data; | ||
console.log(this.tableData); | ||
}); | ||
}, | ||
handdle(row, event, column) { | ||
this.$router.push("/video_detail?videoId=" + row.id); | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style> | ||
.demo-table-expand { | ||
font-size: 0; | ||
} | ||
.demo-table-expand label { | ||
width: 80px; | ||
color: #99a9bf; | ||
} | ||
.demo-table-expand .el-form-item { | ||
margin-right: 0; | ||
margin-bottom: 0; | ||
width: 100%; | ||
} | ||
</style> | ||
|
Oops, something went wrong.