(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/order/order"],{2467:function(t,e,o){"use strict";o.r(e);var i=o("b06b"),r=o("6466");for(var n in r)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(n);o("26b0");var u=o("f0c5"),d=Object(u["a"])(r["default"],i["b"],i["c"],!1,null,"74d6b780",null,!1,i["a"],void 0);e["default"]=d.exports},"26b0":function(t,e,o){"use strict";var i=o("ee99"),r=o.n(i);r.a},"5f63":function(t,e,o){"use strict";(function(t,e){var i=o("4ea4");o("73d2");i(o("66fd"));var r=i(o("2467"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(r.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},6466:function(t,e,o){"use strict";o.r(e);var i=o("6f48"),r=o.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"6f48":function(t,e,o){"use strict";var i=o("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(o("b8e9")),n={data:function(){return{orderList:[],page:1,limit:10,total:0}},onLoad:function(){this.getOrderList()},methods:{leftClick:function(){r.default.jump("/pages/mine/mine",3)},getOrderList:function(){var t=this;r.default.req({url:"/api/User/myOrder",data:{page:t.page,limit:t.limit}},(function(e){console.log(e),1==e.code&&(1==t.page?(t.orderList=e.data.list,t.total=e.data.count):(t.orderList=t.orderList.concat(e.data.list),t.total=e.data.count))}))},toPay:function(t){r.default.jump("/pages/index/course/buy?order_no="+this.orderList[t].order_no+"&id="+this.orderList[t].course_id+"&order_id="+this.orderList[t].id)},toStudy:function(t){r.default.jump("/pages/index/course/detail?id="+t)},toApply:function(t){r.default.jump("/pages/mine/order/apply?order_no="+this.orderList[t].id+"&course_id="+this.orderList[t].course_id)},applyDetail:function(t){r.default.jump("/pages/mine/order/apply?data="+JSON.stringify(this.orderList[t].invoice)+"&course_id="+this.orderList[t].course_id)},toDetail:function(t){0==this.orderList[t].status?r.default.jump("/pages/index/course/buy?order_no="+this.orderList[t].order_no+"&id="+this.orderList[t].course_id):r.default.jump("/pages/mine/order/detail?order_no="+this.orderList[t].order_no)},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)?r.default.info("没有更多了"):(this.page++,this.getOrderList())}}};e.default=n},b06b:function(t,e,o){"use strict";o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return i}));var i={uButton:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-button/u-button")]).then(o.bind(null,"7819"))}},r=function(){var t=this.$createElement,e=(this._self._c,this.orderList.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},n=[]},ee99:function(t,e,o){}},[["5f63","common/runtime","common/vendor"]]]);