webpackJsonp([15],{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.x)().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.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("c8W/")},"data-v-a2f51670",null);e.default=c.exports},"c8W/":function(t,e){}});
//# sourceMappingURL=15.9bb3670eef3bf2de8440.js.map
-
wangwei authored3875aea2