From ae8133da95a2b209ac9114478e86c560676bc90d Mon Sep 17 00:00:00 2001 From: unknown <qq1940665526@163.com> Date: 星期四, 23 五月 2024 15:21:46 +0800 Subject: [PATCH] 修改分页 --- src/books/lifeCare/view/chapter005.vue | 48 ++++++------ src/books/lifeCare/view/chapter002.vue | 66 +++------------- src/books/lifeCare/view/chapter001.vue | 15 +-- src/books/lifeCare/view/chapter003.vue | 51 ++++++++---- src/books/lifeCare/view/chapter004.vue | 46 +++++----- 5 files changed, 99 insertions(+), 127 deletions(-) diff --git a/src/books/lifeCare/view/chapter001.vue b/src/books/lifeCare/view/chapter001.vue index 752c37e..8b84b15 100644 --- a/src/books/lifeCare/view/chapter001.vue +++ b/src/books/lifeCare/view/chapter001.vue @@ -1370,7 +1370,7 @@ v-if="chapter001.idOpenThree && chapter001.qustionData[9]" class="tips-file" > - <examinations :cardList="chapter001.qustionData[9]" /> + <examinations :primaryColor="'#f49a4c'" :cardList="chapter001.qustionData[9]" /> </div> </div> </div> @@ -1379,10 +1379,10 @@ </template> <script> -// import getResourcePath from "@/assets/methods/resources.js"; -// import getQuestionData from "@/assets/methods/examination.js"; +import getResourcePath from "@/assets/methods/resources.js"; +import getQuestionData from "@/assets/methods/examination.js"; import testData from "../js/examinationList.js"; -// import examinations from "@/components/examinations/index.vue"; +import examinations from "@/components/examinations/index.vue"; export default { name: "chapter001", @@ -1406,16 +1406,15 @@ }; }, components: { - // examinations, + examinations, }, created() { const localData = JSON.parse(localStorage.getItem("chapter001")); if (localData) { this.chapter001 = { ...Object.assign(this.chapter001, localData) }; } - - // this.chapter001.videOneUrl = getResourcePath("68ebd5c05bcb742999a9ebdce4b4bd53"); - // this.qustionData = await getQuestionData('1',testData[1]); + this.chapter001.videOneUrl = getResourcePath("68ebd5c05bcb742999a9ebdce4b4bd53"); + this.chapter001.qustionData = await getQuestionData('1',testData[1]); }, methods: { activityOne() { diff --git a/src/books/lifeCare/view/chapter002.vue b/src/books/lifeCare/view/chapter002.vue index b7f8afd..3100c90 100644 --- a/src/books/lifeCare/view/chapter002.vue +++ b/src/books/lifeCare/view/chapter002.vue @@ -1,5 +1,5 @@ <template> - <div class="chapter" num='2'> + <div class="chapter" num="2"> <div class="page-box" page="16"> <div class="bodystyle topImg"> <h2 id="b002"><img class="img-0" alt="" src="../image/dy2.jpg" /></h2> @@ -1273,10 +1273,13 @@ /> </div> <div - v-if="chapter002.idOpenThree && chapter002.qustionData[2]" + v-if="chapter002.idOpenThree && chapter002.qustionData[23]" class="tips-file" > - <examinations :cardList="chapter002.qustionData[2]" /> + <examinations + :primaryColor="'#f49a4c'" + :cardList="chapter002.qustionData[23]" + /> </div> </div> </div> @@ -1306,53 +1309,8 @@ isInspectOpen: true, isInspectOpen: true, qustionData: {}, - textAreaItem: { - text1: "", - text2: "", - text3: "", - text4: "", - text5: "", - text6: "", - text7: "", - text8: "", - text9: "", - text10: "", - text11: "", - text12: "", - text13: "", - text14: "", - text15: "", - text16: "", - text17: "", - text18: "", - text19: "", - text20: "", - text21: "", - text22: "", - text23: "", - text24: "", - text25: "", - }, - table121: { - text1: "", - text2: "", - text3: "", - text4: "", - text5: "", - text6: "", - text7: "", - text8: "", - text9: "", - text10: "", - text11: "", - text12: "", - text13: "", - text14: "", - text15: "", - text16: "", - text17: "", - text18: "", - }, + textAreaItem: {}, + table121: {}, // 琛ㄦ牸1-2-1 headersData: [ "妫�鏌ュ璞�", @@ -1573,20 +1531,20 @@ }; }, components: { - // examinations, + examinations, }, created() { const localData = JSON.parse(localStorage.getItem("chapter002")); if (localData) { this.chapter002 = { ...Object.assign(this.chapter002, localData) }; } - // this.chapter002.videOneUrl = getResourcePath("6e471afdbeb95a8891f1551cbb0cd4fd"); - // this.chapter002.videOneUrl116 = getResourcePath('b727b78f8036a38cbd054816a81da7f8') + this.chapter002.videOneUrl = getResourcePath("6e471afdbeb95a8891f1551cbb0cd4fd"); + this.chapter002.videOneUrl116 = getResourcePath('b727b78f8036a38cbd054816a81da7f8') this.chapter002.videOneUrl116 = "https:/jsek.bnuic.com/file/api/ApiDownload?md5=b727b78f8036a38cbd054816a81da7f8"; this.chapter002.videOneUrl = "https:/jsek.bnuic.com/file/api/ApiDownload?md5=6e471afdbeb95a8891f1551cbb0cd4fd"; - // this.qustionData = await getQuestionData("2",testData[2]); + this.chapter002.qustionData = await getQuestionData("2",testData[2]); }, methods: { activityOne() { diff --git a/src/books/lifeCare/view/chapter003.vue b/src/books/lifeCare/view/chapter003.vue index b752559..1319c71 100644 --- a/src/books/lifeCare/view/chapter003.vue +++ b/src/books/lifeCare/view/chapter003.vue @@ -2275,7 +2275,7 @@ <h4 id="d031"> 鈻垛柖 搴旂敤涓庡疄璺�<span class="fontsz1">锛烇紴锛烇紴锛烇紴锛烇紴</span> </h4> - <div class="tips-bk"> + <!-- <div class="tips-bk"> <div class="bj-tip"> 浜戞祴璇曪細鍗曞厓涓夊簲鐢ㄤ笌瀹炶返<img src="../icons/sub.png" @@ -2289,7 +2289,7 @@ > <examinations :cardList="chapter003.qustionData[3]" /> </div> - </div> + </div> --> <!-- <div class="bk-sys"> <div class="bj1-sys"> <p class="left"> @@ -2412,15 +2412,30 @@ @blur="onBlurChange('desc')" ></textarea> </div> + <div class="tips-bk"> + <div class="bj-tip"> + 浜戞祴璇曪細鍗曞厓涓夊簲鐢ㄤ笌瀹炶返<img + src="../icons/sub.png" + @click="activityThree" + alt="" + /> + </div> + <div + v-if="chapter003.idOpenThree && chapter003.qustionData[48]" + class="tips-file" + > + <examinations :cardList="chapter003.qustionData[48]" /> + </div> + </div> </div> </div> </div> </template> <script> -// import getResourcePath from "@/assets/methods/resources.js"; -// import getQuestionData from "@/assets/methods/examination.js"; +import getResourcePath from "@/assets/methods/resources.js"; +import getQuestionData from "@/assets/methods/examination.js"; import testData from "../js/examinationList.js"; -// import examinations from "@/components/examinations/index.vue"; +import examinations from "@/components/examinations/index.vue"; export default { name: "chapter003", @@ -2807,24 +2822,24 @@ }; }, components: { - // examinations, + examinations, }, created() { const localData = JSON.parse(localStorage.getItem("chapter003")); if (localData) { this.chapter003 = { ...Object.assign(this.chapter003, localData) }; } - // this.chapter003.videOneUrl = getResourcePath("459ab85d46207bfcca4801dc9b319b9b"); - // this.chapter003.videoTwoUrl = getResourcePath("3817bea302b25b865ff938140939a8de"); - // this.chapter003.videoFourUrl = getResourcePath("7af72da649f6656c3b2164e708f5c132"); - // this.chapter003.videoFiveUrl = getResourcePath("e24de9b0cdd889cb73e9b472ad6f4731"); - // this.chapter003.videoSixUrl = getResourcePath("d95740ab777d9c7ca074c33317a835c4"); - // this.chapter003.videoSevenUrl = getResourcePath("0b330926f3e6ed510b48144a83199fb3"); - // this.chapter003.videoEigthUrl = getResourcePath("9f63cc4dcba6a87cbfe82a9ec4d7c77e"); - // this.chapter003.videoNineUrl = getResourcePath("c2ecf6f102a6e9b210f3db49b17b58a4"); - // this.chapter003.videoTenUrl = getResourcePath("b6943018923c0cbad4e414dc2097cb9a"); - // this.chapter003.videoEleUrl = getResourcePath("eb604885f7c01cdf2d95df839c9c233a"); - // this.chapter003.videoTevUrl = getResourcePath("f12a50c2ac57da78ff02f3d5f430163b"); + this.chapter003.videOneUrl = getResourcePath("459ab85d46207bfcca4801dc9b319b9b"); + this.chapter003.videoTwoUrl = getResourcePath("3817bea302b25b865ff938140939a8de"); + this.chapter003.videoFourUrl = getResourcePath("7af72da649f6656c3b2164e708f5c132"); + this.chapter003.videoFiveUrl = getResourcePath("e24de9b0cdd889cb73e9b472ad6f4731"); + this.chapter003.videoSixUrl = getResourcePath("d95740ab777d9c7ca074c33317a835c4"); + this.chapter003.videoSevenUrl = getResourcePath("0b330926f3e6ed510b48144a83199fb3"); + this.chapter003.videoEigthUrl = getResourcePath("9f63cc4dcba6a87cbfe82a9ec4d7c77e"); + this.chapter003.videoNineUrl = getResourcePath("c2ecf6f102a6e9b210f3db49b17b58a4"); + this.chapter003.videoTenUrl = getResourcePath("b6943018923c0cbad4e414dc2097cb9a"); + this.chapter003.videoEleUrl = getResourcePath("eb604885f7c01cdf2d95df839c9c233a"); + this.chapter003.videoTevUrl = getResourcePath("f12a50c2ac57da78ff02f3d5f430163b"); this.chapter003.videOneUrl = "https://jsek.bnuic.com/file/api/ApiDownload?md5=459ab85d46207bfcca4801dc9b319b9b"; this.chapter003.videoTwoUrl = @@ -2847,7 +2862,7 @@ "https://jsek.bnuic.com/file/api/ApiDownload?md5=eb604885f7c01cdf2d95df839c9c233a"; this.chapter003.videoTevUrl = "https://jsek.bnuic.com/file/api/ApiDownload?md5=f12a50c2ac57da78ff02f3d5f430163b"; - // this.chapter003.qustionData = await getQuestionData("3",testData[3]); + this.chapter003.qustionData = await getQuestionData("3",testData[3],this.config.activeBook); }, methods: { activityOne() { diff --git a/src/books/lifeCare/view/chapter004.vue b/src/books/lifeCare/view/chapter004.vue index 951bcd7..b9f9313 100644 --- a/src/books/lifeCare/view/chapter004.vue +++ b/src/books/lifeCare/view/chapter004.vue @@ -1111,21 +1111,6 @@ <h4 id="d042"> 鈻垛柖 搴旂敤涓庡疄璺�<span class="fontsz1">锛烇紴锛烇紴锛烇紴锛烇紴</span> </h4> - <div class="tips-bk"> - <div class="bj-tip"> - 浜戞祴璇曪細鍗曞厓鍥涘簲鐢ㄤ笌瀹炶返<img - src="../icons/sub.png" - @click="activityThree" - alt="" - /> - </div> - <div - v-if="chapter004.idOpenThree && chapter004.qustionData[4]" - class="tips-file" - > - <examinations :cardList="chapter004.qustionData[4]" /> - </div> - </div> <p><br /></p> <!-- <p><br /></p> <div class="bk-sys"> @@ -1242,19 +1227,34 @@ <p class="block">B.鐢ㄦ俯姘存礂灞佽偂</p> <p class="block">C.渚垮悗渚跨泦娓呮礂娑堟瘨</p> <p class="block">D.濂冲┐澶т究鍚庝竴瀹氳浠庡悗鍚戝墠鎿�</p> + <div class="tips-bk"> + <div class="bj-tip"> + 浜戞祴璇曪細鍗曞厓鍥涘簲鐢ㄤ笌瀹炶返<img + src="../icons/sub.png" + @click="activityThree" + alt="" + /> + </div> + <div + v-if="chapter004.idOpenThree && chapter004.qustionData[65]" + class="tips-file" + > + <examinations :cardList="chapter004.qustionData[65]" /> + </div> + </div> </div> </div> </div> </template> <script> -// import getResourcePath from "@/assets/methods/resources.js"; -// import getQuestionData from "@/assets/methods/examination.js"; +import getResourcePath from "@/assets/methods/resources.js"; +import getQuestionData from "@/assets/methods/examination.js"; import testData from "../js/examinationList.js"; -// import examinations from "@/components/examinations/index.vue"; +import examinations from "@/components/examinations/index.vue"; export default { name: "chapter004", components: { - // examinations + examinations }, data() { return { @@ -1317,16 +1317,16 @@ if (localData) { this.chapter004 = { ...Object.assign(this.chapter004, localData) }; } - // this.chapter004.videOneUrl = getResourcePath("c276be12bae3b1df0b3ce4aa01b14e1e"); - // this.chapter004.videoTwoUrl = getResourcePath("7eb7fe2e3c13885a96143110ca4f5654"); - // this.chapter004.videoFourUrl = getResourcePath("1b04691b60e5b5b207b3a4967c495d29"); + this.chapter004.videOneUrl = getResourcePath("c276be12bae3b1df0b3ce4aa01b14e1e"); + this.chapter004.videoTwoUrl = getResourcePath("7eb7fe2e3c13885a96143110ca4f5654"); + this.chapter004.videoFourUrl = getResourcePath("1b04691b60e5b5b207b3a4967c495d29"); this.chapter004.videOneUrl = "https://jsek.bnuic.com/file/api/ApiDownload?md5=c276be12bae3b1df0b3ce4aa01b14e1e"; this.chapter004.videoTwoUrl = "https://jsek.bnuic.com/file/api/ApiDownload?md5=7eb7fe2e3c13885a96143110ca4f5654"; this.chapter004.videoFourUrl = "https://jsek.bnuic.com/file/api/ApiDownload?md5=1b04691b60e5b5b207b3a4967c495d29"; - // this.chapter004.qustionData = await getQuestionData("4",testData[4]); + this.chapter004.qustionData = await getQuestionData("4",testData[4],this.config.activeBook); }, methods: { activityOne() { diff --git a/src/books/lifeCare/view/chapter005.vue b/src/books/lifeCare/view/chapter005.vue index 4f16150..eb49198 100644 --- a/src/books/lifeCare/view/chapter005.vue +++ b/src/books/lifeCare/view/chapter005.vue @@ -2611,21 +2611,6 @@ <h4 id="d061"> 鈻垛柖 搴旂敤涓庡疄璺�<span class="fontsz1">锛烇紴锛烇紴锛烇紴锛烇紴</span> </h4> - <div class="tips-bk"> - <div class="bj-tip"> - 浜戞祴璇曪細鍗曞厓浜斿簲鐢ㄤ笌瀹炶返<img - src="../icons/sub.png" - @click="activityThree" - alt="" - /> - </div> - <div - v-if="chapter005.idOpenThree && chapter005.qustionData[3]" - class="tips-file" - > - <examinations :cardList="chapter005.qustionData[3]" /> - </div> - </div> <p><br /></p> <!-- <p><br /></p> <div class="bk-sys"> @@ -2739,15 +2724,30 @@ @blur="onBlurChange('desc')" ></textarea> </div> + <div class="tips-bk"> + <div class="bj-tip"> + 浜戞祴璇曪細鍗曞厓浜斿簲鐢ㄤ笌瀹炶返<img + src="../icons/sub.png" + @click="activityThree" + alt="" + /> + </div> + <div + v-if="chapter005.idOpenThree && chapter005.qustionData[94]" + class="tips-file" + > + <examinations :cardList="chapter005.qustionData[94]" /> + </div> + </div> </div> </div> </div> </template> <script> -// import getResourcePath from "@/assets/methods/resources.js"; -// import getQuestionData from "@/assets/methods/examination.js"; +import getResourcePath from "@/assets/methods/resources.js"; +import getQuestionData from "@/assets/methods/examination.js"; import testData from "../js/examinationList.js"; -// import examinations from "@/components/examinations/index.vue"; +import examinations from "@/components/examinations/index.vue"; export default { name: "chapter005", @@ -3172,17 +3172,17 @@ }; }, components: { - // examinations, + examinations, }, created() { const localData = JSON.parse(localStorage.getItem("chapter005")); if (localData) { this.chapter005 = { ...Object.assign(this.chapter005, localData) }; } - // this.chapter005.videOneUrl = getResourcePath("439b0bde62a5098875c77e2492676577"); - // this.chapter005.videoTwoUrl = getResourcePath("1a878261410b01ee8e4e0602a1fe935f"); - // this.chapter005.videoFourUrl = getResourcePath("6cf2619beb704b3d79de04f0775c8ba3"); - // this.chapter005.videoFiveUrl = getResourcePath("8400384441ad9236d5eab24f500ec2c7"); + this.chapter005.videOneUrl = getResourcePath("439b0bde62a5098875c77e2492676577"); + this.chapter005.videoTwoUrl = getResourcePath("1a878261410b01ee8e4e0602a1fe935f"); + this.chapter005.videoFourUrl = getResourcePath("6cf2619beb704b3d79de04f0775c8ba3"); + this.chapter005.videoFiveUrl = getResourcePath("8400384441ad9236d5eab24f500ec2c7"); this.chapter005.videOneUrl = "https://jsek.bnuic.com/file/api/ApiDownload?md5=439b0bde62a5098875c77e2492676577"; this.chapter005.videoTwoUrl = @@ -3191,7 +3191,7 @@ "https://jsek.bnuic.com/file/api/ApiDownload?md5=6cf2619beb704b3d79de04f0775c8ba3"; this.chapter005.videoFiveUrl = "https://jsek.bnuic.com/file/api/ApiDownload?md5=8400384441ad9236d5eab24f500ec2c7"; - // this.chapter005.qustionData = await getQuestionData("5",testData[5]); + this.chapter005.qustionData = await getQuestionData("5",testData[5],this.config.activeBook); }, methods: { activityOne() { -- Gitblit v1.9.1