(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/integral_mall/exchange/exchange"],{"74c2":function(t,e,n){"use strict";n.r(e);var a=n("922e"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"8eca":function(t,e,n){"use strict";var a,o=function(){var t=this,e=t.$createElement;t._self._c},i=[];n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}))},"8fc5":function(t,e,n){},"922e":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("2f62");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(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){r(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 r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-layout/app-layout")]).then(function(){return resolve(n("3dd6"))}.bind(null,n)).catch(n.oe)},u=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-form-id/app-form-id")]).then(function(){return resolve(n("e583"))}.bind(null,n)).catch(n.oe)},l=function(){n.e("components/basic-component/app-tab-nav/app-tab-nav").then(function(){return resolve(n("5c8b"))}.bind(null,n)).catch(n.oe)},s={name:"about",components:{"app-layout":c,"app-form-id":u,"app-tab-nav":l},data:function(){return{list:[],tabList:[{id:1,name:"优惠券"},{id:2,name:"商品"}],page:2,activeTab:1}},computed:i({},(0,a.mapState)({theme:function(t){return t.mallConfig.theme},mall:function(t){return t.mallConfig.mall}})),onLoad:function(){this.$showLoading({type:"global",text:"加载中..."}),this.getList()},methods:{tabStatus:function(e){this.list=[],this.page=2,this.activeTab=e.currentTarget.dataset.id,t.showLoading({title:"加载中..."}),this.getList()},toOrder:function(e){t.navigateTo({url:"/pages/order/order-detail/order-detail?id="+e})},toList:function(){t.navigateTo({url:"/pages/coupon/index/index"})},getList:function(){var e=this,n=e.$api.integral_mall.coupon_order;2==e.activeTab&&(n=e.$api.integral_mall.order),e.$request({url:n}).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(n){e.$hideLoading(),t.hideLoading()}))}},onReachBottom:function(){var e=this,n=e.$api.integral_mall.coupon_order;2==e.activeTab&&(n=e.$api.integral_mall.order),e.$request({url:n,data:{page:e.page}}).then((function(n){if(e.$hideLoading(),0==n.code){var a=!1;e.list.forEach((function(t,e){if(t.id==n.data.list[0].id)return a=!0,!1})),a||(e.list=e.list.concat(n.data.list)),page++}else t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))}};e.default=s}).call(this,n("543d")["default"])},"997b":function(t,e,n){"use strict";n.r(e);var a=n("8eca"),o=n("74c2");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("a46a");var r,c=n("f0c5"),u=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"0b08251e",null,!1,a["a"],r);e["default"]=u.exports},a46a:function(t,e,n){"use strict";var a=n("8fc5"),o=n.n(a);o.a},a97e:function(t,e,n){"use strict";(function(t){n("8748");a(n("66fd"));var e=a(n("997b"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["a97e","common/runtime","common/vendor"]]]);