From 0ada59622eda48719e6ac9f91f9d18270d2edede Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期二, 18 二月 2025 11:16:03 +0800 Subject: [PATCH] 样章初始页 --- src/books/aurturingAndEducationAged0to3/view/components/chapter001.vue | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/books/aurturingAndEducationAged0to3/view/components/chapter001.vue b/src/books/aurturingAndEducationAged0to3/view/components/chapter001.vue index 81294fe..9963c6b 100644 --- a/src/books/aurturingAndEducationAged0to3/view/components/chapter001.vue +++ b/src/books/aurturingAndEducationAged0to3/view/components/chapter001.vue @@ -687,7 +687,7 @@ <p><img class="rwmb-1" alt="" src="../../assets/images/tb-8.png" /><span class="zt-ht">瀛︿範鍙嶆��</span> </p> <textarea v-model="bookData.eight" placeholder="璇疯緭鍏ュ唴瀹�" rows="9" class="table-textarea" - @change="setBookQuestion"></textarea> + @change="setBookData"></textarea> </div> <ul class="fl al-fe jc-fe footer-right"> <li class="footerText">绗竴鍗曡繙</li> @@ -697,7 +697,7 @@ </div> </div> <!-- 18椤� --> - <div class="page-box" page="29"> + <!-- <div class="page-box" page="29"> <div v-if="showPageList.indexOf(29) > -1"> <div class="bodystyle"> @@ -707,9 +707,9 @@ <li class="footerText-left">0~3宀佸┐骞煎効鎶氳偛涓庢暀鑲�</li> </ul> </div> - </div> + </div> --> <!-- 19椤� --> - <div class="page-box" page="30"> + <!-- <div class="page-box" page="30"> <div v-if="showPageList.indexOf(30) > -1"> <div class="bodystyle"> @@ -720,7 +720,7 @@ <li class="footerNumber">19</li> </ul> </div> - </div> + </div> --> </div> </template> <script> @@ -770,6 +770,11 @@ this.questionData = JSON.parse(bookQuestion); } + const bookData = localStorage.getItem("aurturingAndEducation-book-chapter01-bookData"); + if (bookData) { + this.bookData = JSON.parse(bookData); + } + const videoData = localStorage.getItem("aurturingAndEducation-book-chapter01-Data"); if (videoData) { @@ -796,6 +801,12 @@ JSON.stringify(this.questionData) ); }, + setBookData(){ + localStorage.setItem( + "aurturingAndEducation-book-chapter01-bookData", + JSON.stringify(this.bookData) + ); + }, changeQuestionData() { localStorage.removeItem("aurturingAndEducation-book-chapter01-questionData") for (let key in this.questionData) { -- Gitblit v1.9.1