order.js 2.7 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/me/order"],{"2a4f":function(t,e,n){},"6dc0":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var a=function(){var t=this,e=t.$createElement;t._self._c},o=[]},a1b6:function(t,e,n){"use strict";(function(t){n("a940");r(n("66fd"));var e=r(n("dacb"));function r(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},ae3e:function(t,e,n){"use strict";var r=n("2a4f"),a=n.n(r);a.a},d9ab:function(t,e,n){"use strict";n.r(e);var r=n("fd58"),a=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=a.a},dacb:function(t,e,n){"use strict";n.r(e);var r=n("6dc0"),a=n("d9ab");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("ae3e");var i,u=n("f0c5"),c=Object(u["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],i);e["default"]=c.exports},fd58:function(t,e,n){"use strict";(function(t){function n(t){return i(t)||o(t)||a(t)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function o(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function i(t){if(Array.isArray(t))return u(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c={data:function(){return{i:0,page:1,pages:0,orderList:[]}},methods:{goOrderMessage:function(e){t.navigateTo({url:"/pages/me/order-details?id="+e.delivery_order_id})},changeIndex:function(t){this.i=t,this.page=1,this.getOrderList()},getOrderList:function(){var e=this;this.$api.myOrderList({status:Number(this.i)+1,page:this.page,msg:"数据加载中"}).then((function(r){t.stopPullDownRefresh(),1===r.code&&(e.pages=r.data.last_page,e.orderList=1==e.page?r.data.data:[].concat(n(e.orderList),n(r.data.data)),console.log(r.data))}))}},onLoad:function(t){var e=t.type;this.i=e||0},onShow:function(){this.getOrderList()},onPullDownRefresh:function(){this.page=1,this.getOrderList()},onReachBottom:function(){this.page<this.pages&&(this.page++,this.getOrderList())}};e.default=c}).call(this,n("543d")["default"])}},[["a1b6","common/runtime","common/vendor"]]]);