马宇豪
2025-04-29 9d5b4d650e5b01081d3537c750e7469db4d161e3
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-tabBar-wearhouse-wearhouse"],{"003a":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var i={uIcon:a("fd60").default,uButton:a("a914").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"box"},[a("v-uni-view",{staticClass:"navBarBox fix"},[a("v-uni-view",{staticClass:"statusBar",style:{paddingTop:t.statusBarHeight+"px"}}),a("v-uni-view",{staticClass:"navBar"},[a("v-uni-view",{staticClass:"barText"},[t._v("刷题")])],1)],1),a("v-uni-view",{staticClass:"m-p-15"},[a("v-uni-view",{staticClass:"cardList"},[a("v-uni-scroll-view",{staticClass:"scroll-Y",staticStyle:{height:"100%"},attrs:{"scroll-y":"true","lower-threshold":"150"},on:{scrolltoupper:function(e){arguments[0]=e=t.$handleEvent(e),t.upper.apply(void 0,arguments)},scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.lower.apply(void 0,arguments)},scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.scrollView.apply(void 0,arguments)}}},t._l(t.quizList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"card-i"},[a("v-uni-view",{staticClass:"card-i-l"},[a("v-uni-view",[t._v(t._s(e.name))]),a("span",{staticStyle:{display:"block",color:"#999","font-size":"12px","margin-bottom":"20px"}},[t._v("已刷"+t._s(e.exerciseCount)+"/"+t._s(e.totalCount))]),a("span",{staticStyle:{display:"flex","align-items":"center",color:"#999","font-size":"12px"}},[a("u-icon",{staticStyle:{"margin-bottom":"0","margin-right":"2px"},attrs:{name:"clock",color:"#999",size:"18"}}),t._v(t._s(e.createTime))],1)],1),a("v-uni-view",{staticClass:"card-i-r"},[0==e.exerciseCount?a("u-button",{staticClass:"study-button",attrs:{type:"success",text:"开始刷题",shape:"circle",size:"small"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.getQuestionIds(e,1)}}}):t._e(),e.exerciseCount>0?a("u-button",{staticClass:"study-button",attrs:{type:"success",text:"继续刷题",shape:"circle",size:"small"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.getQuestionIds(e,2)}}}):t._e(),a("u-button",{staticClass:"study-button",attrs:{type:"error",text:"查看错题",shape:"circle",size:"small"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.getQuestionIds(e,3)}}}),a("u-button",{staticClass:"study-button",attrs:{text:"重置",shape:"circle",size:"small"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.reSet(e.id)}}})],1)],1)})),1)],1)],1),a("tabBar",{attrs:{currentPagePath:t.page}})],1)},s=[]},"1da1":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.getCleanRecord=function(t){return(0,i.service)({url:"/api/app/question-bank/clearExerciseRecord",method:"GET",data:t})},e.getErrorsIdList=function(t){return(0,i.service)({url:"/api/app/question/getExerciseErrorQuestionList",method:"GET",data:t})},e.getExamIdIdList=function(t){return(0,i.service)({url:"/api/app/question/getPaperQuestionList",method:"GET",data:t})},e.getExamListByIds=function(t){return(0,i.service)({url:"/api/app/question/getPaperQuestionByIds",method:"GET",data:t})},e.getQuestionById=function(t){return(0,i.service)({url:"/api/app/question/getExerciseQuestionById",method:"GET",data:t})},e.getQuestionByIds=function(t){return(0,i.service)({url:"/api/app/question/getExerciseQuestionByIds",method:"GET",data:t})},e.getQuestionIdList=function(t){return(0,i.service)({url:"/api/app/question/getExerciseQuestionList",method:"GET",data:t})},e.getQuizHouse=function(t){return(0,i.service)({url:"/api/app/question-bank/list",method:"GET",data:t})},e.postEndExam=function(t){return(0,i.service)({url:"/api/app/paper-student/endExam",method:"POST",data:t})},e.postExamAnswer=function(t){return(0,i.service)({url:"/api/app/student-answer",method:"POST",data:t})},e.postExerciseAnswer=function(t){return(0,i.service)({url:"/api/app/exercise-answer",method:"POST",data:t})};var i=a("2a97")},2955:function(t,e,a){"use strict";var i=a("b4d3"),n=a.n(i);n.a},4260:function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 水平间距 */\n/* 水平间距 */.navBarBox .navBar[data-v-4bfe2ff6]{background-color:#fff;height:50px;display:flex;flex-direction:row;justify-content:center;align-items:center;box-shadow:0 3px 12px rgba(0,0,0,.05)}.fix[data-v-4bfe2ff6]{position:-webkit-sticky;position:sticky;top:0;left:0;right:0;width:100%;z-index:1}.barText[data-v-4bfe2ff6]{\n  /* text-align: center; */font-size:16px;font-weight:600;flex:2;margin-left:45%}.statusBar[data-v-4bfe2ff6]{background-color:#d3d3d3}.m-p-15[data-v-4bfe2ff6]{width:100%}.cardList[data-v-4bfe2ff6]{width:100%;height:calc(100vh - 160px);margin:20px 0}.cardList .card-i[data-v-4bfe2ff6]{width:calc(100% - 30px);background:#fff;border-radius:16px;padding:15px;margin:0 auto 15px;position:relative;display:flex;align-items:flex-start;box-sizing:border-box;box-shadow:4px 4px 12px hsla(0,0%,58.8%,.05)}.cardList .card-i[data-v-4bfe2ff6]:last-of-type{margin-bottom:0}.cardList .card-i .card-i-l[data-v-4bfe2ff6]{width:75%}.cardList .card-i .card-i-l > uni-view[data-v-4bfe2ff6]{width:100%;font-size:%?32?%;font-family:PingFang SC;font-weight:800;margin-bottom:%?10?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.cardList .card-i .card-i-r[data-v-4bfe2ff6]{width:25%;height:100%;display:flex;flex-direction:column;justify-content:space-between}.cardList .card-i .card-i-r .study-button[data-v-4bfe2ff6]{width:100%;margin-bottom:%?10?%}.cardList .card-i .card-i-r .study-button[data-v-4bfe2ff6]:last-of-type{margin-bottom:0}',""]),t.exports=e},a46a:function(t,e,a){"use strict";a.r(e);var i=a("dcad"),n=a.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},b4d3:function(t,e,a){var i=a("4260");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("99692ae2",i,!0,{sourceMap:!1,shadowMode:!1})},ce44:function(t,e,a){"use strict";a.r(e);var i=a("003a"),n=a("a46a");for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("2955");var r=a("828b"),o=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"4bfe2ff6",null,!1,i["a"],void 0);e["default"]=o.exports},dcad:function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("2634")),s=i(a("2fdc"));a("c223"),a("d4b5");var r=i(a("d42f")),o=a("1da1"),u=(i(a("513b")),{components:{tabBar:r.default},data:function(){return{page:"pages/tabBar/wearhouse/wearhouse",statusBarHeight:0,classParams:{pageNum:1,pageSize:10},quizList:[],totalPage:0}},onLoad:function(){this.statusBarHeight=uni.getSystemInfoSync()["statusBarHeight"],this.classParams.pageNum=1,this.getQuizList()},onShow:function(){},mounted:function(){},methods:{loginOut:function(){uni.clearStorageSync(),uni.clearStorage(),uni.navigateTo({url:"/pages/index/index"})},goBack:function(){uni.switchTab({url:"/pages/tabBar/firstPage/firstPage"})},getQuizList:function(){var t=this;(0,o.getQuizHouse)(t.classParams).then((function(e){if(200==e.code){var a=e.data.list?e.data.list:[];1!=e.pageNum?t.quizList=t.quizList.concat(a):t.quizList=a,t.totalPage=e.data.totalPage}else uni.$u.toast(e.message)}))},getQuestionIds:function(t,e){return(0,s.default)((0,n.default)().mark((function a(){return(0,n.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(0!=t.totalCount){a.next=3;break}return uni.showToast({title:"该题库暂无题目",duration:1e3}),a.abrupt("return");case 3:if(2!=e||t.totalCount!=t.exerciseCount){a.next=6;break}return uni.showToast({title:"该题库所有题目已刷完",duration:1e3}),a.abrupt("return");case 6:uni.setStorageSync("prevPage","/pages/tabBar/wearhouse/wearhouse"),uni.navigateTo({url:"/pages/tabBar/wearhouse/questions?bank="+encodeURIComponent(JSON.stringify(t))+"&type="+encodeURIComponent(JSON.stringify(e))});case 8:case"end":return a.stop()}}),a)})))()},reSet:function(t){uni.showModal({title:"提示",content:"是否重置所选题库的刷题记录?",success:function(){var e=(0,s.default)((0,n.default)().mark((function e(a){var i;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a.confirm){e.next=7;break}return e.next=3,(0,o.getCleanRecord)({bankId:t});case 3:i=e.sent,200==i.code?(uni.showToast({title:"刷题记录已重置",duration:1e3}),uni.reLaunch({url:"/pages/tabBar/wearhouse/wearhouse"})):uni.showToast({title:"记录重置失败,请稍后再试",duration:1e3}),e.next=8;break;case 7:a.cancel&&console.log("用户点击取消");case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})},upper:function(t){},lower:function(t){this.classParams.pageNum++,this.classParams.pageNum>this.totalPage?uni.$u.toast("已加载全部数据"):this.getQuizList()},scrollView:function(t){}}});e.default=u}}]);