chunk-097334a8.c9663f8c.js 27.2 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-097334a8"],{3412:function(t,i,s){"use strict";s.r(i);var e=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"inform",attrs:{id:"inform"}},[e("dingbu",{on:{searchClick:t.searchClick,addservere:t.addservere,paget:t.paget}}),e("div",{staticClass:"inform-box"},[e("div",{staticClass:"box-top"},[e("span",{staticClass:"shouye"},[t._v("首页")]),t._m(0),e("router-link",{staticClass:"tonzhim",attrs:{tag:"span",to:"/learn"}},[t._v("学习系统")]),t._m(1),e("span",{staticClass:"tonzhi"},[t._v(t._s(t.msg))])],1)]),e("div",{staticClass:"box-contentk"},[e("div",{staticClass:"box-lok"},t._l(t.addki,(function(i,s){return e("div",{key:s,staticClass:"box-list",class:t.orderindex==s?"orderactivegd":"",attrs:{"data-index":s},on:{click:t.selorder}},[e("img",{staticClass:"ziliao",attrs:{src:i.url,alt:""}}),e("div",{staticClass:"ziliao-text"},[t._v(t._s(i.text))])])})),0),0==t.orderindex?e("div",{staticClass:"box-ziliao"},[e("div",{staticClass:"wode"},[t._v("我的资料")]),e("div",{staticClass:"gexiang-l"}),e("div",{staticClass:"wode-list"},[e("div",{staticClass:"wode-l-name"},[t._v("姓名")]),e("div",{staticClass:"wode-my"},[t._v(t._s(t.usergo.nickname))])]),e("div",{staticClass:"wode-list"},[e("div",{staticClass:"wode-l-name"},[t._v("性别")]),e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.value,callback:function(i){t.value=i},expression:"value"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("div",{staticClass:"wode-list"},[e("div",{staticClass:"wode-l-name"},[t._v("身份证号码")]),e("div",{staticClass:"wode-my"},[t._v(t._s(t.usergo.card))])]),e("div",{staticClass:"wode-list"},[e("div",{staticClass:"wode-l-name"},[t._v("工作单位")]),e("div",{staticClass:"wode-my"},[t._v(t._s(t.usergo.work_address))])]),e("div",{staticClass:"wode-listo"},[e("div",{staticClass:"wode-phong"},[e("div",{staticClass:"wode-l-name"},[t._v("手机号码")]),e("div",{staticClass:"wode-my"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.phonet,expression:"phonet"}],staticClass:"ipd",attrs:{maxlength:"11",oninput:"if(value.length>11)value=value.slice(0,11)",type:"text",placeholder:"请输入手机号"},domProps:{value:t.phonet},on:{input:function(i){i.target.composing||(t.phonet=i.target.value)}}})])]),e("div",{staticClass:"yangzhen-ma"},[e("div",{staticClass:"ma"},[t._v("验证码:")]),e("div",{staticClass:"ipf"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.codet,expression:"codet"}],staticClass:"ipk",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:t.codet},on:{blur:t.animateWidth,input:function(i){i.target.composing||(t.codet=i.target.value)}}})]),e("div",{staticClass:"huoqu-ma",on:{click:t.semat}},[t._v(t._s(t.content))])])]),e("div",{staticClass:"shanchuan"},[e("div",{staticClass:"shan-c"},[t._v("上传照片")]),"http://enterprise.t.brotop.cn/uploads/mo.png"!=t.headimg?e("div",{staticClass:"tukimg"},["http://enterprise.t.brotop.cn/uploads/mo.png"!=t.headimg?e("img",{staticClass:"tuk",staticStyle:{marginLeft:"30px"},attrs:{src:t.headimg,alt:""}}):t._e()]):e("el-upload",{staticClass:"tupian",attrs:{action:"",drag:"","auto-upload":!1,"show-file-list":!1,"on-change":t.changeUpload}},[e("div",{staticClass:"tukimg"},[e("img",{staticClass:"tuk",attrs:{src:t.headimg,alt:""}})])]),t._m(2)],1),e("div",{staticClass:"dibu-btnlp"},[e("div",{staticClass:"btn-quxiao"},[t._v("取消")]),e("div",{staticClass:"btn-baocun",on:{click:t.baocunm}},[t._v("保存")])])]):t._e(),1==t.orderindex?e("div",{staticClass:"box-ziliaolk"},[e("div",{staticClass:"wode"},[t._v("课程列表")]),e("div",{staticClass:"gexiang-l"}),e("div",{staticClass:"box-tou"},[e("div",{staticClass:"tabbar-tolp"},t._l(t.adto,(function(i,s){return e("div",{key:s,class:t.orderindexh==s?"orderactiveh":"",attrs:{"data-index":s,"data-id":i.id},on:{click:t.selorderh}},[t._v(t._s(i.text))])})),0),0==t.orderindexh?e("div",{staticClass:"kengit"},[t._l(t.addlik,(function(i,s){return e("div",{key:s,staticClass:"kecheng-xiu",on:{click:function(s){return t.xianqing(i.id)}}},[e("div",{staticClass:"bixiu-img"},[e("div",{staticClass:"bixiu-xuanxiu"},[t._v(t._s(i.elective))]),e("div",{staticClass:"bixiu-niandu"},[t._v(t._s(i.tag))]),e("img",{attrs:{src:i.video_image,alt:""}})]),e("div",{staticClass:"bixiu-title"},[e("div",{staticClass:"bixiu-text"},[t._v(t._s(i.name))]),e("div",{staticClass:"keshi-tim"},[e("div",{staticClass:"keshi-duo"},[t._v(t._s(i.class_hour)+"课时")]),e("div",{staticClass:"keshi-rig"},[e("div",{staticClass:"keshi-name"},[t._v("讲师:")]),e("div",{staticClass:"keshi-ming"},[t._v(t._s(i.teacher))])])])])])})),e("div",{staticClass:"fenye"},[e("el-pagination",{attrs:{background:"","current-page":t.addkil,"page-size":t.pageNum,layout:"prev, pager, next, jumper",total:t.total},on:{"prev-click":t.prev,"next-click":t.next,"current-change":t.current}})],1)],2):t._e(),1==t.orderindexh?e("div",{staticClass:"kengit"},[t._l(t.addlik,(function(i,s){return e("div",{key:s,staticClass:"kecheng-xiu",attrs:{tag:"div"},on:{click:function(s){return t.xianqing(i.id)}}},[e("div",{staticClass:"bixiu-img"},[e("div",{staticClass:"bixiu-xuanxiu"},[t._v(t._s(i.elective))]),e("div",{staticClass:"bixiu-niandu"},[t._v(t._s(i.tag))]),e("img",{attrs:{src:i.video_image,alt:""}})]),e("div",{staticClass:"bixiu-title"},[e("div",{staticClass:"bixiu-text"},[t._v(t._s(i.name))]),e("div",{staticClass:"keshi-tim"},[e("div",{staticClass:"keshi-duo"},[t._v(t._s(i.class_hour)+"课时")]),e("div",{staticClass:"keshi-rig"},[e("div",{staticClass:"keshi-name"},[t._v("讲师:")]),e("div",{staticClass:"keshi-ming"},[t._v(t._s(i.teacher))])])])])])})),e("div",{staticClass:"fenye"},[e("el-pagination",{attrs:{background:"",layout:"prev, pager, next, jumper",total:t.total,"page-size":t.pageNum,"current-page":t.addkil},on:{"prev-click":t.prev,"next-click":t.next,"current-change":t.current}})],1)],2):t._e(),2==t.orderindexh?e("div",{staticClass:"kengit"},[t._l(t.addlik,(function(i,s){return e("div",{key:s,staticClass:"kecheng-xiu",attrs:{tag:"div"},on:{click:function(s){return t.xianqing(i.id)}}},[e("div",{staticClass:"bixiu-img"},[e("div",{staticClass:"bixiu-xuanxiu"},[t._v(t._s(i.elective))]),e("div",{staticClass:"bixiu-niandu"},[t._v(t._s(i.tag))]),e("img",{attrs:{src:i.video_image,alt:""}})]),e("div",{staticClass:"bixiu-title"},[e("div",{staticClass:"bixiu-text"},[t._v(t._s(i.name))]),e("div",{staticClass:"keshi-tim"},[e("div",{staticClass:"keshi-duo"},[t._v(t._s(i.class_hour)+"课时")]),e("div",{staticClass:"keshi-rig"},[e("div",{staticClass:"keshi-name"},[t._v("讲师:")]),e("div",{staticClass:"keshi-ming"},[t._v(t._s(i.teacher))])])])])])})),e("div",{staticClass:"fenye"},[e("el-pagination",{attrs:{background:"",layout:"prev, pager, next, jumper",total:t.total,"page-size":t.pageNum,"current-page":t.addkil},on:{"prev-click":t.prev,"next-click":t.next,"current-change":t.current}})],1)],2):t._e()])]):t._e(),2==t.orderindex?e("div",{staticClass:"goncheng"},[e("div",{staticClass:"gon-top"},[e("img",{staticClass:"tu",attrs:{src:t.examine.image,alt:""}}),e("div",{staticClass:"xianqin"},[e("div",{staticClass:"qianqin-title"},[t._v(t._s(t.examine.examname))]),e("div",{staticClass:"jiezhi"},[t._v("考试截止时间:"+t._s(t.examine.expirationtime))]),e("div",{staticClass:"suoxu"},[e("div",{staticClass:"suoxu-keshi"},[t._v("所需课时:"+t._s(t.examine.class_hour))]),e("div",{staticClass:"suoxu-yiwan"},[t._v("已完成课时:"+t._s(t.examine.finish_hour))])]),t._v(" "+t._s(t.examine.num)+" "),e("div",{staticClass:"jindu-tiao"},[e("div",{staticClass:"neijindu",style:{width:t.examine.proportion}}),e("div",{staticClass:"jindu-shichan",style:{left:t.examine.proportion}},[e("img",{staticClass:"jindu-jian",attrs:{src:s("6c91"),alt:""}}),e("div",{staticClass:"jindu-shu"},[t._v(t._s(t.examine.proportion))])])])]),e("div",{staticClass:"kaishi"},[e("div",{staticClass:"quxuan",on:{click:t.xuanke}},[t._v("去选课")]),1==t.examine.is_xian?e("div",{staticClass:"kaishi-kaoh",on:{click:t.kaishi}},[t._v("开始考试")]):t._e(),2==t.examine.is_xian?e("div",{staticClass:"kaishi-kaohv"},[t._v("开始考试")]):t._e()])]),t._m(3),e("div",{staticClass:"biaodan"},[t._m(4),t._l(t.examin,(function(i,s){return e("div",{key:s,staticClass:"biao-list"},[e("div",{staticClass:"list-name"},[t._v(t._s(i.name))]),e("div",{staticClass:"list-xue"},[t._v(t._s(i.class_hour))]),e("div",{staticClass:"list-xue"},[t._v(t._s(i.mtok))]),e("div",{staticClass:"list-xue"},[t._v(t._s(i.duration))]),e("div",{staticClass:"list-xuec"},[e("div",{staticClass:"jindu"},[e("div",{staticClass:"nei-jindu",style:{width:i.nom}},[t._v(t._s(i.proportion))])])]),e("div",{staticClass:"list-xue"},[t._v(t._s(i.msgto))]),e("div",{staticClass:"list-xuel"},[e("div",{staticClass:"jixu-l",on:{click:function(s){return t.jixuxuexi(i.id)}}},[t._v("继续学习")]),i.mlk?e("div",{staticClass:"ge"}):t._e(),i.mlk?e("div",{staticClass:"yichu",attrs:{plain:!0},on:{click:function(s){return t.yichu(i.id)}}},[t._v("移除")]):t._e()])])}))],2)]):t._e(),3==t.orderindex?e("div",{staticClass:"kaoshi-jilu"},[t._m(5),e("div",{staticClass:"kaoshi-list"},[e("div",{staticClass:"kaoshi-name"},[t._v(t._s(t.studtk.examname))]),t._l(t.recordo,(function(i,s){return e("div",{key:s,staticClass:"kaoshi-one"},[e("div",{staticClass:"one-time"},[t._v("考试时间:"+t._s(i.createtime))]),e("div",{staticClass:"one-time"},[t._v("考试成绩:"+t._s(i.score))]),i.cladk?e("div",{staticClass:"one-cha",on:{click:function(s){return t.cha(i.id)}}},[t._v("查看证书")]):t._e()])})),t.recordo.length<=0?e("div",{staticClass:"kaoshi-one"}):t._e(),t.recordo.length<=1?e("div",{staticClass:"kaoshi-one"}):t._e(),t.recordo.length<=2?e("div",{staticClass:"kaoshi-one"}):t._e()],2)]):t._e(),4==t.orderindex?e("div",{staticClass:"touming-du",on:{click:t.guan}}):t._e(),4==t.orderindex?e("div",{staticClass:"xiugai-mima"},[e("img",{staticClass:"guanbi-xiugai",attrs:{src:s("a627"),alt:""},on:{click:t.guan}}),e("div",{staticClass:"gai-xiu"},[t._v("修改密码")]),e("div",{staticClass:"heng-l"}),e("div",{staticClass:"zhanhao"},[e("div",{staticClass:"zhanhao-name"},[t._v("账号:")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.usnamo,expression:"usnamo"}],staticClass:"zhaohang-inpu",attrs:{type:"text",placeholder:"请输入账号"},domProps:{value:t.usnamo},on:{input:function(i){i.target.composing||(t.usnamo=i.target.value)}}})]),e("div",{staticClass:"zhanhaok"},[e("div",{staticClass:"zhanhao-name"},[t._v("原密码:")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.pawed,expression:"pawed"}],staticClass:"zhaohang-inpu",attrs:{type:"password",placeholder:"请输入原密码"},domProps:{value:t.pawed},on:{input:function(i){i.target.composing||(t.pawed=i.target.value)}}})]),e("div",{staticClass:"zhanhaok"},[e("div",{staticClass:"zhanhao-name"},[t._v("新密码:")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.pawedlg,expression:"pawedlg"}],staticClass:"zhaohang-inpu",attrs:{type:"password",placeholder:"请输入新密码"},domProps:{value:t.pawedlg},on:{input:function(i){i.target.composing||(t.pawedlg=i.target.value)}}})]),e("div",{staticClass:"zhanhaok"},[e("div",{staticClass:"zhanhao-name"},[t._v("验证密码:")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.pawedlk,expression:"pawedlk"}],staticClass:"zhaohang-inpu",attrs:{type:"password",placeholder:"请再次输入新密码"},domProps:{value:t.pawedlk},on:{input:function(i){i.target.composing||(t.pawedlk=i.target.value)}}})]),e("div",{staticClass:"queding-btn",on:{click:t.xiugaipaw}},[t._v("确定修改")])]):t._e(),5==t.orderindex?e("div",{staticClass:"touming-du"},[e("div",{staticClass:"tou-imght"},[t._m(6),t._m(7),t._m(8),t._m(9),t._m(10),t._m(11),t._m(12),t._m(13),t._m(14),e("div",{staticClass:"zhidao",on:{click:t.zhidoa}},[t._v("我知道了")])])]):t._e()]),e("el-dialog",{attrs:{title:"图片剪裁",visible:t.dialogVisible,"append-to-body":""},on:{"update:visible":function(i){t.dialogVisible=i}}},[e("div",{staticClass:"cropper-content"},[e("div",{staticClass:"cropper",staticStyle:{"text-align":"center"}},[e("vueCropper",{ref:"cropper",attrs:{img:t.option.img,outputSize:t.option.size,outputType:t.option.outputType,info:!0,full:t.option.full,canMove:t.option.canMove,canMoveBox:t.option.canMoveBox,original:t.option.original,autoCrop:t.option.autoCrop,fixed:t.option.fixed,fixedNumber:t.option.fixedNumber,centerBox:t.option.centerBox,infoTrue:t.option.infoTrue,fixedBox:t.option.fixedBox}})],1)]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(i){t.dialogVisible=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.finish}},[t._v("确认")])],1)]),e("dibu"),e("daohan")],1)},a=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("span",[e("img",{staticClass:"img-o",attrs:{src:s("5e6c"),alt:""}})])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("span",[e("img",{staticClass:"img-o",attrs:{src:s("5e6c"),alt:""}})])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"tishi"},[s("div",{staticClass:"wenxin"},[t._v("温馨提示:")]),s("div",{staticClass:"tishi-text"},[t._v(" 1、本页填写的信息仅用于发放考试合格证,请填写真实数据及本人照片。 "),s("br"),t._v("2、照片请上传1寸照片 "),s("br"),t._v("3、照片仅可以上传一次,后续如需修改,请联系客服修改, "),s("br")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"gon-wenxin"},[s("div",{staticClass:"wen-ti"},[t._v("温馨提示:")]),s("div",{staticClass:"wen-list"},[t._v(" 1、课程到达截止日期后将会自动下架,请在有效期内完成视频学习。 "),s("br"),t._v("2、只有当课程学习进度在100%后,方可获得该课程的课时。 "),s("br"),t._v("3、课程可重复学习,但是不会累计课时。 "),s("br"),t._v("4、学员必须完成所有必修课,且修够所有的课时后方可参加考试。每期学习最多可参加3次考试。 "),s("br")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"biao-tou"},[s("div",{staticClass:"biao-name"},[t._v("课程名称")]),s("div",{staticClass:"biao-xue"},[t._v("学时")]),s("div",{staticClass:"biao-xue"},[t._v("必修/选修")]),s("div",{staticClass:"biao-xue"},[t._v("时长(分钟)")]),s("div",{staticClass:"biao-xue"},[t._v("学习进度")]),s("div",{staticClass:"biao-xue"},[t._v("状态")]),s("div",{staticClass:"biao-xuel"},[t._v("操作")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"kaoshi-top"},[s("div",[t._v("考试名称")]),s("div",[t._v("第一次考试")]),s("div",[t._v("第二次考试")]),s("div",[t._v("第三次考试")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"tou-kuan"},[s("div",{staticClass:"tou-shu"}),s("div",{staticClass:"tou-shuoming"},[s("div",{staticClass:"shouming-text"},[t._v("【首 页】:查看各模块最新的通知、动态、课程")]),s("div",{staticClass:"shouming-text"},[t._v("【通知公告】:查看相关通知公告")]),s("div",{staticClass:"shouming-text"},[t._v("【政策动态】:查看考试相关的政策动态")]),s("div",{staticClass:"shouming-text"},[t._v("【优选课程】:查看小编推荐的优质学习视频")]),s("div",{staticClass:"shouming-text"},[t._v("【系统中心】:展示小编推荐的优质学习网站")]),s("div",{staticClass:"shouming-text"},[t._v(" 【学习系统】:查看我的信息、课程、考试等信息,学习课程, 在线考试,下载证书。 ")])])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"wode-ziliaok"},[s("div",{staticClass:"heng-xd"}),s("div",{staticClass:"ziliaok-m"},[t._v("【我的资料】:显示学员基本信息,学员需完善手机号及上传1寸照片")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"kaoshi-kuan"},[s("div",{staticClass:"heng-x"}),s("div",{staticClass:"ziliaok-mg"},[t._v("【我的考试】:显示学员的考试信息及所需学习的课程信息。")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"jilu-kuan"},[s("div",{staticClass:"heng-x"}),s("div",{staticClass:"ziliaok-ml"},[t._v("【考试记录】:显示学员的考试记录及对应成绩,通过后可在此处下载合格证。")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"xiugai-kuan"},[s("div",{staticClass:"heng-xl"}),s("div",{staticClass:"ziliaok-mlk"},[t._v("【修改密码】:此处可修改账号登录密码")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"xuexi-kuan"},[s("div",{staticClass:"heng-xll"}),s("div",{staticClass:"ziliaok-mn"},[t._v("【学习系统导引】:展示各模块的功能讲解")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"kefu-kuan"},[s("div",{staticClass:"heng-xlh"}),s("div",{staticClass:"ziliaok-mb"},[t._v("查看客服电话")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"xiazai-kuan"},[s("div",{staticClass:"heng-xas"}),s("div",{staticClass:"ziliaok-mbl"},[t._v("下载移动端APP,再手机上进行课程学习")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"fanhui-kuan"},[s("div",{staticClass:"heng-xas"}),s("div",{staticClass:"ziliaok-mbk"},[t._v("一键回到页面顶部")])])}],o=s("cb1d"),n=s("45f4"),l=s("17f9"),d={components:{daohan:o["a"],dibu:n["a"],dingbu:l["default"]},data:function(){return{canClick:!0,content:"获取验证码",totalTime:60,nom:0,addki:[{url:s("5d54"),text:"我的资料"},{url:s("4503"),text:"课程列表"},{url:s("a92f"),text:"我的考试"},{url:s("a526"),text:"考试记录"},{url:s("9791"),text:"修改密码"},{url:s("5fb3"),text:"学习系统导引"}],orderindex:0,orderindexh:0,cladk:!1,recordo:[],usnamo:"",pawed:"",addkil:1,pawedlg:"",pawedlk:"",msg:"我的资料",adto:[{id:1,text:"全部"},{id:2,text:"必修课程"},{id:3,text:"选修课程"}],addlik:[],usergo:[],sexto:"",id:"",elective:"",examine:[],examin:[],mlk:!0,msgto:"",mtok:"",type:1,phonet:"",codet:"",studtk:"",headimg:"http://enterprise.t.brotop.cn/uploads/mo.png",dialogVisible:!1,option:{img:"",info:!0,outputSize:.8,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:295,autoCropHeight:413,fixedBox:!0,fixed:!0,fixedNumber:[5,7],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0},picsList:[],loading:!1,imgage:"",page:1,pageNum:6,total:1,addtype:1,options:[{value:"1",label:"男"},{value:"2",label:"女"}],value:"1",text:"",typeid:"",stydeid:""}},mounted:function(){this.id=this.$route.query.id,console.log(this.id),console.log(this.id),this.getuser(),this.getmyexam(),this.getvideo_list(1),this.getexam_record(),this.getindex()},created:function(){localStorage.getItem("ordindex")&&(this.orderindex=localStorage.getItem("ordindex")),localStorage.getItem("ordertodo")&&(this.orderindex=localStorage.getItem("ordertodo")),this.text=sessionStorage.getItem("text"),this.typeid=sessionStorage.getItem("idto")},methods:{paget:function(t){this.addkil=1},addservere:function(t){this.addtype=t,console.log(t)},searchClick:function(t){this.addlik=t.info,console.log(this.addlik),this.total=t.total_num;for(var i=0;i<this.addlik.length;i++)1==this.addlik[i].is_major?this.addlik[i].elective="必修":2==this.addlik[i].is_major&&(this.addlik[i].elective="选修")},animateWidth:function(){var t=this,i="lists/verify",s={mobile:this.phonet,code:this.codet};this.post(i,s).then((function(i){""==t.codet?t.$message("请填写验证码"):0==i.code&&t.$message(i.msg)})).catch((function(t){console.log(t)}))},xuanke:function(){this.orderindex=1},jixuxuexi:function(t){this.$router.push({path:"/train",query:{id:t,gosid:this.id}})},prev:function(){console.log("eee"),this.page=this.page-1,this.getvideo_list();for(var t=0;t<this.addlik.length;t++)1==this.addlik[t].is_major?this.addlik[t].elective="必修":2==this.addlik[t].is_major&&(this.addlik[t].elective="选修")},next:function(){console.log("eee"),this.page=this.page+1,console.log(this.addtype),this.getvideo_list()},getsou:function(){var t=this,i=this,s="lists/sou",e={page:i.page,pageNum:i.pageNum,keyword:i.text,type:3,id:i.typeid};this.post(s,e).then((function(i){t.addlik=i.data.info;for(var s=0;s<t.addlik.length;s++)1==t.addlik[s].is_major?t.addlik[s].elective="必修":2==t.addlik[s].is_major&&(t.addlik[s].elective="选修")})).catch((function(t){console.log(t)}))},current:function(t){console.log("e"),this.addkil=t,this.page=t,console.log(this.addtype),1==this.addtype?this.getvideo_list():(this.getsou(),console.log(this.text))},getindex:function(){var t=this,i="user/index";this.post(i).then((function(i){t.usnamo=i.data.username})).catch((function(t){console.log(t)}))},changeUpload:function(t,i){var s=this,e=t.size/1024/1024<5;if(!e)return this.$message.error("上传文件大小不能超过 5MB!"),!1;this.fileinfo=t;var a=new FormData;a.append("file",t.raw);var o="common/upload";s.post(o,a).then((function(t){var i=t.data.dai;s.option.img=i,s.dialogVisible=!0})).catch((function(t){console.log(t)}))},finish:function(){var t=this,i=this;this.$refs.cropper.getCropData((function(s){var e="common/upload_base64",a=new FormData;a.append("base64_img",s);s.data;t.loading=!0,i.post(e,a).then((function(t){console.log(t.data);var s=t.data.priview_url;i.dialogVisible=!1,i.headimg=s,i.image=t.data.url})).catch((function(t){console.log(t)}))}))},getexam_record:function(){var t=this,i="exam/exam_record",s={study_id:this.id};this.post(i,s).then((function(i){t.studtk=i.data,t.recordo=i.data.record,t.stydeid=i.data.id;for(var s=0;s<t.recordo.length;s++)1==t.recordo[s].is_pass?t.recordo[s].cladk=!0:2==t.recordo[s].is_pass&&(t.recordo[s].cladk=!1);t.recordo=t.recordo,t.$forceUpdate()})).catch((function(t){console.log(t)}))},semat:function(){var t=this;if("获取验证码"!=this.content&&"重新发送验证码"!=this.content)return!1;var i="lists/getcode",s={mobile:this.phonet};this.post(i,s).then((function(i){if("SUCCESS"==i.msg){if(!t.canClick)return;t.canClick=!1,t.content=t.totalTime+"s后重新发送";var s=window.setInterval((function(){t.totalTime--,t.content=t.totalTime+"s后重新发送",t.totalTime<0&&(window.clearInterval(s),t.content="重新发送验证码",t.totalTime=60,t.canClick=!0)}),1e3);t.$message("发送成功")}else t.$message(i.msg.msg)})).catch((function(t){console.log(t)}))},xiugaipaw:function(){var t=this,i="lists/edit_pwd",s={username:this.usnamo,pwd:this.pawed,new_password:this.pawedlg,re_pwd:this.pawedlk};this.post(i,s).then((function(i){if(""==t.pawed)t.$message("请输入原密码");else if(""==t.pawedlg)t.$message("请输入新密码");else if(""==t.pawedlk)t.$message("请再次输入新密码");else if(t.pawedlk!=t.pawedlg)t.$message("您的两次密码不一致");else if(0==i.code)t.$message("您的密码不正确");else if(1==i.code){t.$message("修改成功"),t.orderindex=1,t.msg="我的资料";var s=function(t){t.preventDefault()};document.body.style.overflow="",document.removeEventListener("touchmove",s,!1)}console.log(i)})).catch((function(t){console.log(t)}))},getvideo_list:function(){var t=this,i="user/video_list",s={id:this.id,type:this.type,pageNum:this.pageNum,page:this.page};this.post(i,s).then((function(i){t.addlik=i.data.info;for(var s=0;s<t.addlik.length;s++)1==t.addlik[s].is_major?t.addlik[s].elective="必修":2==t.addlik[s].is_major&&(t.addlik[s].elective="选修");t.addlik=t.addlik,t.total=i.data.total_num})).catch((function(t){console.log(t)}))},yichu:function(t){var i=this,s="user/del_join",e={id:t};this.post(s,e).then((function(t){i.$message(t.msg),i.$router.go(0)})).catch((function(t){console.log(t)}))},baocunm:function(){var t=this,i="user/edit_info",s={id:this.id,nickname:this.usergo.nickname,sex:this.value,card:this.usergo.card,work_address:this.usergo.work_address,phone:this.phonet,code:this.codet,image:this.image};this.post(i,s).then((function(i){""==t.phonet?t.$message("手机号不能为空"):""==t.codet?t.$message("验证码不能为空"):0==i.code?t.$message("验证码错误"):1==i.code&&t.$message("保存成功")})).catch((function(t){console.log(t)}))},getuser:function(){var t=this,i="user/index";this.post(i).then((function(i){t.usergo=i.data,t.phonet=i.data.phone,""!=i.data.image&&(t.headimg=i.data.image),console.log(t.headimg),1==t.usergo.sex?t.usergo.sexto="男":2==t.usergo.sex&&(t.usergo.sexto="女"),t.usergo=t.usergo})).catch((function(t){console.log(t)}))},xianqing:function(t){var i=this,s="user/video_detail",e={id:this.id};this.post(s,e).then((function(s){0==s.code?i.$message("请完善个人信息"):i.$router.push({path:"/train",query:{id:i.id,gosid:t}})})).catch((function(t){console.log(t)}))},getmyexam:function(){var t=this,i="user/myexam",s={id:this.id};this.post(i,s).then((function(i){t.examine=i.data.exam,console.log(i),t.examin=i.data.info;for(var s=0;s<t.examine.length;s++)t.examine[s]["num"]=t.examine[s].proportion,t.examine=t.examine;console.log(t.examine);for(s=0;s<t.examin.length;s++)1==t.examin[s].status?t.examin[s].msgto="学习中":2==t.examin[s].status&&(t.examin[s].msgto="已完成 "),t.examin=t.examin;for(s=0;s<t.examin.length;s++)t.examin[s]["nom"]=t.examin[s].proportion,1==t.examin[s].is_major?t.examin[s].mtok="必修":2==t.examin[s].is_major&&(t.examin[s].mtok="选修",t.examin[s].mlk=!0),t.examin=t.examin,console.log(t.examin)})).catch((function(t){console.log(t)}))},todolist:function(){this.$router.push({path:"/details"})},selorder:function(t){for(var i=this.addki,s=0;s<i.length;s++)t.currentTarget.dataset.index==s&&(this.msg=i[s].text);if(this.orderindex=t.currentTarget.dataset.index,localStorage.setItem("ordindex",this.orderindex),"5"==this.orderindex){document.documentElement.scrollTop=0;var e=function(t){t.preventDefault()};document.body.style.overflow="hidden",document.addEventListener("touchmove",e,!1)}if("4"==this.orderindex){e=function(t){t.preventDefault()};document.body.style.overflow="hidden",document.addEventListener("touchmove",e,!1)}},selorderh:function(t){this.orderindexh=t.currentTarget.dataset.index,1==t.target.dataset.id&&(this.type=1,this.getvideo_list()),2==t.target.dataset.id&&(this.type=2,this.getvideo_list()),3==t.target.dataset.id&&(this.type=3,this.getvideo_list())},cha:function(t){this.$router.push({path:"/certificate",query:{id:t,order:this.id}})},kaishi:function(){this.$router.push({path:"/exam",query:{id:this.id}})},zhidoa:function(){this.orderindex=0,this.msg="我的资料";var t=function(t){t.preventDefault()};document.body.style.overflow="",document.removeEventListener("touchmove",t,!1)},guan:function(){this.orderindex=3,this.msg="考试记录";var t=function(t){t.preventDefault()};document.body.style.overflow="",document.removeEventListener("touchmove",t,!1)}}},c=d,r=(s("aac8"),s("e9d2"),s("2877")),u=Object(r["a"])(c,e,a,!1,null,"db506564",null);i["default"]=u.exports},"6c91":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAICAYAAADN5B7xAAAAjUlEQVQoU3WPQQqCUBRFzw1HQpDbcO56qm0EhRi0jXQ9zt2GQeBIevGLL/7P9w3ve+dxrkjM2HBycXGjjdeKg/eDcp7pXZ5lVPsLw/omAKwmf+3oJUp3ZMZw+FCpZvJQAIx3WsFx/dGgK65/RTcL4LwlnqlOZpx9nx/gvSXyDWDyfRR7p4CgT8p7E4LuC0iQMaRdDkSHAAAAAElFTkSuQmCC"},"7b3eb":function(t,i,s){},aac8:function(t,i,s){"use strict";var e=s("7b3eb"),a=s.n(e);a.a},d443:function(t,i,s){},e9d2:function(t,i,s){"use strict";var e=s("d443"),a=s.n(e);a.a}}]);
//# sourceMappingURL=chunk-097334a8.c9663f8c.js.map