webpackJsonp([25],{P3Wy:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("CCn6"),s=n("Jmy5"),a=n("Au9i"),o={name:"myGoodsList",data:function(){return{goodsList:[],imgUrl:s.a}},mounted:function(){this.initPage()},methods:{initPage:function(){var t=this;Object(i.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 n=t.getTime(),i=e.getTime();return i>n?1:i==n?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,n=t._self._c||e;return n("div",{staticClass:"my-goods-list"},t._l(t.goodsList,function(e){return n("div",{key:e.id,staticClass:"card-block",on:{click:function(n){t.toMap(e)}}},[n("img",{staticClass:"banner",attrs:{src:e.imgLesson}}),t._v(" "),n("div",{staticClass:"content"},[t._v("\n      "+t._s(e.goods_name)+"\n      "),n("div",{staticClass:"start-time"},[t._v("\n        开课时间："+t._s(e.start_at)+"\n      ")])])])}))},staticRenderFns:[]};var c=n("VU/8")(o,r,!1,function(t){n("n4LR")},"data-v-1882bbe6",null);e.default=c.exports},n4LR:function(t,e){}});