You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
9.4 KiB
1 lines
9.4 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[10,18],{473:function(t,e,o){"use strict";var r=o(14),n=o(4),c=o(5),l=o(141),d=o(24),f=o(18),h=o(290),v=o(54),m=o(104),_=o(289),w=o(3),y=o(105).f,x=o(45).f,S=o(23).f,O=o(474),N=o(475).trim,j="Number",I=n.Number,C=I.prototype,E=n.TypeError,T=c("".slice),k=c("".charCodeAt),M=function(t){var e=_(t,"number");return"bigint"==typeof e?e:P(e)},P=function(t){var e,o,r,n,c,l,d,code,f=_(t,"number");if(m(f))throw E("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=N(f),43===(e=k(f,0))||45===e){if(88===(o=k(f,2))||120===o)return NaN}else if(48===e){switch(k(f,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+f}for(l=(c=T(f,2)).length,d=0;d<l;d++)if((code=k(c,d))<48||code>n)return NaN;return parseInt(c,r)}return+f};if(l(j,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var z,A=function(t){var e=arguments.length<1?0:I(M(t)),o=this;return v(C,o)&&w((function(){O(o)}))?h(Object(e),o,A):e},F=r?y(I):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),L=0;F.length>L;L++)f(I,z=F[L])&&!f(A,z)&&S(A,z,x(I,z));A.prototype=C,C.constructor=A,d(n,j,A,{constructor:!0})}},474:function(t,e,o){var r=o(5);t.exports=r(1..valueOf)},475:function(t,e,o){var r=o(5),n=o(36),c=o(19),l=o(476),d=r("".replace),f="["+l+"]",h=RegExp("^"+f+f+"*"),v=RegExp(f+f+"*$"),m=function(t){return function(e){var o=c(n(e));return 1&t&&(o=d(o,h,"")),2&t&&(o=d(o,v,"")),o}};t.exports={start:m(1),end:m(2),trim:m(3)}},476:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},477:function(t,e,o){var content=o(480);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(17).default)("7c52e05d",content,!0,{sourceMap:!1})},478:function(t,e,o){"use strict";o.r(e);o(473);var r={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:Number,default:14},secondSize:{type:Number,default:14},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:Number,default:14},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&(t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e)}}},n=(o(479),o(8)),component=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("span",{class:(t.lineThrough?"line-through":"")+"price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?e("span",{style:{"font-size":t.subscriptSize+"px","margin-right":"1px"}},[t._v("¥")]):t._e(),t._v(" "),e("span",{style:{"font-size":t.firstSize+"px","margin-right":"1px"}},[t._v(t._s(t.priceSlice.first))]),t._v(" "),t.priceSlice.second?e("span",{style:{"font-size":t.secondSize+"px"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()])}),[],!1,null,null,null);e.default=component.exports},479:function(t,e,o){"use strict";o(477)},480:function(t,e,o){var r=o(16)(!1);r.push([t.i,".price-format{display:flex;align-items:baseline}",""]),t.exports=r},507:function(t,e,o){var content=o(518);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(17).default)("744dd30a",content,!0,{sourceMap:!1})},512:function(t,e,o){t.exports=o.p+"img/coupons_img_receive.d691393.png"},513:function(t,e,o){t.exports=o.p+"img/bg_coupon_s.3f57cfd.png"},514:function(t,e,o){t.exports=o.p+"img/bg_coupon.b22691e.png"},515:function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var r=o(142);var n=o(191),c=o(110);function l(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(n.a)(t)||Object(c.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},517:function(t,e,o){"use strict";o(507)},518:function(t,e,o){var r=o(16),n=o(190),c=o(513),l=o(514),d=r(!1),f=n(c),h=n(l);d.push([t.i,".coupons-list[data-v-4191a6d7]{padding:0 18px;flex-wrap:wrap;position:relative}.coupons-list .item[data-v-4191a6d7]{margin-bottom:20px;margin-right:16px;position:relative;cursor:pointer}.coupons-list .item .info[data-v-4191a6d7]{padding:0 10px;background:url("+f+") no-repeat;width:240px;height:80px;background-size:100%}.coupons-list .item .info.gray[data-v-4191a6d7]{background-image:url("+h+")}.coupons-list .item .info .info-hd[data-v-4191a6d7]{overflow:hidden}.coupons-list .item .tips[data-v-4191a6d7]{position:relative;background-color:#f2f2f2;height:30px;padding:0 8px}.coupons-list .item .tips .tips-con[data-v-4191a6d7]{width:100%;left:0;background-color:#f2f2f2;position:absolute;top:30px;padding:10px;z-index:99}.coupons-list .item .receice[data-v-4191a6d7]{position:absolute;top:0;right:0;width:58px;height:45px}.coupons-list .item .choose[data-v-4191a6d7]{position:absolute;top:0;right:0;background-color:#ffe72c;color:#ff2c3c;padding:1px 5px}.coupons-list .more[data-v-4191a6d7]{position:absolute;bottom:20px;cursor:pointer;right:30px}",""]),t.exports=d},535:function(t,e,o){"use strict";o.r(e);o(29),o(26),o(20),o(25),o(30),o(31);var r=o(515),n=o(9),c=o(10),l=(o(53),o(473),o(12),o(21),o(66),o(13));function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}function f(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(c.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var h={props:{list:{type:Array,default:function(){return[]}},type:{type:Number},showMore:{type:Boolean,default:!1}},data:function(){return{showTips:[],couponsList:[],id:"",isMore:!1}},methods:f(f({},Object(l.b)(["getPublicData"])),{},{onHandle:function(t,e){switch(this.id=t,this.type){case 0:case 1:case 2:break;case 3:e||this.getCoupon();break;case 4:this.selectId==t&&(this.id=""),this.$emit("use",this.id),this.selectId=this.id}},getCoupon:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var o,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("coupon/getCoupon",{coupon_id:t.id});case 2:o=e.sent,r=o.msg,1==o.code&&(t.$message({message:r,type:"success"}),t.getPublicData(),t.$emit("reflash"));case 6:case"end":return e.stop()}}),e)})))()},onShowTips:function(t){var e=this.showTips;this.showTips[t]=e[t]?0:1,this.showTips=Object.assign([],this.showTips)},changeShow:function(){var t=this;this.isMore=!this.isMore,this.list.forEach((function(e,o){e.isShow=!0,!t.isMore&&o>=4&&(e.isShow=!1)})),this.couponsList=Object(r.a)(this.list)}}),watch:{list:{handler:function(t){var e=this;t.length&&4==this.type&&(this.id=t[0].id,this.selectId=this.id,this.$emit("use",this.id));var o=t.map((function(t){return 0}));this.showTips=o,this.list.forEach((function(t,o){t.isShow=!0,e.showMore&&o>=4&&(t.isShow=!1)})),this.couponsList=this.list},immediate:!0,deep:!0}}},v=(o(517),o(8)),component=Object(v.a)(h,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"coupons-list flex"},[t._l(t.couponsList,(function(r,n){return[e("div",{directives:[{name:"show",rawName:"v-show",value:r.isShow,expression:"item.isShow"}],key:n,staticClass:"item",on:{"!click":function(e){return t.onHandle(r.id,r.is_get)}}},[e("div",{class:["info white",{gray:2==t.type||1==t.type||r.is_get}]},[e("div",{staticClass:"info-hd flex"},[e("div",[e("price-formate",{attrs:{price:r.money,"first-size":38,"second-size":38}})],1),t._v(" "),e("div",{staticClass:"m-l-8 flex1"},[e("div",{staticClass:"line1"},[t._v(t._s(r.name))]),t._v(" "),e("div",{staticClass:"xs line1"},[t._v(t._s(r.condition_type_desc))])])]),t._v(" "),e("div",{staticClass:"info-time xs"},[t._v(t._s(r.user_time_desc))])]),t._v(" "),e("div",{staticClass:"tips flex row-between",on:{click:function(e){return e.stopPropagation(),t.onShowTips(n)}}},[e("div",{staticClass:"muted xs"},[t._v(t._s(r.use_scene_desc))]),t._v(" "),1==r.use_goods_type||1!=t.type&&2!=t.type&&0!=t.type?t._e():e("div",[e("i",{class:t.showTips[n]?"el-icon-arrow-up":"el-icon-arrow-down"}),t._v(" "),"全场通用"!=r.use_scene_desc&&t.showTips[n]?e("div",{staticClass:"tips-con xs lighter"},[t._v("\n "+t._s(r.use_goods_desc)+"\n ")]):t._e()]),t._v(" "),3!=t.type||r.is_get?t._e():e("div",{staticClass:"primary sm"},[t._v("\n 立即领取\n ")])]),t._v(" "),r.is_get?e("img",{staticClass:"receice",attrs:{src:o(512),alt:""}}):t._e(),t._v(" "),4==t.type&&t.id==r.id?e("div",{staticClass:"choose xs"},[t._v("已选择")]):t._e()])]})),t._v(" "),t.showMore&&t.list.length>4?e("div",{staticClass:"more muted",on:{click:t.changeShow}},[t._v("\n "+t._s(t.isMore?"收起":"更多")+"\n "),e("i",{class:t.isMore?"el-icon-arrow-up":"el-icon-arrow-down"})]):t._e()],2)}),[],!1,null,"4191a6d7",null);e.default=component.exports;installComponents(component,{PriceFormate:o(478).default})}}]);
|