(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/basic-component/app-layout/app-coupon-modal/app-coupon-modal"],{2573:function(t,n,e){},8888: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=[]},bb9f: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 i=function(){e.e("components/page-component/goods/app-price").then(function(){return resolve(e("e82c"))}.bind(null,e)).catch(e.oe)},a={name:"app-coupon-modal",components:{"app-price":i},data:function(){return{}},computed:c(c({},(0,o.mapState)({mallConfig:function(t){return t.mallConfig},coupon:function(t){return t.page.coupon},theme:function(t){return t.mallConfig.theme}})),{},{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=a}).call(this,e("543d")["default"])},ccfc:function(t,n,e){"use strict";e.r(n);var o=e("8888"),r=e("ff94");for(var c in r)"default"!==c&&function(t){e.d(n,t,(function(){return r[t]}))}(c);e("fa10");var u,i=e("f0c5"),a=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"22163746",null,!1,o["a"],u);n["default"]=a.exports},fa10:function(t,n,e){"use strict";var o=e("2573"),r=e.n(o);r.a},ff94:function(t,n,e){"use strict";e.r(n);var o=e("bb9f"),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}}]);
;(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__("ccfc"))
        })
    },
    [['components/basic-component/app-layout/app-coupon-modal/app-coupon-modal-create-component']]
]);
