From b2192de76696d2612ce78192f211694b2b5e8920 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 17 六月 2024 19:23:57 +0800 Subject: [PATCH] 数学收藏优化 --- src/books/mathBook/view/components/chapter001.vue | 1 + .env.product | 4 ++-- src/components/examinations/index.vue | 6 +++++- src/App.vue | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.env.product b/.env.product index 76a6d12..102d442 100644 --- a/.env.product +++ b/.env.product @@ -1,6 +1,6 @@ VUE_APP_ENV = 'product' VUE_APP_API_URL = "https://jsek.bnuic.com" VUE_APP_RESOURCE_CTX = 'https://jsek.bnuic.com/books/resource/' -VUE_APP_PUBLIC_PATH = 'https://jsek.bnuic.com/books/book/mathBook' +VUE_APP_PUBLIC_PATH = 'https://jsek.bnuic.com/books/book/artAndDance' VUE_APP_BOOK_LIST = "childHealth/lifeCare/sportsAndHealth/embedded/english/artAndDance/artAndDrama/mathBook" -VUE_APP_BOOK_ID = 'mathBook' \ No newline at end of file +VUE_APP_BOOK_ID = 'artAndDance' \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 16e08b0..65f4077 100644 --- a/src/App.vue +++ b/src/App.vue @@ -65,7 +65,7 @@ process.env.VUE_APP_RESOURCE_CTX + (process.env.VUE_APP_ENV == "product" ? process.env.VUE_APP_BOOK_ID - : "artAndDance") + : "childHealth") ); // 娴嬭瘯璇曡30椤� // this.activeBook.tryPageCount = 10; diff --git a/src/books/mathBook/view/components/chapter001.vue b/src/books/mathBook/view/components/chapter001.vue index 6715dee..55f50d7 100644 --- a/src/books/mathBook/view/components/chapter001.vue +++ b/src/books/mathBook/view/components/chapter001.vue @@ -565,6 +565,7 @@ <div class="bj"> <examinations :cardList="questionData" + :hideCollect="true" inputBc="#d3edfa" v-if="questionData" :isReal="false" diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue index f2bdffd..68fef34 100644 --- a/src/components/examinations/index.vue +++ b/src/components/examinations/index.vue @@ -92,7 +92,7 @@ v-cloak ></p> </div> - <img :src="value.isCollect ? isHeart : heart" alt="" class="collect-png" @click="handleCollect(nindex,index)" > + <img :src="value.isCollect ? isHeart : heart" alt="" class="collect-png" @click="handleCollect(nindex,index)" v-if="!(hideCollect && value.questionType == 'shortAnswer')" > <!-- 鏀惰棌 --> </div> <div class="questionContent"> @@ -500,6 +500,10 @@ type: String, default: "#fff", }, + hideCollect:{ + type:Boolean, + default:false + } }, data() { return { -- Gitblit v1.9.1