12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/basic-component/app-layout/app-coupon-modal/app-coupon-modal"],{1989:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=function(){n.e("components/page-component/goods/app-price").then(function(){return resolve(n("bb33"))}.bind(null,n)).catch(n.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}})),{},{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(e){t.navigateTo({url:e}),this.closeCouponBox()}}};e.default=a}).call(this,n("543d")["default"])},3346:function(t,e,n){"use strict";n.r(e);var o=n("dc56"),r=n("d3db");for(var c in r)"default"!==c&&function(t){n.d(e,t,(function(){return r[t]}))}(c);n("4ec5");var u,i=n("f0c5"),a=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"7e05d9fb",null,!1,o["a"],u);e["default"]=a.exports},4803:function(t,e,n){},"4ec5":function(t,e,n){"use strict";var o=n("4803"),r=n.n(o);r.a},d3db:function(t,e,n){"use strict";n.r(e);var o=n("1989"),r=n.n(o);for(var c in o)"default"!==c&&function(t){n.d(e,t,(function(){return o[t]}))}(c);e["default"]=r.a},dc56:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.coupon&&t.coupon.list&&t.coupon.list.length>0?t.__map(t.coupon.list,(function(e,n){var o=t.__get_orig(e),r=[1,2,3].includes(e.share_type);return{$orig:o,g0:r}})):null);t.$mp.data=Object.assign({},{$root:{l0:n}})},c=[]}}]);
- ;(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__("3346"))
- })
- },
- [['components/basic-component/app-layout/app-coupon-modal/app-coupon-modal-create-component']]
- ]);
|