chunk-77fddb59.62cd363e.js 16 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-77fddb59"],{"13fc":function(e,t,o){var r=o("24fb"),i=o("1de5"),a=o("e54a");t=r(!1);var s=i(a);t.push([e.i,".courseBoxMes[data-v-224fac06]{height:100vh;overflow:auto;padding:0 0 1.6rem;box-sizing:border-box}.head-container[data-v-224fac06]{height:1.46667rem;width:100%;background-image:url("+s+");position:fixed;top:0}.head-container .back[data-v-224fac06]{width:.3rem;height:.3rem;border-top:.05333rem solid #fff;border-left:.05333rem solid #fff;position:absolute;-webkit-transform:rotate(-45deg) translateY(-50%);-ms-transform:rotate(-45deg) translateY(-50%);transform:rotate(-45deg) translateY(-50%);top:47%;left:.8rem;cursor:pointer}.head-container .head-box[data-v-224fac06]{padding:0 1.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;box-sizing:border-box}.navTitle[data-v-224fac06]{font-size:.42667rem;color:#fff}.studyCss[data-v-224fac06]{height:1.6rem;border-top:.02667rem solid #ddd;position:fixed;width:100%;bottom:0;background:#fff}.studyCss>div[data-v-224fac06]{width:90%;height:1.06667rem;margin:.26667rem auto;text-align:center;color:#fff;background-image:-webkit-linear-gradient(left,#477cd7,#65b9fc);background-image:linear-gradient(90deg,#477cd7,#65b9fc);line-height:1.06667rem;border-radius:.26667rem}",""]),e.exports=t},"1c78":function(e,t,o){"use strict";o("3c11")},"3c11":function(e,t,o){var r=o("13fc");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=o("499e").default;i("3a59c53b",r,!0,{sourceMap:!1,shadowMode:!1})},"4e25":function(e,t,o){var r=o("938f");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=o("499e").default;i("d3f8f7bc",r,!0,{sourceMap:!1,shadowMode:!1})},"56f8":function(e,t,o){var r=o("24fb");t=r(!1),t.push([e.i,".chapBox[data-v-50e43713]{min-height:calc(100% - 11.19999rem);border-top:.53333rem solid #e8ebf2}.chapBox .chapTop[data-v-50e43713]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.42667rem;padding:.26667rem 0 .26667rem .4rem}.chapBox .chapTop>div[data-v-50e43713]{color:#afafaf;padding:0 0 .13333rem 0;margin-right:.8rem}.chapBox .chapTop .isStepCss[data-v-50e43713]{color:#000;font-weight:700;border-bottom:.08rem solid #4f86d6}.chapBox .briefCss[data-v-50e43713]{width:90%;text-indent:.8rem;font-size:.42667rem;margin:.26667rem auto;height:8rem;overflow:auto;line-height:.8rem}.chapBox .courseJdBox[data-v-50e43713]{-webkit-box-orient:horizontal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:0 0 0 .8rem}.chapBox .courseJdBox[data-v-50e43713],.chapBox .courseJdBox .blue_box_one[data-v-50e43713]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.chapBox .courseJdBox .blue_box_one[data-v-50e43713]{width:4rem;height:4rem;background-image:-webkit-linear-gradient(left,#477cd7,#65b9fc);background-image:linear-gradient(90deg,#477cd7,#65b9fc);-webkit-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#fff;border-radius:.32rem;margin:0 .4rem .26667rem 0}.chapBox .courseJdBox .blue_box_one>div[data-v-50e43713]{margin:.08rem 0;font-size:.37333rem}.chapBox .courseJdBox .blue_box_one>div[data-v-50e43713]:first-child{font-size:.42667rem;font-weight:700}.chapBox .courseJdBox .blue_box_one>div[data-v-50e43713]:nth-child(2){max-width:2.66667rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-word}",""]),e.exports=t},"71ed":function(e,t,o){"use strict";var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"head-container"},[e.isBack?t("div",{staticClass:"back",on:{click:e.back}}):e._e(),t("div",{staticClass:"head-box",style:{padding:e.isBack?"0 1.5rem":"0 .5rem"}},[e._t("title")],2)])},i=[],a={props:{isBack:{type:Boolean,default:!0}},data:function(){return{}},methods:{back:function(){this.$emit("back")}}},s=a,n=(o("7d71"),o("2877")),c=Object(n["a"])(s,r,i,!1,null,"17f1a550",null);t["a"]=c.exports},"7d71":function(e,t,o){"use strict";o("4e25")},"938f":function(e,t,o){var r=o("24fb"),i=o("1de5"),a=o("e54a");t=r(!1);var s=i(a);t.push([e.i,".head-container[data-v-17f1a550]{height:1.46667rem;width:100%;background-image:url("+s+");position:fixed;top:0}.head-container .back[data-v-17f1a550]{width:.3rem;height:.3rem;border-top:.05333rem solid #fff;border-left:.05333rem solid #fff;position:absolute;-webkit-transform:rotate(-45deg) translateY(-50%);-ms-transform:rotate(-45deg) translateY(-50%);transform:rotate(-45deg) translateY(-50%);top:47%;left:.8rem;cursor:pointer}.head-container .head-box[data-v-17f1a550]{padding:0 1.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;box-sizing:border-box}",""]),e.exports=t},"959c":function(e,t,o){var r=o("56f8");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=o("499e").default;i("0015db00",r,!0,{sourceMap:!1,shadowMode:!1})},b291:function(e,t,o){"use strict";o("959c")},b573:function(e,t,o){"use strict";o("e0fc")},b75a:function(e,t,o){var r=o("24fb");t=r(!1),t.push([e.i,".courseBox[data-v-6782ce9d]{margin-top:1.33333rem;min-height:9.33333rem}.courseBox .courseTop .courseImg[data-v-6782ce9d]{width:100%;height:5.33333rem}.courseBox .courseTop .courseImg>img[data-v-6782ce9d]{width:100%;height:100%;object-fit:cover}.courseBox .courseTop .courseMes[data-v-6782ce9d]{padding:.26667rem 0 0 .4rem}.courseBox .courseTop .courseMes .cFirst[data-v-6782ce9d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .26667rem .26667rem 0}.courseBox .courseTop .courseMes .cFirst .cTitle[data-v-6782ce9d]{font-size:.48rem;font-weight:700;max-width:5.33333rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-word;margin-right:.26667rem}.courseBox .courseTop .courseMes .cFirst .jd[data-v-6782ce9d]{background:#4a9eed;color:#fff;height:.53333rem;line-height:.53333rem;text-align:center;border-radius:.26667rem;padding:0 .26667rem;margin:0 .26667rem 0 0}.courseBox .courseTop .courseMes .cSecond[data-v-6782ce9d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .26667rem .26667rem 0;font-size:.4rem}.courseBox .courseTop .courseMes .cSecond .cTypeBox[data-v-6782ce9d]{margin-right:.26667rem}.courseBox .courseTop .courseMes .cSecond .cTypeBox .cType[data-v-6782ce9d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.courseBox .courseTop .courseMes .cSecond .cTypeBox .cType>span[data-v-6782ce9d]:nth-child(2){max-width:4.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.courseBox .courseTop .courseMes .Tname[data-v-6782ce9d]{padding:0 .26667rem .26667rem 0;font-size:.4rem}.courseBox .courseTop .courseMes .Tname>span[data-v-6782ce9d]{margin:0 .13333rem}.courseBox .courseTop .courseMes .people[data-v-6782ce9d]{padding:0 .26667rem .26667rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.courseBox .courseTop .courseMes .people>div[data-v-6782ce9d]:first-child{font-size:.4rem}.courseBox .courseTop .courseMes .people .man[data-v-6782ce9d]{width:.53333rem;height:.53333rem}.courseBox .courseTop .courseMes .people .man>img[data-v-6782ce9d]{width:100%;height:100%}.courseBox .courseTop .courseMes .people .person[data-v-6782ce9d]{font-size:.4rem;margin-left:.26667rem}",""]),e.exports=t},c509:function(e,t,o){"use strict";o.r(t);var r=function(){var e=this,t=e._self._c;return t("div",[0==e.routeType?t("head-bar",{on:{back:e.back},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"navTitle"},[e._v("課程詳情")])]},proxy:!0}],null,!1,666164856)}):e._e(),1==e.routeType?t("div",{staticClass:"head-container"},[e._m(0)]):e._e(),t("div",{staticClass:"courseBoxMes"},[t("course-message",{attrs:{cDetail:e.courseDetail,cInfo:e.chapInfo,rwLength:e.rw,cType:e.courseType,cJson:e.courseTypeJson,tName:e.Tname}}),t("course-chap",{attrs:{chInfo:e.chapInfo,brief:e.courseDetail.brief},on:{goCourse:e.goToStage}})],1),t("div",{staticClass:"studyCss"},[t("div",{staticStyle:{},on:{click:e.goToStudy}},[e._v("點擊學習")])])],1)},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"head-box"},[t("div",{staticClass:"navTitle"},[e._v("課程詳情")])])}],a=(o("14d9"),o("b0c0"),o("b64b"),o("b775"));function s(e){return Object(a["a"])({url:"/selectCourseDetail2",method:"get",params:e,hideloading:!1})}var n=o("71ed"),c=(o("fb6a"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"courseBox"},[t("div",{staticClass:"courseTop"},[t("div",{staticClass:"courseImg"},[t("img",{attrs:{src:null!=e.cDetail.cover&&""!=e.cDetail.cover&&JSON.parse(e.cDetail.cover).length>0?JSON.parse(e.cDetail.cover)[0].url:e.mr,alt:""}})]),t("div",{staticClass:"courseMes"},[t("div",{staticClass:"cFirst"},[t("div",{staticClass:"cTitle"},[e._v(e._s(e.cDetail.title))]),t("div",{staticClass:"jd"},[e._v(e._s(e.cInfo.length)+"階段")]),t("div",{staticClass:"jd"},[e._v(e._s(e.rwLength)+"任務")])]),t("div",{staticClass:"cSecond"},[e.cType.length?t("div",{staticClass:"cTypeBox"},e._l(e.cType,(function(o,r){return t("div",{key:r,staticClass:"cType"},[t("span",{staticStyle:{"min-width":"50px"}},[e._v(e._s(o+":"))]),e._l(e.cJson[o],(function(o,r){return t("span",{key:r},[e._v(e._s(o))])}))],2)})),0):e._e(),t("div",[t("span",{staticStyle:{"min-width":"50px"}},[e._v("創建者:")]),e._v(" "),t("span",[e._v(e._s(e.cDetail.username))])])]),e.tName.length>0?t("div",{staticClass:"Tname",on:{click:function(t){e.TnameCheck=!e.TnameCheck}}},[e._v(" 協同人員:"),e._l(e.TnameCheck?e.tName:e.tName.slice(0,6),(function(o,r){return t("span",{key:r},[e._v(e._s(o))])})),!e.TnameCheck&&e.tName.length>6?t("span",[e._v("更多....")]):e._e()],2):e._e(),t("div",{staticClass:"people"},[t("div",[e._v("參與人數:")]),e._m(0),t("div",{staticClass:"person"},[e._v(e._s(null!=e.cDetail.vcount?e.cDetail.vcount:0)+"人")])])])])])}),l=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"man"},[t("img",{attrs:{src:o("e321"),alt:""}})])}],d=(o("a9e3"),{props:{cDetail:{type:Object},cInfo:{type:Array},rwLength:{type:Number,default:0},cType:{type:Array},cJson:{type:Object},tName:{type:Array}},data:function(){return{TnameCheck:!1,mr:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg"}}}),p=d,u=(o("b573"),o("2877")),f=Object(u["a"])(p,c,l,!1,null,"6782ce9d",null),m=f.exports,b=function(){var e=this,t=e._self._c;return t("div",{staticClass:"chapBox"},[t("div",{staticClass:"chapTop"},[t("div",{class:{isStepCss:0==e.isStep},on:{click:function(t){e.isStep=0}}},[e._v("任務階段")]),t("div",{class:{isStepCss:1==e.isStep},on:{click:function(t){e.isStep=1}}},[e._v("項目詳情")])]),1==e.isStep?t("div",{staticClass:"briefCss"},[e._v(" "+e._s(e.brief?e.brief:"暫無詳情")+" ")]):e._e(),0==e.isStep?t("div",{staticClass:"courseJdBox"},e._l(e.chInfo,(function(o,r){return t("div",{key:r,staticClass:"blue_box_one",on:{click:function(t){return e.goCourse(r)}}},[t("div",[e._v("第"+e._s(r+1)+"階段")]),t("div",{attrs:{title:o.dyName}},[e._v(e._s(o.dyName))]),t("div",[e._v(e._s(o.chapterInfo[0].taskJson.length)+"個任務")])])})),0):e._e()])},x=[],h={props:{chInfo:{type:Array},brief:{type:String,default:""}},data:function(){return{isStep:0}},methods:{goCourse:function(e){this.$emit("goCourse",e)}}},w=h,g=(o("b291"),Object(u["a"])(w,b,x,!1,null,"50e43713",null)),v=g.exports,k={components:{headBar:n["a"],courseMessage:m,courseChap:v},data:function(){return{courseid:this.$route.query.courseid,courseDetail:{},routeType:0,courseTypeJson:{},chapInfo:[],courseType:[],Tname:[],rw:0}},methods:{back:function(){this.$router.push({path:"/home"})},goToStage:function(e){this.$router.push({path:"/course",query:{courseid:this.courseid,stage:e}})},goToStudy:function(){this.$router.push({path:"/course",query:{courseid:this.courseid,stage:0}})},getCourse:function(){var e=this,t={courseId:this.courseid};s(t).then((function(t){e.courseDetail=t[0][0];for(var o=t[0],r=t[1],i=t[2],a=0;a<r.length;a++)for(var s=0;s<o.length;s++)r[a].id===o[s].pid&&(e.courseTypeJson[r[a].name]||(e.courseType.push(r[a].name),e.courseTypeJson[r[a].name]=[]),e.courseTypeJson[r[a].name].push(o[s].name));e.Tname=[];for(var n=0;n<i.length;n++)e.Tname.push(i[n].name);e.chapInfo=JSON.parse(e.courseDetail.chapters);for(var c=0;c<e.chapInfo.length;c++)e.rw+=e.chapInfo[c].chapterInfo[0].taskJson.length})).catch((function(e){console.error(e)}))}},created:function(){if(console.log("type",this.$route.query),this.$route.query.urlType||0==this.$route.query.urlType)return console.log("111"),sessionStorage.setItem("urlType",this.$route.query.urlType),this.routeType=sessionStorage.getItem("urlType");console.log("222"),this.routeType=sessionStorage.getItem("urlType")},mounted:function(){1*this.routeType==1&&(console.log("清空記錄"),history.pushState(null,null,document.URL),window.addEventListener("popstate",(function(){history.pushState(null,null,document.URL)}))),this.getCourse()}},y=k,_=(o("1c78"),Object(u["a"])(y,r,i,!1,null,"224fac06",null));t["default"]=_.exports},e0fc:function(e,t,o){var r=o("b75a");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=o("499e").default;i("6c32580e",r,!0,{sourceMap:!1,shadowMode:!1})},e321:function(e,t,o){e.exports=o.p+"static/img/people.a1a0758a.png"},e54a:function(e,t,o){e.exports=o.p+"static/img/head-back.47c17562.png"}}]);
  2. //# sourceMappingURL=chunk-77fddb59.62cd363e.js.map