group-mainPage.b0fcae64.js 8.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["group-mainPage"],{2313:function(t,n,e){t.exports=e.p+"img/icon1.bdc4fc1a.png"},"39f0":function(t,n,e){"use strict";e.d(n,"f",(function(){return i})),e.d(n,"a",(function(){return c})),e.d(n,"g",(function(){return u})),e.d(n,"h",(function(){return s})),e.d(n,"d",(function(){return o})),e.d(n,"e",(function(){return l})),e.d(n,"b",(function(){return p})),e.d(n,"c",(function(){return f}));var a=e("bc3a"),r=e.n(a);function i(t,n){return r.a.get("/paper/listPapers",{params:{status:t,subjectId:n}}).then((function(t){return t.data}))}function c(t){return r()({method:"post",url:"/paper/uploadPaper",data:t}).then((function(t){return t.data}))}function u(t){return r()({method:"post",url:"/paper/updateParams",data:t}).then((function(t){return t.data}))}function s(t){return r()({method:"post",url:"/question/updateQuestionForPaper",data:t}).then((function(t){return t.data}))}function o(t){return r()({method:"post",url:"/paper/delete",params:{id:t}}).then((function(t){return t}))}function l(t){return r.a.get("/paper/getOnePaper/"+t).then((function(t){return t.data}))}function p(t,n){return r.a.get("/paper/hasCommit",{params:{pid:t,uid:n}}).then((function(t){return t.data}))}function f(t){return r()({method:"post",url:"/paper/commit",data:t}).then((function(t){return t.data}))}},"54dc":function(t,n,e){},"616f":function(t,n,e){"use strict";var a=e("b6b6"),r=e.n(a);r.a},"67f4":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"main-page"},[e("div",{staticClass:"top-part"},[e("ul",t._l(t.menuList,(function(n,a){return e("li",{key:a},[e("router-link",{attrs:{to:n.link}},[t._v(t._s(n.name))])],1)})),0),e("div",[t._v("\n "+t._s(t.currentUser.name)+",欢迎你\n "),e("ul",[e("li",{on:{click:t.goSinglePage}},[t._v("个人主页")]),e("li",[e("a",{on:{click:t.logout}},[t._v("退出")])])])])]),e("router-view")],1)},r=[],i=(e("a481"),e("7ded")),c={name:"MainPage",components:{},data:function(){return{currentUser:this.$store.state.loginUser,menuList:[{name:"首页",link:"/app/mainPage/home"},{name:"能力测评",link:"/app/mainPage/abilityTest"},{name:"最新动态",link:"/app/mainPage/news"},{name:"关于我们",link:"/app/mainPage/aboutUs"},{name:"联系我们",link:"/app/mainPage/contactUs"}]}},created:function(){},methods:{goSinglePage:function(){this.$router.push({name:"UserPage"})},logout:function(){var t=this;Object(i["d"])().then((function(n){n&&"1"==n.ok?t.$router.replace({name:"Index"}):t.$alert(n&&n.msg||"登出失败!","提示",{confirmButtonText:"确定",callback:function(){}})})).catch((function(n){t.$alert(n&&n.msg||"登出失败!","提示",{confirmButtonText:"确定",callback:function(){}})}))}}},u=c,s=(e("6f18"),e("2877")),o=Object(s["a"])(u,a,r,!1,null,"59464f72",null);n["default"]=o.exports},"6ad6":function(t,n,e){t.exports=e.p+"img/pic2.c95d88ec.png"},"6f18":function(t,n,e){"use strict";var a=e("b7d2"),r=e.n(a);r.a},"737e":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[t._v("\n 2\n")])},r=[],i={name:"AboutUs",components:{},data:function(){return{}},methods:{}},c=i,u=e("2877"),s=Object(u["a"])(c,a,r,!1,null,null,null);n["default"]=s.exports},7685:function(t,n,e){t.exports=e.p+"img/pic3.a3674c60.png"},"80c6":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement;t._self._c;return t._m(0)},r=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"user-page"},[e("div",{staticClass:"head"},[e("button",[t._v("爻象个人中心")]),e("div",{staticClass:"pic"},[e("i"),e("div",[e("div")])])]),e("div",{})])}],i={name:"UserPage",components:{},data:function(){return{}},methods:{}},c=i,u=(e("616f"),e("2877")),s=Object(u["a"])(c,a,r,!1,null,"d1ce791a",null);n["default"]=s.exports},"9a83":function(t,n,e){t.exports=e.p+"img/title.1951c4c5.png"},"9b10":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"ability-test"},[a("div",{staticClass:"title-part"},[a("img",{attrs:{src:e("6ad6")}}),a("img",{attrs:{src:e("9a83")}}),a("img",{attrs:{src:e("e2a5")}}),a("div",{staticClass:"card-list"},[a("button",{on:{click:function(n){t.testState.type=1}}},[t._m(0),a("img",{attrs:{src:e("7685")}})]),a("button",{on:{click:function(n){t.testState.type=2}}},[t._m(1),a("img",{attrs:{src:e("2313")}})]),a("button",{on:{click:function(n){t.testState.type=3}}},[t._m(2),a("img",{attrs:{src:e("2313")}})]),a("button",{on:{click:function(n){t.testState.type=4}}},[t._m(3),a("img",{attrs:{src:e("2313")}})])])]),a("div",{staticClass:"test-content-part"},[1==t.testState.type?a("div",{staticClass:"project-ability"},[t._m(4),a("div",t._l(t.paperList,(function(n){return a("div",{key:n.id,staticClass:"paper-card"},[a("p",[t._v("\n "+t._s(n.name)+"\n ")]),a("br"),n.showReport?t._e():a("button",{on:{click:function(e){return t.startTest(n)}}},[t._v("马上进入")]),n.showReport?a("button",{on:{click:function(e){return t.checkReport(n)}}},[t._v("查看报告")]):t._e()])})),0)]):t._e()])])},r=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("label",[t._v("\n 学科专项测试\n "),e("i"),e("span",[t._v("全面检测学习问题")]),e("br"),e("span",{staticStyle:{position:"relative",top:"-10px"}},[t._v("准确标注学习漏洞")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("label",[t._v("\n 学科资料\n "),e("br"),t._v("正在开发\n ")])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("label",[t._v("\n 学习习惯诊断\n "),e("br"),t._v("正在开发\n ")])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("label",[t._v("\n 其他测试\n "),e("br"),t._v("正在开发\n ")])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"title"},[e("label",[t._v("学科专项测试")])])}],i=(e("ac6a"),e("39f0")),c={name:"AbilityTest",components:{},data:function(){return{testState:{type:1},paperList:[]}},created:function(){var t=this;Object(i["f"])("1","").then((function(n){t.paperList=n,t.paperList.forEach((function(n){Object(i["b"])(n.id,t.$store.state.loginUser.id).then((function(e){e.result&&t.$set(n,"showReport",!0)}))}))}))},methods:{startTest:function(t){var n=this;Object(i["b"])(t.id,this.$store.state.loginUser.id).then((function(e){e.result?n.$alert("该试题您已完成,不需要重复测试!","提示",{confirmButtonText:"确定"}):n.$router.push({path:"/app/guidePage/"+t.id})}))},checkReport:function(t){this.$router.push({path:"/app/testResult/"+t.id+"/"+this.$store.state.loginUser.id})}}},u=c,s=(e("c5cd"),e("2877")),o=Object(s["a"])(u,a,r,!1,null,null,null);n["default"]=o.exports},a182:function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[t._v("\n 1\n")])},r=[],i={name:"ContactUs",components:{},data:function(){return{}},methods:{}},c=i,u=e("2877"),s=Object(u["a"])(c,a,r,!1,null,null,null);n["default"]=s.exports},b6b6:function(t,n,e){},b7d2:function(t,n,e){},c291:function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[t._v("\n 5\n")])},r=[],i={name:"News",components:{},data:function(){return{}},methods:{}},c=i,u=e("2877"),s=Object(u["a"])(c,a,r,!1,null,null,null);n["default"]=s.exports},c5cd:function(t,n,e){"use strict";var a=e("54dc"),r=e.n(a);r.a},d824:function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[t._v("\n 3\n")])},r=[],i={name:"Home",components:{},data:function(){return{}},methods:{}},c=i,u=e("2877"),s=Object(u["a"])(c,a,r,!1,null,null,null);n["default"]=s.exports},e2a5:function(t,n,e){t.exports=e.p+"img/pic1.c98afab0.png"},ece1:function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",t._l(t.paperList,(function(n){return e("ul",{key:n.id},[e("li",[e("a",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.startTest(n)}}},[t._v(t._s(n.name))]),e("button",{staticStyle:{float:"right"},on:{click:function(e){return t.clearStorage(n)}}},[t._v("XXX")])])])})),0)},r=[],i=e("39f0"),c={name:"ExamTable",components:{},data:function(){return{paperList:[]}},created:function(){var t=this;Object(i["f"])("aleady").then((function(n){t.paperList=n}))},methods:{startTest:function(t){this.$router.push({path:"/app/doTest/"+t.id})},clearStorage:function(t){localStorage.removeItem("testPaper"+t.id)}}},u=c,s=e("2877"),o=Object(s["a"])(u,a,r,!1,null,"0133ab5e",null);n["default"]=o.exports}}]);