1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/myorder"],{"0d25":function(t,n,e){"use strict";e.r(n);var r=e("f9d3"),a=e("d3b4");for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("fcad");var u,i=e("f0c5"),c=Object(i["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],u);n["default"]=c.exports},5558:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("a34a"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t){return s(t)||c(t)||i(t)||u()}function u(){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 i(t,n){if(t){if("string"===typeof t)return f(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?f(t,n):void 0}}function c(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function s(t){if(Array.isArray(t))return f(t)}function f(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function l(t,n,e,r,a,o,u){try{var i=t[o](u),c=i.value}catch(s){return void e(s)}i.done?n(c):Promise.resolve(c).then(r,a)}function d(t){return function(){var n=this,e=arguments;return new Promise((function(r,a){var o=t.apply(n,e);function u(t){l(o,r,a,u,i,"next",t)}function i(t){l(o,r,a,u,i,"throw",t)}u(void 0)}))}}var p={onLoad:function(){this.getMyOrder()},data:function(){return{list:[],page:1,has_more:!1,status:"loadmore",scrollTop:0}},methods:{getMyOrder:function(){var t=d(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$api.getOrder({page:this.page});case 2:if(n=t.sent,this.status="loadmore",n.code){t.next=7;break}return this.$u.toast(n.msg),t.abrupt("return");case 7:this.list=[].concat(o(this.list),o(n.data.orderList.data)),this.has_more=n.data.last_page>n.data.current_page;case 9:case"end":return t.stop()}}),t,this)})));function n(){return t.apply(this,arguments)}return n}(),goDetail:function(t){var n=2==t.model_id?"/pages/product/detail":"/pages/article/detail";this.$Router.push({path:n,query:{id:t.id}})}},onPageScroll:function(t){this.scrollTop=t.scrollTop},onReachBottom:function(){this.has_more&&(this.status="loading",this.page++,this.getMyOrder())}};n.default=p},6267:function(t,n,e){"use strict";(function(t){e("630e");r(e("66fd"));var n=r(e("0d25"));function r(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("f266")["createPage"])},b89f:function(t,n,e){},d3b4:function(t,n,e){"use strict";e.r(n);var r=e("5558"),a=e.n(r);for(var o in r)"default"!==o&&function(t){e.d(n,t,(function(){return r[t]}))}(o);n["default"]=a.a},f9d3:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return r}));var r={faNavbar:function(){return e.e("components/fa-navbar/fa-navbar").then(e.bind(null,"6858"))},uImage:function(){return e.e("uview-ui/components/u-image/u-image").then(e.bind(null,"9406"))},uTag:function(){return e.e("uview-ui/components/u-tag/u-tag").then(e.bind(null,"a8f0"))},uBackTop:function(){return e.e("uview-ui/components/u-back-top/u-back-top").then(e.bind(null,"ad8f"))},uLoadmore:function(){return e.e("uview-ui/components/u-loadmore/u-loadmore").then(e.bind(null,"340d"))},faTabbar:function(){return Promise.all([e.e("common/vendor"),e.e("components/fa-tabbar/fa-tabbar")]).then(e.bind(null,"ecd8"))}},a=function(){var t=this,n=t.$createElement,e=(t._self._c,{color:t.theme.bgColor});t.$mp.data=Object.assign({},{$root:{a0:e}})},o=[]},fcad:function(t,n,e){"use strict";var r=e("b89f"),a=e.n(r);a.a}},[["6267","common/runtime","common/vendor"]]]);
|