Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM_4-1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
JM_4-1
Commits
5b19c6fd
Commit
5b19c6fd
authored
Aug 03, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 添加模版2次跳转
parent
5c7dddd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
13 deletions
+32
-13
play.component.ts
src/app/play/play.component.ts
+32
-13
No files found.
src/app/play/play.component.ts
View file @
5b19c6fd
...
@@ -591,12 +591,11 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -591,12 +591,11 @@ export class PlayComponent implements OnInit, OnDestroy {
return
;
return
;
}
}
if
(
progress
==
'
2
'
)
{
const
submitCount
=
this
.
getPageData
(
'
submitCount
'
)
const
submitCount
=
this
.
getPageData
(
'
submitCount
'
)
this
.
submitCount
=
submitCount
;
this
.
submitCount
=
submitCount
;
this
.
checkShowSubTemplateOne
();
this
.
checkShowSubTemplateOne
();
}
}
}
...
@@ -1387,13 +1386,28 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1387,13 +1386,28 @@ export class PlayComponent implements OnInit, OnDestroy {
checkShowSubTemplateOne
()
{
checkShowSubTemplateOne
()
{
this
.
showSubTemplate
(
0
);
//
this.showSubTemplate(0);
// if (this.submitCount == 1) {
const
progress
=
this
.
getPageData
(
'
progress
'
);
// this.showSubTemplate(1);
if
(
progress
==
'
2
'
)
{
// } else {
if
(
this
.
submitCount
==
1
)
{
// this.showSubTemplate(0);
this
.
showSubTemplate
(
1
);
// }
}
else
{
this
.
showSubTemplate
(
0
);
}
return
;
}
if
(
progress
==
'
3
'
)
{
if
(
this
.
submitCount
==
1
)
{
this
.
showSubTemplate
(
0
);
}
else
{
this
.
showSubTemplate
(
1
);
}
}
}
}
...
@@ -1715,7 +1729,9 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1715,7 +1729,9 @@ export class PlayComponent implements OnInit, OnDestroy {
const
data
=
{
msg
:
'
success
'
,
data
:
JSON
.
stringify
(
saveData
)};
const
data
=
{
msg
:
'
success
'
,
data
:
JSON
.
stringify
(
saveData
)};
iframecont
.
contentWindow
.
postMessage
({
action
:
'
getData
'
,
data
:
JSON
.
stringify
(
data
)
},
'
*
'
);
iframecont
.
contentWindow
.
postMessage
({
action
:
'
getData
'
,
data
:
JSON
.
stringify
(
data
)
},
'
*
'
);
iframecont
.
contentWindow
.
postMessage
({
action
:
'
is_show_more
'
,
data
:
JSON
.
stringify
(
false
)
},
'
*
'
);
const
data2
=
{
msg
:
'
success
'
,
data
:
JSON
.
stringify
({
isShowMore
:
false
})};
iframecont
.
contentWindow
.
postMessage
({
action
:
'
is_show_more
'
,
data
:
JSON
.
stringify
(
data2
)
},
'
*
'
);
// setTimeout(() => {
// setTimeout(() => {
// _this.frameLoaded = true;
// _this.frameLoaded = true;
...
@@ -1723,6 +1739,9 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1723,6 +1739,9 @@ export class PlayComponent implements OnInit, OnDestroy {
}
}
if
(
msgData
.
action
===
"
temp_send_result
"
)
{
if
(
msgData
.
action
===
"
temp_send_result
"
)
{
this
.
setPageData
(
'
progress
'
,
'
3
'
);
this
.
checkShowSubTemplateOne
();
console
.
log
(
'
in temp_send_result __ msgData:
'
,
msgData
);
console
.
log
(
'
in temp_send_result __ msgData:
'
,
msgData
);
}
}
...
...
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