webpackJsonp([19],{RlWJ:function(t,e){},ZnkT:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("zVNV"),l=a("g+M4"),i={name:"ExamBank",data:()=>({classes:"未选择",searchText:"",value:null,size:9,readonly:!0,paperInfo:{},onshow:!1,allClass:[],active:null,id:null,typeData:[],typeid:0,paperid:0,categoryid:0,isPayPaper:!1,collect:1}),methods:{onClickLeft(){this.$router.go(-1)},popup(){this.onshow=!0},newClass(t){this.classes=t},getPaperInfo(){this.onshow=!1,Object(s.p)({paperid:this.$route.query.paperid,categoryid:this.$route.query.categoryid}).then(t=>{1==t.result?(this.paperInfo=t.data,this.collect=t.data.collect):this.$Toast(t.msg),document.title=this.paperInfo.title||"试卷介绍"})},getAllPaperCategory(){Object(s.c)().then(t=>{this.allClass=t.data,localStorage.allClass=JSON.stringify(t.data)})},collectionPaper(){let t="";this.collect?this.collect=0:this.collect=1,t=1==this.collect?"收藏成功":"取消收藏",Object(l.t)({type:1,infoid:this.$route.query.paperid,categoryid:this.$route.query.categoryid,collect:this.collect}).then(e=>{e.result?this.$toast(t,"success"):this.$toast(e.msg,"fail")})}},created(){this.getPaperInfo(),this.getAllPaperCategory()},activated(){localStorage.classes&&(this.classes=localStorage.classes),this.getPaperInfo()}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ks-page-scroll-container",[a("div",{staticClass:"examBank"},[a("van-nav-bar",{attrs:{"left-arrow":""},on:{"click-left":t.onClickLeft}},[a("div",{staticClass:"navtitle",attrs:{slot:"title"},slot:"title"},[t._v("试卷介绍")])]),t._v(" "),a("div",{staticClass:"examBank-item"},[a("van-row",{staticClass:"border-bottom bottom-line"},[a("van-col",{staticClass:"center-align",attrs:{span:"24"}},[t._v(t._s(t.paperInfo.title))])],1),t._v(" "),a("van-row",{staticClass:"border-bottom bottom-line"},[a("van-col",{staticClass:"right-align",attrs:{span:"12"}},[t._v("试卷总分："+t._s(t.paperInfo.sumscore)+"分")]),t._v(" "),a("van-col",{staticClass:"left-align left-line",attrs:{span:"12"}},[t._v("试卷难度："+t._s(t.paperInfo.paper_level_name))])],1),t._v(" "),a("van-row",{staticClass:"border-bottom bottom-line"},[a("van-col",{staticClass:"right-align",attrs:{span:"12"}},[t._v("试卷类型："+t._s(t.paperInfo.exam_typename))]),t._v(" "),a("van-col",{staticClass:"left-align left-line",attrs:{span:"12"}},[t._v("考试人数："+t._s(t.paperInfo.studentcount)+"人")])],1),t._v(" "),a("van-row",{staticClass:"border-bottom bottom-line"},[a("van-col",{staticClass:"right-align",attrs:{span:"12"}},[t.paperInfo.isfree?t.paperInfo.isfree&&t.paperInfo.is_singlebuy?a("span",{staticClass:"first-child line-height26"},[t._v("\n            试卷价格：\n            "),a("font",[t._v(t._s(t.paperInfo.price)+t._s(t.paperInfo.chargetype_unit))])],1):a("span",{staticClass:"first-child line-height26"},[t._v("\n            试卷价格：\n            "),a("font",{staticClass:"red-font f15"},[t._v("不允许单购")])],1):a("span",{staticClass:"first-child line-height26"},[t._v("\n            试卷价格：\n            "),a("font",{staticClass:"green-font f15"},[t._v("免费")])],1)]),t._v(" "),a("van-col",{staticClass:"left-align left-line",attrs:{span:"12"}},[t._v("答题时间："+t._s(t.paperInfo.exam_time||"暂无"))])],1)],1),t._v(" "),a("div",{staticClass:"center-align p15"},[t.$store.state.userid?a("van-button",{staticClass:"w95 mr10 collect-btn vertical-align",attrs:{round:"",type:"default"},on:{click:t.collectionPaper}},[a("i",{staticClass:"iconfont mr5",class:0==t.collect?"icon-shoucang":"yellow-font icon-shoucang1"}),t._v("\n        "+t._s(0==t.collect?"收藏试卷":"取消收藏")+"\n      ")]):t._e(),t._v(" "),a("van-button",{staticClass:"w95 mr10 vertical-align",attrs:{round:"",to:{name:"TestPage",query:{paperid:t.$route.query.paperid,courseid:t.$route.query.courseid,categoryid:t.$route.query.categoryid,title:t.paperInfo.title,workid:t.$route.query.workid,stu:t.$route.query.stu}},type:"danger"}},[t._v("进入做题")])],1)],1)])},staticRenderFns:[]};var n=a("C7Lr")(i,o,!1,function(t){a("RlWJ")},"data-v-4e5a4756",null);e.default=n.exports}});