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
11aed0ba
authored
Jun 19, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加模板至我的
parent
320eb085
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
src/views/layout/index.vue
+4
-1
src/views/tempaltes/detail.vue
+6
-10
No files found.
src/views/layout/index.vue
View file @
11aed0ba
<
template
>
<div
class=
"layout"
>
<div
class=
"layout-content"
>
<router-view></router-view>
<keep-alive>
<router-view></router-view>
</keep-alive>
</div>
<van-tabbar
route
>
<van-tabbar-item
replace
to=
"/tempaltes"
active
icon=
"home-o"
>
模板库
</van-tabbar-item>
...
...
src/views/tempaltes/detail.vue
View file @
11aed0ba
...
...
@@ -75,8 +75,9 @@ export default {
this
.
templateData
.
templateUrl
=
res
.
data
.
templateUrl
;
this
.
templateData
.
frameUrl
=
res
.
data
.
frameUrl
;
console
.
log
(
"模板详情"
);
axios
.
get
(
'http://visual-clouds.bdideal.com/html/156076616690429b1f3072101465b906a536cf608f824.txt'
).
then
(
res
=>
{
axios
.
get
(
res
.
data
.
resourceUrl
.
replace
(
'bdideal.com'
,
'oss-cn-beijing.aliyuncs.com'
)
).
then
(
res
=>
{
console
.
log
(
res
.
data
);
this
.
templateData
.
listData
=
res
.
data
});
});
},
...
...
@@ -92,7 +93,6 @@ export default {
});
},
publish
()
{
console
.
log
(
this
.
templateData
.
listData
)
if
(
this
.
mode
===
"film"
)
{
updateFilmInfo
(
this
.
$route
.
query
.
filmId
,
...
...
@@ -112,8 +112,9 @@ export default {
resourceId
:
this
.
templateData
.
resourceId
,
frameId
:
this
.
templateData
.
frameId
,
filmData
:
JSON
.
stringify
(
this
.
templateData
.
listData
),
filmName
:
this
.
name
filmName
:
''
}).
then
(
res
=>
{
this
.
$toast
.
success
(
'添加成功'
);
console
.
log
(
res
,
"创建影片成功"
);
this
.
show
=
false
;
// updateFilmInfo(res.data.filmId, "数据").then(res => {
...
...
@@ -125,12 +126,7 @@ export default {
}
},
pub
()
{
if
(
!
this
.
name
)
{
this
.
$toast
(
'请填写方案名称'
)
}
else
{
this
.
show
=
true
;
}
this
.
publish
()
},
enterSubmit
()
{
this
.
message
({
...
...
@@ -138,7 +134,7 @@ export default {
})
setTimeout
(()
=>
{
this
.
publish
()
},
5
00
)
},
1
00
)
},
goEdit
()
{
...
...
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