Commit 3d5c914f authored by limingzhe's avatar limingzhe

fix: debug

parent 3a2fd72b
...@@ -103,7 +103,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -103,7 +103,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.item.quesArr = []; this.item.quesArr = [];
this.addOnePageBtnClick(); this.addOnePageBtnClick(false);
const ques = this.item.quesArr[0]; const ques = this.item.quesArr[0];
this.randomSentenceList = this.getRandomList(this.bookTextList); this.randomSentenceList = this.getRandomList(this.bookTextList);
...@@ -278,7 +278,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -278,7 +278,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
addOnePageBtnClick() { addOnePageBtnClick(isSave = true) {
const ques = { const ques = {
optionArr:[], optionArr:[],
...@@ -298,8 +298,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -298,8 +298,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
// this.refreshQuesRes(); // this.refreshQuesRes();
if (isSave) {
this.save(); this.save();
} }
}
addOneOption(ques) { addOneOption(ques) {
ques.optionArr.push({ ques.optionArr.push({
...@@ -406,195 +408,195 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -406,195 +408,195 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
getBookTextLis() { getBookTextLis() {
// let resData1 = { let resData1 = {
// "msg": "success", "msg": "success",
// "data": [ "data": [
// { {
// "number": 4, "number": 4,
// "text": "Hank Hammer" "text": "Hank Hammer"
// }, },
// { {
// "number": 5, "number": 5,
// "text": "MEET THE TOOL TEAM" "text": "MEET THE TOOL TEAM"
// }, },
// { {
// "number": 5, "number": 5,
// "text": "Tia Tape Measure" "text": "Tia Tape Measure"
// }, },
// { {
// "number": 5, "number": 5,
// "text": "Hank Hammer" "text": "Hank Hammer"
// }, },
// { {
// "number": 6, "number": 6,
// "text": "Sammy Saw" "text": "Sammy Saw"
// }, },
// { {
// "number": 6, "number": 6,
// "text": "Sophie Screwdriver" "text": "Sophie Screwdriver"
// }, },
// { {
// "number": 7, "number": 7,
// "text": "Today is the big contest. Hank is very excited! He jumps out of bed." "text": "Today is the big contest. Hank is very excited! He jumps out of bed."
// }, },
// { {
// "number": 8, "number": 8,
// "text": "He brushes his teeth and gets ready." "text": "He brushes his teeth and gets ready."
// }, },
// { {
// "number": 9, "number": 9,
// "text": "\"Have a fun day,\" his mom says." "text": "\"Have a fun day,\" his mom says."
// }, },
// { {
// "number": 9, "number": 9,
// "text": "“Good luck at the contest.\"" "text": "“Good luck at the contest.\""
// }, },
// { {
// "number": 10, "number": 10,
// "text": "\"Thanks, Mom,\" Hank says as he rushes out the door." "text": "\"Thanks, Mom,\" Hank says as he rushes out the door."
// }, },
// { {
// "number": 11, "number": 11,
// "text": "\"Hi, everyone! Are you ready for the big contest?\" asks Hank." "text": "\"Hi, everyone! Are you ready for the big contest?\" asks Hank."
// }, },
// { {
// "number": 12, "number": 12,
// "text": "\"We're ready!\" they yell." "text": "\"We're ready!\" they yell."
// }, },
// { {
// "number": 13, "number": 13,
// "text": "\"I have the wood,\" says Sammy." "text": "\"I have the wood,\" says Sammy."
// }, },
// { {
// "number": 13, "number": 13,
// "text": "\"I have the nails,\" says Tia." "text": "\"I have the nails,\" says Tia."
// }, },
// { {
// "number": 14, "number": 14,
// "text": "“I have the red paint and the blue paint,\"says Sophie." "text": "“I have the red paint and the blue paint,\"says Sophie."
// }, },
// { {
// "number": 15, "number": 15,
// "text": "“And I have the plans,\" says Hank." "text": "“And I have the plans,\" says Hank."
// }, },
// { {
// "number": 16, "number": 16,
// "text": "“We are going to build the best birdhouse!\"says Sammy." "text": "“We are going to build the best birdhouse!\"says Sammy."
// }, },
// { {
// "number": 17, "number": 17,
// "text": "\"It's time to start,\"says Sophie." "text": "\"It's time to start,\"says Sophie."
// }, },
// { {
// "number": 17, "number": 17,
// "text": "\"What do we do?\" asks Tia." "text": "\"What do we do?\" asks Tia."
// }, },
// { {
// "number": 18, "number": 18,
// "text": "“Just follow my plan,\" says Hank." "text": "“Just follow my plan,\" says Hank."
// }, },
// { {
// "number": 18, "number": 18,
// "text": "“I have everything mapped out right here.\"" "text": "“I have everything mapped out right here.\""
// }, },
// { {
// "number": 19, "number": 19,
// "text": "“First, we measure everything,\"" "text": "“First, we measure everything,\""
// }, },
// { {
// "number": 19, "number": 19,
// "text": "says Hank." "text": "says Hank."
// }, },
// { {
// "number": 20, "number": 20,
// "text": "\"That's my job,\" says Tia." "text": "\"That's my job,\" says Tia."
// }, },
// { {
// "number": 20, "number": 20,
// "text": "“Great!\"says Hank." "text": "“Great!\"says Hank."
// }, },
// { {
// "number": 21, "number": 21,
// "text": "\"Next, we cut the wood,\"" "text": "\"Next, we cut the wood,\""
// }, },
// { {
// "number": 21, "number": 21,
// "text": "says Hank." "text": "says Hank."
// }, },
// { {
// "number": 22, "number": 22,
// "text": "\"That's my job,\" says Sammy." "text": "\"That's my job,\" says Sammy."
// }, },
// { {
// "number": 22, "number": 22,
// "text": "\"Great!\" says Hank." "text": "\"Great!\" says Hank."
// }, },
// { {
// "number": 23, "number": 23,
// "text": "\"Then, we put the house together,\"" "text": "\"Then, we put the house together,\""
// }, },
// { {
// "number": 23, "number": 23,
// "text": "says Hank." "text": "says Hank."
// }, },
// { {
// "number": 24, "number": 24,
// "text": "“I'll hold the nails. You can pound them in,\"says Sophie." "text": "“I'll hold the nails. You can pound them in,\"says Sophie."
// }, },
// { {
// "number": 24, "number": 24,
// "text": "\"Great!\"says Hank." "text": "\"Great!\"says Hank."
// }, },
// { {
// "number": 25, "number": 25,
// "text": "\"Now we paint it,\" says Hank." "text": "\"Now we paint it,\" says Hank."
// }, },
// { {
// "number": 26, "number": 26,
// "text": "\"We can all do that,\" says Sophie." "text": "\"We can all do that,\" says Sophie."
// }, },
// { {
// "number": 26, "number": 26,
// "text": "\"Great!\" says Hank." "text": "\"Great!\" says Hank."
// }, },
// { {
// "number": 27, "number": 27,
// "text": "The birdhouse is done. The tool team sets it on the table next to the other ones." "text": "The birdhouse is done. The tool team sets it on the table next to the other ones."
// }, },
// { {
// "number": 28, "number": 28,
// "text": "\"It's prefect,\"says Hank." "text": "\"It's prefect,\"says Hank."
// }, },
// { {
// "number": 29, "number": 29,
// "text": "“I think we built the best one,\"" "text": "“I think we built the best one,\""
// }, },
// { {
// "number": 29, "number": 29,
// "text": "says Sammy." "text": "says Sammy."
// }, },
// { {
// "number": 30, "number": 30,
// "text": "\"And we did it together,\" says Tia." "text": "\"And we did it together,\" says Tia."
// }, },
// { {
// "number": 31, "number": 31,
// "text": "\"I have one more thing to add,\"" "text": "\"I have one more thing to add,\""
// }, },
// { {
// "number": 31, "number": 31,
// "text": "says Hank." "text": "says Hank."
// }, },
// { {
// "number": 32, "number": 32,
// "text": "\"Now it's perfect,\" says Sammy." "text": "\"Now it's perfect,\" says Sammy."
// } }
// ] ]
// } }
// this.bookTextList = resData1.data; this.bookTextList = resData1.data;
// return; return;
console.log(' in getBookTextLis'); console.log(' in getBookTextLis');
const call_back = (res) => { const call_back = (res) => {
......
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