You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
29 KiB
1 lines
29 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/study/detail.vue?3ac2","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/study/detail.vue?6e87","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/study/detail.vue?7238","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/study/detail.vue?abee","uni-app:///pages/study/detail.vue","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/study/detail.vue?a827","webpack:///D:/仁周项目/2024-09-19船员公众号/question-bank/question-bank/pages/study/detail.vue?0e64"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","playType","page","chapter_id","teamIndex","successNum","errorNum","type","count","list","fontSize","cid","fontSize1","fontWeight","info","question_info","safeBottom","isPlay","innerAudioContext","current_question_id","next_question_id","current_question_choice","onLoad","uni","safeAreaInsets","title","useWebAudioImplement","methods","updateFont","updateFont1","openPage","delta","toPlayAudio","console","toSelect","a","getZhangJieList","is_free","category_id","code","msg","getCuowuList","icon","getInfo","is_error","arr","onUnload","destroyed"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,eAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;AACsC;;;AAG3F;AACkL;AAClL,gBAAgB,sLAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,mTAEN;AACP,KAAK;AACL;AACA,aAAa,uSAEN;AACP,KAAK;AACL;AACA,aAAa,6SAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACvGA;AAAA;AAAA;AAAA;AAA8qB,CAAgB,6pBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eC4ElsB;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;QACAC;MACA;MACAC;MACAC;MACAC;MACAC;MAAA;MACAC;MAAA;MACAC;IACA;EACA;EACAC;IACA;IACA;IACA;IACA,4BAEAC;MADAC;IAEA;IACAD;MACAE;IACA;IACA;MACA;IACA;MACA;IACA;IACA;MACAC;IACA;EACA;;EACAC;IACAC;MACA;QACA;MACA;QACA;MACA;QACA;MACA;IACA;IACAC;MACA;QACA;MACA;QACA;MACA;IACA;IACAC;MACAP;QACAQ;MACA;IACA;IACA;IACAC;MAAA;MACA;QACA;UACAC;UACA;UACA;UACA;QACA;UACAA;UACA;QACA;QACA;MACA;QACA;QACA;MACA;MACA;QACAA;MACA;MACA;QACA;MACA;IACA;IACA;IACAC;MACA;QACA;MACA;MACA;MACA;QACAC;MACA;MACA;QACA;QACA;QACA;MACA;QACA;QACA;QACA;MACA;MACA;IACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBACAC;kBACAlC;kBACAmC;kBACApC;gBACA;cAAA;gBAAA;gBALAqC;gBAAAvC;gBAAAwC;gBAMA;kBACA;kBACA;kBACA;oBACA;oBACA;kBACA;gBAEA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBACAH;kBACApC;gBACA;cAAA;gBAAA;gBAHAqC;gBAAAvC;gBAAAwC;gBAIA;kBACA;kBACA;kBACA;oBACA;oBACA;kBACA;gBACA;kBACAjB;oBACAmB;oBACAjB;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAkB;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA,MACApC;kBAAA;kBAAA;gBAAA;gBAAA,IACA;kBAAA;kBAAA;gBAAA;gBACAgB;kBACAmB;kBACAjB;gBACA;gBAAA;cAAA;gBAGA;gBACA;gBACA;gBACA;gBACA;cAAA;gBAEAF;kBACAE;gBACA;gBAAA;gBAAA,OACA;kBACAL;kBACAD;kBACAE;kBACAuB;gBACA;cAAA;gBAAA;gBALAL;gBAAAvC;gBAAAwC;gBAMA;kBACAjB;kBACAsB;kBACAA;kBACA;oBACAA;sBACAV;sBACAA;oBACA;kBACA;kBACA;kBACA;kBACA;gBACA;kBACAZ;oBACAmB;oBACAjB;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;EACA;EACAqB;IACA;IACA;IACA;EACA;EACAC;IACA;IACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC3RA;AAAA;AAAA;AAAA;AAA6yC,CAAgB,wsCAAG,EAAC,C;;;;;;;;;;;ACAj0C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/study/detail.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/study/detail.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./detail.vue?vue&type=template&id=552718d0&scoped=true&\"\nvar renderjs\nimport script from \"./detail.vue?vue&type=script&lang=js&\"\nexport * from \"./detail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./detail.vue?vue&type=style&index=0&id=552718d0&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"552718d0\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/study/detail.vue\"\nexport default component.exports","export * from \"-!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=template&id=552718d0&scoped=true&\"","var components\ntry {\n components = {\n uDivider: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-divider/u-divider\" */ \"@/uni_modules/uview-ui/components/u-divider/u-divider.vue\"\n )\n },\n uEmpty: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-empty/u-empty\" */ \"@/uni_modules/uview-ui/components/u-empty/u-empty.vue\"\n )\n },\n uButton: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-button/u-button\" */ \"@/uni_modules/uview-ui/components/u-button/u-button.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l0 = _vm.info.question_info.title\n ? _vm.__map(_vm.info.question_info.choice, function (a, index) {\n var $orig = _vm.__get_orig(a)\n var m0 = a.isSelect\n ? _vm.staticUrl(\"/static/icon-study-right.png\")\n : null\n var m1 =\n !a.isSelect && a.isErrow\n ? _vm.staticUrl(\"/static/icon-study-wrong.png\")\n : null\n var m2 =\n !a.isSelect &&\n _vm.current_question_choice &&\n _vm.info.question_info.correct == a.name\n ? _vm.staticUrl(\"/static/icon-study-right.png\")\n : null\n return {\n $orig: $orig,\n m0: m0,\n m1: m1,\n m2: m2,\n }\n })\n : null\n var g0 = _vm.info.question_info.length == 0 && _vm.count >= 0\n var m3 =\n _vm.info.question_info.title && _vm.teamIndex <= _vm.count\n ? _vm.staticUrl(\"/static/icon-study-yes.png\")\n : null\n var m4 =\n _vm.info.question_info.title && _vm.teamIndex <= _vm.count\n ? _vm.staticUrl(\"/static/icon-study-no.png\")\n : null\n var m5 =\n _vm.info.question_info.title &&\n _vm.teamIndex <= _vm.count &&\n _vm.info.question_info.speech &&\n _vm.isPlay == false\n ? _vm.staticUrl(\"/static/icon-listen.png\")\n : null\n var m6 =\n _vm.info.question_info.title &&\n _vm.teamIndex <= _vm.count &&\n _vm.info.question_info.speech &&\n !(_vm.isPlay == false)\n ? _vm.staticUrl(\"/static/icon-listen-on.png\")\n : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0,\n g0: g0,\n m3: m3,\n m4: m4,\n m5: m5,\n m6: m6,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"study-detail\">\r\n\t\t<view class=\"study-detail-section\" v-if=\"info.question_info.title\">\r\n\t\t\t<view class=\"li\">\r\n\t\t\t\t<view class=\"tit\" :style=\"{'fontSize': fontSize+'rpx', 'fontWeight': fontWeight?'normal':'bold'}\">\r\n\t\t\t\t\t{{teamIndex}}、<view class=\"content\" v-html=\"info.question_info.title\"></view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"title_img\" v-if=\"info.question_info.title_img\">\r\n\t\t\t\t\t<image mode=\"widthFix\" :src=\"info.question_info.title_img\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"title_video\" v-if=\"info.question_info.title_video\" >\r\n\t\t\t\t\t<video :src=\"info.question_info.title_video\"></video>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"con\" v-for=\"(a,index) in info.question_info.choice\" :key=\"index\" \r\n\t\t\t\t:class=\"a.isSelect?'right':a.isErrow?'wrong':''\" :style=\"{'fontSize': fontSize+'rpx'}\" @click=\"toSelect(index)\">\r\n\t\t\t\t\t{{a.name}}.{{a.value}}\r\n\t\t\t\t\t<view class=\"mark\">\r\n\t\t\t\t\t\t<image v-if=\"a.isSelect\" :src=\"staticUrl('/static/icon-study-right.png')\"></image>\r\n\t\t\t\t\t\t<template v-else>\r\n\t\t\t\t\t\t\t<image v-if=\"a.isErrow\" :src=\"staticUrl('/static/icon-study-wrong.png')\"></image>\r\n\t\t\t\t\t\t\t<image v-if=\"current_question_choice && info.question_info.correct == a.name\" :src=\"staticUrl('/static/icon-study-right.png')\"></image>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t</view> \r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"btns\">\r\n\t\t\t\t<view class=\"btn\" @click=\"updateFont(1)\">放大</view>\r\n\t\t\t\t<view class=\"btn\" @click=\"updateFont(2)\" style=\"margin-left: 20rpx; margin-right: 20rpx;\">缩小</view>\r\n\t\t\t\t<view class=\"btn\" @click=\"updateFont(3)\">{{fontWeight?'加粗':'恢复'}}</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"tips\" v-if=\"current_question_choice\">\r\n\t\t\t\t<view class=\"title\"><u-divider text=\"提示\"></u-divider></view>\r\n\t\t\t\t<view class=\"content\" :style=\"{'fontSize': fontSize1+'rpx'}\" v-html=\"info.question_info.prompt\"></view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"btns\" v-if=\"current_question_choice\">\r\n\t\t\t\t<view class=\"btn\" @click=\"updateFont1(1)\">放大</view>\r\n\t\t\t\t<view class=\"btn\" @click=\"updateFont1(2)\" style=\"margin-left: 20rpx; margin-right: 20rpx;\">缩小</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"study-detail-section\" v-if=\"info.question_info.length == 0 && count >= 0\">\r\n\t\t\t<view class=\"empty\" style=\"margin-top: 200rpx;\" v-if=\"count == 0\">\r\n\t\t\t\t<u-empty mode=\"data\" text=\"暂无相关信息\">\r\n\t\t\t\t</u-empty>\r\n\t\t\t</view>\r\n\t\t\t<template v-else>\r\n\t\t\t\t<view class=\"empty\" style=\"margin-top: 200rpx; margin-bottom: 100rpx;\">\r\n\t\t\t\t\t<u-empty mode=\"data\" text=\"当前题库全部练完\">\r\n\t\t\t\t\t</u-empty>\r\n\t\t\t\t</view>\r\n\t\t\t\t<u-button color=\"#2080F9\" @click=\"openPage(8)\">返回上一页</u-button>\r\n\t\t\t</template>\r\n\t\t</view>\r\n\t\t<view class=\"study-detail-bottom\" v-if=\"info.question_info.title && (teamIndex) <= count\"\r\n :style=\"{ 'padding-bottom': safeBottom + 'px' }\">\r\n\t\t\t<view class=\"check\">\r\n\t\t\t\t<view class=\"a\">\r\n\t\t\t\t\t<image :src=\"staticUrl('/static/icon-study-yes.png')\"></image>{{successNum}}\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"b\">\r\n\t\t\t\t\t<image :src=\"staticUrl('/static/icon-study-no.png')\"></image>{{errorNum}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"listen\" v-if=\"info.question_info.speech\" @click=\"toPlayAudio(info.question_info.speech)\">\r\n\t\t\t\t<image v-if=\"isPlay == false\" :src=\"staticUrl('/static/icon-listen.png')\"></image>\r\n\t\t\t\t<image v-else :src=\"staticUrl('/static/icon-listen-on.png')\"></image>\r\n\t\t\t\t<text :class=\"isPlay?'on':''\">听题</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"btn\" @click=\"getInfo(1)\">\r\n\t\t\t\t下一题\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\t\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tplayType: 1,\r\n\t\t\t\tpage: 1,\r\n\t\t\t\tchapter_id: \"\",\r\n\t\t\t\tteamIndex: 0,\r\n\t\t\t\tsuccessNum: 0,\r\n\t\t\t\terrorNum: 0,\r\n\t\t\t\ttype: 0,\r\n\t\t\t\tcount: 0,\r\n\t\t\t\tlist: [],\r\n\t\t\t\tfontSize: 30,\r\n\t\t\t\tcid: \"\",\r\n\t\t\t\tfontSize1: 26,\r\n\t\t\t\tfontWeight: true,\r\n\t\t\t\tinfo: {\r\n\t\t\t\t\tquestion_info: []\r\n\t\t\t\t},\r\n safeBottom: '',\r\n\t\t\t\tisPlay: false,\r\n\t\t\t\tinnerAudioContext: null,\r\n\t\t\t\tcurrent_question_id: \"\",//当前题目ID\r\n\t\t\t\tnext_question_id: \"\",//下一题ID\r\n\t\t\t\tcurrent_question_choice: \"\",//current_question_choice\r\n\t\t\t};\r\n\t\t},\r\n\t\tonLoad(o) {\r\n\t\t\tthis.type = o.type;\r\n\t\t\tthis.chapter_id = o.id;\r\n\t\t\tthis.cid = o.cid;\r\n const {\r\n safeAreaInsets\r\n } = uni.getSystemInfoSync()\r\n this.safeBottom = safeAreaInsets?.bottom\r\n\t\t\tuni.setNavigationBarTitle({\r\n\t\t\t\ttitle: o.type != 1?\"章节练习\":\"章节错误题\"\r\n\t\t\t})\r\n\t\t\tif(o.type == 0 || o.type == 2){\r\n\t\t\t\tthis.getZhangJieList();\r\n\t\t\t}else{\r\n\t\t\t\tthis.getCuowuList();\r\n\t\t\t}\r\n\t\t\tthis.innerAudioContext = uni.createInnerAudioContext({\r\n\t\t\t\tuseWebAudioImplement: false // 默认关闭。对于短音频、播放频繁的音频建议开启此选项\r\n\t\t\t});\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tupdateFont(type){\r\n if (type == 1) {\r\n this.fontSize < 70 ? this.fontSize++ : this.fontSize\r\n } else if (type == 2) {\r\n this.fontSize > 20 ? this.fontSize-- : this.fontSize\r\n } else if (type == 3) {\r\n this.fontWeight = !this.fontWeight\r\n }\r\n\t\t\t},\r\n\t\t\tupdateFont1(type){\r\n\t\t\t if (type == 1) {\r\n\t\t\t this.fontSize1 < 70 ? this.fontSize1++ : this.fontSize1\r\n\t\t\t } else if (type == 2) {\r\n\t\t\t this.fontSize1 > 20 ? this.fontSize1-- : this.fontSize1\r\n\t\t\t }\r\n\t\t\t},\r\n\t\t\topenPage(){\r\n\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\tdelta: 1\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t//播发试题\r\n\t\t\ttoPlayAudio(src) {\r\n\t\t\t\tif(this.isPlay == false){\r\n\t\t\t\t\tif(this.playType == 1){\r\n\t\t\t\t\t\tconsole.log(111)\r\n\t\t\t\t\t\tthis.innerAudioContext.src = src;\r\n\t\t\t\t\t\tthis.innerAudioContext.play();\r\n\t\t\t\t\t\tthis.playType = 2\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tconsole.log(22)\r\n\t\t\t\t\t\tthis.innerAudioContext.play();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.isPlay = true;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.isPlay = false;\r\n\t\t\t\t\tthis.innerAudioContext.pause();\r\n\t\t\t\t}\r\n\t\t\t\tthis.innerAudioContext.onPlay(() => {\r\n\t\t\t\t console.log('开始播放');\r\n\t\t\t\t});\r\n\t\t\t\tthis.innerAudioContext.onEnded(() => {\r\n\t\t\t\t this.isPlay = false\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t//选择答案\r\n\t\t\ttoSelect(index) {\r\n\t\t\t\tif(this.info.question_info.isDisable == true){\r\n\t\t\t\t\treturn ;\r\n\t\t\t\t}\r\n\t\t\t\tthis.info.question_info.isDisable = true;\r\n\t\t\t\tthis.info.question_info.choice.map(a=>{\r\n\t\t\t\t\ta.isSelect = false\r\n\t\t\t\t})\r\n\t\t\t\tif(this.info.question_info.choice[index].name == this.info.question_info.correct){\r\n\t\t\t\t\tthis.info.question_info.choice[index].isSelect = true\r\n\t\t\t\t\tthis.info.question_info.choice[index].isErrow = false\r\n\t\t\t\t\tthis.successNum ++\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.info.question_info.choice[index].isSelect = false\r\n\t\t\t\t\tthis.info.question_info.choice[index].isErrow = true\r\n\t\t\t\t\tthis.errorNum ++\r\n\t\t\t\t}\r\n\t\t\t\tthis.current_question_choice = this.info.question_info.choice[index].name\r\n\t\t\t},\r\n\t\t\t//获取章节题目列表\r\n\t\t\tasync getZhangJieList() {\r\n\t\t\t\tconst { code, data, msg } = await this.$api.chapterQuestionsList({\r\n\t\t\t\t\tis_free: this.type == 0?0:1,\r\n\t\t\t\t\tchapter_id: this.type == 0?this.chapter_id:\"\",\r\n\t\t\t\t\tcategory_id: this.type == 0?this.cid: this.chapter_id ,\r\n\t\t\t\t\tpage: this.page\r\n\t\t\t\t})\r\n\t\t\t\tif (code == 200) {\r\n\t\t\t\t\tthis.list = data.list;\r\n\t\t\t\t\tthis.count = data.count;\r\n\t\t\t\t\tif(this.count>0){\r\n\t\t\t\t\t\tthis.next_question_id = data.list[0]\r\n\t\t\t\t\t\tthis.getInfo();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//获取错误题目列表\r\n\t\t\tasync getCuowuList() {\r\n\t\t\t\tconst { code, data, msg } = await this.$api.chapterErrorQuestionsList({\r\n\t\t\t\t\tcategory_id: this.chapter_id,\r\n\t\t\t\t\tpage: this.page\r\n\t\t\t\t})\r\n\t\t\t\tif (code == 200) {\r\n\t\t\t\t\tthis.list = data.list;\r\n\t\t\t\t\tthis.count = data.count;\r\n\t\t\t\t\tif(this.count>0){\r\n\t\t\t\t\t\tthis.next_question_id = data.list[0]\r\n\t\t\t\t\t\tthis.getInfo();\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ticon: \"none\",\r\n\t\t\t\t\t\ttitle: msg\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//获取详情\r\n\t\t\tasync getInfo(type) {\r\n\t\t\t\tif(type == 1){\r\n\t\t\t\t\tif(!this.current_question_choice){\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ticon: \"none\",\r\n\t\t\t\t\t\t\ttitle: \"请选择答案!\"\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.current_question_id = this.teamIndex>this.count?'':this.list[this.teamIndex-1];\r\n\t\t\t\t\tthis.next_question_id = this.teamIndex>this.count?'':this.list[this.teamIndex];\r\n\t\t\t\t\tthis.isPlay = false;\r\n\t\t\t\t\tthis.playType = 1;\r\n\t\t\t\t\tthis.innerAudioContext.pause();\r\n\t\t\t\t}\r\n\t\t\t\tuni.showLoading({\r\n\t\t\t\t\ttitle: \"加载中\"\r\n\t\t\t\t})\r\n\t\t\t\tconst { code, data, msg } = await this.$api.chapterQuestionsInfo({\r\n\t\t\t\t\tnext_question_id: this.next_question_id,\r\n\t\t\t\t\tcurrent_question_id: this.current_question_id,\r\n\t\t\t\t\tcurrent_question_choice: this.current_question_choice,\r\n\t\t\t\t\tis_error: this.type\r\n\t\t\t\t})\r\n\t\t\t\tif (code == 200) {\r\n\t\t\t\t\tuni.hideLoading()\r\n\t\t\t\t\tlet arr = data\r\n\t\t\t\t\tarr.question_info.isDisable = false\r\n\t\t\t\t\tif(arr.question_info && arr.question_info.choice){\r\n\t\t\t\t\t\tarr.question_info.choice.map(a=>{\r\n\t\t\t\t\t\t\ta.isSelect = false\r\n\t\t\t\t\t\t\ta.isErrow = false\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.teamIndex ++;\r\n\t\t\t\t\tthis.current_question_choice =\"\"\r\n\t\t\t\t\tthis.info = arr\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ticon: \"none\",\r\n\t\t\t\t\t\ttitle: msg\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\tonUnload() {\r\n\t\t\tthis.innerAudioContext.src=\"\"\r\n\t\t\tthis.innerAudioContext.stop()\r\n\t\t\tthis.innerAudioContext.destroy();\r\n\t\t},\r\n\t\tdestroyed() {\r\n\t\t\tthis.innerAudioContext.src=\"\"\r\n\t\t\tthis.innerAudioContext.stop()\r\n\t\t\tthis.innerAudioContext.destroy();\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.study-detail {\r\n\t\tpadding-bottom: 140rpx;\r\n\t\toverflow: hidden;\r\n\t\t&-section {\r\n\t\t\twidth: 100%;\r\n\t\t\tpadding: 0 25rpx 20rpx;\r\n\t\t\toverflow: hidden;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\t.btns{\r\n\t\t\t\tpadding: 25rpx;\r\n\t\t\t\tbox-sizing: border-box;\r\n\t\t\t\tmargin-top: 20rpx;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t\t.btn{\r\n\t\t\t\t\tflex: 1;\r\n\t\t\t\t\tline-height: 80rpx;\r\n\t\t\t\t\tborder-radius: 10rpx;\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\tbackground-color: #2080F9;\r\n\t\t\t\t\tfont-size: 28rpx;\r\n\t\t\t\t\tcolor: #fff;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t.tips{\r\n\t\t\t\tbackground-color: #fff;\r\n\t\t\t\tborder-radius: 20rpx;\r\n\t\t\t\tpadding: 25rpx;\r\n\t\t\t\tbox-sizing: border-box;\r\n\t\t\t\tmargin-top: 20rpx;\r\n\t\t\t\tline-height: 1.5;\r\n\t\t\t\tletter-spacing: 0.5px;\r\n\t\t\t\tcolor: #6b6b6b;\r\n\t\t\t\t.title{\r\n\t\t\t\t\tpadding: 0 30rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t.li {\r\n\t\t\t\twidth: 90%;\r\n\t\t\t\tmargin: 20rpx auto 0;\r\n\t\t\t\tpadding: 30rpx;\r\n\t\t\t\tbackground: #FFFFFF;\r\n\t\t\t\tborder-radius: 20rpx;\r\n\t\t\t\tbox-shadow: 0rpx 5rpx 10rpx 0rpx rgba(32, 79, 156, 0.06);\r\n\t\t\t\tborder-radius: 20rpx;\r\n\r\n\t\t\t\t.tit {\r\n\t\t\t\t\toverflow: hidden;\r\n\t\t\t\t\tpadding-bottom: 10rpx;\r\n\t\t\t\t\tcolor: #333333;\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\talign-items: flex-start;\r\n\t\t\t\t}\r\n\t\t\t\t.title_img{\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\timage{\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t.title_video{\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\theight: 300rpx;\r\n\t\t\t\t\tvideo{\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\theight: 100%;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t.con {\r\n\t\t\t\t\toverflow: hidden;\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\talign-items: center;\r\n\t\t\t\t\tjustify-content: space-between;\r\n\t\t\t\t\tmargin-top: 20rpx;\r\n\t\t\t\t\tpadding: 30rpx;\r\n\t\t\t\t\tbackground: #F6F6F6;\r\n\t\t\t\t\tcolor: #333333;\r\n\t\t\t\t\tline-height: 50rpx;\r\n\t\t\t\t\tposition: relative;\r\n\t\t\t\t\t&.right{\r\n\t\t\t\t\t\tcolor: #49c99c;\r\n\t\t\t\t\t\tbackground-color: #f3f8f6;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t&.wrong{\r\n\t\t\t\t\t\tcolor: #fa6e6e;\r\n\t\t\t\t\t\tbackground-color: #fff3f3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t.mark{\r\n\t\t\t\t\t\twidth: 60rpx;\r\n\t\t\t\t\t\theight: 60rpx;\r\n\t\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\t\tright: 10rpx;\r\n\t\t\t\t\t\ttop: 50%;\r\n\t\t\t\t\t\tmargin-top: -30rpx;\r\n\t\t\t\t\t\tz-index: 2;\r\n\t\t\t\t\t\timage{\r\n\t\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\t\theight: 100%;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t&-bottom {\r\n\t\t\tposition: fixed;\r\n\t\t\tbottom: 0;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100rpx;\r\n\t\t\tbackground: #FFFFFF;\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\t.check{\r\n\t\t\t\tmargin-left: 20rpx;\r\n\t\t\t\tline-height: 30rpx;\r\n\t\t\t\t.a{\r\n\t\t\t\t\tfloat: left;\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\talign-items: center;\r\n\t\t\t\t\tmargin-right: 30rpx;\r\n\t\t\t\t\tfont-size: 30rpx;\r\n\t\t\t\t\tcolor: #37C594;\r\n\t\t\t\t}\r\n\t\t\t\t.b{\r\n\t\t\t\t\tfloat: left;\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\talign-items: center;\r\n\t\t\t\t\tfont-size: 30rpx;\r\n\t\t\t\t\tcolor: #F01B1B;\r\n\t\t\t\t}\r\n\t\t\t\timage{\r\n\t\t\t\t\twidth: 44rpx;\r\n\t\t\t\t\theight: 44rpx;\r\n\t\t\t\t\tmargin-right: 10rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t.listen{\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tfont-size: 26rpx;\r\n\t\t\t\tline-height: 30rpx;\r\n\t\t\t\tcolor: #666666;\r\n\t\t\t\ttext.on{\r\n\t\t\t\t\tcolor: #2080F9;\r\n\t\t\t\t}\r\n\t\t\t\timage{\r\n\t\t\t\t\twidth: 44rpx;\r\n\t\t\t\t\theight: 44rpx;\r\n\t\t\t\t\tmargin-right: 12rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t.btn {\r\n\t\t\t\twidth: 141rpx;\r\n\t\t\t\tmargin-right: 20rpx;\r\n\t\t\t\tfont-size: 28rpx;\r\n\t\t\t\tline-height: 57rpx;\r\n\t\t\t\tcolor: #2080F9;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tbackground: #FFFFFF;\r\n\t\t\t\tborder: 1px solid #2080F9;\r\n\t\t\t\tborder-radius: 29rpx;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>","import mod from \"-!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=style&index=0&id=552718d0&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=style&index=0&id=552718d0&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1729238327232\n var cssReload = require(\"D:/ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"/\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |