Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
01db2ef2
authored
Dec 14, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
作品
parent
d78e0e8d
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
60 additions
and
60 deletions
+60
-60
src/api/api.js
+11
-11
src/views/device/detail.vue
+1
-1
src/views/device/films.vue
+1
-1
src/views/device/index.vue
+1
-1
src/views/layout/index.vue
+1
-1
src/views/tempaltes/detail.vue
+10
-10
src/views/tempaltes/edit.vue
+4
-4
src/views/tempaltes/editMore.vue
+3
-3
src/views/tempaltes/filmDetail.vue
+11
-11
src/views/tempaltes/filmDevice.vue
+2
-2
src/views/user/films.vue
+1
-1
src/views/user/index.vue
+1
-1
src/views_pad/layout/index.vue
+1
-1
src/views_pad/tempaltes/detail.vue
+4
-4
src/views_pad/tempaltes/edit.vue
+4
-4
src/views_pad/tempaltes/editMore.vue
+4
-4
No files found.
src/api/api.js
View file @
01db2ef2
...
@@ -7,7 +7,7 @@ export function getTempalteList (page = 1, size = 10 ) {
...
@@ -7,7 +7,7 @@ export function getTempalteList (page = 1, size = 10 ) {
})
})
}
}
export
function
getTempalteFilmList
(
templateId
,
page
=
1
,
size
=
10
)
{
export
function
getTempalteFilmList
(
templateId
,
page
=
1
,
size
=
10
)
{
// 获取模板下
视片
列表
// 获取模板下
作品
列表
return
get
(
`/template/get/film/list/
${
templateId
}
`
,
{
return
get
(
`/template/get/film/list/
${
templateId
}
`
,
{
p
:
page
,
p
:
page
,
c
:
size
c
:
size
...
@@ -57,7 +57,7 @@ export function createTempalte(data) {
...
@@ -57,7 +57,7 @@ export function createTempalte(data) {
}
}
export
function
createFilm
(
data
)
{
export
function
createFilm
(
data
)
{
/**
/**
* 添加
视片
* 添加
作品
* {
* {
"clientId": "string",
"clientId": "string",
"clientSecret": "string",
"clientSecret": "string",
...
@@ -71,24 +71,24 @@ export function createFilm(data) {
...
@@ -71,24 +71,24 @@ export function createFilm(data) {
return
post
(
'/template/add/film'
,
data
)
return
post
(
'/template/add/film'
,
data
)
}
}
export
function
getFilmDetail
(
filmId
)
{
export
function
getFilmDetail
(
filmId
)
{
// 获取
视片
详情
// 获取
作品
详情
return
get
(
`/template/get/film/info/
${
filmId
}
`
)
return
get
(
`/template/get/film/info/
${
filmId
}
`
)
}
}
export
function
getFilmList
(
page
=
1
,
size
=
10
)
{
export
function
getFilmList
(
page
=
1
,
size
=
10
)
{
console
.
log
(
page
,
' page'
)
console
.
log
(
page
,
' page'
)
// 获取所有
视片
// 获取所有
作品
return
post
(
`/myfilm/get/list?p=
${
page
}
&c=
${
size
}
`
,
{
return
post
(
`/myfilm/get/list?p=
${
page
}
&c=
${
size
}
`
,
{
p
:
page
,
p
:
page
,
c
:
size
c
:
size
})
})
}
}
export
function
getFilmDeviceIdList
(
filmId
)
{
export
function
getFilmDeviceIdList
(
filmId
)
{
// 获取
视片
下使用的所有设备id
// 获取
作品
下使用的所有设备id
return
get
(
`/template/get/equipmentid/
${
filmId
}
`
,
{
return
get
(
`/template/get/equipmentid/
${
filmId
}
`
,
{
})
})
}
}
export
function
getFilmDeviceList
(
filmId
,
page
=
1
,
size
=
10
)
{
export
function
getFilmDeviceList
(
filmId
,
page
=
1
,
size
=
10
)
{
// 获取
视片
下使用的所有设备
// 获取
作品
下使用的所有设备
return
get
(
`/template/get/equipment/list/
${
filmId
}
`
,
{
return
get
(
`/template/get/equipment/list/
${
filmId
}
`
,
{
p
:
page
,
p
:
page
,
c
:
size
c
:
size
...
@@ -96,14 +96,14 @@ export function getFilmDeviceList(filmId, page = 1, size = 10 ) {
...
@@ -96,14 +96,14 @@ export function getFilmDeviceList(filmId, page = 1, size = 10 ) {
}
}
export
function
bindDeviceToFilm
(
equipmentId
,
filmId
)
{
export
function
bindDeviceToFilm
(
equipmentId
,
filmId
)
{
// 根据设备标识以及
视片id设置默认视片
// 根据设备标识以及
作品id设置默认作品
return
post
(
`/template/update/equipment/binding/filmid`
,
{
return
post
(
`/template/update/equipment/binding/filmid`
,
{
equipmentId
,
equipmentId
,
filmId
filmId
})
})
}
}
export
function
setDeviceDefaltFilm
(
clientId
=
'maxrocky'
,
clientSecret
=
'maxrocky'
,
filmId
)
{
export
function
setDeviceDefaltFilm
(
clientId
=
'maxrocky'
,
clientSecret
=
'maxrocky'
,
filmId
)
{
// 根据设备标识以及
视片id设置默认视片
// 根据设备标识以及
作品id设置默认作品
return
post
(
`/myequipment/update/film/def/version`
,
{
return
post
(
`/myequipment/update/film/def/version`
,
{
clientId
,
clientId
,
clientSecret
,
clientSecret
,
...
@@ -111,7 +111,7 @@ export function setDeviceDefaltFilm(clientId = 'maxrocky',clientSecret = 'maxroc
...
@@ -111,7 +111,7 @@ export function setDeviceDefaltFilm(clientId = 'maxrocky',clientSecret = 'maxroc
})
})
}
}
export
function
updateFilmInfo
(
filmId
,
filmData
,
filmName
,
filmDescribe
)
{
export
function
updateFilmInfo
(
filmId
,
filmData
,
filmName
,
filmDescribe
)
{
// 更新
视片
信息
// 更新
作品
信息
return
post
(
'/template/update/film/info'
,
{
return
post
(
'/template/update/film/info'
,
{
filmId
,
filmId
,
filmData
,
filmData
,
...
@@ -120,7 +120,7 @@ export function updateFilmInfo(filmId, filmData, filmName, filmDescribe) {
...
@@ -120,7 +120,7 @@ export function updateFilmInfo(filmId, filmData, filmName, filmDescribe) {
})
})
}
}
export
function
updateBaseFilmInfo
(
filmId
,
filmName
,
filmDescribe
)
{
export
function
updateBaseFilmInfo
(
filmId
,
filmName
,
filmDescribe
)
{
// 更新
视片
基本信息
// 更新
作品
基本信息
return
post
(
'/template/update/film/base/info'
,
{
return
post
(
'/template/update/film/base/info'
,
{
filmId
,
filmId
,
filmName
,
filmName
,
...
@@ -128,7 +128,7 @@ export function updateBaseFilmInfo(filmId, filmName, filmDescribe) {
...
@@ -128,7 +128,7 @@ export function updateBaseFilmInfo(filmId, filmName, filmDescribe) {
})
})
}
}
export
function
deleteFilm
(
filmId
)
{
export
function
deleteFilm
(
filmId
)
{
// 删除
视片
// 删除
作品
return
get
(
`/template/del/film/info/
${
filmId
}
`
)
return
get
(
`/template/del/film/info/
${
filmId
}
`
)
}
}
...
...
src/views/device/detail.vue
View file @
01db2ef2
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</div>
</div>
<div
class=
"view-film"
>
<div
class=
"view-film"
>
<div
class=
"right-item-title"
>
<div
class=
"right-item-title"
>
<span>
正在播放的
视片
:
</span>
<span>
正在播放的
作品
:
</span>
<span>
{{
detail
.
filmName
?
detail
.
filmName
:
'无'
}}
</span>
<span>
{{
detail
.
filmName
?
detail
.
filmName
:
'无'
}}
</span>
</div>
</div>
...
...
src/views/device/films.vue
View file @
01db2ef2
<
template
>
<
template
>
<div
class=
"film-container"
>
<div
class=
"film-container"
>
<div
class=
"device-count"
>
<div
class=
"device-count"
>
<div
class=
"count"
>
已创建
视片
:
{{
list
.
length
}}
部
</div>
<div
class=
"count"
>
已创建
作品
:
{{
list
.
length
}}
部
</div>
</div>
</div>
<van-pull-refresh
v-model=
"isLoading"
@
refresh=
"onRefresh"
>
<van-pull-refresh
v-model=
"isLoading"
@
refresh=
"onRefresh"
>
<van-list
v-model=
"loading"
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"onLoad"
>
<van-list
v-model=
"loading"
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"onLoad"
>
...
...
src/views/device/index.vue
View file @
01db2ef2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"device-container"
>
<div
class=
"device-container"
>
<!-- swipeable -->
<!-- swipeable -->
<van-tabs
v-model=
"active"
sticky
ellipsis
color=
"#1989fa"
@
change=
"tabChange"
>
<van-tabs
v-model=
"active"
sticky
ellipsis
color=
"#1989fa"
@
change=
"tabChange"
>
<van-tab
title=
"我的
视片
"
>
<van-tab
title=
"我的
作品
"
>
<films></films>
<films></films>
</van-tab>
</van-tab>
<van-tab
title=
"我的设备"
>
<van-tab
title=
"我的设备"
>
...
...
src/views/layout/index.vue
View file @
01db2ef2
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<van-tabbar-item
:class=
"
{ 'van-tabbar-item--active' : currentPath.includes('/device') }" replace :to="{
<van-tabbar-item
:class=
"
{ 'van-tabbar-item--active' : currentPath.includes('/device') }" replace :to="{
path: '/device',
path: '/device',
exact: false
exact: false
}" icon="setting-o">设备与
视片
</van-tabbar-item>
}" icon="setting-o">设备与
作品
</van-tabbar-item>
<van-tabbar-item
:class=
"
{ 'van-tabbar-item--active' : currentPath.includes('/user') }" replace :to="{
<van-tabbar-item
:class=
"
{ 'van-tabbar-item--active' : currentPath.includes('/user') }" replace :to="{
path: '/user',
path: '/user',
exact: false
exact: false
...
...
src/views/tempaltes/detail.vue
View file @
01db2ef2
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</div>
</div>
<div
class=
"bgeee"
></div>
<div
class=
"bgeee"
></div>
<div
class=
"myfilms"
>
<div
class=
"myfilms"
>
<div
class=
"title"
>
我的
视片
(
{{
list
.
length
}}
)
</div>
<div
class=
"title"
>
我的
作品
(
{{
list
.
length
}}
)
</div>
<van-list
v-model=
"loading"
:finished=
"finished"
finished-text
@
load=
"onLoad"
>
<van-list
v-model=
"loading"
:finished=
"finished"
finished-text
@
load=
"onLoad"
>
<div
class=
"film-list"
>
<div
class=
"film-list"
>
<div
class=
"film-item"
@
click=
"goFilm(item)"
v-for=
"(item,index) in list"
:key=
"index"
>
<div
class=
"film-item"
@
click=
"goFilm(item)"
v-for=
"(item,index) in list"
:key=
"index"
>
...
@@ -37,17 +37,17 @@
...
@@ -37,17 +37,17 @@
</van-list>
</van-list>
</div>
</div>
</div>
</div>
<van-button
type=
"info"
class=
"createBtn"
size=
"large"
@
click=
"showInput"
>
创建
视片
</van-button>
<van-button
type=
"info"
class=
"createBtn"
size=
"large"
@
click=
"showInput"
>
创建
作品
</van-button>
<van-dialog
:before-close=
"beforeClose"
v-model=
"show"
title=
"
视片
信息"
show-cancel-button
>
<van-dialog
:before-close=
"beforeClose"
v-model=
"show"
title=
"
作品
信息"
show-cancel-button
>
<div
class=
"tips"
>
<div
class=
"tips"
>
*
视片
名称:
*
作品
名称:
</div>
</div>
<input
placeholder=
"请输入
视片
名称"
v-model=
"templateData.filmName"
class=
"film-name"
type=
"text"
/>
<input
placeholder=
"请输入
作品
名称"
v-model=
"templateData.filmName"
class=
"film-name"
type=
"text"
/>
<br
/>
<br
/>
<div
class=
"tips"
>
<div
class=
"tips"
>
视片
描述:
作品
描述:
</div>
</div>
<input
placeholder=
"请输入
视片
描述"
v-model=
"templateData.filmDescribe"
class=
"film-name"
type=
"text"
/>
<input
placeholder=
"请输入
作品
描述"
v-model=
"templateData.filmDescribe"
class=
"film-name"
type=
"text"
/>
</van-dialog>
</van-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -151,7 +151,7 @@ export default {
...
@@ -151,7 +151,7 @@ export default {
console
.
log
(
action
);
console
.
log
(
action
);
if
(
action
===
"confirm"
)
{
if
(
action
===
"confirm"
)
{
if
(
!
this
.
templateData
.
filmName
)
{
if
(
!
this
.
templateData
.
filmName
)
{
this
.
$toast
(
"请输入
视片
名称"
);
this
.
$toast
(
"请输入
作品
名称"
);
done
(
false
);
done
(
false
);
}
else
{
}
else
{
createFilm
({
createFilm
({
...
@@ -166,13 +166,13 @@ export default {
...
@@ -166,13 +166,13 @@ export default {
}).
then
(
res
=>
{
}).
then
(
res
=>
{
done
();
done
();
this
.
$toast
.
success
(
"添加成功"
);
this
.
$toast
.
success
(
"添加成功"
);
console
.
log
(
res
,
"创建
视片
成功"
);
console
.
log
(
res
,
"创建
作品
成功"
);
this
.
show
=
false
;
this
.
show
=
false
;
this
.
goFilm
({
this
.
goFilm
({
filmId
:
res
.
data
.
data
filmId
:
res
.
data
.
data
})
})
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// console.log(res, "更新
视片
成功");
// console.log(res, "更新
作品
成功");
// this.$router.back();
// this.$router.back();
// });
// });
// this.$router.back();
// this.$router.back();
...
...
src/views/tempaltes/edit.vue
View file @
01db2ef2
...
@@ -249,7 +249,7 @@ export default {
...
@@ -249,7 +249,7 @@ export default {
},
},
getFilmDetail
()
{
getFilmDetail
()
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
"
视片
详情"
);
console
.
log
(
res
.
data
,
"
作品
详情"
);
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
name
=
res
.
data
.
filmName
;
this
.
name
=
res
.
data
.
filmName
;
this
.
templateData
.
resourceUrl
=
res
.
data
.
resourceUrl
;
this
.
templateData
.
resourceUrl
=
res
.
data
.
resourceUrl
;
...
@@ -272,7 +272,7 @@ export default {
...
@@ -272,7 +272,7 @@ export default {
).
then
(
res
=>
{
).
then
(
res
=>
{
this
.
show
=
false
;
this
.
show
=
false
;
this
.
$toast
.
success
(
"发布成功"
);
this
.
$toast
.
success
(
"发布成功"
);
console
.
log
(
res
,
"更新
视片
成功"
);
console
.
log
(
res
,
"更新
作品
成功"
);
this
.
$router
.
back
();
this
.
$router
.
back
();
});
});
}
}
...
@@ -287,10 +287,10 @@ export default {
...
@@ -287,10 +287,10 @@ export default {
filmName
:
this
.
name
filmName
:
this
.
name
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
$toast
.
success
(
"发布成功"
);
this
.
$toast
.
success
(
"发布成功"
);
console
.
log
(
res
,
"创建
视片
成功"
);
console
.
log
(
res
,
"创建
作品
成功"
);
this
.
show
=
false
;
this
.
show
=
false
;
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// console.log(res, "更新
视片
成功");
// console.log(res, "更新
作品
成功");
// this.$router.back();
// this.$router.back();
// });
// });
this
.
$router
.
back
();
this
.
$router
.
back
();
...
...
src/views/tempaltes/editMore.vue
View file @
01db2ef2
<
template
>
<
template
>
<div
class=
"edit-container"
>
<div
class=
"edit-container"
>
<NavBar
title=
"编辑
视片
"
v-if=
"!is_mini_token"
left-arrow
>
<NavBar
title=
"编辑
作品
"
v-if=
"!is_mini_token"
left-arrow
>
<div
@
click=
"pageShow"
>
页面管理
</div>
<div
@
click=
"pageShow"
>
页面管理
</div>
</NavBar>
</NavBar>
<svg
<svg
...
@@ -398,7 +398,7 @@ export default {
...
@@ -398,7 +398,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
document
.
title
=
"编辑
视片
"
;
document
.
title
=
"编辑
作品
"
;
var
timer
=
setTimeout
(()
=>
{
var
timer
=
setTimeout
(()
=>
{
this
.
gifloaded
=
true
;
this
.
gifloaded
=
true
;
clearTimeout
(
timer
);
clearTimeout
(
timer
);
...
@@ -573,7 +573,7 @@ export default {
...
@@ -573,7 +573,7 @@ export default {
getFilmDetail
()
{
getFilmDetail
()
{
if
(
this
.
$route
.
query
.
filmId
)
{
if
(
this
.
$route
.
query
.
filmId
)
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
"
视片
详情"
);
console
.
log
(
res
.
data
,
"
作品
详情"
);
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
templateData
.
filmName
=
res
.
data
.
filmName
;
this
.
templateData
.
filmName
=
res
.
data
.
filmName
;
this
.
templateData
.
resourceUrl
=
res
.
data
.
resourceUrl
;
this
.
templateData
.
resourceUrl
=
res
.
data
.
resourceUrl
;
...
...
src/views/tempaltes/filmDetail.vue
View file @
01db2ef2
...
@@ -57,16 +57,16 @@
...
@@ -57,16 +57,16 @@
</div>
-->
</div>
-->
</div>
</div>
<div
class=
"createBtn"
>
<div
class=
"createBtn"
>
<van-button
type=
"info"
style=
"width:45%"
@
click=
"goEdit"
>
修改
视片
</van-button>
<van-button
type=
"info"
style=
"width:45%"
@
click=
"goEdit"
>
修改
作品
</van-button>
<van-button
type=
"info"
@
click=
"goDevices"
style=
"width:45%"
>
更新绑定设备
</van-button>
<van-button
type=
"info"
@
click=
"goDevices"
style=
"width:45%"
>
更新绑定设备
</van-button>
</div>
</div>
<van-dialog
:before-close=
"beforeClose"
v-model=
"show"
title=
"
视片
信息"
show-cancel-button
>
<van-dialog
:before-close=
"beforeClose"
v-model=
"show"
title=
"
作品
信息"
show-cancel-button
>
<div
class=
"tips"
>
*
视片
名称:
</div>
<div
class=
"tips"
>
*
作品
名称:
</div>
<input
placeholder=
"请输入
视片
名称"
v-model=
"templateData.filmName"
class=
"film-name"
type=
"text"
/>
<input
placeholder=
"请输入
作品
名称"
v-model=
"templateData.filmName"
class=
"film-name"
type=
"text"
/>
<br
/>
<br
/>
<div
class=
"tips"
>
视片
描述:
</div>
<div
class=
"tips"
>
作品
描述:
</div>
<input
<input
placeholder=
"请输入
视片
描述"
placeholder=
"请输入
作品
描述"
v-model=
"templateData.filmDescribe"
v-model=
"templateData.filmDescribe"
class=
"film-name"
class=
"film-name"
type=
"text"
type=
"text"
...
@@ -87,7 +87,7 @@ export default {
...
@@ -87,7 +87,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
show
:
false
,
show
:
false
,
title
:
"
视片
详情"
,
title
:
"
作品
详情"
,
current
:
0
,
current
:
0
,
page
:
1
,
page
:
1
,
list
:
[],
list
:
[],
...
@@ -130,7 +130,7 @@ export default {
...
@@ -130,7 +130,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
document
.
title
=
"
视片
详情"
;
document
.
title
=
"
作品
详情"
;
window
.
addEventListener
(
"popstate"
,
()
=>
{
window
.
addEventListener
(
"popstate"
,
()
=>
{
window
.
wx
.
miniProgram
.
navigateBack
();
window
.
wx
.
miniProgram
.
navigateBack
();
console
.
log
(
'wx.miniProgram.navigateBack()'
)
console
.
log
(
'wx.miniProgram.navigateBack()'
)
...
@@ -153,7 +153,7 @@ export default {
...
@@ -153,7 +153,7 @@ export default {
},
},
getFilmDetail
()
{
getFilmDetail
()
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
"
视片
详情"
);
console
.
log
(
res
.
data
,
"
作品
详情"
);
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
templateData
.
templateUrl
=
res
.
data
.
templateUrl
.
split
(
","
);
this
.
templateData
.
templateUrl
=
res
.
data
.
templateUrl
.
split
(
","
);
this
.
templateData
.
filmName
=
res
.
data
.
filmName
;
this
.
templateData
.
filmName
=
res
.
data
.
filmName
;
...
@@ -182,7 +182,7 @@ export default {
...
@@ -182,7 +182,7 @@ export default {
console
.
log
(
action
);
console
.
log
(
action
);
if
(
action
===
"confirm"
)
{
if
(
action
===
"confirm"
)
{
if
(
!
this
.
templateData
.
filmName
)
{
if
(
!
this
.
templateData
.
filmName
)
{
this
.
$toast
(
"请输入
视片
名称"
);
this
.
$toast
(
"请输入
作品
名称"
);
done
(
false
);
done
(
false
);
}
else
{
}
else
{
updateBaseFilmInfo
(
updateBaseFilmInfo
(
...
@@ -194,7 +194,7 @@ export default {
...
@@ -194,7 +194,7 @@ export default {
this
.
$toast
.
success
(
"更新成功"
);
this
.
$toast
.
success
(
"更新成功"
);
this
.
show
=
false
;
this
.
show
=
false
;
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// console.log(res, "更新
视片
成功");
// console.log(res, "更新
作品
成功");
// this.$router.back();
// this.$router.back();
// });
// });
// this.$router.back();
// this.$router.back();
...
...
src/views/tempaltes/filmDevice.vue
View file @
01db2ef2
<
template
>
<
template
>
<div
class=
"edit-container"
>
<div
class=
"edit-container"
>
<NavBar
title=
"
视片
设备列表"
v-if=
"!is_mini_token"
left-arrow
></NavBar>
<NavBar
title=
"
作品
设备列表"
v-if=
"!is_mini_token"
left-arrow
></NavBar>
<div
class=
"content"
>
<div
class=
"content"
>
<div
class=
"myfilms"
>
<div
class=
"myfilms"
>
<div
class=
"title"
>
<div
class=
"title"
>
...
@@ -135,7 +135,7 @@ export default {
...
@@ -135,7 +135,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
document
.
title
=
"
视片
设备列表"
;
document
.
title
=
"
作品
设备列表"
;
},
},
methods
:
{
methods
:
{
getScheduleDetail
()
{
getScheduleDetail
()
{
...
...
src/views/user/films.vue
View file @
01db2ef2
<
template
>
<
template
>
<div>
<div>
<NavBar
title=
"我的
视片
"
left-arrow
></NavBar>
<NavBar
title=
"我的
作品
"
left-arrow
></NavBar>
<film></film>
<film></film>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/user/index.vue
View file @
01db2ef2
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<!--
<div
class=
"user-name"
></div>
-->
<!--
<div
class=
"user-name"
></div>
-->
</div>
</div>
<div
class=
"eee-bg"
></div>
<div
class=
"eee-bg"
></div>
<van-cell
title=
"我的
视片
"
icon=
"shop-o"
is-link
:to=
"
{
<van-cell
title=
"我的
作品
"
icon=
"shop-o"
is-link
:to=
"
{
path: '/user/films'
path: '/user/films'
}">
</van-cell>
}">
</van-cell>
<van-cell
title=
"我的设备"
icon=
"shop-o"
is-link
:to=
"
{
<van-cell
title=
"我的设备"
icon=
"shop-o"
is-link
:to=
"
{
...
...
src/views_pad/layout/index.vue
View file @
01db2ef2
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<van-tabbar-item
:class=
"
{ 'van-tabbar-item--active' : currentPath.includes('/device') }" replace :to="{
<van-tabbar-item
:class=
"
{ 'van-tabbar-item--active' : currentPath.includes('/device') }" replace :to="{
path: '/device',
path: '/device',
exact: false
exact: false
}" icon="setting-o">设备与
视片
</van-tabbar-item>
}" icon="setting-o">设备与
作品
</van-tabbar-item>
<van-tabbar-item
:class=
"
{ 'van-tabbar-item--active' : currentPath.includes('/user') }" replace :to="{
<van-tabbar-item
:class=
"
{ 'van-tabbar-item--active' : currentPath.includes('/user') }" replace :to="{
path: '/user',
path: '/user',
exact: false
exact: false
...
...
src/views_pad/tempaltes/detail.vue
View file @
01db2ef2
...
@@ -83,7 +83,7 @@ export default {
...
@@ -83,7 +83,7 @@ export default {
},
},
getFilmDetail
()
{
getFilmDetail
()
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
"
视片
详情"
);
console
.
log
(
res
.
data
,
"
作品
详情"
);
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
name
=
res
.
data
.
filmName
this
.
name
=
res
.
data
.
filmName
this
.
templateData
.
resourceUrl
=
res
.
data
.
resourceUrl
;
this
.
templateData
.
resourceUrl
=
res
.
data
.
resourceUrl
;
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
JSON
.
stringify
(
this
.
templateData
.
listData
)
JSON
.
stringify
(
this
.
templateData
.
listData
)
).
then
(
res
=>
{
).
then
(
res
=>
{
this
.
show
=
false
;
this
.
show
=
false
;
console
.
log
(
res
,
"更新
视片
成功"
);
console
.
log
(
res
,
"更新
作品
成功"
);
this
.
$router
.
back
();
this
.
$router
.
back
();
});
});
}
}
...
@@ -115,10 +115,10 @@ export default {
...
@@ -115,10 +115,10 @@ export default {
filmName
:
''
filmName
:
''
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
$toast
.
success
(
'添加成功'
);
this
.
$toast
.
success
(
'添加成功'
);
console
.
log
(
res
,
"创建
视片
成功"
);
console
.
log
(
res
,
"创建
作品
成功"
);
this
.
show
=
false
;
this
.
show
=
false
;
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// console.log(res, "更新
视片
成功");
// console.log(res, "更新
作品
成功");
// this.$router.back();
// this.$router.back();
// });
// });
// this.$router.back();
// this.$router.back();
...
...
src/views_pad/tempaltes/edit.vue
View file @
01db2ef2
...
@@ -249,7 +249,7 @@ export default {
...
@@ -249,7 +249,7 @@ export default {
},
},
getFilmDetail
()
{
getFilmDetail
()
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
"
视片
详情"
);
console
.
log
(
res
.
data
,
"
作品
详情"
);
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
name
=
res
.
data
.
filmName
;
this
.
name
=
res
.
data
.
filmName
;
this
.
templateData
.
resourceUrl
=
res
.
data
.
resourceUrl
;
this
.
templateData
.
resourceUrl
=
res
.
data
.
resourceUrl
;
...
@@ -272,7 +272,7 @@ export default {
...
@@ -272,7 +272,7 @@ export default {
).
then
(
res
=>
{
).
then
(
res
=>
{
this
.
show
=
false
;
this
.
show
=
false
;
this
.
$toast
.
success
(
"发布成功"
);
this
.
$toast
.
success
(
"发布成功"
);
console
.
log
(
res
,
"更新
视片
成功"
);
console
.
log
(
res
,
"更新
作品
成功"
);
this
.
$router
.
back
();
this
.
$router
.
back
();
});
});
}
}
...
@@ -287,10 +287,10 @@ export default {
...
@@ -287,10 +287,10 @@ export default {
filmName
:
this
.
name
filmName
:
this
.
name
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
$toast
.
success
(
"发布成功"
);
this
.
$toast
.
success
(
"发布成功"
);
console
.
log
(
res
,
"创建
视片
成功"
);
console
.
log
(
res
,
"创建
作品
成功"
);
this
.
show
=
false
;
this
.
show
=
false
;
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// console.log(res, "更新
视片
成功");
// console.log(res, "更新
作品
成功");
// this.$router.back();
// this.$router.back();
// });
// });
this
.
$router
.
back
();
this
.
$router
.
back
();
...
...
src/views_pad/tempaltes/editMore.vue
View file @
01db2ef2
...
@@ -384,7 +384,7 @@ export default {
...
@@ -384,7 +384,7 @@ export default {
},
},
getFilmDetail
()
{
getFilmDetail
()
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
getFilmDetail
(
this
.
$route
.
query
.
filmId
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
"
视片
详情"
);
console
.
log
(
res
.
data
,
"
作品
详情"
);
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
templateData
.
filmId
=
res
.
data
.
filmId
;
this
.
name
=
res
.
data
.
filmName
;
this
.
name
=
res
.
data
.
filmName
;
this
.
templateData
.
resourceUrl
=
res
.
data
.
resourceUrl
;
this
.
templateData
.
resourceUrl
=
res
.
data
.
resourceUrl
;
...
@@ -407,7 +407,7 @@ export default {
...
@@ -407,7 +407,7 @@ export default {
).
then
(
res
=>
{
).
then
(
res
=>
{
this
.
show
=
false
;
this
.
show
=
false
;
this
.
$toast
.
success
(
"发布成功"
);
this
.
$toast
.
success
(
"发布成功"
);
console
.
log
(
res
,
"更新
视片
成功"
);
console
.
log
(
res
,
"更新
作品
成功"
);
this
.
$router
.
back
();
this
.
$router
.
back
();
});
});
}
}
...
@@ -422,10 +422,10 @@ export default {
...
@@ -422,10 +422,10 @@ export default {
filmName
:
this
.
name
filmName
:
this
.
name
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
$toast
.
success
(
"发布成功"
);
this
.
$toast
.
success
(
"发布成功"
);
console
.
log
(
res
,
"创建
视片
成功"
);
console
.
log
(
res
,
"创建
作品
成功"
);
this
.
show
=
false
;
this
.
show
=
false
;
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// updateFilmInfo(res.data.filmId, "数据").then(res => {
// console.log(res, "更新
视片
成功");
// console.log(res, "更新
作品
成功");
// this.$router.back();
// this.$router.back();
// });
// });
this
.
$router
.
back
();
this
.
$router
.
back
();
...
...
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