dggzichahu/public/pc/_nuxt/da9fe47.js

1 line
12 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([[42,9,14,15],{404:function(t,e,n){"use strict";var o=n(11),r=n(5),c=n(116),l=n(23),f=n(15),d=n(52),h=n(251),v=n(81),m=n(7),_=n(83),y=n(82).f,w=n(42).f,x=n(22).f,S=n(405).trim,O="Number",C=r.Number,N=C.prototype,j=d(_(N))==O,k=function(t){var e,n,o,r,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===(n=d.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(d.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+d}for(l=(c=d.slice(2)).length,f=0;f<l;f++)if((code=c.charCodeAt(f))<48||code>r)return NaN;return parseInt(c,o)}return+d};if(c(O,!C(" 0o1")||!C("0b1")||C("+0x1"))){for(var I,E=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof E&&(j?m((function(){N.valueOf.call(n)})):d(n)!=O)?h(new C(k(e)),n,E):k(e)},M=o?y(C):"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(","),T=0;M.length>T;T++)f(C,I=M[T])&&!f(E,I)&&x(E,I,w(C,I));E.prototype=N,N.constructor=E,l(r,O,E)}},405:function(t,e,n){var o=n(27),r="["+n(406)+"]",c=RegExp("^"+r+r+"*"),l=RegExp(r+r+"*$"),f=function(t){return function(e){var n=String(o(e));return 1&t&&(n=n.replace(c,"")),2&t&&(n=n.replace(l,"")),n}};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,n){var content=n(409);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(14).default)("03051d40",content,!0,{sourceMap:!1})},408:function(t,e,n){"use strict";n(407)},409:function(t,e,n){var o=n(13)(!1);o.push([t.i,".price-format{display:flex;align-items:baseline}",""]),t.exports=o},410:function(t,e,n){"use strict";n.r(e);n(404),n(68),n(252);var o={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)}}},r=(n(408),n(8)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:(t.lineThrough?"line-through":"")+"price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?n("span",{style:{"font-size":t.subscriptSize+"px","margin-right":"1px"}},[t._v("¥")]):t._e(),t._v(" "),n("span",{style:{"font-size":t.firstSize+"px","margin-right":"1px"}},[t._v(t._s(t.priceSlice.first))]),t._v(" "),t.priceSlice.second?n("span",{style:{"font-size":t.secondSize+"px"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()])}),[],!1,null,null,null);e.default=component.exports},411:function(t,e,n){var content=n(413);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(14).default)("7277513c",content,!0,{sourceMap:!1})},412:function(t,e,n){"use strict";n(411)},413:function(t,e,n){var o=n(13)(!1);o.push([t.i,".null-data[data-v-7fa0e58c]{padding:100px}.null-data .img-null[data-v-7fa0e58c]{width:150px;height:150px}",""]),t.exports=o},414:function(t,e,n){"use strict";n.r(e);var o={components:{},props:{img:{type:String},text:{type:String,default:"暂无数据"},imgStyle:{type:String,default:""}},methods:{}},r=(n(412),n(8)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"bg-white column-center null-data"},[n("img",{staticClass:"img-null",style:t.imgStyle,attrs:{src:t.img,alt:""}}),t._v(" "),n("div",{staticClass:"muted mt8"},[t._v(t._s(t.text))])])}),[],!1,null,"7fa0e58c",null);e.default=component.exports},421:function(t,e,n){var content=n(441);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(14).default)("0290099d",content,!0,{sourceMap:!1})},435:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var o=n(117);var r=n(171);function c(t){return function(t){if(Array.isArray(t))return Object(o.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Object(r.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,n){t.exports=n.p+"img/coupons_img_receive.d691393.png"},440:function(t,e,n){"use strict";n(421)},441:function(t,e,n){var o=n(13),r=n(169),c=n(442),l=n(443),f=o(!1),d=r(c),h=r(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,n){t.exports=n.p+"img/bg_coupon_s.3f57cfd.png"},443:function(t,e,n){t.exports=n.p+"img/bg_coupon.b22691e.png"},445:function(t,e,n){"use strict";n.r(e);n(20),n(16),n(19),n(28),n(29);var o=n(435),r=n(3),c=n(6),l=(n(47),n(404),n(17),n(57),n(10));function f(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}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(r.a)(regeneratorRuntime.mark((function e(){var n,o;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:n=e.sent,o=n.msg,1==n.code&&(t.$message({message:o,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,n){e.isShow=!0,!t.isMore&&n>=4&&(e.isShow=!1)})),this.couponsList=Object(o.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 n=t.map((function(t){return 0}));this.showTips=n,this.list.forEach((function(t,n){t.isShow=!0,e.showMore&&n>=4&&(t.isShow=!1)})),this.couponsList=this.list},immediate:!0,deep:!0}}},v=(n(440),n(8)),component=Object(v.a)(h,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"coupons-list row"},[t._l(t.couponsList,(function(e,r){return[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"item.isShow"}],key:r,staticClass:"item",on:{"!click":function(n){return t.onHandle(e.id)}}},[o("div",{class:["info white",{gray:2==t.type||1==t.type||e.is_get}]},[o("div",{staticClass:"info-hd row"},[o("div",[o("price-formate",{attrs:{price:e.money,"first-size":38,"second-size":38}})],1),t._v(" "),o("div",{staticClass:"ml8 flex1"},[o("div",{staticClass:"line1"},[t._v(t._s(e.name))]),t._v(" "),o("div",{staticClass:"xs line1"},[t._v(t._s(e.use_condition))])])]),t._v(" "),o("div",{staticClass:"info-time xs"},[t._v(t._s(e.use_time_tips))])]),t._v(" "),o("div",{staticClass:"tips row-between",on:{click:function(e){return e.stopPropagation(),t.onShowTips(r)}}},[o("div",{staticClass:"muted xs"},[t._v(t._s(e.coupon_type))]),t._v(" "),e.tips?o("div",[o("i",{class:t.showTips[r]?"el-icon-arrow-up":"el-icon-arrow-down"}),t._v(" "),e.tips&&t.showTips[r]?o("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():o("div",{staticClass:"primary sm"},[t._v("\n 立即领取\n ")])]),t._v(" "),e.is_get?o("img",{staticClass:"receice",attrs:{src:n(439),alt:""}}):t._e(),t._v(" "),4==t.type&&t.id==e.id?o("div",{staticClass:"choose xs"},[t._v("已选择")]):t._e()])]})),t._v(" "),t.showMore&&t.list.length>4?o("div",{staticClass:"more muted",on:{click:t.changeShow}},[t._v("\n "+t._s(t.isMore?"收起":"更多")+"\n "),o("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:n(410).default})},467:function(t,e,n){t.exports=n.p+"img/coupon_null.cdfafae.png"},613:function(t,e,n){"use strict";n.r(e);var o=n(3),r=(n(47),{head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},layout:"user_lauout",asyncData:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var n,o,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$get,e.next=3,n("coupon/myCoupon",{params:{type:0}});case 3:return o=e.sent,data=o.data,e.abrupt("return",{couponsList:data});case 6:case"end":return e.stop()}}),e)})))()},components:{},data:function(){return{active:0,coupons:[{title:"可使用",type:0,list:[],hasData:!0},{title:"已使用",type:1,list:[],hasData:!0},{title:"已过期",type:2,list:[],hasData:!0}]}},methods:{getMyCoupons:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$get("coupon/myCoupon",{params:{type:t.active}});case 2:n=e.sent,data=n.data,1==n.code&&t.changeData(data);case 6:case"end":return e.stop()}}),e)})))()},changeData:function(data){var t=this;this.coupons.some((function(e){if(e.type==t.active)return Object.assign(e,{list:data,hasData:data.length}),!0}))}},watch:{couponsList:{immediate:!0,handler:function(t){this.changeData(t)}}}}),c=n(8),component=Object(c.a)(r,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"user-coupons"},[o("el-tabs",{on:{"tab-click":t.getMyCoupons},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.coupons,(function(t,e){return o("el-tab-pane",{key:e,attrs:{label:t.title}},[t.hasData?o("coupons-list",{attrs:{list:t.list,type:t.type}}):o("null-data",{attrs:{img:n(467),text:"暂无优惠券~"}})],1)})),1)],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{CouponsList:n(445).default,NullData:n(414).default})}}]);