(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/share/order/order"],{1619:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2f62");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=function(){n.e("components/basic-component/app-tab-nav/app-tab-nav").then(function(){return resolve(n("9b24"))}.bind(null,n)).catch(n.oe)},u={data:function(){return{theme:{color:"#ff4544"},tabList:[{id:0,name:"全部"},{id:1,name:"待付款"},{id:2,name:"已付款"},{id:3,name:"已完成"}],loading:null,list:[],activeTab:0,id:null,page:2}},components:{"app-tab-nav":r},computed:a({},(0,i.mapState)({mall:function(t){return t.mallConfig.mall},custom_setting:function(t){return t.mallConfig.share_setting_custom},share_setting:function(t){return t.mallConfig.share_setting}})),methods:{open:function(t){this.id!=t?this.id=t:this.id=null},tabStatus:function(e){this.list=[],this.page=2,this.activeTab=e.currentTarget.dataset.id,t.showLoading({title:"加载中..."}),this.getList()},getList:function(){var e=this;e.$request({url:e.$api.share.share_order,data:{status:e.activeTab}}).then((function(n){e.$hideLoading(),t.hideLoading(),0==n.code?e.list=n.data.list:t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(){e.$hideLoading(),t.hideLoading(),e.$event.on(e.$const.EVENT_USER_LOGIN).then((function(){e.getList()}))}))},getMore:function(){var e=this;t.showLoading({title:"加载中..."}),e.$request({url:e.$api.share.share_order,data:{status:e.activeTab,page:e.page}}).then((function(n){t.hideLoading(),0==n.code?n.data.list.length>0&&(e.loading=null,e.list=e.list.concat(n.data.list),e.page++):t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(e){t.hideLoading()}))},toGoods:function(e,n){if(n.mch_id>0)t.navigateTo({url:"/plugins/mch/goods/goods?id="+e+"&mch_id="+n.mch_id});else if("advance"==n.sign)t.navigateTo({url:"/plugins/advance/detail/detail?id="+e});else if("pintuan"==n.sign)t.navigateTo({url:"/plugins/pt/goods/goods?goods_id="+e});else if("miaosha"==n.sign)t.navigateTo({url:"/plugins/miaosha/goods/goods?id="+e});else if("gift"==n.sign)t.navigateTo({url:"/plugins/gift/goods/goods?id="+e});else if("advance"==n.sign)t.navigateTo({url:"/plugins/advance/detail/detail?id="+n.goods_id});else if("booking"==n.sign)t.navigateTo({url:"/plugins/book/goods/goods?goods_id="+e});else if(""==n.sign)t.navigateTo({url:"/pages/goods/goods?id="+e});else{if("vip_card"==n.sign)return!1;t.navigateTo({url:"/plugins/"+n.sign+"/goods/goods?goods_id="+e})}}},onLoad:function(e){this.$commonLoad.onload(e);var n=this;t.setNavigationBarTitle({title:n.custom_setting.menus.order.name}),n.$showLoading({type:"global",text:"加载中..."}),n.getList()},onReachBottom:function(){this.getMore()}};e.default=u}).call(this,n("543d")["default"])},"2f49":function(t,e,n){"use strict";var i=n("8783"),o=n.n(i);o.a},"3a1b":function(t,e,n){"use strict";n.r(e);var i=n("e799"),o=n("f507");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("2f49");var s,r=n("f0c5"),u=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"a008110c",null,!1,i["a"],s);e["default"]=u.exports},8783:function(t,e,n){},a930:function(t,e,n){"use strict";(function(t){n("2d0a");i(n("66fd"));var e=i(n("3a1b"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},e799:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement;t._self._c},a=[]},f507:function(t,e,n){"use strict";n.r(e);var i=n("1619"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a}},[["a930","common/runtime","common/vendor"]]]);