From 2f22158591248d499f709a4b0e9c60db72c60a49 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 13 六月 2024 15:53:06 +0800 Subject: [PATCH] 数学优化 --- src/books/math/view/components/chapter001.vue | 48 ++++++++++++++++++++++++++---------------------- src/books/math/assets/main.less | 8 ++++---- src/App.vue | 4 ++-- 3 files changed, 32 insertions(+), 28 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2edaae6..d09f127 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,7 @@ ></sportsAndHealth> <artAndDance v-if="activeBook.name == 'artAndDance'"></artAndDance> <artAndDrama v-if="activeBook.name == 'artAndDrama'"></artAndDrama> - <mathBook v-if="activeBook.name == 'math'"></mathBook> + <mathBook v-if="activeBook.name == 'mathBook'"></mathBook> </div> </template> @@ -79,7 +79,7 @@ // artAndDance // artAndDrama // math - this.config.resourceCtx + "math" + this.config.resourceCtx + "mathBook" ); // 娴嬭瘯璇曡30椤� // this.activeBook.tryPageCount = 10; diff --git a/src/books/math/assets/main.less b/src/books/math/assets/main.less index c201a0b..52000e9 100644 --- a/src/books/math/assets/main.less +++ b/src/books/math/assets/main.less @@ -661,7 +661,7 @@ } .video-border { border: 1px solid #15c0f2; - border-radius: 30px; + border-radius: 20px; } .fm-st { font-family: "STKaiti"; @@ -740,8 +740,8 @@ } .collect-btn { cursor: pointer; - width: 20px; - height: 20px; + width: 16px; + height: 16px; margin-left: 10px; } // 鏄剧ず绛旀鎸夐挳 @@ -752,7 +752,7 @@ display: inline-block; border:1px solid #00a1e9; height: 22px; - padding: 3px; + padding: 2px; background-color:#00a1e9 ; border-radius: 5px; svg { diff --git a/src/books/math/view/components/chapter001.vue b/src/books/math/view/components/chapter001.vue index 814a932..c887734 100644 --- a/src/books/math/view/components/chapter001.vue +++ b/src/books/math/view/components/chapter001.vue @@ -138,14 +138,16 @@ style="width: 40%" /> </p> - <p class="img fl al-cn ju-cn"> + <p class="img fl fl-cn ju-cn"> <span>鍥�3-15</span> - <img + <el-tooltip class="item" effect="dark" :content="chapterData.isCollectImg ? '鐐瑰嚮鍙栨秷' : '鐐瑰嚮鏀惰棌'" placement="top-start"> + <img :src="chapterData.isCollectImg ? collectCheck : collectImg" alt="" class="collect-btn" @click="handleCollect('img')" /> + </el-tooltip> </p> <video :src="videoPath" @@ -159,14 +161,16 @@ controlslist="nodownload" class="video-border w100" ></video> - <p class="img fl al-cn ju-cn"> + <p class="img fl fl-cn ju-cn"> <span>瑙嗛锛氬垽鏁板嚱鏁板鍋舵�х殑鏂规硶鍜屾楠� </span> - <img + <el-tooltip class="item" effect="dark" :content="chapterData.isCollectVideo ? '鐐瑰嚮鍙栨秷' : '鐐瑰嚮鏀惰棌'" placement="top-start"> + <img :src="chapterData.isCollectVideo ? collectCheck : collectImg" alt="" class="collect-btn" @click="handleCollect('video')" /> + </el-tooltip> </p> <p> <span class="zt-ls"><b>渚�1</b></span @@ -282,8 +286,8 @@ > <svg xmlns="http://www.w3.org/2000/svg" - width="20.501" - height="20.501" + width="18.501" + height="18.501" viewBox="0 0 20.501 20.501" > <path @@ -296,8 +300,8 @@ <span class="btn-box" @click="openThinkingDialog"> <svg xmlns="http://www.w3.org/2000/svg" - width="20.545" - height="22.112" + width="18.545" + height="20.112" viewBox="0 0 20.545 22.112" > <path @@ -310,8 +314,8 @@ <span class="btn-box" @click="stepDialog = true"> <svg xmlns="http://www.w3.org/2000/svg" - width="19.28" - height="20.563" + width="17.28" + height="19.563" viewBox="0 0 19.28 20.563" > <g transform="translate(-109.056 -82.941)"> @@ -337,8 +341,8 @@ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" - width="18.323" - height="18.939" + width="17.323" + height="17.939" viewBox="0 0 18.323 15.939" > <g transform="translate(-398 -946)"> @@ -367,10 +371,10 @@ class="btn-box" @click="isShowExampleFour = !isShowExampleFour" > - <svg + <svg xmlns="http://www.w3.org/2000/svg" - width="20.501" - height="20.501" + width="18.501" + height="18.501" viewBox="0 0 20.501 20.501" > <path @@ -384,8 +388,8 @@ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" - width="18.323" - height="18.939" + width="17.323" + height="17.939" viewBox="0 0 18.323 15.939" > <g transform="translate(-398 -946)"> @@ -414,10 +418,10 @@ class="btn-box" @click="isShowExampleFive = !isShowExampleFive" > - <svg + <svg xmlns="http://www.w3.org/2000/svg" - width="20.501" - height="20.501" + width="18.501" + height="18.501" viewBox="0 0 20.501 20.501" > <path @@ -431,8 +435,8 @@ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" - width="18.323" - height="18.939" + width="17.323" + height="17.939" viewBox="0 0 18.323 15.939" > <g transform="translate(-398 -946)"> -- Gitblit v1.9.1