Commit 5b19c6fd authored by limingzhe's avatar limingzhe

fix: 添加模版2次跳转

parent 5c7dddd1
...@@ -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);
const progress = this.getPageData('progress');
if (progress == '2') {
if (this.submitCount == 1) {
this.showSubTemplate(1);
} else {
this.showSubTemplate(0); this.showSubTemplate(0);
}
return;
}
if (progress == '3') {
if (this.submitCount == 1) {
this.showSubTemplate(0);
} else {
this.showSubTemplate(1);
}
}
// if (this.submitCount == 1) {
// this.showSubTemplate(1);
// } else {
// this.showSubTemplate(0);
// }
} }
...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment