船员公众号
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
21 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:////Users/wanghousheng/www/question-bank/pages/exercises/complete.vue?0fcb","webpack:////Users/wanghousheng/www/question-bank/pages/exercises/complete.vue?a7f5","webpack:////Users/wanghousheng/www/question-bank/pages/exercises/complete.vue?8b45","webpack:////Users/wanghousheng/www/question-bank/pages/exercises/complete.vue?e70d","uni-app:///pages/exercises/complete.vue","webpack:////Users/wanghousheng/www/question-bank/pages/exercises/complete.vue?afea","webpack:////Users/wanghousheng/www/question-bank/pages/exercises/complete.vue?0bb9"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","modelVale","score","error_num","times","use_time","title","img","showCard","correct_num","list","cardList","type","logId","onLoad","console","mounted","methods","openPage","uni","url","viewCard","selCardItem","questionLogInfo","log_id","code","msg","icon","onShareAppMessage","imageUrl","path","onShareTimeline"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,iBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiI;AACjI;AAC4D;AACL;AACsC;;;AAG7F;AAC6M;AAC7M,gBAAgB,iNAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,+FAAM;AACR,EAAE,wGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mGAAU;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,sTAEN;AACP,KAAK;AACL;AACA,aAAa,wLAEN;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,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC1DA;AAAA;AAAA;AAAA;AAAuzB,CAAgB,syBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eC6C30B;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACAC;IACA;MACA;IACA;EACA;EACAC;IACA;EAAA,CACA;EACAC;IACAC;MACAC;QACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;MACAH;QACAC;MAEA;IACA;IACAG;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAJ;kBACAb;gBACA;gBAAA;gBAAA,OACA;kBACAkB;gBACA;cAAA;gBAAA;gBAFAC;gBAAAzB;gBAAA0B;gBAGA;kBACAP;kBACA;kBACAA;gBACA;kBACAA;kBACAA;oBACAQ;oBACArB;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;EACA;EACA;AACA;AACA;EACAsB;IACA;MACAtB;MACAuB;MACAC;IACA;EACA;EAEA;AACA;AACA;AACA;AACA;EACAC;IACA;MACAzB;MACAuB;MACAC;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC3IA;AAAA;AAAA;AAAA;AAAkiD,CAAgB,67CAAG,EAAC,C;;;;;;;;;;;ACAtjD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/exercises/complete.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/exercises/complete.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./complete.vue?vue&type=template&id=4480a0e6&scoped=true&\"\nvar renderjs\nimport script from \"./complete.vue?vue&type=script&lang=js&\"\nexport * from \"./complete.vue?vue&type=script&lang=js&\"\nimport style0 from \"./complete.vue?vue&type=style&index=0&id=4480a0e6&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../Applications/HBuilderX.app/Contents/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 \"4480a0e6\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/exercises/complete.vue\"\nexport default component.exports","export * from \"-!../../../../../../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!./complete.vue?vue&type=template&id=4480a0e6&scoped=true&\"","var components\ntry {\n components = {\n lCircle: function () {\n return import(\n /* webpackChunkName: \"uni_modules/lime-circle/components/l-circle/l-circle\" */ \"@/uni_modules/lime-circle/components/l-circle/l-circle.vue\"\n )\n },\n popCard: function () {\n return import(\n /* webpackChunkName: \"components/pop-card/pop-card\" */ \"@/components/pop-card/pop-card.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 m0 = _vm.staticUrl(\"/static/complete-01.png\")\n var m1 = _vm.staticUrl(\"/static/complete-02.png\")\n var m2 = _vm.staticUrl(\"/static/complete-03.png\")\n var m3 = _vm.staticUrl(\"/static/complete-04.png\")\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.showCard = false\n }\n }\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n m0: m0,\n m1: m1,\n m2: m2,\n m3: m3,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../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!./complete.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../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!./complete.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"complete\">\r\n <view class=\"complete-con\">\r\n <view class=\"complete-con-tit\">\r\n {{title}}\r\n <view class=\"complete-con-card\" @click=\"viewCard\" v-if=\"type == 0 || type == 2 || type == 99 \">答题卡</view>\r\n </view>\r\n <view class=\"complete-con-progress\">\r\n <l-circle v-model:current=\"score\" :percent=\"score\">\r\n <text>{{score}}分</text>\r\n </l-circle>\r\n </view>\r\n <view class=\"complete-con-section\">\r\n <view class=\"sec\">\r\n <image :src=\"staticUrl('/static/complete-01.png')\"></image>\r\n <view class=\"txt\">\r\n 正确率\r\n <text>{{score}}%</text>\r\n </view>\r\n </view>\r\n <view class=\"sec\">\r\n <image :src=\"staticUrl('/static/complete-02.png')\"></image>\r\n <view class=\"txt\">\r\n 完成时间\r\n <text>{{use_time?use_time:'00:00:00'}}</text>\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n <view class=\"complete-btns\">\r\n <view class=\"btn btn-1\">\r\n <image :src=\"staticUrl('/static/complete-03.png')\"></image>\r\n 分享给朋友\r\n <button open-type=\"share\"></button>\r\n </view>\r\n <view class=\"btn btn-2\" @click=\"openPage()\">\r\n <image :src=\"staticUrl('/static/complete-04.png')\"></image>\r\n 继续刷题\r\n </view>\r\n </view>\r\n <pop-card :showPop=\"showCard\" :successNum=\"correct_num\" :errorNum=\"error_num\" :list=\"cardList\" @selItem=\"selCardItem\" @close=\"showCard = false\"></pop-card>\r\n </view>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n data() {\r\n return {\r\n modelVale: 20,\r\n score: 0,\r\n error_num: 0,\r\n times: 10 * 1000,\r\n use_time: \"\",\r\n title: \"'\",\r\n img: \"\",\r\n showCard: false,\r\n correct_num: 0,\r\n list: [],\r\n cardList:[],\r\n type: null,\r\n logId: null,\r\n }\r\n },\r\n onLoad(o) {\r\n this.img = uni.getStorageSync(\"shareImg1\");\r\n this.score = o.score;\r\n this.error_num = o.error_num;\r\n this.correct_num = o.correct_num;\r\n this.use_time = decodeURIComponent(o.use_time);\r\n this.title = uni.getStorageSync(\"categoryTitle\")\r\n this.type = o.type\r\n this.logId = o.logId\r\n console.log(this.title)\r\n if(this.type == 0 || this.type == 2 || this.type == 99) {\r\n this.questionLogInfo()\r\n }\r\n },\r\n mounted() {\r\n // this.$refs.down.start();\r\n },\r\n methods: {\r\n openPage() {\r\n uni.switchTab({\r\n url: \"/pages/question/index\"\r\n })\r\n },\r\n viewCard() {\r\n this.showCard = true\r\n },\r\n selCardItem(index) {\r\n this.showCard = false\r\n uni.navigateTo({\r\n url: \"/pages/exercises/answerCard/answerCard?index=\"+index + \"&error_num=\"+this.error_num +\"&correct_num=\"+ this.correct_num,\r\n \r\n }) \r\n },\r\n async questionLogInfo() {\r\n uni.showLoading({\r\n \ttitle: \"加载中\"\r\n })\r\n const { code, data, msg } = await this.$api.questionLogInfo({\r\n \tlog_id: this.logId?this.logId:0\r\n })\r\n if (code == 200) {\r\n uni.hideLoading(); \r\n this.cardList = data\r\n uni.setStorageSync(\"cardList\", JSON.stringify(data))\r\n }else{\r\n \tuni.hideLoading();\r\n \tuni.showToast({\r\n \t\ticon: \"none\",\r\n \t\ttitle: msg\r\n \t})\r\n }\r\n }\r\n },\r\n /**\r\n * 分享当前页面\r\n */\r\n onShareAppMessage() {\r\n return {\r\n title: this.title,\r\n imageUrl: this.img,\r\n path: \"/pages/question/index\"\r\n }\r\n },\r\n\r\n /**\r\n * 分享到朋友圈\r\n * 本接口为 Beta 版本,暂只在 Android 平台支持,详见分享到朋友圈 (Beta)\r\n * https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share-timeline.html\r\n */\r\n onShareTimeline() {\r\n return {\r\n title: this.title,\r\n imageUrl: this.img,\r\n path: \"/pages/question/index\"\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n .complete {\r\n width: 100%;\r\n min-height: calc(100vh - 44px);\r\n background-color: #f6f6f6;\r\n padding: 0 25rpx 25rpx;\r\n overflow: hidden;\r\n box-sizing: border-box;\r\n\r\n &-con {\r\n padding: 40rpx 20rpx;\r\n overflow: hidden;\r\n border-radius: 20rpx;\r\n margin-top: 20rpx;\r\n background-color: #fff;\r\n\r\n &-tit {\r\n position: relative;\r\n height: 60rpx;\r\n line-height: 60rpx;\r\n font-size: 34rpx;\r\n color: #222222;\r\n text-align: center;\r\n }\r\n\r\n &-card {\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n padding: 6rpx 30rpx;\r\n font-size: 28rpx;\r\n line-height: 57rpx;\r\n color: #FFFFFF;\r\n text-align: center;\r\n background: linear-gradient(-90deg, #3399EA, #38BCFF);\r\n border-radius: 29rpx;\r\n }\r\n\r\n &-progress {\r\n display: flex;\r\n justify-content: center;\r\n margin: 50rpx auto;\r\n\r\n .num {\r\n font-size: 40rpx;\r\n font-weight: bold;\r\n color: #f24646;\r\n\r\n text {\r\n font-size: 75rpx;\r\n font-weight: bold;\r\n color: #f01b1b;\r\n }\r\n }\r\n }\r\n\r\n &-section {\r\n display: flex;\r\n justify-content: space-between;\r\n padding-top: 50rpx;\r\n border-top: 1px solid #f5f5f5;\r\n\r\n .sec {\r\n display: flex;\r\n justify-content: start;\r\n width: 42%;\r\n padding: 30rpx 3%;\r\n background-color: #f2f3f5;\r\n border-radius: 20rpx;\r\n\r\n image {\r\n width: 80rpx;\r\n height: 80rpx;\r\n margin-right: 20rpx;\r\n }\r\n\r\n .txt {\r\n font-size: 28rpx;\r\n color: #464646;\r\n\r\n text {\r\n display: block;\r\n font-size: 32rpx;\r\n font-weight: bold;\r\n color: #363636;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n &-btns {\r\n width: 90%;\r\n margin: 36rpx auto 0;\r\n display: flex;\r\n justify-content: space-between;\r\n\r\n .btn {\r\n width: 48%;\r\n padding: 26rpx 0;\r\n font-size: 30rpx;\r\n color: #ffffff;\r\n border-radius: 84rpx;\r\n text-align: center;\r\n\r\n image {\r\n width: 44rpx;\r\n height: 44rpx;\r\n margin-right: 12rpx;\r\n vertical-align: middle;\r\n }\r\n\r\n position: relative;\r\n\r\n button {\r\n width: 100%;\r\n height: 100%;\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n z-index: 2;\r\n opacity: 0;\r\n }\r\n }\r\n\r\n .btn-1 {\r\n background: linear-gradient(-90deg, #14baa1, #52d4c0);\r\n }\r\n\r\n .btn-2 {\r\n background: linear-gradient(-90deg, #3399EA, #38BCFF);\r\n }\r\n }\r\n }\r\n</style>\r\n","import mod from \"-!../../../../../../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!./complete.vue?vue&type=style&index=0&id=4480a0e6&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../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!./complete.vue?vue&type=style&index=0&id=4480a0e6&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1724401329537\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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":""}