dggzichahu/public/pc/_nuxt/d44cf49.js

1 line
9.2 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[9,15],{404:function(t,e,o){"use strict";var r=o(11),n=o(5),c=o(116),l=o(23),f=o(15),d=o(52),h=o(251),v=o(81),m=o(7),_=o(83),w=o(82).f,y=o(42).f,x=o(22).f,S=o(405).trim,O="Number",N=n.Number,I=N.prototype,C=d(_(I))==O,j=function(t){var e,o,r,n,c,l,f,code,d=v(t,!1);if("string"==typeof d&&d.length>2)if(43===(e=(d=S(d)).charCodeAt(0))||45===e){if(88===(o=d.charCodeAt(2))||120===o)return NaN}else if(48===e){switch(d.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+d}for(l=(c=d.slice(2)).length,f=0;f<l;f++)if((code=c.charCodeAt(f))<48||code>n)return NaN;return parseInt(c,r)}return+d};if(c(O,!N(" 0o1")||!N("0b1")||N("+0x1"))){for(var E,T=function(t){var e=arguments.length<1?0:t,o=this;return o instanceof T&&(C?m((function(){I.valueOf.call(o)})):d(o)!=O)?h(new N(j(e)),o,T):j(e)},k=r?w(N):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),M=0;k.length>M;M++)f(N,E=k[M])&&!f(T,E)&&x(T,E,y(N,E));T.prototype=I,I.constructor=T,l(n,O,T)}},405:function(t,e,o){var r=o(27),n="["+o(406)+"]",c=RegExp("^"+n+n+"*"),l=RegExp(n+n+"*$"),f=function(t){return function(e){var o=String(r(e));return 1&t&&(o=o.replace(c,"")),2&t&&(o=o.replace(l,"")),o}};t.exports={start:f(1),end:f(2),trim:f(3)}},406:function(t,e){t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},407:function(t,e,o){var content=o(409);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(14).default)("03051d40",content,!0,{sourceMap:!1})},408:function(t,e,o){"use strict";o(407)},409:function(t,e,o){var r=o(13)(!1);r.push([t.i,".price-format{display:flex;align-items:baseline}",""]),t.exports=r},410:function(t,e,o){"use strict";o.r(e);o(404),o(68),o(252);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:500},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=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e)}}},n=(o(408),o(8)),component=Object(n.a)(r,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("span",{class:(t.lineThrough?"line-through":"")+"price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?o("span",{style:{"font-size":t.subscriptSize+"px","margin-right":"1px"}},[t._v("¥")]):t._e(),t._v(" "),o("span",{style:{"font-size":t.firstSize+"px","margin-right":"1px"}},[t._v(t._s(t.priceSlice.first))]),t._v(" "),t.priceSlice.second?o("span",{style:{"font-size":t.secondSize+"px"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()])}),[],!1,null,null,null);e.default=component.exports},421:function(t,e,o){var content=o(441);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(14).default)("0290099d",content,!0,{sourceMap:!1})},435:function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var r=o(117);var n=o(171);function c(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Object(n.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.")}()}},439:function(t,e,o){t.exports=o.p+"img/coupons_img_receive.d691393.png"},440:function(t,e,o){"use strict";o(421)},441:function(t,e,o){var r=o(13),n=o(169),c=o(442),l=o(443),f=r(!1),d=n(c),h=n(l);f.push([t.i,".coupons-list[data-v-686d083c]{padding:0 18px;flex-wrap:wrap;position:relative}.coupons-list .item[data-v-686d083c]{margin-bottom:20px;margin-right:16px;position:relative;cursor:pointer}.coupons-list .item .info[data-v-686d083c]{padding:0 10px;background:url("+d+") no-repeat;width:240px;height:80px;background-size:100%}.coupons-list .item .info.gray[data-v-686d083c]{background-image:url("+h+")}.coupons-list .item .info .info-hd[data-v-686d083c]{overflow:hidden}.coupons-list .item .tips[data-v-686d083c]{position:relative;background-color:#f2f2f2;height:30px;padding:0 8px}.coupons-list .item .tips .tips-con[data-v-686d083c]{width:100%;left:0;background-color:#f2f2f2;position:absolute;top:30px;padding:10px;z-index:99}.coupons-list .item .receice[data-v-686d083c]{position:absolute;top:0;right:0;width:58px;height:45px}.coupons-list .item .choose[data-v-686d083c]{position:absolute;top:0;right:0;background-color:#ffe72c;color:#ff2c3c;padding:1px 5px}.coupons-list .more[data-v-686d083c]{position:absolute;bottom:20px;cursor:pointer;right:30px}",""]),t.exports=f},442:function(t,e,o){t.exports=o.p+"img/bg_coupon_s.3f57cfd.png"},443:function(t,e,o){t.exports=o.p+"img/bg_coupon.b22691e.png"},445:function(t,e,o){"use strict";o.r(e);o(20),o(16),o(19),o(28),o(29);var r=o(435),n=o(3),c=o(6),l=(o(47),o(404),o(17),o(57),o(10));function f(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 d(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(e){Object(c.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):f(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:d(d({},Object(l.b)(["getPublicData"])),{},{onHandle:function(t){switch(this.id=t,this.type){case 0:case 1:case 2:break;case 3: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",{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(440),o(8)),component=Object(v.a)(h,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"coupons-list row"},[t._l(t.couponsList,(function(e,n){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"item.isShow"}],key:n,staticClass:"item",on:{"!click":function(o){return t.onHandle(e.id)}}},[r("div",{class:["info white",{gray:2==t.type||1==t.type||e.is_get}]},[r("div",{staticClass:"info-hd row"},[r("div",[r("price-formate",{attrs:{price:e.money,"first-size":38,"second-size":38}})],1),t._v(" "),r("div",{staticClass:"ml8 flex1"},[r("div",{staticClass:"line1"},[t._v(t._s(e.name))]),t._v(" "),r("div",{staticClass:"xs line1"},[t._v(t._s(e.use_condition))])])]),t._v(" "),r("div",{staticClass:"info-time xs"},[t._v(t._s(e.use_time_tips))])]),t._v(" "),r("div",{staticClass:"tips row-between",on:{click:function(e){return e.stopPropagation(),t.onShowTips(n)}}},[r("div",{staticClass:"muted xs"},[t._v(t._s(e.coupon_type))]),t._v(" "),e.tips?r("div",[r("i",{class:t.showTips[n]?"el-icon-arrow-up":"el-icon-arrow-down"}),t._v(" "),e.tips&&t.showTips[n]?r("div",{staticClass:"tips-con xs lighter"},[t._v("\n "+t._s(e.tips)+"\n ")]):t._e()]):t._e(),t._v(" "),3!=t.type||e.is_get?t._e():r("div",{staticClass:"primary sm"},[t._v("\n 立即领取\n ")])]),t._v(" "),e.is_get?r("img",{staticClass:"receice",attrs:{src:o(439),alt:""}}):t._e(),t._v(" "),4==t.type&&t.id==e.id?r("div",{staticClass:"choose xs"},[t._v("已选择")]):t._e()])]})),t._v(" "),t.showMore&&t.list.length>4?r("div",{staticClass:"more muted",on:{click:t.changeShow}},[t._v("\n "+t._s(t.isMore?"收起":"更多")+"\n "),r("i",{class:t.isMore?"el-icon-arrow-up":"el-icon-arrow-down"})]):t._e()],2)}),[],!1,null,"686d083c",null);e.default=component.exports;installComponents(component,{PriceFormate:o(410).default})}}]);