(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/collect"],{"2db2":function(t,e,n){},"984b":function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("73d2");o(n("66fd"));var i=o(n("a2cf"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},a27b:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return o}));var o={uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"d3dc"))}},i=function(){var t=this.$createElement,e=(this._self._c,this.collectList.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},c=[]},a2cf:function(t,e,n){"use strict";n.r(e);var o=n("a27b"),i=n("df8a");for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);n("be0c");var a=n("f0c5"),l=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"6be617c7",null,!1,o["a"],void 0);e["default"]=l.exports},be0c:function(t,e,n){"use strict";var o=n("2db2"),i=n.n(o);i.a},c3c1:function(t,e,n){"use strict";var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("b8e9")),c={data:function(){return{collectList:[],page:1,limit:10,total:0,show:!0}},onLoad:function(){this.getList()},methods:{leftClick:function(){},getList:function(){var t=this;i.default.req({url:"/api/User/myCourseList",data:{page:t.page,limit:t.limit,type:3}},(function(e){console.log("我的课程",e),1==e.code&&(1==t.page?(t.collectList=e.data.list,t.total=e.data.count):(t.collectList=t.collectList.concat(e.data.list),t.total=e.data.count))}))},toDetail:function(t){var e=this.collectList[t].id;i.default.jump("/pages/index/course/detail?id="+e)},collect:function(t){var e=this,n=e.collectList[t].id;i.default.req({url:"/api/Index/collectionCancelCourse",data:{id:n,type:0}},(function(t){1==t.code&&(i.default.info(t.msg),e.show=!1)}))},onReachBottom:function(){console.log("到底了"),console.log(this.page),console.log(this.limit),console.log(Number(this.total)),Number(this.page)*Number(this.limit)>=Number(this.total)?i.default.info("没有更多了"):(this.page++,this.getList())}}};e.default=c},df8a:function(t,e,n){"use strict";n.r(e);var o=n("c3c1"),i=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);e["default"]=i.a}},[["984b","common/runtime","common/vendor"]]]);