glhcp/server/public/_nuxt/57fc227.js

1 line
14 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[29,5,10,16,18],{488:function(t,e,n){var content=n(491);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(18).default)("d7ac674a",content,!0,{sourceMap:!1})},489:function(t,e,n){"use strict";n.r(e);n(300);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: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)}}},r=(n(490),n(9)),component=Object(r.a)(o,(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},490:function(t,e,n){"use strict";n(488)},491:function(t,e,n){var o=n(17)((function(i){return i[1]}));o.push([t.i,".price-format{align-items:baseline;display:flex}",""]),o.locals={},t.exports=o},492:function(t,e,n){var content=n(494);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(18).default)("1e01d57a",content,!0,{sourceMap:!1})},493:function(t,e,n){"use strict";n(492)},494:function(t,e,n){var o=n(17)((function(i){return i[1]}));o.push([t.i,".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{height:150px;width:150px}",""]),o.locals={},t.exports=o},495: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(493),n(9)),component=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg-white flex-col col-center null-data"},[e("img",{staticClass:"img-null",style:t.imgStyle,attrs:{src:t.img,alt:""}}),t._v(" "),e("div",{staticClass:"muted mt8"},[t._v(t._s(t.text))])])}),[],!1,null,"93598fb0",null);e.default=component.exports},498:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return c}));n(47),n(30),n(64),n(48),n(39),n(20),n(65),n(66),n(49);var o=n(22);n(109),n(63),n(12);var r=function(t){var time=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,e=arguments.length>2?arguments[2]:void 0,n=new Date(0).getTime();return function(){var o=(new Date).getTime();if(o-n>time){for(var r=arguments.length,c=new Array(r),l=0;l<r;l++)c[l]=arguments[l];t.apply(e,c),n=o}}};function c(t){var p="";if("object"==Object(o.a)(t)){for(var e in p="?",t)p+="".concat(e,"=").concat(t[e],"&");p=p.slice(0,-1)}return p}},499:function(t,e,n){var content=n(510);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(18).default)("488d347e",content,!0,{sourceMap:!1})},506:function(t,e,n){"use strict";var o=n(2),r=n(507);o({target:"String",proto:!0,forced:n(508)("link")},{link:function(t){return r(this,"a","href",t)}})},507:function(t,e,n){"use strict";var o=n(4),r=n(36),c=n(19),l=/"/g,d=o("".replace);t.exports=function(t,e,n,o){var f=c(r(t)),h="<"+e;return""!==n&&(h+=" "+n+'="'+d(c(o),l,"&quot;")+'"'),h+">"+f+"</"+e+">"}},508:function(t,e,n){"use strict";var o=n(3);t.exports=function(t){return o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},509:function(t,e,n){"use strict";n(499)},510:function(t,e,n){var o=n(17)((function(i){return i[1]}));o.push([t.i,".ad-item[data-v-368017b1]{cursor:pointer;height:100%;width:100%}",""]),o.locals={},t.exports=o},511:function(t,e,n){"use strict";n.r(e);n(506),n(89);var o=n(498),r={components:{},props:{item:{type:Object,default:function(){return{}}}},methods:{goPage:function(t){var e=t.link_type,link=t.link,n=t.params;if(3===e)window.open(t.link);else["/goods_details"].includes(link)?link+="/".concat(n.id):link+=Object(o.a)(n),this.$router.push({path:link})}}},c=(n(509),n(9)),component=Object(c.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ad-item",on:{click:function(e){return e.stopPropagation(),t.goPage(t.item)}}},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.item.image,fit:"cover"}})],1)}),[],!1,null,"368017b1",null);e.default=component.exports},518:function(t,e,n){var content=n(529);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(18).default)("23f4c996",content,!0,{sourceMap:!1})},523:function(t,e,n){t.exports=n.p+"img/coupons_img_receive.7169d0c.png"},524:function(t,e,n){t.exports=n.p+"img/bg_coupon_s.7cd7066.png"},525:function(t,e,n){t.exports=n.p+"img/bg_coupon.dc72a74.png"},526:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var o=n(145);var r=n(198),c=n(111);function l(t){return function(t){if(Array.isArray(t))return Object(o.a)(t)}(t)||Object(r.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.")}()}},528:function(t,e,n){"use strict";n(518)},529:function(t,e,n){var o=n(17),r=n(196),c=n(524),l=n(525),d=o((function(i){return i[1]})),f=r(c),h=r(l);d.push([t.i,".coupons-list[data-v-4191a6d7]{flex-wrap:wrap;padding:0 18px;position:relative}.coupons-list .item[data-v-4191a6d7]{cursor:pointer;margin-bottom:20px;margin-right:16px;position:relative}.coupons-list .item .info[data-v-4191a6d7]{background:url("+f+") no-repeat;background-size:100%;height:80px;padding:0 10px;width:240px}.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]{background-color:#f2f2f2;height:30px;padding:0 8px;position:relative}.coupons-list .item .tips .tips-con[data-v-4191a6d7]{background-color:#f2f2f2;left:0;padding:10px;position:absolute;top:30px;width:100%;z-index:99}.coupons-list .item .receice[data-v-4191a6d7]{height:45px;position:absolute;right:0;top:0;width:58px}.coupons-list .item .choose[data-v-4191a6d7]{background-color:#ffe72c;color:#ff2c3c;padding:1px 5px;position:absolute;right:0;top:0}.coupons-list .more[data-v-4191a6d7]{bottom:20px;cursor:pointer;position:absolute;right:30px}",""]),d.locals={},t.exports=d},545:function(t,e,n){"use strict";n.r(e);n(30),n(24),n(20),n(23),n(31),n(32);var o=n(526),r=n(8),c=n(10),l=(n(56),n(300),n(12),n(21),n(67),n(14));function d(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 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(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",{coupon_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(528),n(9)),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(o,r){return[e("div",{directives:[{name:"show",rawName:"v-show",value:o.isShow,expression:"item.isShow"}],key:r,staticClass:"item",on:{"!click":function(e){return t.onHandle(o.id,o.is_get)}}},[e("div",{class:["info white",{gray:2==t.type||1==t.type||o.is_get}]},[e("div",{staticClass:"info-hd flex"},[e("div",[e("price-formate",{attrs:{price:o.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(o.name))]),t._v(" "),e("div",{staticClass:"xs line1"},[t._v(t._s(o.condition_type_desc))])])]),t._v(" "),e("div",{staticClass:"info-time xs"},[t._v(t._s(o.user_time_desc))])]),t._v(" "),e("div",{staticClass:"tips flex row-between",on:{click:function(e){return e.stopPropagation(),t.onShowTips(r)}}},[e("div",{staticClass:"muted xs"},[t._v(t._s(o.use_scene_desc))]),t._v(" "),1==o.use_goods_type||1!=t.type&&2!=t.type&&0!=t.type?t._e():e("div",[e("i",{class:t.showTips[r]?"el-icon-arrow-up":"el-icon-arrow-down"}),t._v(" "),"全场通用"!=o.use_scene_desc&&t.showTips[r]?e("div",{staticClass:"tips-con xs lighter"},[t._v("\n "+t._s(o.use_goods_desc)+"\n ")]):t._e()]),t._v(" "),3!=t.type||o.is_get?t._e():e("div",{staticClass:"primary sm"},[t._v("\n 立即领取\n ")])]),t._v(" "),o.is_get?e("img",{staticClass:"receice",attrs:{src:n(523),alt:""}}):t._e(),t._v(" "),4==t.type&&t.id==o.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:n(489).default})},552:function(t,e,n){t.exports=n.p+"img/coupon_null.73b15be.png"},571:function(t,e,n){var content=n(623);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(18).default)("76339ff6",content,!0,{sourceMap:!1})},622:function(t,e,n){"use strict";n(571)},623:function(t,e,n){var o=n(17)((function(i){return i[1]}));o.push([t.i,".get-coupons{padding:16px 0}.get-coupons .coupons{padding:0 14px}.get-coupons .coupons .title{font-size:20px;padding:16px 18px}",""]),o.locals={},t.exports=o},712:function(t,e,n){"use strict";n.r(e);var o=n(8),r=(n(56),{head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},asyncData:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var n,o,data,r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.query,n=t.$get,e.next=3,n("coupon/getCouponList");case 3:return o=e.sent,data=o.data,console.log("datafadadaasd",data),e.next=8,n("ad_content/lists",{params:{pid:27,terminal:2}});case 8:return r=e.sent,c=r.data,e.abrupt("return",{couponList:data.lists,bannerList:c});case 11:case"end":return e.stop()}}),e)})))()},data:function(){return{swiperOptions:{width:1180}}},methods:{getCouponsList: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/getCouponList");case 2:n=e.sent,data=n.data,1==n.code&&(t.couponList=data.lists);case 6:case"end":return e.stop()}}),e)})))()}}}),c=(n(622),n(9)),component=Object(c.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"get-coupons"},[e("div",{staticClass:"help-center-banner"},[e("client-only",[e("swiper",{ref:"mySwiper",attrs:{options:t.swiperOptions}},t._l(t.bannerList,(function(t,n){return e("swiper-slide",{key:n,staticClass:"swiper-item"},[e("ad-item",{attrs:{item:t}})],1)})),1)],1)],1),t._v(" "),e("div",{staticClass:"coupons bg-white"},[e("div",{staticClass:"title weight-500"},[t._v("每日领券")]),t._v(" "),e("div",{staticClass:"list"},[t.couponList.length?e("coupons-list",{attrs:{list:t.couponList,type:3},on:{reflash:t.getCouponsList}}):e("null-data",{attrs:{img:n(552),text:"暂无优惠券~"}})],1)])])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{AdItem:n(511).default,CouponsList:n(545).default,NullData:n(495).default})}}]);