From ddad8f19c23c4af6defba1ceb8f340ee50eafac0 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 21 十月 2024 17:48:58 +0800 Subject: [PATCH] 数学 --- src/books/mathBook/view/components/chapter001.vue | 411 ++++++++++++++++++++++++++++++---------------------------- src/books/mathBook/view/components/index.vue | 2 2 files changed, 212 insertions(+), 201 deletions(-) diff --git a/src/books/mathBook/view/components/chapter001.vue b/src/books/mathBook/view/components/chapter001.vue index eca86ce..a0b673c 100644 --- a/src/books/mathBook/view/components/chapter001.vue +++ b/src/books/mathBook/view/components/chapter001.vue @@ -139,9 +139,9 @@ <li>涓婂唽</li> </ul> <div class="padding-116"> - <p class="fl" > + <p class="fl"> <span class="zt-ls2">渚�</span> - <span class="t-" >涓嬪垪瀵硅薄鑳藉惁缁勬垚闆嗗悎锛�</span> + <span class="t-">涓嬪垪瀵硅薄鑳藉惁缁勬垚闆嗗悎锛�</span> <span class="btn-box" @click="openDialog(thinkTwo)"> <svg xmlns="http://www.w3.org/2000/svg" width="16.545" height="18.112" viewBox="0 0 20.545 22.112"> <path class="a" @@ -226,15 +226,15 @@ <img class="img-gn2" alt="" src="../../assets/images/hzjl.jpg" /> </p> </div> - <examinations :cardList="questionData[11] ? questionData[11][1] : []" :hideCollect="true" sourceType="json" inputBc="#d3edfa" - v-if="questionData"></examinations> + <examinations :cardList="questionData[11] ? questionData[11][1] : []" :hideCollect="true" sourceType="json" + inputBc="#d3edfa" v-if="questionData"></examinations> </div> <p class="left"> <img class="img-gn" alt="" src="../../assets/images/stlx.jpg" /> </p> <div class="bj"> - <examinations :cardList="questionData[11] ? questionData[11][2] : []" :hideCollect="true" sourceType="json" inputBc="#d3edfa" - v-if="questionData"></examinations> + <examinations :cardList="questionData[11] ? questionData[11][2] : []" :hideCollect="true" sourceType="json" + inputBc="#d3edfa" v-if="questionData"></examinations> </div> </div> </div> @@ -440,7 +440,8 @@ <img class="img-gn" alt="" src="../../assets/images/stlx.jpg" /> </p> <div class="bj"> - <examinations :cardList="questionData[13]" :hideCollect="true" sourceType="json" inputBc="#d3edfa" v-if="questionData"> + <examinations :cardList="questionData[13]" :hideCollect="true" sourceType="json" inputBc="#d3edfa" + v-if="questionData"> </examinations> </div> <h3>1.1.3 闆嗗悎鐨勮〃绀�<span class="fontsz2">锛烇紴锛�</span></h3> @@ -698,20 +699,20 @@ <img class="img-gn2" alt="" src="../../assets/images/hzjl.jpg" /> </p> </div> - <examinations :cardList="questionData[16] ? questionData[16][1] : []" :hideCollect="true" sourceType="json" inputBc="#d3edfa" - v-if="questionData"></examinations> + <examinations :cardList="questionData[16] ? questionData[16][1] : []" :hideCollect="true" sourceType="json" + inputBc="#d3edfa" v-if="questionData"></examinations> </div> <p class="left"> <img class="img-gn" alt="" src="../../assets/images/stlx.jpg" /> </p> <div class="bj"> - <examinations :cardList="questionData[16] ? questionData[16][2] : []" :hideCollect="true" sourceType="json" inputBc="#d3edfa" - v-if="questionData"></examinations> + <examinations :cardList="questionData[16] ? questionData[16][2] : []" :hideCollect="true" sourceType="json" + inputBc="#d3edfa" v-if="questionData"></examinations> </div> <h2 id="c031">涔犻1.1<span class="fontsz2"> 锛烇紴锛�</span></h2> <div class="bj"> - <examinations :cardList="questionData[16] ? questionData[16][3] : []" :hideCollect="true" sourceType="json" inputBc="#d3edfa" - v-if="questionData"></examinations> + <examinations :cardList="questionData[16] ? questionData[16][3] : []" :hideCollect="true" sourceType="json" + inputBc="#d3edfa" v-if="questionData"></examinations> </div> <h2 id="c031"> 1.2 闆嗗悎涔嬮棿鐨勫叧绯�<span class="fontsz2">锛烇紴锛�</span> @@ -727,8 +728,7 @@ </div> </div> <!-- 010 --> - <div class="page-box hidePage" page="17"> - </div> + <div class="page-box hidePage" page="17"></div> <!-- 011 --> <div class="page-box" page="18"> <div v-if="showPageList.indexOf(18) > -1"> @@ -863,7 +863,7 @@ </p> </div> <examinations :cardList="questionData[19][1]" :hideCollect="true" sourceType="json" inputBc="#d3edfa" - v-if="questionData"></examinations> + v-if="questionData"></examinations> </div> <p class="left"> <img class="img-gn" alt="" src="../../assets/images/stlx.jpg" /> @@ -1081,20 +1081,20 @@ <img class="img-gn2" alt="" src="../../assets/images/hzjl.jpg" /> </p> </div> - <examinations :cardList="questionData[22] ? questionData[22][1] : []" :hideCollect="true" sourceType="json" inputBc="#d3edfa" - v-if="questionData"></examinations> + <examinations :cardList="questionData[22] ? questionData[22][1] : []" :hideCollect="true" sourceType="json" + inputBc="#d3edfa" v-if="questionData"></examinations> </div> <p class="left"> <img class="img-gn" alt="" src="../../assets/images/stlx.jpg" /> </p> <div class="bj"> - <examinations :cardList="questionData[22] ? questionData[22][2] : []" :hideCollect="true" sourceType="json" inputBc="#d3edfa" - v-if="questionData"></examinations> + <examinations :cardList="questionData[22] ? questionData[22][2] : []" :hideCollect="true" sourceType="json" + inputBc="#d3edfa" v-if="questionData"></examinations> </div> <h2 id="c031">涔犻1.2<span class="fontsz2"> 锛烇紴锛�</span></h2> <div class="bj"> - <examinations :cardList="questionData[22] ? questionData[22][3] : []" :hideCollect="true" sourceType="json" inputBc="#d3edfa" - v-if="questionData"></examinations> + <examinations :cardList="questionData[22] ? questionData[22][3] : []" :hideCollect="true" sourceType="json" + inputBc="#d3edfa" v-if="questionData"></examinations> </div> <h2 id="c031"> 1.3 闆嗗悎鐨勮繍绠�<span class="fontsz2">锛烇紴锛烇紴锛烇紴</span> @@ -1126,8 +1126,7 @@ </div> </div> <!-- 016 --> - <div class="page-box hidePage" page="23"> - </div> + <div class="page-box hidePage" page="23"></div> <!-- 017 --> <div class="page-box" page="24"> <div v-if="showPageList.indexOf(24) > -1"> @@ -1160,11 +1159,9 @@ <p> 鍐嶅锛岄泦鍚圡={1锛�2}锛岄泦鍚圥={1锛�2锛�3}锛岄泦鍚圦={1锛�2锛�5锛�6}锛屽垯闆嗗悎M涓殑鍏冪礌鏃㈡槸闆嗗悎P涓殑鍏冪礌锛屽張鏄泦鍚圦涓殑鍏冪礌.闆嗗悎M鏄泦鍚圥鍜岄泦鍚圦涓殑鎵�鏈夊叕鍏卞厓绱犵粍鎴愮殑闆嗗悎锛屽鍥�1-10鎵�绀�. </p> - <p class="left"> <img class="img-gn" alt="" src="../../assets/images/cxgk.jpg" /> </p> - <div class="img-rights openImgBox"> <img class="img-c" alt="" src="../../assets/images/0028-3.jpg" /> <p class="img" style="font-size: 14px">鍥�1-11</p> @@ -1174,7 +1171,6 @@ </p> <p>C=A鈭〣={x|x鈭圓涓攛鈭圔}.</p> <p>鍥�1-11涓殑娑傝壊閮ㄥ垎琛ㄧず闆嗗悎A涓庨泦鍚圔鐨勪氦闆�.</p> - <ul> <li> <div> @@ -1198,7 +1194,6 @@ <div> <span class="zt-ls2">渚�2</span>璁鹃泦鍚圓={x|-1锛渪锛�7}锛孊={x|-3锛渪鈮�3}锛屾眰A鈭〣. </div> - <span class="btn-box" @click=" chapter001.isShowExample24 = !chapter001.isShowExample24 "> @@ -1208,7 +1203,6 @@ transform="translate(-3327.144 15329)" /> </svg> </span> - <span class="btn-box" @click="openDialog(thinkFour)"> <svg xmlns="http://www.w3.org/2000/svg" width="16.545" height="18.112" viewBox="0 0 20.545 22.112"> <path class="a" @@ -1217,13 +1211,7 @@ </svg> </span> </li> - <li v-if="chapter001.isShowExample24"> - <p> - <span class="zt-ls2">瑙�</span>鍦ㄦ暟杞翠笂灏嗛泦鍚圓涓嶣琛ㄧず鍑烘潵锛堝鍥�1-12鎵�绀猴級. - </p> - </li> </ul> - <div class="bk"> <div class="bj1"> <p class="left"> @@ -1232,11 +1220,15 @@ </div> <p class="block">浜ら泦</p> </div> - - <p>瑙傚療鍙煡 A鈭〣={x|-1锛渪鈮�3}.</p> - <div class="center openImgBox"> - <img class="img-f" alt="" src="../../assets/images/0028-4.jpg" /> - <p class="img" style="font-size: 14px">鍥�1-12</p> + <div v-if="chapter001.isShowExample24"> + <p> + <span class="zt-ls2">瑙�</span>鍦ㄦ暟杞翠笂灏嗛泦鍚圓涓嶣琛ㄧず鍑烘潵锛堝鍥�1-12鎵�绀猴級. + </p> + <p>瑙傚療鍙煡 A鈭〣={x|-1锛渪鈮�3}.</p> + <div class="center openImgBox"> + <img class="img-f" alt="" src="../../assets/images/0028-4.jpg" /> + <p class="img" style="font-size: 14px">鍥�1-12</p> + </div> </div> </div> </div> @@ -1253,7 +1245,6 @@ <ul> <li> <span class="zt-ls2">渚�3</span>璁鹃泦鍚圓={x|x鈮�2}锛孊={x|x锛�-1}锛屾眰A鈭〣. - <span class="btn-box" @click=" chapter001.isShowExample25 = !chapter001.isShowExample25 "> @@ -1264,17 +1255,17 @@ </svg> </span> </li> - <li v-if="chapter001.isShowExample25"> - <p> - <span class="zt-ls2">瑙�</span>鍦ㄦ暟杞翠笂灏嗛泦鍚圓锛孊琛ㄧず鍑烘潵锛堝鍥�1-13鎵�绀猴級. - </p> - </li> </ul> - <div class="center openImgBox"> - <img class="img-f" alt="" src="../../assets/images/0029-1.jpg" /> - <p class="img" style="font-size: 14px">鍥�1-13</p> + <div v-if="chapter001.isShowExample25"> + <p> + <span class="zt-ls2">瑙�</span>鍦ㄦ暟杞翠笂灏嗛泦鍚圓锛孊琛ㄧず鍑烘潵锛堝鍥�1-13鎵�绀猴級. + </p> + <div class="center openImgBox"> + <img class="img-f" alt="" src="../../assets/images/0029-1.jpg" /> + <p class="img" style="font-size: 14px">鍥�1-13</p> + </div> + <p>瑙傚療鍙煡A鈭〣={x|x锛�-1}.</p> </div> - <p>瑙傚療鍙煡A鈭〣={x|x锛�-1}.</p> <ul> <li> <span class="zt-ls2">渚�4</span>璁鹃泦鍚圓={锛坸锛寉锛墊x+2y-6=0}锛孊={锛坸锛寉锛墊x-4y=0}锛屾眰A鈭〣. @@ -1297,90 +1288,93 @@ </span> </li> <li v-if="chapter001.isShowExample26"> - <div> - <p> - <span class="zt-ls"><b>瑙�</b></span> 瑙f柟绋嬬粍<math display="0"> - <mrow data-mjx-texclass="INNER"> - <mo data-mjx-texclass="OPEN">{</mo> - <mtable columnspacing="1em" rowspacing="4pt"> - <mtr> - <mtd> - <mi>x</mi> - <mo>+</mo> - <mn>2</mn> - <mi>y</mi> - <mo>鈭�</mo> - <mn>6</mn> - <mo>=</mo> - <mn>0</mn> - </mtd> - <mtd></mtd> - </mtr> - <mtr> - <mtd> - <mi>x</mi> - <mo>鈭�</mo> - <mn>4</mn> - <mi>y</mi> - <mo>=</mo> - <mn>0</mn> - <mo>锛�</mo> - </mtd> - <mtd></mtd> - </mtr> - </mtable> - <mo data-mjx-texclass="CLOSE" fence="true" stretchy="true" symmetric="true"></mo> - </mrow> - </math>锛� 寰�<math display="0"> - <mrow data-mjx-texclass="INNER"> - <mo data-mjx-texclass="OPEN">{</mo> - <mtable columnspacing="1em" rowspacing="4pt"> - <mtr> - <mtd> - <mi>x</mi> - <mo>=</mo> - <mn>4</mn> - <mo>锛�</mo> - </mtd> - <mtd></mtd> - </mtr> - <mtr> - <mtd> - <mi>y</mi> - <mo>=</mo> - <mn>1.</mn> - </mtd> - <mtd></mtd> - </mtr> - </mtable> - <mo data-mjx-texclass="CLOSE" fence="true" stretchy="true" symmetric="true"></mo> - </mrow> - </math>. - </p> - <p>鎵�浠鈭〣={锛�4锛�1锛墋.</p> - </div> + <div></div> </li> </ul> - <div class="textIndentation"> - 鏍规嵁浜ら泦鐨勫惈涔夊彲浠ョ煡閬擄紝瀵逛簬浠绘剰涓や釜闆嗗悎A锛孊锛屾湁涓嬭堪鎬ц川. - <p>锛�1锛� A鈭〣=B鈭〢锛涳紙2锛� A鈭〢=A锛孉鈭┾垍=鈭咃紱</p> - <p>锛�3锛� A鈭〣鈯咥锛孉鈭〣鈯咮锛涳紙4锛� 鑻鈯咮锛屽垯A鈭〣=A.</p> + <div v-if="chapter001.isShowExample26"> + <p> + <span class="zt-ls"><b>瑙�</b></span> 瑙f柟绋嬬粍<math display="0"> + <mrow data-mjx-texclass="INNER"> + <mo data-mjx-texclass="OPEN">{</mo> + <mtable columnspacing="1em" rowspacing="4pt"> + <mtr> + <mtd> + <mi>x</mi> + <mo>+</mo> + <mn>2</mn> + <mi>y</mi> + <mo>鈭�</mo> + <mn>6</mn> + <mo>=</mo> + <mn>0</mn> + </mtd> + <mtd></mtd> + </mtr> + <mtr> + <mtd> + <mi>x</mi> + <mo>鈭�</mo> + <mn>4</mn> + <mi>y</mi> + <mo>=</mo> + <mn>0</mn> + <mo>锛�</mo> + </mtd> + <mtd></mtd> + </mtr> + </mtable> + <mo data-mjx-texclass="CLOSE" fence="true" stretchy="true" symmetric="true"></mo> + </mrow> + </math>锛� 寰�<math display="0"> + <mrow data-mjx-texclass="INNER"> + <mo data-mjx-texclass="OPEN">{</mo> + <mtable columnspacing="1em" rowspacing="4pt"> + <mtr> + <mtd> + <mi>x</mi> + <mo>=</mo> + <mn>4</mn> + <mo>锛�</mo> + </mtd> + <mtd></mtd> + </mtr> + <mtr> + <mtd> + <mi>y</mi> + <mo>=</mo> + <mn>1.</mn> + </mtd> + <mtd></mtd> + </mtr> + </mtable> + <mo data-mjx-texclass="CLOSE" fence="true" stretchy="true" symmetric="true"></mo> + </mrow> + </math>. + </p> + <p>鎵�浠鈭〣={锛�4锛�1锛墋.</p> + <div class="textIndentation"> + 鏍规嵁浜ら泦鐨勫惈涔夊彲浠ョ煡閬擄紝瀵逛簬浠绘剰涓や釜闆嗗悎A锛孊锛屾湁涓嬭堪鎬ц川. + <p>锛�1锛� A鈭〣=B鈭〢锛涳紙2锛� A鈭〢=A锛孉鈭┾垍=鈭咃紱</p> + <p>锛�3锛� A鈭〣鈯咥锛孉鈭〣鈯咮锛涳紙4锛� 鑻鈯咮锛屽垯A鈭〣=A.</p> + </div> </div> + <div class="bk-hzjl"> <div class="bj1-hzjl"> <p class="left"> <img class="img-gn2" alt="" src="../../assets/images/hzjl.jpg" /> </p> </div> - <examinations :cardList="questionData[25] ? questionData[25][1] : []" :hideCollect="true" sourceType="json" v-if="questionData"> + <examinations :cardList="questionData[25] ? questionData[25][1] : []" :hideCollect="true" sourceType="json" + v-if="questionData"> </examinations> </div> <p class="left"> <img class="img-gn" alt="" src="../../assets/images/stlx.jpg" /> </p> <div class="bj"> - <examinations :cardList="questionData[25] ? questionData[25][2] : []" :hideCollect="true" sourceType="json" inputBc="#d3edfa" - v-if="questionData"></examinations> + <examinations :cardList="questionData[25] ? questionData[25][2] : []" :hideCollect="true" sourceType="json" + inputBc="#d3edfa" v-if="questionData"></examinations> </div> </div> </div> @@ -1478,23 +1472,24 @@ </svg> </span> </li> - <li v-if="chapter001.isShowExample28"> - <p> - <span class="zt-ls2">瑙� </span>鍦ㄦ暟杞翠笂灏嗛泦鍚圓锛孊琛ㄧず鍑烘潵锛堝鍥�1-17鎵�绀猴級. - </p> - </li> </ul> - <div class="center openImgBox"> - <img class="img-f" alt="" src="../../assets/images/0031-1.jpg" /> - <p class="img" style="font-size: 14px">鍥�1-17</p> + <div v-if="chapter001.isShowExample28"> + <p> + <span class="zt-ls2">瑙� </span>鍦ㄦ暟杞翠笂灏嗛泦鍚圓锛孊琛ㄧず鍑烘潵锛堝鍥�1-17鎵�绀猴級. + </p> + <div class="center openImgBox"> + <img class="img-f" alt="" src="../../assets/images/0031-1.jpg" /> + <p class="img" style="font-size: 14px">鍥�1-17</p> + </div> + <p>瑙傚療鍙煡A鈭狟={x|-3锛渪锛�7}.</p> </div> - <p>瑙傚療鍙煡A鈭狟={x|-3锛渪锛�7}.</p> <div class="bk-hzjl"> <div class="bj1-hzjl"> <p class="left"> <img class="img-gn2" alt="" src="../../assets/images/hzjl.jpg" /> </p> - <examinations :cardList="questionData[27] ? questionData[27][1]:[] " :hideCollect="true" sourceType="json" v-if="questionData"> + <examinations :cardList="questionData[27] ? questionData[27][1] : []" :hideCollect="true" + sourceType="json" v-if="questionData"> </examinations> </div> </div> @@ -1511,27 +1506,28 @@ </svg> </span> </li> - <li v-if="chapter001.isShowExample29"> - <p> - <span class="zt-ls2">瑙�</span>鍦ㄦ暟杞翠笂灏嗛泦鍚圓, B 琛ㄧず鍑烘潵, - 濡傚浘1-18鎵�绀�. - </p> - </li> </ul> - <div class="center openImgBox"> - <img class="img-f" alt="" src="../../assets/images/0031-2.jpg" /> - <p class="img" style="font-size: 14px">鍥�1-18</p> + <div v-if="chapter001.isShowExample29" > + <p> + <span class="zt-ls2">瑙�</span>鍦ㄦ暟杞翠笂灏嗛泦鍚圓, B 琛ㄧず鍑烘潵, + 濡傚浘1-18鎵�绀�. + </p> + <div class="center openImgBox"> + <img class="img-f" alt="" src="../../assets/images/0031-2.jpg" /> + <p class="img" style="font-size: 14px">鍥�1-18</p> + </div> + <p>瑙傚療鍙煡A鈭狟={x|x锛�4鎴杧鈮�-2}.</p> + <p>鏍规嵁骞堕泦鐨勫惈涔夊彲浠ョ煡閬擄紝瀵逛簬浠绘剰涓や釜闆嗗悎A锛孊锛屾湁涓嬭堪鎬ц川.</p> + <p>锛�1锛� A鈭狟=B鈭狝锛涳紙2锛� A鈭狝=A锛孉鈭垍=A锛�</p> + <p>锛�3锛� A鈯咥鈭狟锛孊鈯咥鈭狟锛涳紙4锛� 鑻鈯咥锛屽垯A鈭狟=A.</p> </div> - <p>瑙傚療鍙煡A鈭狟={x|x锛�4鎴杧鈮�-2}.</p> - <p>鏍规嵁骞堕泦鐨勫惈涔夊彲浠ョ煡閬擄紝瀵逛簬浠绘剰涓や釜闆嗗悎A锛孊锛屾湁涓嬭堪鎬ц川.</p> - <p>锛�1锛� A鈭狟=B鈭狝锛涳紙2锛� A鈭狝=A锛孉鈭垍=A锛�</p> - <p>锛�3锛� A鈯咥鈭狟锛孊鈯咥鈭狟锛涳紙4锛� 鑻鈯咥锛屽垯A鈭狟=A.</p> <div class="bk-hzjl"> <div class="bj1-hzjl"> <p class="left"> <img class="img-gn2" alt="" src="../../assets/images/hzjl.jpg" /> </p> - <examinations :cardList="questionData[27] ? questionData[27][2]:[] " :hideCollect="true" sourceType="json" v-if="questionData"> + <examinations :cardList="questionData[27] ? questionData[27][2] : []" :hideCollect="true" + sourceType="json" v-if="questionData"> </examinations> </div> </div> @@ -1624,7 +1620,8 @@ </p> </div> <p class="block tl"> - <examinations :cardList="questionData[29] ? questionData[29][1] :[]" :hideCollect="true" sourceType="json" v-if="questionData"> + <examinations :cardList="questionData[29] ? questionData[29][1] : []" :hideCollect="true" + sourceType="json" v-if="questionData"> </examinations> </p> </div> @@ -1761,7 +1758,8 @@ </p> </div> <p class="block tl"> - <examinations :cardList="questionData[29] ? questionData[29][2] :[]" :hideCollect="true" sourceType="json" v-if="questionData"> + <examinations :cardList="questionData[29] ? questionData[29][2] : []" :hideCollect="true" + sourceType="json" v-if="questionData"> </examinations> </p> </div> @@ -1959,8 +1957,7 @@ </div> </div> <!-- 025 --> - <div class="page-box hidePage" page="32"> - </div> + <div class="page-box hidePage" page="32"></div> <!-- 026 --> <div class="page-box" page="33"> <div v-if="showPageList.indexOf(33) > -1"> @@ -2096,13 +2093,19 @@ </div> </div> <!-- 030 --> - <div class="page-box hidePage" page="37"> - </div> + <div class="page-box hidePage" page="37"></div> <!-- 瑙i鎬濊矾寮圭獥 --> - <el-dialog :visible.sync="thinkingDialog" width="40%" :append-to-body="true" :show-close="false" @close="closeDialog" class="thinkDialog" > - <div slot="title" class="think-header" style="padding: 0; text-align: center; color: #333;display:flex;justify-content: center;"> + <el-dialog :visible.sync="thinkingDialog" width="40%" :append-to-body="true" :show-close="false" + @close="closeDialog" class="thinkDialog"> + <div slot="title" class="think-header" style=" + padding: 0; + text-align: center; + color: #333; + display: flex; + justify-content: center; + "> <span style=""> 鍒嗘瀽 </span> - <svg style="position: absolute; right:10px;cursor: pointer;" @click="thinkingDialog = false" t="1718596022986" + <svg style="position: absolute; right: 10px; cursor: pointer" @click="thinkingDialog = false" t="1718596022986" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4252" width="20" height="20" xmlns:xlink="http://www.w3.org/1999/xlink"> <path @@ -2149,14 +2152,14 @@ </template> <script> -import examinations from '@/components/examinations/index.vue' -import { getResourcePath } from '@/assets/methods/resources' +import examinations from "@/components/examinations/index.vue"; +import { getResourcePath } from "@/assets/methods/resources"; import { getCollectResource, setCollectResource, -} from '@/assets/methods/resources' +} from "@/assets/methods/resources"; export default { - name: 'chapter-one', + name: "chapter-one", components: { examinations }, props: { showPageList: { @@ -2168,20 +2171,20 @@ }, }, async mounted() { - const data = localStorage.getItem('math-chapterData') + const data = localStorage.getItem("math-chapterData"); if (data) { - this.chapterData = JSON.parse(data) + this.chapterData = JSON.parse(data); } - this.getPath() + this.getPath(); this.collectResourceList = await getCollectResource( this.config.activeBook.bookId - ) + ); }, data() { return { chapter001: { tkItem01: { - text1: '', + text1: "", }, isShowExample1: false, isShowExample2: false, @@ -2225,46 +2228,51 @@ isShowExample40: false, isShowExample41: false, }, - collectImg: require('../../assets/images/icon/heart.png'), - collectCheck: require('../../assets/images/icon/heart-check.png'), + collectImg: require("../../assets/images/icon/heart.png"), + collectCheck: require("../../assets/images/icon/heart-check.png"), thinkingDialog: false, - videoPath: '', + videoPath: "", stepIndex: 1, collectResourceList: [], chapterData: { isCollectImg: false, isCollectVideo: false, - txtOne: '', - txtTwo: '', + txtOne: "", + txtTwo: "", }, stepOne: [ { - txt: '1:(1)鍑芥暟f(x)=3x2+1鐨勫畾涔夊煙鏄疪锛屽浠绘剰XER锛岄兘鏈�-XER', + txt: "1:(1)鍑芥暟f(x)=3x2+1鐨勫畾涔夊煙鏄疪锛屽浠绘剰XER锛岄兘鏈�-XER", isShow: true, }, { - txt: '2:f(-x)=3(-x)2+1=3x2+1=f(x)', + txt: "2:f(-x)=3(-x)2+1=3x2+1=f(x)", isShow: false, }, ], // 鏂板 - thinkData:[], + thinkData: [], thinkOne: [ - '鍒嗘瀽涓轰簡涓嶉噸涓嶆紡鍦板啓鍑洪泦鍚圓 鐨勬墍鏈夊瓙闆�,鎴戜滑搴斿垎涓轰互涓嬪嚑涓� 姝ラ鏉ュ啓.', - '锛�1锛� 鈭呮槸鎵�鏈夐泦鍚堢殑瀛愰泦锛屾墍浠ュ厛鍐欏嚭 鈭咃紱', - '锛�2锛� 鍐欏嚭鍚湁涓�涓厓绱犵殑瀛愰泦锛歿a}锛寋b}锛寋c}锛�', - '锛�3锛� 鍐欏嚭鍚湁涓や釜鍏冪礌鐨勫瓙闆嗭細{a锛宐}锛寋a锛宑}锛寋b锛宑}锛�', - '锛�4锛� 鍐欏嚭鍚湁涓変釜鍏冪礌鐨勫瓙闆嗭細{a锛宐锛宑}' + "鍒嗘瀽涓轰簡涓嶉噸涓嶆紡鍦板啓鍑洪泦鍚圓 鐨勬墍鏈夊瓙闆�,鎴戜滑搴斿垎涓轰互涓嬪嚑涓� 姝ラ鏉ュ啓.", + "锛�1锛� 鈭呮槸鎵�鏈夐泦鍚堢殑瀛愰泦锛屾墍浠ュ厛鍐欏嚭 鈭咃紱", + "锛�2锛� 鍐欏嚭鍚湁涓�涓厓绱犵殑瀛愰泦锛歿a}锛寋b}锛寋c}锛�", + "锛�3锛� 鍐欏嚭鍚湁涓や釜鍏冪礌鐨勫瓙闆嗭細{a锛宐}锛寋a锛宑}锛寋b锛宑}锛�", + "锛�4锛� 鍐欏嚭鍚湁涓変釜鍏冪礌鐨勫瓙闆嗭細{a锛宐锛宑}", ], - thinkTwo:[ + thinkTwo: [ "锛�1锛� 鍥犱负鈥滆嫳鏂囧ぇ鍐欌�濊繖涓�鏉′欢鏄槑纭殑锛屾墍浠モ�滆嫳鏂囧ぇ鍐欏瓧姣嶁�濇槸纭畾鐨勫璞�.", "锛�2锛� 鍥犱负鈥滈珮涓瓙鈥濊繖涓�鏉′欢涓嶆槑纭紝鎵�浠ュ畠鎵�鎸囩殑瀵硅薄涓嶇‘瀹�.", "锛�3锛� 瑙d笉绛夊紡2x-7锛�0寰� x 锛� 7 2 .浠绘剰涓�涓疄鏁帮紝閮藉彲浠ュ拰 7 2姣旇緝澶у皬锛屾墍浠ヤ笉绛夊紡2x-7锛�0鐨勬墍鏈夊疄鏁拌В閮芥槸纭畾鐨勫璞�.", - "锛�4锛� 浠绘剰涓�涓鏁存暟锛岃兘鍚﹁5鏁撮櫎鏄‘瀹氱殑锛屾墍浠ヨ兘琚�5鏁撮櫎鐨勬鏁存暟鑳界粍鎴愰泦鍚�." + "锛�4锛� 浠绘剰涓�涓鏁存暟锛岃兘鍚﹁5鏁撮櫎鏄‘瀹氱殑锛屾墍浠ヨ兘琚�5鏁撮櫎鐨勬鏁存暟鑳界粍鎴愰泦鍚�.", ], - thinkThree:['鐢ㄦ弿杩版硶琛ㄧず闆嗗悎锛屽叧閿槸鎵惧嚭闆嗗悎涓厓绱犳墍鍏锋湁鐨勫叡鍚岀壒寰�.鏍规嵁瀵瑰叡鍚岀壒寰佺殑鎻忚堪蹇呴』鑳藉垽瀹氫换涓�瀵硅薄鏄惁灞炰簬杩欎釜闆嗗悎.'], - thinkFour:['鍙厛灏嗗凡鐭ラ泦鍚堝湪鏁拌酱涓婅〃绀哄嚭鏉ワ紝鐒跺悗瑙傚療寰楀嚭浜ら泦锛屼絾鏄竴瀹氳娉ㄦ剰鍒嗘瀽绔偣鐨勬儏鍐�.'], - thinkFive:[`闆嗗悎A琛ㄧず鏂圭▼x+2y-6=0鐨勮В闆嗭紝闆嗗悎B琛ㄧず鏂圭▼x-4y=0 + thinkThree: [ + "鐢ㄦ弿杩版硶琛ㄧず闆嗗悎锛屽叧閿槸鎵惧嚭闆嗗悎涓厓绱犳墍鍏锋湁鐨勫叡鍚岀壒寰�.鏍规嵁瀵瑰叡鍚岀壒寰佺殑鎻忚堪蹇呴』鑳藉垽瀹氫换涓�瀵硅薄鏄惁灞炰簬杩欎釜闆嗗悎.", + ], + thinkFour: [ + "鍙厛灏嗗凡鐭ラ泦鍚堝湪鏁拌酱涓婅〃绀哄嚭鏉ワ紝鐒跺悗瑙傚療寰楀嚭浜ら泦锛屼絾鏄竴瀹氳娉ㄦ剰鍒嗘瀽绔偣鐨勬儏鍐�.", + ], + thinkFive: [ + `闆嗗悎A琛ㄧず鏂圭▼x+2y-6=0鐨勮В闆嗭紝闆嗗悎B琛ㄧず鏂圭▼x-4y=0 鐨勮В闆嗭紝涓や釜瑙i泦鐨勪氦闆嗗氨鏄簩鍏冧竴娆℃柟绋嬬粍 <math display="block"> @@ -2299,20 +2307,23 @@ </mrow> </math> - <p>鐨勮В闆�.</p> `], - showIndex:0, - } + <p>鐨勮В闆�.</p> `, + ], + showIndex: 0, + }; }, created() { - const localData = JSON.parse(localStorage.getItem('chapter001')) + const localData = JSON.parse(localStorage.getItem("chapter001")); if (localData) { - this.chapter001 = { ...Object.assign(this.chapter001, localData) } + this.chapter001 = { ...Object.assign(this.chapter001, localData) }; } }, methods: { async getPath() { - this.videoPath = await getResourcePath('a28cd862d61b5df2201406b76e9f01b0') - console.log(this.videoPath, '0988') + this.videoPath = await getResourcePath( + "a28cd862d61b5df2201406b76e9f01b0" + ); + console.log(this.videoPath, "0988"); }, //璧勬簮鏀惰棌浜嬩欢 handleCollectResource( @@ -2323,10 +2334,10 @@ source, resourceName ) { - console.log(this.collectResourceList) - let list = this.collectResourceList + console.log(this.collectResourceList); + let list = this.collectResourceList; if (list.findIndex((item) => item.id == id) > -1) { - list = list.filter((item) => item.id != id) + list = list.filter((item) => item.id != id); } else { list.push({ id, @@ -2335,27 +2346,28 @@ resourceType, source, resourceName, - }) + }); } - this.collectResourceList = list + this.collectResourceList = list; setCollectResource( this.config.activeBook.bookId, this.collectResourceList - ) + ); }, // 鏂板 openDialog(queryData) { - this.thinkData = queryData - this.thinkingDialog = !this.thinkingDialog + this.thinkData = queryData; + this.thinkingDialog = !this.thinkingDialog; }, closeDialog() { - this.showIndex = 0 + this.showIndex = 0; }, - changeNext() { - if(this.showIndex < this.thinkData.length - 1) this.showIndex = this.showIndex + 1 - } + changeNext() { + if (this.showIndex < this.thinkData.length - 1) + this.showIndex = this.showIndex + 1; + }, }, -} +}; </script> <style lang="less" scoped> @@ -2400,5 +2412,4 @@ color: #fff; } } - </style> diff --git a/src/books/mathBook/view/components/index.vue b/src/books/mathBook/view/components/index.vue index 54f01c7..417892c 100644 --- a/src/books/mathBook/view/components/index.vue +++ b/src/books/mathBook/view/components/index.vue @@ -189,7 +189,7 @@ // 娴嬭瘯椤甸潰璺宠浆 // setTimeout(() => { - // this.gotoPage(6,206); + // this.gotoPage(2,10); // // setTimeout(() => { // // this.renderSign("Highlight", { // // id: "2ACA9359", -- Gitblit v1.9.1