12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d8cbca5"],{1449:function(t,e,a){"use strict";var i=a("f579"),s=a.n(i);s.a},"3ac7":function(t,e,a){t.exports=a.p+"h5/img/videos.5a8e6dc1.png"},"6eaa":function(t,e,a){"use strict";var i=a("9cb7"),s=a.n(i);s.a},7406:function(t,e,a){"use strict";var i=a("b6f6"),s=a.n(i);s.a},"9cb7":function(t,e,a){},a2cd:function(t,e,a){"use strict";var i=a("238a");t.exports=function(t,e){return!!t&&i((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},acb3:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAABLCAYAAAAPgLXeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZ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){},c5f8:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"slider-banner product-bg"},[t.imgUrls.length>0?i("swiper",{ref:"mySwiper",staticClass:"swiper-wrapper",attrs:{options:t.ProductConSwiper}},t._l(t.imgUrls,(function(e,s){return i("swiper-slide",{key:s,ref:"goodSwiper",refInFor:!0,staticClass:"swiper-slide"},[i("div",{staticClass:"slide-image",style:{background:"url("+e+") no-repeat center center","background-size":"100% 100%"}},[t.videolines&&0===s?i("img",{staticClass:"video_play",attrs:{src:a("3ac7")}}):t._e()])])})),1):t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isOnPlay,expression:"isOnPlay"}],staticClass:"videoBox"},[i("video",{ref:"videoIds",staticClass:"video-source",staticStyle:{width:"100%","object-fit":"fill"},attrs:{poster:t.imgUrls[0],loop:"",controls:"",preload:"auto","x-webkit-airplay":"true","x5-video-player-fullscreen":"true","x5-video-orientation":"portraint","x5-video-player-type":"",src:t.videolines},on:{pause:t.endVideo}},[t._v("\n 您的浏览器可能不支持视频播放\n ")])]),i("div",{staticClass:"pages"},[t._v(t._s(t.currents||1)+"/"+t._s(t.imgUrls.length||1))])],1)},s=[],n=a("6fe8"),r=(a("e5d0"),null),o={name:"ProductConSwiper",components:{swiper:n["swiper"],swiperSlide:n["swiperSlide"]},props:{imgUrls:{type:Array,default:function(){return[]}},videoline:{type:String,default:function(){return""}}},watch:{videoline:{handler:function(t){this.videolines=t},deep:!0}},data:function(){var t=this;return{videolines:this.videoline,mobile:"",isOnPlay:!1,currents:1,ProductConSwiper:{loop:!0,speed:1e3,observer:!0,observeParents:!0,autoplayDisableOnInteraction:!1,on:{slideChangeTransitionStart:function(){if(t.currents=this.realIndex+1,"iPhone"===t.mobile){var e=t.$refs.videoIds;e.pause()}},tap:function(){var t=this.realIndex;0===t&&r.videoPlay()}}}}},computed:{swiper:function(){return this.$refs.mySwiper.swiper}},mounted:function(){},created:function(){r=this,-1!==navigator.platform.indexOf("Win")&&(this.mobile="iPhone")},methods:{endVideo:function(){this.isOnPlay=!1;var t=this.$refs.videoIds;t.pause()},videoPlay:function(){if(this.videolines){this.isOnPlay=!0;var t=this.$refs.videoIds;t.play()}}}},c=o,l=(a("1449"),a("623f")),u=Object(l["a"])(c,i,s,!1,null,"221a31e0",null);e["a"]=u.exports},c6da:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"product-window group-con",class:!0===t.attr.cartAttr?"on":"",style:"padding-bottom:"+(t.isShowBtn?"0":"")},[a("div",{staticClass:"textpic acea-row row-between-wrapper"},[a("div",{staticClass:"pictrue"},[a("img",{staticClass:"image",attrs:{src:t.attr.productSelect.image}})]),a("div",{staticClass:"text"},[a("div",{staticClass:"line1"},[t._v("\n "+t._s(t.attr.productSelect.store_name)+"\n ")]),a("div",{staticClass:"money font-color-red"},[t._v("\n ¥"),a("span",{staticClass:"num"},[t._v(t._s(t.attr.productSelect.price))]),t.isShow?a("span",{staticClass:"stock"},[t._v("\n 库存: "+t._s(t.attr.productSelect.stock)+"\n ")]):a("span",{staticClass:"stock"},[t._v("\n 限量:\n "+t._s(t.attr.productSelect.quota_show?t.attr.productSelect.quota_show:0)+"\n ")])])]),a("div",{staticClass:"iconfont icon-guanbi",on:{click:t.closeAttr}})]),a("div",{staticClass:"productWinList"},t._l(t.attr.productAttr,(function(e,i){return a("div",{key:i,staticClass:"item"},[a("div",{staticClass:"title"},[t._v(t._s(e.attr_name))]),a("div",{staticClass:"listn acea-row row-middle"},t._l(e.attr_value,(function(s,n){return a("div",{key:n,staticClass:"itemn",class:e.index===s.attr?"on":"",on:{click:function(e){return t.tapAttr(i,s.attr)}}},[t._v("\n "+t._s(s.attr)+"\n ")])})),0)])})),0),a("div",{staticClass:"cart"},[a("div",{staticClass:"title"},[t._v("数量")]),a("div",{staticClass:"carnum acea-row row-left"},[a("div",{staticClass:"item reduce",class:t.attr.productSelect.cart_num<=1?"on":"",on:{click:t.CartNumDes}},[t._v("\n -\n ")]),a("div",{staticClass:"item num"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.attr.productSelect.cart_num,expression:"attr.productSelect.cart_num"}],staticClass:"ipt_num",attrs:{type:"number"},domProps:{value:t.attr.productSelect.cart_num},on:{input:function(e){e.target.composing||t.$set(t.attr.productSelect,"cart_num",e.target.value)}}})]),a("div",{staticClass:"item plus",class:t.attr.productSelect.cart_num>=t.attr.productSelect.stock?"on":"",on:{click:t.CartNumAdd}},[t._v("\n +\n ")])])]),t.isShowBtn?a("div",{staticClass:"wrapper"},[t.attr.productSelect.quota>0?a("div",{staticClass:"teamBnt bg-color-red",on:{click:t.openAlone}},[t._v("\n 立即参团\n ")]):a("div",{staticClass:"teamBnt bg-color-hui"},[t._v("已售罄")])]):t._e()]),a("div",{staticClass:"mask",attrs:{hidden:!1===t.attr.cartAttr},on:{touchmove:function(t){t.preventDefault()},click:t.closeAttr}})])},s=[],n=(a("c904"),{name:"ProductWindow",props:{attr:{type:Object,default:function(){}}},data:function(){return{}},computed:{isShow:function(){return 1===this.$route.path.indexOf("detail")},isShowBtn:function(){return-1!=this.$route.path.indexOf("group_rule")}},mounted:function(){},methods:{openAlone:function(){this.$emit("changeFun",{action:"goPay",value:!1})},closeAttr:function(){this.$emit("changeFun",{action:"changeattr",value:!1})},CartNumDes:function(){this.$emit("changeFun",{action:"ChangeCartNum",value:!1})},CartNumAdd:function(){this.$emit("changeFun",{action:"ChangeCartNum",value:1})},tapAttr:function(t,e){var a=this;if(a.attr.productSelect.quota>0){a.attr.productAttr[t].index=e;var i=a.getCheckedValue().sort().join(",");a.$emit("changeFun",{action:"ChangeAttr",value:i})}},getCheckedValue:function(){for(var t=this.attr.productAttr,e=[],a=0;a<t.length;a++)for(var i=0;i<t[a].attr_value.length;i++)t[a].index===t[a].attr_value[i].attr&&e.push(t[a].attr_value[i].attr);return e}}}),r=n,o=(a("6eaa"),a("623f")),c=Object(o["a"])(r,i,s,!1,null,"334e6857",null);e["a"]=c.exports},c904:function(t,e,a){"use strict";var i=a("e46b"),s=a("5daa"),n=a("008a"),r=a("238a"),o=[].sort,c=[1,2,3];i(i.P+i.F*(r((function(){c.sort(void 0)}))||!r((function(){c.sort(null)}))||!a("a2cd")(o)),"Array",{sort:function(t){return void 0===t?o.call(n(this)):o.call(n(this),s(t))}})},cbd6:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.posterImageStatus?i("div",{staticClass:"poster-first"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!t.canvasStatus&&t.posterImage,expression:"!canvasStatus && posterImage"}],staticClass:"poster-pop"},[i("img",{staticClass:"close",attrs:{src:a("acb3")},on:{click:t.posterImageClose}}),i("img",{ref:"conf0",staticClass:"poster-image",attrs:{src:t.posterImage,alt:"tp",id:"scream"}}),i("div",{staticClass:"keep"},[t._v("长按图片可以保存到手机")])]),i("div",{staticClass:"mask",on:{touchmove:function(t){t.preventDefault()},click:t.posterImageClose}}),i("div",{staticClass:"canvasBox"},[i("canvas",{ref:"myCanvas",attrs:{width:"240",height:"412"}})])]):t._e()},s=[],n={name:"StorePoster",props:{posterImageStatus:Boolean,posterData:Object},data:function(){return{canvasStatus:!1,posterImage:""}},watch:{posterImageStatus:function(){var t=this;!0===t.posterImageStatus&&t.$nextTick((function(){t.savePosterPath()}))}},mounted:function(){},methods:{posterImageClose:function(){this.posterImageStatus=!1,this.canvasStatus=!1,this.$emit("setPosterImageStatus")},savePosterPath:function(){this.$dialog.loading.open(),this.setHtml2Canvas()},setHtml2Canvas:function(){for(var t=this,e=this.$refs.myCanvas,a=e.getContext("2d"),i=a.getImageData(0,0,e.width,e.height),s=0;s<i.data.length;s+=4)0==i.data[s+3]&&(i.data[s]=255,i.data[s+1]=255,i.data[s+2]=255,i.data[s+3]=255);a.putImageData(i,0,0);var n=new Image,r=225;n.onload=function(){a.drawImage(n,0,0,240,r)},n.src=this.posterData.image,a.font="14px PingFang-SC-Medium",a.fillStyle="#282828";var o=this.posterData.title,c=260,l=a.measureText(o).width;this.canvasTextAutoLine(o,e,10,c,20,225,2),a.font="16px PingFang-SC-Heavy",a.fillStyle="#DF2D0A";var u=0;u=l<220?c+30:c+45,a.textAlign="center",a.fillText("¥"+this.posterData.price,120,u);var d=new Image,p=u+10;d.onload=function(){a.drawImage(d,10,p,75,75)},d.src=this.posterData.code,a.font="12px Arial",a.fillStyle="#282828",a.textAlign="left";var v=p+37.5;a.fillText("长按识别二维码 立即购买",90,v),setTimeout((function(){t.posterImage=e.toDataURL(),t.$dialog.loading.close()}),500)},canvasTextAutoLine:function(t,e,a,i,s,n,r){for(var o=e.getContext("2d"),c=0,l=0,u=s,d=i,p=0;p<t.length;p++){if(c+=o.measureText(t[p]).width,c>n-a){if(i>=d+u*(r-1))return void o.fillText(t.substring(l,p-1)+"...",a,i);o.fillText(t.substring(l,p),a,i),i+=s,c=0,l=p}p==t.length-1&&o.fillText(t.substring(l,p+1),a,i)}}}},r=n,o=(a("7406"),a("623f")),c=Object(o["a"])(r,i,s,!1,null,"15b57016",null);e["a"]=c.exports},f579:function(t,e,a){}}]);
- //# sourceMappingURL=chunk-3d8cbca5.ee4147cf.js.map
|