| | |
| | | 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/civilAviation' |
| | | VUE_APP_PUBLIC_PATH = 'https://jsek.bnuic.com/books/book/civilServices' |
| | | # VUE_APP_RESOURCE_CTX = 'http://182.92.203.7:3007/books/resource/' |
| | | # VUE_APP_PUBLIC_PATH = 'http://182.92.203.7:3007/books/book/botany' |
| | | VUE_APP_BOOK_LIST = "childHealth/lifeCare/sportsAndHealth/embedded/english/artAndDance/artAndDrama/mathBook/botany/civilAviation/civilAviationServices/meetingPlanners" |
| | | VUE_APP_BOOK_ID = 'civilAviation' |
| | | VUE_APP_BOOK_LIST = "childHealth/lifeCare/sportsAndHealth/embedded/english/artAndDance/artAndDrama/mathBook/botany/civilAviation/civilServices/meetingPlanners" |
| | | VUE_APP_BOOK_ID = 'civilServices' |
| | |
| | | "element-ui": "^2.15.14", |
| | | "fabric-with-erasing": "^1.0.1", |
| | | "lodash": "^4.17.21", |
| | | "mathlive": "^0.101.2", |
| | | "moment": "^2.30.1", |
| | | "qiankun": "^2.10.16", |
| | | "spark-md5": "^3.0.2", |
| | |
| | | }, |
| | | "engines": { |
| | | "node": ">=6.9.0" |
| | | } |
| | | }, |
| | | "node_modules/@cortex-js/compute-engine": { |
| | | "version": "0.24.1", |
| | | "resolved": "https://registry.npmmirror.com/@cortex-js/compute-engine/-/compute-engine-0.24.1.tgz", |
| | | "integrity": "sha512-B9pLaZFC1vBrL64yR2LQWy2sj1E/+wtwIVokPuPqX8YWXwj9W2AMVyS9pSMN8gEdjpAC50nSmtL6110Rgi7dKA==", |
| | | "dependencies": { |
| | | "complex.js": "^2.1.1", |
| | | "decimal.js": "^10.4.3" |
| | | }, |
| | | "engines": { |
| | | "node": ">=16.14.2", |
| | | "npm": ">=8.5.0" |
| | | } |
| | | }, |
| | | "node_modules/@discoveryjs/json-ext": { |
| | |
| | | "dev": true, |
| | | "license": "MIT" |
| | | }, |
| | | "node_modules/complex.js": { |
| | | "version": "2.4.2", |
| | | "resolved": "https://registry.npmmirror.com/complex.js/-/complex.js-2.4.2.tgz", |
| | | "integrity": "sha512-qtx7HRhPGSCBtGiST4/WGHuW+zeaND/6Ld+db6PbrulIB1i2Ev/2UPiqcmpQNPSyfBKraC0EOvOKCB5dGZKt3g==", |
| | | "engines": { |
| | | "node": "*" |
| | | }, |
| | | "funding": { |
| | | "type": "github", |
| | | "url": "https://github.com/sponsors/rawify" |
| | | } |
| | | }, |
| | | "node_modules/compressible": { |
| | | "version": "2.0.18", |
| | | "resolved": "https://registry.npmmirror.com/compressible/-/compressible-2.0.18.tgz", |
| | |
| | | "node_modules/decimal.js": { |
| | | "version": "10.4.3", |
| | | "resolved": "https://registry.npmmirror.com/decimal.js/-/decimal.js-10.4.3.tgz", |
| | | "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", |
| | | "optional": true |
| | | "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" |
| | | }, |
| | | "node_modules/decompress-response": { |
| | | "version": "4.2.1", |
| | |
| | | }, |
| | | "funding": { |
| | | "url": "https://github.com/sponsors/sindresorhus" |
| | | } |
| | | }, |
| | | "node_modules/mathlive": { |
| | | "version": "0.101.2", |
| | | "resolved": "https://registry.npmmirror.com/mathlive/-/mathlive-0.101.2.tgz", |
| | | "integrity": "sha512-PJiJogNcaVgyk34YgJ+jQ460lkBWIQ7u1WSQb/NchZ98NBPxQRwjM6xt7mYVK5n+9O5L/mq3cNXtfcG6hP4VNg==", |
| | | "dependencies": { |
| | | "@cortex-js/compute-engine": "0.24.1" |
| | | }, |
| | | "engines": { |
| | | "node": ">=16.14.2", |
| | | "npm": ">=8.5.0" |
| | | }, |
| | | "funding": { |
| | | "type": "individual", |
| | | "url": "https://paypal.me/arnogourdol" |
| | | } |
| | | }, |
| | | "node_modules/mdn-data": { |
| | |
| | | "to-fast-properties": "^2.0.0" |
| | | } |
| | | }, |
| | | "@cortex-js/compute-engine": { |
| | | "version": "0.24.1", |
| | | "resolved": "https://registry.npmmirror.com/@cortex-js/compute-engine/-/compute-engine-0.24.1.tgz", |
| | | "integrity": "sha512-B9pLaZFC1vBrL64yR2LQWy2sj1E/+wtwIVokPuPqX8YWXwj9W2AMVyS9pSMN8gEdjpAC50nSmtL6110Rgi7dKA==", |
| | | "requires": { |
| | | "complex.js": "^2.1.1", |
| | | "decimal.js": "^10.4.3" |
| | | } |
| | | }, |
| | | "@discoveryjs/json-ext": { |
| | | "version": "0.5.7", |
| | | "resolved": "https://registry.npmmirror.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", |
| | |
| | | "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", |
| | | "dev": true |
| | | }, |
| | | "complex.js": { |
| | | "version": "2.4.2", |
| | | "resolved": "https://registry.npmmirror.com/complex.js/-/complex.js-2.4.2.tgz", |
| | | "integrity": "sha512-qtx7HRhPGSCBtGiST4/WGHuW+zeaND/6Ld+db6PbrulIB1i2Ev/2UPiqcmpQNPSyfBKraC0EOvOKCB5dGZKt3g==" |
| | | }, |
| | | "compressible": { |
| | | "version": "2.0.18", |
| | | "resolved": "https://registry.npmmirror.com/compressible/-/compressible-2.0.18.tgz", |
| | |
| | | "decimal.js": { |
| | | "version": "10.4.3", |
| | | "resolved": "https://registry.npmmirror.com/decimal.js/-/decimal.js-10.4.3.tgz", |
| | | "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", |
| | | "optional": true |
| | | "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" |
| | | }, |
| | | "decompress-response": { |
| | | "version": "4.2.1", |
| | |
| | | "semver": "^6.0.0" |
| | | } |
| | | }, |
| | | "mathlive": { |
| | | "version": "0.101.2", |
| | | "resolved": "https://registry.npmmirror.com/mathlive/-/mathlive-0.101.2.tgz", |
| | | "integrity": "sha512-PJiJogNcaVgyk34YgJ+jQ460lkBWIQ7u1WSQb/NchZ98NBPxQRwjM6xt7mYVK5n+9O5L/mq3cNXtfcG6hP4VNg==", |
| | | "requires": { |
| | | "@cortex-js/compute-engine": "0.24.1" |
| | | } |
| | | }, |
| | | "mdn-data": { |
| | | "version": "2.0.14", |
| | | "resolved": "https://registry.npmmirror.com/mdn-data/-/mdn-data-2.0.14.tgz", |
| | |
| | | "element-ui": "^2.15.14", |
| | | "fabric-with-erasing": "^1.0.1", |
| | | "lodash": "^4.17.21", |
| | | "mathlive": "^0.101.2", |
| | | "moment": "^2.30.1", |
| | | "qiankun": "^2.10.16", |
| | | "spark-md5": "^3.0.2", |
| | |
| | | <lifeCare v-if="activeBook.name == 'lifeCare'"></lifeCare> |
| | | <embedded v-if="activeBook.name == 'embedded'"></embedded> |
| | | <english v-if="activeBook.name == 'english'"></english> |
| | | <sportsAndHealth v-if="activeBook.name == 'sportsAndHealth'"></sportsAndHealth> |
| | | <sportsAndHealth |
| | | v-if="activeBook.name == 'sportsAndHealth'" |
| | | ></sportsAndHealth> |
| | | <artAndDance v-if="activeBook.name == 'artAndDance'"></artAndDance> |
| | | <artAndDrama v-if="activeBook.name == 'artAndDrama'"></artAndDrama> |
| | | <mathBook v-if="activeBook.name == 'mathBook'"></mathBook> |
| | | <botany v-if="activeBook.name == 'botany'"></botany> |
| | | <civilAviation v-if="activeBook.name == 'civilAviation'"></civilAviation> |
| | | <civilAviationServices v-if="activeBook.name == 'civilAviationServices'"></civilAviationServices> |
| | | <meetingPlanners v-if="activeBook.name == 'meetingPlanners'"></meetingPlanners> |
| | | <civilServices |
| | | v-if="activeBook.name == 'civilServices'" |
| | | ></civilServices> |
| | | <meetingPlanners |
| | | v-if="activeBook.name == 'meetingPlanners'" |
| | | ></meetingPlanners> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "App", |
| | |
| | | artAndDrama: () => import("./books/artAndDrama/view/index.vue"), |
| | | botany: () => import("./books/botany/view/index.vue"), |
| | | civilAviation: () => import("./books/civilAviation/view/index.vue"), |
| | | civilAviationServices: () =>import("./books/civilAviationServices/view/index.vue"), |
| | | meetingPlanners: () =>import("./books/meetingPlanners/view/index.vue") |
| | | civilServices: () => |
| | | import("./books/civilServices/view/index.vue"), |
| | | meetingPlanners: () => import("./books/meetingPlanners/view/index.vue"), |
| | | }, |
| | | data() { |
| | | return { |
| | | activeBook: {} |
| | | activeBook: {}, |
| | | }; |
| | | }, |
| | | async created() { |
| | |
| | | (this.$store.state.qiankun, this.$store.state.qiankun.getBookConfig) |
| | | ) { |
| | | this.$store.state.qiankun.getBookConfig({ |
| | | bookConfig: this.activeBook |
| | | bookConfig: this.activeBook, |
| | | }); |
| | | } |
| | | } |
| | | }, |
| | | }); |
| | | } else { |
| | | // childHealth |
| | |
| | | // artAndDrama |
| | | // mathBook |
| | | // civilAviation |
| | | // civilAviationServices |
| | | // civilServices |
| | | // meetingPlanners |
| | | this.activeBook = await this.config.getBookConfig( |
| | | process.env.VUE_APP_RESOURCE_CTX + |
| | | (process.env.VUE_APP_ENV == "product" |
| | | ? process.env.VUE_APP_BOOK_ID |
| | | : "civilAviation") |
| | | : "mathBook") |
| | | ); |
| | | |
| | | // this.activeBook = await this.config.getBookConfig( |
| | |
| | | }, |
| | | methods: { |
| | | but() { |
| | | console.log(this.activeBook, 'this.activeBook789'); |
| | | } |
| | | } |
| | | console.log(this.activeBook, "this.activeBook789"); |
| | | }, |
| | | }, |
| | | }; |
| | | |
| | | </script> |
| | | |
| | | <style lang="less"> |
| | |
| | | import axios from "axios"; |
| | | export const resourceCtx = "http://182.92.203.7:3007/books/resource/"; // 资源请求地址 |
| | | // export const resourceCtx = "https://jsek.bnuic.com/books/resource/"; // 资源请求地址 |
| | | |
| | | export const tinymceBaseUrl = 'https://jsek.bnuic.com/home' |
| | | export let activeBook = {}; // 资源请求地址 |
| | | export let goodsStore = ""; |
| | | // 请求教材配置信息 |
| | |
| | | |
| | | const config = { |
| | | resourceCtx, |
| | | tinymceBaseUrl, |
| | | activeBook, |
| | | requestTimeOut, |
| | | tokenKey, |
| | |
| | | <script> |
| | | import pageContent from "./components/index.vue"; |
| | | export default { |
| | | name:"ansAndDance", |
| | | name:"artAndDance", |
| | | components: { |
| | | pageContent, |
| | | }, |
| | |
| | | <script> |
| | | import pageContent from "./components/index.vue"; |
| | | export default { |
| | | name:"ansAndDrama", |
| | | name:"artAndDrama", |
| | | components: { |
| | | pageContent, |
| | | }, |
| | |
| | | <script> |
| | | import pageContent from "./components/index.vue" |
| | | export default { |
| | | name: "civilAviation-book", |
| | | name: "civilAviation", |
| | | components: { pageContent }, |
| | | computed: { |
| | | fontSize() { |
File was renamed from src/books/civilAviationServices/view/index.vue |
| | |
| | | <script> |
| | | import pageContent from "./components/index.vue" |
| | | export default { |
| | | name: "civilAviationServices-book", |
| | | name: "civilAviationServices", |
| | | components: { pageContent }, |
| | | computed: { |
| | | fontSize() { |
| | |
| | | }, 500); |
| | | |
| | | // 测试页面跳转 |
| | | // setTimeout(() => { |
| | | // this.gotoPage(2,50); |
| | | setTimeout(() => { |
| | | this.gotoPage(2,16); |
| | | // // setTimeout(() => { |
| | | // // this.renderSign("Highlight", { |
| | | // // id: "2ACA9359", |
| | |
| | | // // txt: " 运动系统是由骨、骨连结和骨骼肌三部分组成的。全身的骨通过骨连结组成人体骨骼(见图1-1)。骨骼是人体的支架,具有保护内脏器官、供肌肉附着和作为肌肉运动的杠杆等作用。在神经系统的支配下,肌肉收缩牵动所附着的骨绕着关节转动,使身体产生各种动作。所以,运动系统具有运动、支持和保护等功能,幼年时期的骨骼还具有造血功能。 ", |
| | | // // txtIndex: 57 |
| | | // // }); |
| | | // }, 500); |
| | | }, 500); |
| | | |
| | | // 获取题目id列表 |
| | | this.getQuestionId(); |
| | |
| | | cardList[3].infoList.push(item); |
| | | } |
| | | if (item.questionType == "shortAnswer" ||item.questionType == "formula") { |
| | | if(typeof item.userAnswer != 'string') console.log('失败',item); |
| | | cardList[4].infoList.push(item); |
| | | } |
| | | } |
| | |
| | | :disabled="value.isComplete" |
| | | :style="{ backgroundColor: inputBc }" |
| | | /> |
| | | <!-- <math-field |
| | | v-else |
| | | class="mathField" |
| | | :menuItems="[]" |
| | | @input="onChangeInput" |
| | | > |
| | | </math-field> --> |
| | | </span> |
| | | </p> |
| | | <!-- 富文本 --> |
| | |
| | | </span> |
| | | </p> |
| | | </div> |
| | | <img |
| | | <!-- <img |
| | | :src="value.isCollect ? isHeart : heart" |
| | | alt="" |
| | | class="collect-png" |
| | | @click="setCollect(nindex, index)" |
| | | v-if="!(hideCollect && value.questionType == 'shortAnswer')" |
| | | /> |
| | | /> --> |
| | | <!-- 收藏 --> |
| | | </div> |
| | | <div class="questionContent"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { MathfieldElement } from "mathlive" |
| | | import { Message } from "element-ui"; |
| | | import TEditorVue from "../teditor/index.vue"; |
| | | export default { |
| | |
| | | }) |
| | | .catch(() => {}); |
| | | }, |
| | | onChangeInput(e) { |
| | | console.log(e.target.value); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | width: 21px; |
| | | height: 21px; |
| | | } |
| | | .mathField { |
| | | min-width: 200px; |
| | | } |
| | | } |
| | | |
| | | /** 选项 */ |
| | |
| | | props: { |
| | | value: { |
| | | type: String, |
| | | default: () => { |
| | | default: (data) => { |
| | | return ""; |
| | | }, |
| | | }, |
| | |
| | | this.init() |
| | | }, |
| | | methods: { |
| | | // process.env.VUE_APP_PUBLIC_PATH + "/tinymce/langs/zh_CN.js" |
| | | init() { |
| | | const _this = this |
| | | const initData = { |
| | |
| | | "#" + this.tinymceId |
| | | ), |
| | | language_url: |
| | | process.env.VUE_APP_PUBLIC_PATH + "/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目,文档后面附上中文js文件 |
| | | this.config.tinymceBaseUrl + "/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目,文档后面附上中文js文件 |
| | | language: "zh_CN", //语言 |
| | | skin_url: process.env.VUE_APP_PUBLIC_PATH + "/tinymce/skins/ui/oxide", // skin路径,具体路径看自己的项目 |
| | | skin_url: this.config.tinymceBaseUrl + "/tinymce/skins/ui/oxide", // skin路径,具体路径看自己的项目 |
| | | height: 400, //编辑器高度 |
| | | branding: false, //是否禁用“Powered by TinyMCE” |
| | | menubar: "edit insert format table", //顶部菜单栏显示 |
| | |
| | | statusbar: false, |
| | | file_picker_types: "file", |
| | | content_css: |
| | | process.env.VUE_APP_PUBLIC_PATH + |
| | | this.config.tinymceBaseUrl + |
| | | "/tinymce/skins/content/default/content.css", //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入 |
| | | external_plugins: { |
| | | "kityformula-editor": |
| | | process.env.VUE_APP_PUBLIC_PATH + |
| | | this.config.tinymceBaseUrl + |
| | | "/tinymce/plugins/kityformula-editor/plugin.min.js", |
| | | }, |
| | | // 文件上传 |
| | |
| | | import ElementUI from "element-ui"; |
| | | import "element-ui/lib/theme-chalk/index.css"; |
| | | import store from "./store"; |
| | | // 公式输入 |
| | | import { MathfieldElement } from "mathlive" |
| | | |
| | | Vue.config.productionTip = false; |
| | | |