(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/basic-component/app-layout/app-coupon-modal/app-coupon-modal"],{6757:function(t,n,e){"use strict";e.r(n);var o=e("a5a8"),r=e("c7d7");for(var c in r)"default"!==c&&function(t){e.d(n,t,(function(){return r[t]}))}(c);e("d3d0c");var u,a=e("f0c5"),i=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"20683c78",null,!1,o["a"],u);n["default"]=i.exports},a4a3:function(t,n,e){},a5a8:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){return o}));var r=function(){var t=this,n=t.$createElement,e=(t._self._c,t.coupon&&t.coupon.list&&t.coupon.list.length>0?t.__map(t.coupon.list,(function(n,e){var o=t.__get_orig(n),r=[1,2,3].includes(n.share_type);return{$orig:o,g0:r}})):null);t.$mp.data=Object.assign({},{$root:{l0:e}})},c=[]},c7d7:function(t,n,e){"use strict";e.r(n);var o=e("cb5d"),r=e.n(o);for(var c in o)"default"!==c&&function(t){e.d(n,t,(function(){return o[t]}))}(c);n["default"]=r.a},cb5d:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("2f62");function r(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function c(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?r(Object(e),!0).forEach((function(n){u(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function u(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var a=function(){e.e("components/page-component/goods/app-price").then(function(){return resolve(e("0c14"))}.bind(null,e)).catch(e.oe)},i={name:"app-coupon-modal",components:{"app-price":a},data:function(){return{}},computed:c(c({},(0,o.mapState)({mallConfig:function(t){return t.mallConfig},coupon:function(t){return t.page.coupon}})),{},{labelText:function(){if(this.coupon&&this.coupon.list&&this.coupon.list.length){var t=this.coupon.list[0];switch(t.share_type){case 4:return"优惠券已发放到账户，请到我的优惠券查看";case 2:return"积分已发放到账户，请到我的积分查看";case 1:return"余额红包已发放到账户，请到我的余额查看";case 3:return"卡劵已发放到账户，请到我的卡劵查看";default:return""}}},img:function(){var t="";return"register"==this.coupon.type?t=this.mallConfig.__wxapp_img.coupon.get_coupon_title:"share"==this.coupon.type?t=this.mallConfig.__wxapp_img.coupon.get_coupon_share:"receive"==this.coupon.type?t=this.mallConfig.__wxapp_img.coupon.get_coupon_receive:"award"===this.coupon.type&&(t=this.mallConfig.__wxapp_img.coupon.get_coupon_award),t}}),methods:{closeCouponBox:function(){var t={list:[],type:""};this.$store.dispatch("page/actionSetCoupon",t)},toGoods:function(n){t.navigateTo({url:n}),this.closeCouponBox()}}};n.default=i}).call(this,e("543d")["default"])},d3d0c:function(t,n,e){"use strict";var o=e("a4a3"),r=e.n(o);r.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/basic-component/app-layout/app-coupon-modal/app-coupon-modal-create-component',
    {
        'components/basic-component/app-layout/app-coupon-modal/app-coupon-modal-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("6757"))
        })
    },
    [['components/basic-component/app-layout/app-coupon-modal/app-coupon-modal-create-component']]
]);
