chunk-c3ebddde.2dbd7d55.js 3.61 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c3ebddde"],{"3cbe":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"couponBox warp",class:["terminal"+t.terminal,"arrange"+(t.componentContent.arrangeActiveIndex+1),"color"+(t.componentContent.colorActiveIndex+1)]},[t.componentContent.selectedCoupon?n("div",{staticClass:"couponListBox"},t._l(t.couponsData,(function(e,o){return n("div",{key:o,staticClass:"listItemBox",class:e.state&&3!==e.state&&"isReceive"},[n("div",{staticClass:"listItemBoxInner"},[n("div",{staticClass:"itemInfo"},[n("i",{staticClass:"flag",class:"flag"+e.couponType}),n("div",{staticClass:"amount"},[2!==e.couponType?n("b",[t._v("¥")]):t._e(),1!==t.typeId?n("span",[t._v(" "+t._s(e.couponContent)+" ")]):n("span",[t._v(" "+t._s(e.reduceMoney)+" ")]),2==e.couponType?n("b",[t._v("折")]):t._e()]),n("div",{staticClass:"couponInfo"},[n("p",[t._v(t._s(e.content))])])]),0===e.state?n("div",{staticClass:"receiveBtn"},[n("span",[t._v("己领取")])]):1===e.state?n("div",{staticClass:"receiveBtn"},[n("span",[t._v("已使用")])]):2===e.state?n("div",{staticClass:"receiveBtn"},[n("span",[t._v("已过期")])]):n("div",{staticClass:"receiveBtn",on:{click:function(n){return t.receiveCoupon(e)}}},[n("span",[t._v("立即领取")])])])])})),0):t._e()])},a=[],c=n("c39c"),s={mixins:[c["a"]]},i=s,r=(n("f49d"),n("2877")),p=Object(r["a"])(i,o,a,!1,null,"94d82b36",null);e["default"]=p.exports},5774:function(t,e,n){},"99af":function(t,e,n){"use strict";var o=n("23e7"),a=n("d039"),c=n("e8b5"),s=n("861d"),i=n("7b0b"),r=n("50c4"),p=n("8418"),u=n("65f0"),d=n("1dde"),f=n("b622"),l=n("2d00"),v=f("isConcatSpreadable"),m=9007199254740991,C="Maximum allowed index exceeded",h=l>=51||!a((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),b=d("concat"),y=function(t){if(!s(t))return!1;var e=t[v];return void 0!==e?!!e:c(t)},g=!h||!b;o({target:"Array",proto:!0,forced:g},{concat:function(t){var e,n,o,a,c,s=i(this),d=u(s,0),f=0;for(e=-1,o=arguments.length;e<o;e++)if(c=-1===e?s:arguments[e],y(c)){if(a=r(c.length),f+a>m)throw TypeError(C);for(n=0;n<a;n++,f++)n in c&&p(d,f,c[n])}else{if(f>=m)throw TypeError(C);p(d,f++,c)}return d.length=f,d}})},c39c:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var o=n("5530"),a=(n("99af"),n("e9c4"),n("a9e3"),n("d3b7"),n("159b"),n("7a32")),c=n("f270"),s=n("2f62"),i={name:"textComponent",mixins:[c["a"]],data:function(){return{couponsData:[]}},props:{terminal:{type:Number,default:4},typeId:{type:Number,default:1},shopId:{type:Number,default:0},componentContent:{type:Object}},computed:Object(o["a"])({},Object(s["b"])(["couponNum"])),watch:{couponNum:{handler:function(t,e){this.getData()},deep:!0}},mounted:function(){this.getData()},methods:{getData:function(){var t=this;if(t.componentContent.selectedCoupon&&t.componentContent.selectedCoupon.length>0){this.beforeGetData();var e="";1===t.typeId?e="".concat(a["a"].getCoupons,"?page=1&pageSize=99&ids=").concat(t.componentContent.selectedCoupon):3===t.typeId&&(e="".concat(a["a"].getShopCoupons,"?page=1&pageSize=99&shopId=").concat(t.shopId,"&ids=").concat(t.componentContent.selectedCoupon));var n={method:"GET",url:e};this.sendReq(n,(function(e){t.afterGetData(),t.couponsData=e.data.list,1===t.typeId&&t.couponsData.forEach((function(t){t.couponName=t.activityName,t.effectiveStart=t.activityStartTime,t.effectiveEnd=t.activityEndTime})),JSON.stringify(t.componentContent.couponList)!==JSON.stringify(t.couponsData)&&(t.componentContent.couponList=t.couponsData)}),(function(e){t.afterGetData()}))}else t.couponsData=[]}}}},f49d:function(t,e,n){"use strict";n("5774")}}]);