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.
914 lines
57 KiB
914 lines
57 KiB
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/study/free"],{
|
|
|
|
/***/ 365:
|
|
/*!*************************************************************************************!*\
|
|
!*** /Users/wanghousheng/www/question-bank/main.js?{"page":"pages%2Fstudy%2Ffree"} ***!
|
|
\*************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* WEBPACK VAR INJECTION */(function(wx, createPage) {
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
__webpack_require__(/*! uni-pages */ 26);
|
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
|
|
var _free = _interopRequireDefault(__webpack_require__(/*! ./pages/study/free.vue */ 366));
|
|
// @ts-ignore
|
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
|
|
createPage(_free.default);
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 366:
|
|
/*!******************************************************************!*\
|
|
!*** /Users/wanghousheng/www/question-bank/pages/study/free.vue ***!
|
|
\******************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _free_vue_vue_type_template_id_21dcff2b_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./free.vue?vue&type=template&id=21dcff2b&scoped=true& */ 367);
|
|
/* harmony import */ var _free_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./free.vue?vue&type=script&lang=js& */ 369);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _free_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _free_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony import */ var _free_vue_vue_type_style_index_0_id_21dcff2b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./free.vue?vue&type=style&index=0&id=21dcff2b&lang=scss&scoped=true& */ 371);
|
|
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 32);
|
|
|
|
var renderjs
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
var component = Object(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
|
_free_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
_free_vue_vue_type_template_id_21dcff2b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
_free_vue_vue_type_template_id_21dcff2b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
false,
|
|
null,
|
|
"21dcff2b",
|
|
null,
|
|
false,
|
|
_free_vue_vue_type_template_id_21dcff2b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|
renderjs
|
|
)
|
|
|
|
component.options.__file = "pages/study/free.vue"
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 367:
|
|
/*!*************************************************************************************************************!*\
|
|
!*** /Users/wanghousheng/www/question-bank/pages/study/free.vue?vue&type=template&id=21dcff2b&scoped=true& ***!
|
|
\*************************************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_template_id_21dcff2b_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./free.vue?vue&type=template&id=21dcff2b&scoped=true& */ 368);
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_template_id_21dcff2b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_template_id_21dcff2b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_template_id_21dcff2b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_template_id_21dcff2b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 368:
|
|
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!/Users/wanghousheng/www/question-bank/pages/study/free.vue?vue&type=template&id=21dcff2b&scoped=true& ***!
|
|
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
|
var components
|
|
try {
|
|
components = {
|
|
uCountDown: function () {
|
|
return Promise.all(/*! import() | uni_modules/uview-ui/components/u-count-down/u-count-down */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-count-down/u-count-down")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-count-down/u-count-down.vue */ 478))
|
|
},
|
|
uDivider: function () {
|
|
return Promise.all(/*! import() | uni_modules/uview-ui/components/u-divider/u-divider */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-divider/u-divider")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-divider/u-divider.vue */ 470))
|
|
},
|
|
uEmpty: function () {
|
|
return Promise.all(/*! import() | uni_modules/uview-ui/components/u-empty/u-empty */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-empty/u-empty.vue */ 397))
|
|
},
|
|
uButton: function () {
|
|
return Promise.all(/*! import() | uni_modules/uview-ui/components/u-button/u-button */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-button/u-button")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-button/u-button.vue */ 456))
|
|
},
|
|
uPopup: function () {
|
|
return Promise.all(/*! import() | uni_modules/uview-ui/components/u-popup/u-popup */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-popup/u-popup.vue */ 448))
|
|
},
|
|
}
|
|
} catch (e) {
|
|
if (
|
|
e.message.indexOf("Cannot find module") !== -1 &&
|
|
e.message.indexOf(".vue") !== -1
|
|
) {
|
|
console.error(e.message)
|
|
console.error("1. 排查组件名称拼写是否正确")
|
|
console.error(
|
|
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
|
)
|
|
console.error(
|
|
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
|
)
|
|
} else {
|
|
throw e
|
|
}
|
|
}
|
|
var render = function () {
|
|
var _vm = this
|
|
var _h = _vm.$createElement
|
|
var _c = _vm._self._c || _h
|
|
var m0 =
|
|
_vm.info.question_info.title && _vm.type != 1
|
|
? _vm.staticUrl("/static/icon-clock.png")
|
|
: null
|
|
var l0 = _vm.info.question_info.title
|
|
? _vm.__map(_vm.info.question_info.choice, function (a, index) {
|
|
var $orig = _vm.__get_orig(a)
|
|
var m1 = a.isSelect
|
|
? _vm.staticUrl("/static/icon-study-right.png")
|
|
: null
|
|
var m2 =
|
|
!a.isSelect && a.isErrow
|
|
? _vm.staticUrl("/static/icon-study-wrong.png")
|
|
: null
|
|
var m3 =
|
|
!a.isSelect &&
|
|
_vm.current_question_choice &&
|
|
_vm.info.question_info.correct == a.name
|
|
? _vm.staticUrl("/static/icon-study-right.png")
|
|
: null
|
|
return {
|
|
$orig: $orig,
|
|
m1: m1,
|
|
m2: m2,
|
|
m3: m3,
|
|
}
|
|
})
|
|
: null
|
|
var g0 = _vm.info.question_info.length == 0 && _vm.count >= 0
|
|
var m4 = _vm.info.question_info.title
|
|
? _vm.staticUrl("/static/icon-study-yes.png")
|
|
: null
|
|
var m5 = _vm.info.question_info.title
|
|
? _vm.staticUrl("/static/icon-study-no.png")
|
|
: null
|
|
var m6 =
|
|
_vm.info.question_info.title &&
|
|
_vm.info.question_info.speech &&
|
|
_vm.isPlay == false
|
|
? _vm.staticUrl("/static/icon-listen.png")
|
|
: null
|
|
var m7 =
|
|
_vm.info.question_info.title &&
|
|
_vm.info.question_info.speech &&
|
|
!(_vm.isPlay == false)
|
|
? _vm.staticUrl("/static/icon-listen-on.png")
|
|
: null
|
|
var m8 = _vm.staticUrl("/static/icon-study-yes.png")
|
|
var m9 = _vm.staticUrl("/static/icon-study-no.png")
|
|
var l1 = _vm.__map(_vm.list, function (item, index) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var g1 = _vm.correctArr.indexOf(item)
|
|
var g2 = _vm.errorArr.indexOf(item)
|
|
return {
|
|
$orig: $orig,
|
|
g1: g1,
|
|
g2: g2,
|
|
}
|
|
})
|
|
if (!_vm._isMounted) {
|
|
_vm.e0 = function ($event) {
|
|
_vm.isShowCard = true
|
|
}
|
|
_vm.e1 = function ($event) {
|
|
_vm.isShowCard = false
|
|
}
|
|
}
|
|
_vm.$mp.data = Object.assign(
|
|
{},
|
|
{
|
|
$root: {
|
|
m0: m0,
|
|
l0: l0,
|
|
g0: g0,
|
|
m4: m4,
|
|
m5: m5,
|
|
m6: m6,
|
|
m7: m7,
|
|
m8: m8,
|
|
m9: m9,
|
|
l1: l1,
|
|
},
|
|
}
|
|
)
|
|
}
|
|
var recyclableRender = false
|
|
var staticRenderFns = []
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 369:
|
|
/*!*******************************************************************************************!*\
|
|
!*** /Users/wanghousheng/www/question-bank/pages/study/free.vue?vue&type=script&lang=js& ***!
|
|
\*******************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./free.vue?vue&type=script&lang=js& */ 370);
|
|
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 370:
|
|
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!/Users/wanghousheng/www/question-bank/pages/study/free.vue?vue&type=script&lang=js& ***!
|
|
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 58));
|
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 60));
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
var _default = {
|
|
data: function data() {
|
|
return {
|
|
playType: 1,
|
|
isShowCard: false,
|
|
start_time: 100000,
|
|
answer: "",
|
|
category_id: "",
|
|
teamIndex: 0,
|
|
successNum: 0,
|
|
errorNum: 0,
|
|
type: 0,
|
|
count: 0,
|
|
list: [],
|
|
resultList: [],
|
|
fontSize: 30,
|
|
fontSize1: 26,
|
|
fontWeight: true,
|
|
info: {
|
|
question_info: []
|
|
},
|
|
timeData: {},
|
|
log_id: 0,
|
|
page: 1,
|
|
innerAudioContext: null,
|
|
isPlay: false,
|
|
current_question_id: "",
|
|
//当前题目ID
|
|
next_question_id: "",
|
|
//下一题ID
|
|
current_question_choice: "",
|
|
//current_question_choice
|
|
safeBottom: '',
|
|
correctArr: [],
|
|
errorArr: []
|
|
};
|
|
},
|
|
onLoad: function onLoad(o) {
|
|
var _uni$getSystemInfoSyn = uni.getSystemInfoSync(),
|
|
safeAreaInsets = _uni$getSystemInfoSyn.safeAreaInsets;
|
|
this.safeBottom = safeAreaInsets === null || safeAreaInsets === void 0 ? void 0 : safeAreaInsets.bottom;
|
|
this.category_id = o.id ? o.id : '';
|
|
this.innerAudioContext = uni.createInnerAudioContext({
|
|
useWebAudioImplement: false // 默认关闭。对于短音频、播放频繁的音频建议开启此选项
|
|
});
|
|
|
|
this.getZhengTiList();
|
|
},
|
|
methods: {
|
|
updateFont: function updateFont(type) {
|
|
if (type == 1) {
|
|
this.fontSize < 70 ? this.fontSize++ : this.fontSize;
|
|
} else if (type == 2) {
|
|
this.fontSize > 20 ? this.fontSize-- : this.fontSize;
|
|
} else if (type == 3) {
|
|
this.fontWeight = !this.fontWeight;
|
|
}
|
|
},
|
|
openPage: function openPage(index) {
|
|
var that = this;
|
|
if (index == 2) {
|
|
if (that.teamIndex == that.count) {
|
|
uni.showModal({
|
|
title: "交卷确认",
|
|
content: "你确定要交卷吗?",
|
|
confirmText: "确认",
|
|
cancelText: "取消",
|
|
confirmColor: "#2080F9",
|
|
success: function success(res) {
|
|
if (res.confirm) {
|
|
uni.showModal({
|
|
title: "再次确认",
|
|
content: "你确定要交卷吗?",
|
|
confirmText: "确认",
|
|
cancelText: "取消",
|
|
confirmColor: "#2080F9",
|
|
success: function success(res) {
|
|
if (res.confirm) {
|
|
that.getInfo(2);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
} else {
|
|
uni.showModal({
|
|
title: "请确认",
|
|
content: "你确定要交卷吗?",
|
|
confirmText: "继续答题",
|
|
cancelText: "确认",
|
|
confirmColor: "#2080F9",
|
|
success: function success(res) {
|
|
if (res.cancel) {
|
|
uni.showModal({
|
|
title: "再次确认",
|
|
content: "你确定要交卷吗?",
|
|
confirmText: "确认",
|
|
cancelText: "取消",
|
|
confirmColor: "#2080F9",
|
|
success: function success(res) {
|
|
if (res.confirm) {
|
|
that.getInfo(3);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
} else {
|
|
uni.navigateBack({
|
|
delta: 1
|
|
});
|
|
}
|
|
},
|
|
onChange: function onChange(e) {
|
|
this.timeData = e;
|
|
if (this.count > 0 && e.days == 0 && e.hours == 0 && e.milliseconds == 0 && e.minutes == 0 && e.seconds == 0) {
|
|
uni.showModal({
|
|
title: "温馨提示",
|
|
content: "当前刷题时间已结束,请返回上一页",
|
|
showCancel: false,
|
|
confirmColor: "#2080F9",
|
|
success: function success(res) {
|
|
if (res.confirm) {
|
|
uni.navigateBack({
|
|
delta: 1
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
},
|
|
//播发试题
|
|
toPlayAudio: function toPlayAudio(src) {
|
|
var _this = this;
|
|
console.log(src);
|
|
if (this.isPlay == false) {
|
|
if (this.playType == 1) {
|
|
this.innerAudioContext.src = src;
|
|
this.innerAudioContext.play();
|
|
this.playType = 2;
|
|
} else {
|
|
this.innerAudioContext.play();
|
|
}
|
|
this.isPlay = true;
|
|
} else {
|
|
this.isPlay = false;
|
|
this.innerAudioContext.pause();
|
|
}
|
|
this.innerAudioContext.onPlay(function () {
|
|
console.log('开始播放');
|
|
});
|
|
this.innerAudioContext.onEnded(function () {
|
|
_this.isPlay = false;
|
|
});
|
|
},
|
|
//选择答案
|
|
toSelect: function toSelect(index) {
|
|
if (this.info.question_info.isDisable == true) {
|
|
return;
|
|
}
|
|
this.info.question_info.isDisable = true;
|
|
this.info.question_info.choice.map(function (a) {
|
|
a.isSelect = false;
|
|
});
|
|
var questionId = this.list[this.teamIndex - 1];
|
|
if (this.info.question_info.choice[index].name == this.info.question_info.correct) {
|
|
this.info.question_info.choice[index].isSelect = true;
|
|
this.info.question_info.choice[index].isErrow = false;
|
|
this.successNum++;
|
|
this.correctArr.push(questionId);
|
|
} else {
|
|
this.info.question_info.choice[index].isSelect = false;
|
|
this.info.question_info.choice[index].isErrow = true;
|
|
this.errorNum++;
|
|
this.errorArr.push(questionId);
|
|
}
|
|
this.info.question_info.value = this.info.question_info.choice[index];
|
|
this.current_question_choice = this.info.question_info.choice[index].name;
|
|
},
|
|
//交卷
|
|
toSumbit: function toSumbit() {
|
|
var _this2 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
var that, arr, _yield$_this2$$api$fr, code, data, msg;
|
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
while (1) {
|
|
switch (_context.prev = _context.next) {
|
|
case 0:
|
|
that = _this2;
|
|
arr = [];
|
|
_context.next = 4;
|
|
return _this2.$api.freeSubPaper({
|
|
log_id: _this2.log_id
|
|
});
|
|
case 4:
|
|
_yield$_this2$$api$fr = _context.sent;
|
|
code = _yield$_this2$$api$fr.code;
|
|
data = _yield$_this2$$api$fr.data;
|
|
msg = _yield$_this2$$api$fr.msg;
|
|
if (code == 200) {
|
|
uni.showToast({
|
|
title: "提交成功"
|
|
});
|
|
setTimeout(function () {
|
|
uni.setStorageSync("shareImg1", data.img);
|
|
uni.redirectTo({
|
|
url: "/pages/exercises/complete?score=" + data.score + "&error_num=" + data.error_num + "&correct_num=" + _this2.successNum + "&use_time=" + data.use_time + "&type=99" + "&logId=" + _this2.log_id
|
|
});
|
|
}, 2000);
|
|
}
|
|
case 9:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}
|
|
}, _callee);
|
|
}))();
|
|
},
|
|
//获取列表
|
|
getZhengTiList: function getZhengTiList() {
|
|
var _this3 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
var that, _yield$_this3$$api$fr, code, data, msg, _data$result, errArr, correctArr;
|
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
while (1) {
|
|
switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
that = _this3;
|
|
_context2.next = 3;
|
|
return _this3.$api.freeQuestionList({
|
|
category_id: _this3.category_id,
|
|
page: _this3.page
|
|
});
|
|
case 3:
|
|
_yield$_this3$$api$fr = _context2.sent;
|
|
code = _yield$_this3$$api$fr.code;
|
|
data = _yield$_this3$$api$fr.data;
|
|
msg = _yield$_this3$$api$fr.msg;
|
|
if (code == 200) {
|
|
_this3.list = data.list;
|
|
_this3.log_id = data.log_id, _this3.count = data.count;
|
|
_this3.successNum = data.correct_num ? data.correct_num : 0;
|
|
_this3.errorNum = data.error_num ? data.error_num : 0;
|
|
_this3.start_time = data.start_time * 1000;
|
|
_this3.resultList = data.result;
|
|
if (((_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.length) > 0) {
|
|
errArr = data.result.filter(function (item) {
|
|
return item.is_correct == 1;
|
|
});
|
|
correctArr = data.result.filter(function (item) {
|
|
return item.is_correct == 2;
|
|
});
|
|
if ((errArr === null || errArr === void 0 ? void 0 : errArr.length) > 0) {
|
|
that.errorArr = errArr.map(function (errItem) {
|
|
return errItem.id + '';
|
|
});
|
|
}
|
|
if ((correctArr === null || correctArr === void 0 ? void 0 : correctArr.length) > 0) {
|
|
that.correctArr = correctArr.map(function (correctItem) {
|
|
return correctItem.id + '';
|
|
});
|
|
}
|
|
}
|
|
if (_this3.count > 0) {
|
|
if (data.current_question_id == 0) {
|
|
that.teamIndex = 0;
|
|
_this3.next_question_id = data.list[0];
|
|
} else {
|
|
_this3.next_question_id = data.current_question_id;
|
|
if (data.list && data.list.length > 0) {
|
|
data.list.map(function (a, idx) {
|
|
if (a == data.current_question_id) {
|
|
that.teamIndex = idx;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
_this3.getInfo();
|
|
}
|
|
} else {
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: msg
|
|
});
|
|
}
|
|
case 8:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}
|
|
}, _callee2);
|
|
}))();
|
|
},
|
|
//获取详情
|
|
getInfo: function getInfo(type) {
|
|
var _this4 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
var that, params, _yield$_this4$$api$fr, code, data, msg, foundItem, arr, _arr;
|
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
while (1) {
|
|
switch (_context3.prev = _context3.next) {
|
|
case 0:
|
|
that = _this4;
|
|
if (!(type == 1)) {
|
|
_context3.next = 14;
|
|
break;
|
|
}
|
|
if (that.current_question_choice) {
|
|
_context3.next = 5;
|
|
break;
|
|
}
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: "请选择答案!"
|
|
});
|
|
return _context3.abrupt("return");
|
|
case 5:
|
|
if (!(that.teamIndex >= that.count)) {
|
|
_context3.next = 7;
|
|
break;
|
|
}
|
|
return _context3.abrupt("return");
|
|
case 7:
|
|
// 下一题 首先判断下一题是否打过,打过直接取
|
|
|
|
that.current_question_id = that.teamIndex > that.count ? '' : that.list[that.teamIndex - 1];
|
|
that.next_question_id = that.teamIndex > that.count ? '' : that.list[that.teamIndex];
|
|
that.isPlay = false;
|
|
that.playType = 1;
|
|
that.innerAudioContext.pause();
|
|
_context3.next = 39;
|
|
break;
|
|
case 14:
|
|
if (!(type == 0)) {
|
|
_context3.next = 23;
|
|
break;
|
|
}
|
|
if (!(that.teamIndex <= 1)) {
|
|
_context3.next = 17;
|
|
break;
|
|
}
|
|
return _context3.abrupt("return");
|
|
case 17:
|
|
that.next_question_id = that.teamIndex > that.count ? '' : that.list[that.teamIndex - 2];
|
|
that.isPlay = false;
|
|
that.playType = 1;
|
|
that.innerAudioContext.pause();
|
|
_context3.next = 39;
|
|
break;
|
|
case 23:
|
|
if (!(type == 2)) {
|
|
_context3.next = 28;
|
|
break;
|
|
}
|
|
// 最后一道题
|
|
that.next_question_id = 0;
|
|
that.current_question_id = that.list[that.list.length - 1];
|
|
_context3.next = 39;
|
|
break;
|
|
case 28:
|
|
if (!(type == 3)) {
|
|
_context3.next = 39;
|
|
break;
|
|
}
|
|
if (!that.current_question_choice) {
|
|
_context3.next = 37;
|
|
break;
|
|
}
|
|
that.current_question_id = that.teamIndex > that.count ? '' : that.list[that.teamIndex - 1];
|
|
that.next_question_id = that.teamIndex > that.count ? '' : that.list[that.teamIndex];
|
|
that.isPlay = false;
|
|
that.playType = 1;
|
|
that.innerAudioContext.pause();
|
|
_context3.next = 39;
|
|
break;
|
|
case 37:
|
|
_this4.toSumbit();
|
|
return _context3.abrupt("return");
|
|
case 39:
|
|
uni.showLoading({
|
|
title: "加载中"
|
|
});
|
|
params = type == 0 ? {
|
|
next_question_id: _this4.next_question_id
|
|
} : {
|
|
next_question_id: _this4.next_question_id,
|
|
current_question_id: _this4.current_question_id,
|
|
current_question_choice: _this4.current_question_choice,
|
|
is_error: _this4.type == 1 ? 1 : 0,
|
|
log_id: _this4.log_id ? _this4.log_id : 0
|
|
};
|
|
_context3.next = 43;
|
|
return _this4.$api.freeQuestionInfo(params);
|
|
case 43:
|
|
_yield$_this4$$api$fr = _context3.sent;
|
|
code = _yield$_this4$$api$fr.code;
|
|
data = _yield$_this4$$api$fr.data;
|
|
msg = _yield$_this4$$api$fr.msg;
|
|
if (!(code == 200)) {
|
|
_context3.next = 57;
|
|
break;
|
|
}
|
|
uni.hideLoading();
|
|
if (!(type == 2 || type == 3)) {
|
|
_context3.next = 54;
|
|
break;
|
|
}
|
|
_this4.toSumbit();
|
|
return _context3.abrupt("return");
|
|
case 54:
|
|
if (type == 0 || type == 1 || typeof type == 'undefined') {
|
|
// 上一题 下一题 先查找题答案
|
|
foundItem = that.resultList && that.resultList.find(function (item) {
|
|
return item.id == that.next_question_id;
|
|
});
|
|
if (foundItem && foundItem.your_answer) {
|
|
arr = data;
|
|
arr.question_info.value = {};
|
|
arr.question_info.isDisable = true;
|
|
if (arr.question_info && arr.question_info.choice) {
|
|
arr.question_info.choice.map(function (a) {
|
|
a.isSelect = foundItem.is_correct == 2 && a.name.toLowerCase() == foundItem.your_answer;
|
|
a.isErrow = foundItem.is_correct == 1 && a.name.toLowerCase() == foundItem.your_answer;
|
|
});
|
|
}
|
|
type == 0 && that.teamIndex--;
|
|
type != 0 && that.teamIndex++;
|
|
that.current_question_choice = foundItem.your_answer;
|
|
that.info = arr;
|
|
} else {
|
|
// 把用户选项放入resultList
|
|
that.resultList && that.resultList.forEach(function (item) {
|
|
if (item.id == that.current_question_id) {
|
|
item.your_answer = that.current_question_choice.toLowerCase();
|
|
item.is_correct = data.current_question_is_correct ? 2 : 1;
|
|
}
|
|
});
|
|
_arr = data;
|
|
_arr.question_info.value = {};
|
|
_arr.question_info.isDisable = false;
|
|
if (_arr.question_info && _arr.question_info.choice) {
|
|
_arr.question_info.choice.map(function (a) {
|
|
a.isSelect = false;
|
|
a.isErrow = false;
|
|
});
|
|
}
|
|
that.teamIndex++;
|
|
that.current_question_choice = "";
|
|
that.info = _arr;
|
|
}
|
|
}
|
|
case 55:
|
|
_context3.next = 59;
|
|
break;
|
|
case 57:
|
|
uni.hideLoading();
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: msg
|
|
});
|
|
case 59:
|
|
case "end":
|
|
return _context3.stop();
|
|
}
|
|
}
|
|
}, _callee3);
|
|
}))();
|
|
}
|
|
},
|
|
onUnload: function onUnload() {
|
|
this.innerAudioContext.src = "";
|
|
this.innerAudioContext.stop();
|
|
this.innerAudioContext.destroy();
|
|
},
|
|
destroyed: function destroyed() {
|
|
this.innerAudioContext.src = "";
|
|
this.innerAudioContext.stop();
|
|
this.innerAudioContext.destroy();
|
|
}
|
|
};
|
|
exports.default = _default;
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 371:
|
|
/*!****************************************************************************************************************************!*\
|
|
!*** /Users/wanghousheng/www/question-bank/pages/study/free.vue?vue&type=style&index=0&id=21dcff2b&lang=scss&scoped=true& ***!
|
|
\****************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_style_index_0_id_21dcff2b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./free.vue?vue&type=style&index=0&id=21dcff2b&lang=scss&scoped=true& */ 372);
|
|
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_style_index_0_id_21dcff2b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_style_index_0_id_21dcff2b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_style_index_0_id_21dcff2b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_style_index_0_id_21dcff2b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_free_vue_vue_type_style_index_0_id_21dcff2b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 372:
|
|
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!/Users/wanghousheng/www/question-bank/pages/study/free.vue?vue&type=style&index=0&id=21dcff2b&lang=scss&scoped=true& ***!
|
|
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
if(false) { var cssReload; }
|
|
|
|
|
|
/***/ })
|
|
|
|
},[[365,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/study/free.js.map
|