webpackJsonp([25],{P3Wy:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("CCn6"),s=i("Jmy5"),a=i("Au9i"),o={name:"myGoodsList",data:function(){return{goodsList:[],imgUrl:s.a}},mounted:function(){this.initPage()},methods:{initPage:function(){var t=this;Object(n.D)().then(function(e){t.goodsList=e})},dateParse:function(t){var e=void 0;return e=t.indexOf("-")>-1?t.split("-"):t.indexOf("/")>-1?t.split("/"):t.split("."),new Date(e[0],e[1]-1,e[2])},dateCompare:function(t,e){var i=t.getTime(),n=e.getTime();return n>i?1:n==i?0:-1},toMap:function(t){this.$sa.track("buttonClick",{tabTitle:"课程列表",moduleTitle:"课程",buttonType:"课程",buttonName:"进入课程"}),this.dateCompare(new Date,this.dateParse(t.start_at))<1?this.$router.push({name:"map",query:{periods_id:t.periods_id,parent_category_id:t.parent_category_id,course_type:t.course_type}}):Object(a.Toast)("该课程暂未开始")}}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"my-goods-list"},t._l(t.goodsList,function(e){return i("div",{key:e.id,staticClass:"card-block",on:{click:function(i){t.toMap(e)}}},[i("img",{staticClass:"banner",attrs:{src:e.imgLesson}}),t._v(" "),i("div",{staticClass:"content"},[t._v("\n      "+t._s(e.goods_name)+"\n      "),i("div",{staticClass:"start-time"},[t._v("\n        开课时间："+t._s(e.start_at)+"\n      ")])])])}))},staticRenderFns:[]};var c=i("VU/8")(o,r,!1,function(t){i("kUIM")},"data-v-1882bbe6",null);e.default=c.exports},kUIM:function(t,e){}});
//# sourceMappingURL=25.f8f77e7bcee3b3e2c1a3.js.map