(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/Buy_soap_tape/purchase_history"],{105:function(t,e,n){"use strict";(function(t){n(5);r(n(4));var e=r(n(106));function r(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n(1)["createPage"])},106:function(t,e,n){"use strict";n.r(e);var r=n(107),o=n(109);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n(117);var i,s=n(11),u=Object(s["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"1c6ceb21",null,!1,r["components"],i);u.options.__file="pages/Buy_soap_tape/purchase_history.vue",e["default"]=u.exports},107:function(t,e,n){"use strict";n.r(e);var r=n(108);n.d(e,"render",(function(){return r["render"]})),n.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(e,"components",(function(){return r["components"]}))},108:function(t,e,n){"use strict";var r;n.r(e),n.d(e,"render",(function(){return o})),n.d(e,"staticRenderFns",(function(){return i})),n.d(e,"recyclableRender",(function(){return a})),n.d(e,"components",(function(){return r}));var o=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.params.type=1,t.cearBox()},t.e1=function(e){t.params.type=2,t.cearBox()})},a=!1,i=[];o._withStripped=!0},109:function(t,e,n){"use strict";n.r(e);var r=n(110),o=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=o.a},110:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(111),o={data:function(){return{showList:!0,showBottom:!1,showtape:!1,statusImg:[n(112),n(113),n(114)],image:[n(115),n(116)],params:{page_index:1,page_size:7,type:1},type:"",totalPage:0,list:[]}},onLoad:function(){var e=t.getStorageSync("userInfo");3==e.level&&(this.showtape=!0),this.getLowerAll()},onReachBottom:function(){this.more()},methods:{cearBox:function(){this.page_index=1,this.getLowerAll()},getLowerAll:function(e){var n=this;t.showLoading({title:"加载中",mask:!0}),(0,r._API_GetSoapList)(this.params).then((function(r){if(t.hideLoading(),200===r.code){var o=r.data,a=o.list,i=o.total;if(0===a.length)return n.showList=!1,!1;n.totalPage=Math.ceil(Number(i)/7),n.list=e?n.list.concat(a):a}else t.showToast({title:r.message||"获取列表失败",icon:"none"})}))},more:function(){if(this.params.page_index>=this.totalPage)return this.showBottom=!0,!1;this.params.page_index++,this.getLowerAll(!0)},getDetail:function(e){t.navigateTo({url:"./orderDetail?data="+encodeURIComponent(JSON.stringify(e))})}}};e.default=o}).call(this,n(1)["default"])},117:function(t,e,n){"use strict";n.r(e);var r=n(118),o=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=o.a},118:function(t,e,n){}},[[105,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Buy_soap_tape/purchase_history.js.map