From d3d71f644755f2396ce21b5027f0177a80ed89c9 Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期三, 15 五月 2024 16:51:29 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/books/childHealth/view/content/components/chapter002.vue | 31 ++++++++++++++++++++----------- 1 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/books/childHealth/view/content/components/chapter002.vue b/src/books/childHealth/view/content/components/chapter002.vue index de65434..ca66240 100644 --- a/src/books/childHealth/view/content/components/chapter002.vue +++ b/src/books/childHealth/view/content/components/chapter002.vue @@ -203,7 +203,7 @@ </div> <div class="right" style="width: 60%"> <video - :src="config.resourceCtx + '/video/chapterTwo/涓撻浜岋細鍎跨鍚勯樁娈电殑鐗圭偣鍜屼繚鍋ヨ鐐�.mp4'" + :src="pathOne" poster="../../../assets/images/chapterTwo/people-video-img.png" webkit-playsinline="true" x-webkit-airplay="true" @@ -275,7 +275,7 @@ 浜戞祴璇� </h6> <p class="blockh6-c"> - <examinations :cardList="questionData[2][46]" /> + <examinations :cardList="questionData[46]" /> <!-- <span class="img">涓撻浜� 瀛︿範涓婚涓�</span> --> </p> <h2 class="module_block" id="b011"> @@ -438,7 +438,7 @@ </div> <div class="right" style="width: 60%"> <video - :src=" config.resourceCtx + '/video/chapterTwo/涓撻浜岋細鐢熼暱鍙戣偛鐨勨�滈搧鈥濊寰�.mp4'" + :src="pathTwo" poster="../../../assets/images/chapterTwo/people-video-img.png" webkit-playsinline="true" x-webkit-airplay="true" @@ -573,7 +573,7 @@ <p class="blockh6-c"> <!-- <img class="img-g" alt="" src="image/0062-1.jpg" /><br /> --> <!-- <span class="img">涓撻浜� 瀛︿範涓婚浜�</span> --> - <examinations :cardList="questionData[2][49]" /> + <examinations :cardList="questionData[49]" /> </p> <p class="custom_tag"><b>鈥㈣祫鏂欓摼鎺モ��</b></p> <div class="fieldset"> @@ -742,7 +742,7 @@ </div> <div v-if="videoState"> <video - :src="config.resourceCtx + ' /video/chapterTwo/涓撻浜岋細褰卞搷鍎跨鐢熼暱鍙戣偛鐨勫洜绱�.mp4'" + :src="pathThree" poster="../../../assets/images/chapterTwo/people-video-img.png" webkit-playsinline="true" x-webkit-airplay="true" @@ -846,7 +846,7 @@ <p class="blockh6-c center"> <!-- <img class="img-g" alt="" src="image/0065-1.jpg" /><br /> --> <!-- <span class="img">涓撻浜� 瀛︿範涓婚涓�</span> --> - <examinations :cardList="questionData[2][52]" /> + <examinations :cardList="questionData[52]" /> </p> </div> </div> @@ -983,9 +983,9 @@ <p class="blockh6-c"> 瀛︿範瀹屾湰涓撻锛屼綘鐨勫涔犳晥鏋滃浣曞憿锛熷挶浠竴璧锋潵鎵爜娴嬩竴娴嬪惂锛�<br /> <span class="img">杩囧叧妫�娴嬶紙璧勬牸鑰冭瘯妯℃嫙棰橈級1</span><br /> - <examinations :cardList="questionData[2][541]" /> + <examinations :cardList="questionData[541]" /> <span class="img">杩囧叧妫�娴嬶紙璧勬牸鑰冭瘯妯℃嫙棰橈級2</span> - <examinations :cardList="questionData[2][542]" /> + <examinations :cardList="questionData[542]" /> </p> <h6 class="Conclusion-title4">鈥㈠涔犲弽鎬濃��</h6> <p class="blockh6 m0-t0 fl fl-di fl-cn"> @@ -1003,6 +1003,9 @@ import evenHeaderVue from '../../components/pageHeader/evenHeader.vue'; import oddHeaderVue from '../../components/pageHeader/oddHeader.vue'; import examinations from "@/components/examinations/index.vue"; +import getQuestionData from '@/assets/methods/examination' +import testData from '../../../assets/examinationList' +import getResourcePath from '@/assets/methods/resources' import {mapState} from 'vuex' export default { name: "chapterTwo", @@ -1019,12 +1022,18 @@ learnTableOne: true, learnTableTwo: true, learnTableThree: true, - questionData:{} + questionData:{}, + pathOne:'', + pathTwo:'', + pathThree:'', + }; }, mounted() { - this.$data.questionData = this.$store.state.questionData - + this.$data.questionData = getQuestionData(testData[2]) + this.$data.pathOne = getResourcePath('e2b2b610e8b77c82bad7cf94c7986646') + this.$data.pathTwo = getResourcePath('b11b51863da2a4e7e21c73358fa96c1e') + this.$data.pathThree = getResourcePath('67cf97bd8295dc3aeb46982c574df8d0') }, methods: { changeResources(type) { -- Gitblit v1.9.1