chunk-3d8cbca5.ee4147cf.js.map 45 KB

1
  1. {"version":3,"sources":["webpack:///./src/components/ProductConSwiper.vue?ad0e","webpack:///./src/assets/images/videos.png","webpack:///./src/components/ProductWindow.vue?357a","webpack:///./src/components/StorePoster.vue?7b4d","webpack:///./node_modules/_core-js@2.6.11@core-js/modules/_strict-method.js","webpack:///./src/assets/images/poster-close.png","webpack:///./src/components/ProductConSwiper.vue?be20","webpack:///src/components/ProductConSwiper.vue","webpack:///./src/components/ProductConSwiper.vue?f864","webpack:///./src/components/ProductConSwiper.vue","webpack:///./src/components/ProductWindow.vue?2000","webpack:///src/components/ProductWindow.vue","webpack:///./src/components/ProductWindow.vue?a4e7","webpack:///./src/components/ProductWindow.vue","webpack:///./node_modules/_core-js@2.6.11@core-js/modules/es6.array.sort.js","webpack:///./src/components/StorePoster.vue?19ae","webpack:///src/components/StorePoster.vue","webpack:///./src/components/StorePoster.vue?584e","webpack:///./src/components/StorePoster.vue"],"names":["module","exports","fails","method","arg","call","render","_vm","this","_h","$createElement","_c","_self","staticClass","imgUrls","length","ref","attrs","ProductConSwiper","_l","item","index","key","refInFor","style","background","videolines","_e","directives","name","rawName","value","expression","staticStyle","on","endVideo","_v","_s","currents","staticRenderFns","components","swiper","swiperSlide","props","type","Array","default","videoline","String","watch","handler","newName","deep","data","mobile","isOnPlay","loop","speed","observer","observeParents","autoplayDisableOnInteraction","slideChangeTransitionStart","that","realIndex","oDiv","pause","tap","vm","videoPlay","computed","$refs","mySwiper","mounted","created","navigator","platform","indexOf","methods","play","component","class","attr","cartAttr","isShowBtn","productSelect","image","store_name","price","stock","quota_show","closeAttr","indexw","attr_name","itemn","indexn","$event","tapAttr","cart_num","CartNumDes","domProps","target","composing","$set","CartNumAdd","quota","openAlone","preventDefault","Object","isShow","$route","path","$emit","productAttr","getCheckedValue","i","attr_value","j","push","$export","aFunction","toObject","$sort","sort","test","P","F","undefined","comparefn","canvasStatus","posterImage","posterImageClose","posterImageStatus","Boolean","posterData","$nextTick","savePosterPath","$dialog","loading","open","setHtml2Canvas","c","myCanvas","ctx","getContext","imageData","getImageData","width","height","putImageData","img","Image","onload","drawImage","imgY","src","font","fillStyle","str","title","initHeight","canvasTextAutoLine","textY","fontWidth","textAlign","fillText","screamsCode","codeY","code","fontY","setTimeout","canvas","lineWidth","lastSubStrIndex","beginLineHeight","lineHeight","beginY","initY","measureText","canvasWidth","initX","lines","substring"],"mappings":"gHAAA,yBAA6mB,EAAG,G,uBCAhnBA,EAAOC,QAAU,IAA0B,8B,oCCA3C,yBAA0mB,EAAG,G,kCCA7mB,yBAAwmB,EAAG,G,2DCC3mB,IAAIC,EAAQ,EAAQ,QAEpBF,EAAOC,QAAU,SAAUE,EAAQC,GACjC,QAASD,GAAUD,GAAM,WAEvBE,EAAMD,EAAOE,KAAK,MAAM,cAA6B,GAAKF,EAAOE,KAAK,W,mBCN1EL,EAAOC,QAAU,kzF,yDCAjB,IAAIK,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,4BAA4B,CAAEN,EAAIO,QAAQC,OAAS,EAAGJ,EAAG,SAAS,CAACK,IAAI,WAAWH,YAAY,iBAAiBI,MAAM,CAAC,QAAUV,EAAIW,mBAAmBX,EAAIY,GAAIZ,EAAW,SAAE,SAASa,EAAKC,GAAO,OAAOV,EAAG,eAAe,CAACW,IAAID,EAAML,IAAI,aAAaO,UAAS,EAAKV,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,cAAcW,MAAM,CACvbC,WAAY,OAASL,EAAO,4BAC5B,kBAAmB,cACjB,CAAEb,EAAImB,YAAwB,IAAVL,EAAaV,EAAG,MAAM,CAACE,YAAY,aAAaI,MAAM,CAAC,IAAM,EAAQ,WAAkCV,EAAIoB,YAAW,GAAGpB,EAAIoB,KAAKhB,EAAG,MAAM,CAACiB,WAAW,CAAC,CAACC,KAAK,OAAO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3C,IAAIgC,MACjCyB,EAAYO,EAAcC,EAAO,CAEnC,GAAIH,GAASD,EAASF,GAAmBO,EAAQ,GAM/C,YALAtC,EAAIsB,SAChB,yBACA,EACA,GAIYtB,EAAIsB,SAASP,EAAIwB,UAAUT,EAAiB1D,GAAIiE,EAAOH,GACvDA,GAASF,EACTH,EAAY,EACZC,EAAkB1D,EAGlBA,GAAK2C,EAAI9I,OAAS,GACpB+H,EAAIsB,SAASP,EAAIwB,UAAUT,EAAiB1D,EAAI,GAAIiE,EAAOH,OChKoX,I,wBCQrbjG,EAAY,eACd,EACAzE,EACAiC,GACA,EACA,KACA,WACA,MAIa,OAAAwC,E","file":"h5/js/chunk-3d8cbca5.ee4147cf.js","sourcesContent":["import mod from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./ProductConSwiper.vue?vue&type=style&index=0&id=221a31e0&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./ProductConSwiper.vue?vue&type=style&index=0&id=221a31e0&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"h5/img/videos.5a8e6dc1.png\";","import mod from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./ProductWindow.vue?vue&type=style&index=0&id=334e6857&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./ProductWindow.vue?vue&type=style&index=0&id=334e6857&scoped=true&lang=css&\"","import mod from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./StorePoster.vue?vue&type=style&index=0&id=15b57016&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./StorePoster.vue?vue&type=style&index=0&id=15b57016&scoped=true&lang=css&\"","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAABLCAYAAAAPgLXeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8v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EQWNf6QjPgYBenNAgaU9nLUOfAAPQYVlWZ91tGdxHCQmg6K7c6QlBf5TM8KNcCPcCDfCjXAj3Ag3wo1wI9wIN8KNcCPcCDfCjXAjPKb2R4ABAP1fyHzQ0oCyAAAAAElFTkSuQmCC\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"slider-banner product-bg\"},[(_vm.imgUrls.length > 0)?_c('swiper',{ref:\"mySwiper\",staticClass:\"swiper-wrapper\",attrs:{\"options\":_vm.ProductConSwiper}},_vm._l((_vm.imgUrls),function(item,index){return _c('swiper-slide',{key:index,ref:\"goodSwiper\",refInFor:true,staticClass:\"swiper-slide\"},[_c('div',{staticClass:\"slide-image\",style:({\n background: 'url(' + item + ') no-repeat center center',\n 'background-size': '100% 100%'\n })},[(_vm.videolines && index === 0)?_c('img',{staticClass:\"video_play\",attrs:{\"src\":require(\"../assets/images/videos.png\")}}):_vm._e()])])}),1):_vm._e(),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isOnPlay),expression:\"isOnPlay\"}],staticClass:\"videoBox\"},[_c('video',{ref:\"videoIds\",staticClass:\"video-source\",staticStyle:{\"width\":\"100%\",\"object-fit\":\"fill\"},attrs:{\"poster\":_vm.imgUrls[0],\"loop\":\"\",\"controls\":\"\",\"preload\":\"auto\",\"x-webkit-airplay\":\"true\",\"x5-video-player-fullscreen\":\"true\",\"x5-video-orientation\":\"portraint\",\"x5-video-player-type\":\"\",\"src\":_vm.videolines},on:{\"pause\":_vm.endVideo}},[_vm._v(\"\\n 您的浏览器可能不支持视频播放\\n \")])]),_c('div',{staticClass:\"pages\"},[_vm._v(_vm._s(_vm.currents || 1)+\"/\"+_vm._s(_vm.imgUrls.length || 1))])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"slider-banner product-bg\">\r\n <swiper\r\n class=\"swiper-wrapper\"\r\n :options=\"ProductConSwiper\"\r\n v-if=\"imgUrls.length > 0\"\r\n ref=\"mySwiper\"\r\n >\r\n <swiper-slide\r\n class=\"swiper-slide\"\r\n v-for=\"(item, index) in imgUrls\"\r\n :key=\"index\"\r\n ref=\"goodSwiper\"\r\n >\r\n <div\r\n class=\"slide-image\"\r\n :style=\"{\r\n background: 'url(' + item + ') no-repeat center center',\r\n 'background-size': '100% 100%'\r\n }\"\r\n >\r\n <img\r\n src=\"../assets/images/videos.png\"\r\n class=\"video_play\"\r\n v-if=\"videolines && index === 0\"\r\n />\r\n </div>\r\n </swiper-slide>\r\n </swiper>\r\n <!--<div :class=\"mobile === 'iPhone' ? 'videoBox' : ''\" v-show=\"isOnPlay\">-->\r\n <div class=\"videoBox\" v-show=\"isOnPlay\">\r\n <video\r\n ref=\"videoIds\"\r\n :poster=\"imgUrls[0]\"\r\n class=\"video-source\"\r\n loop=\"\"\r\n controls\r\n style=\"width:100%;object-fit:fill\"\r\n preload=\"auto\"\r\n x-webkit-airplay=\"true\"\r\n x5-video-player-fullscreen=\"true\"\r\n x5-video-orientation=\"portraint\"\r\n x5-video-player-type=\"\"\r\n :src=\"videolines\"\r\n @pause=\"endVideo\"\r\n >\r\n 您的浏览器可能不支持视频播放\r\n </video>\r\n </div>\r\n <div class=\"pages\">{{ currents || 1 }}/{{ imgUrls.length || 1 }}</div>\r\n </div>\r\n</template>\r\n<script>\r\nimport { swiper, swiperSlide } from \"vue-awesome-swiper\";\r\nimport \"@assets/css/swiper.min.css\";\r\nlet vm = null;\r\nexport default {\r\n name: \"ProductConSwiper\",\r\n components: {\r\n swiper,\r\n swiperSlide\r\n },\r\n props: {\r\n imgUrls: {\r\n type: Array,\r\n default: () => []\r\n },\r\n videoline: {\r\n type: String,\r\n default: () => \"\"\r\n }\r\n },\r\n watch: {\r\n videoline: {\r\n handler(newName) {\r\n this.videolines = newName;\r\n },\r\n deep: true\r\n }\r\n },\r\n data: function() {\r\n let that = this;\r\n return {\r\n videolines: this.videoline,\r\n mobile: \"\",\r\n isOnPlay: false,\r\n currents: 1,\r\n ProductConSwiper: {\r\n // autoplay: {\r\n // disableOnInteraction: false,\r\n // delay: 2000\r\n // },\r\n loop: true,\r\n speed: 1000,\r\n observer: true,\r\n observeParents: true,\r\n autoplayDisableOnInteraction: false, // 这样,即使我们滑动之后, 定时器也不会被清除\r\n on: {\r\n slideChangeTransitionStart: function() {\r\n that.currents = this.realIndex + 1;\r\n if (that.mobile === \"iPhone\") {\r\n const oDiv = that.$refs.videoIds;\r\n oDiv.pause();\r\n }\r\n },\r\n tap: function() {\r\n const realIndex = this.realIndex;\r\n if (realIndex === 0) {\r\n vm.videoPlay();\r\n }\r\n }\r\n }\r\n }\r\n };\r\n },\r\n computed: {\r\n swiper() {\r\n return this.$refs.mySwiper.swiper;\r\n }\r\n },\r\n mounted: function() {},\r\n created() {\r\n vm = this;\r\n if (navigator.platform.indexOf(\"Win\") !== -1) this.mobile = \"iPhone\";\r\n },\r\n methods: {\r\n endVideo() {\r\n this.isOnPlay = false;\r\n const oDiv = this.$refs.videoIds;\r\n oDiv.pause();\r\n },\r\n videoPlay() {\r\n if (this.videolines) {\r\n this.isOnPlay = true;\r\n const oDiv = this.$refs.videoIds;\r\n oDiv.play();\r\n }\r\n }\r\n }\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.videoBox {\r\n position: fixed;\r\n z-index: 999;\r\n top: 0;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.videoBox video {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.video-source {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.video_play {\r\n position: absolute;\r\n width: 1rem;\r\n height: 1rem;\r\n left: 45%;\r\n top: 45%;\r\n z-index: 11;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./ProductConSwiper.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./ProductConSwiper.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProductConSwiper.vue?vue&type=template&id=221a31e0&scoped=true&\"\nimport script from \"./ProductConSwiper.vue?vue&type=script&lang=js&\"\nexport * from \"./ProductConSwiper.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProductConSwiper.vue?vue&type=style&index=0&id=221a31e0&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"221a31e0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"product-window group-con\",class:_vm.attr.cartAttr === true ? 'on' : '',style:('padding-bottom:' + (_vm.isShowBtn ? '0' : ''))},[_c('div',{staticClass:\"textpic acea-row row-between-wrapper\"},[_c('div',{staticClass:\"pictrue\"},[_c('img',{staticClass:\"image\",attrs:{\"src\":_vm.attr.productSelect.image}})]),_c('div',{staticClass:\"text\"},[_c('div',{staticClass:\"line1\"},[_vm._v(\"\\n \"+_vm._s(_vm.attr.productSelect.store_name)+\"\\n \")]),_c('div',{staticClass:\"money font-color-red\"},[_vm._v(\"\\n ¥\"),_c('span',{staticClass:\"num\"},[_vm._v(_vm._s(_vm.attr.productSelect.price))]),(_vm.isShow)?_c('span',{staticClass:\"stock\"},[_vm._v(\"\\n 库存: \"+_vm._s(_vm.attr.productSelect.stock)+\"\\n \")]):_c('span',{staticClass:\"stock\"},[_vm._v(\"\\n 限量:\\n \"+_vm._s(_vm.attr.productSelect.quota_show\n ? _vm.attr.productSelect.quota_show\n : 0)+\"\\n \")])])]),_c('div',{staticClass:\"iconfont icon-guanbi\",on:{\"click\":_vm.closeAttr}})]),_c('div',{staticClass:\"productWinList\"},_vm._l((_vm.attr.productAttr),function(item,indexw){return _c('div',{key:indexw,staticClass:\"item\"},[_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(item.attr_name))]),_c('div',{staticClass:\"listn acea-row row-middle\"},_vm._l((item.attr_value),function(itemn,indexn){return _c('div',{key:indexn,staticClass:\"itemn\",class:item.index === itemn.attr ? 'on' : '',on:{\"click\":function($event){return _vm.tapAttr(indexw, itemn.attr)}}},[_vm._v(\"\\n \"+_vm._s(itemn.attr)+\"\\n \")])}),0)])}),0),_c('div',{staticClass:\"cart\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"数量\")]),_c('div',{staticClass:\"carnum acea-row row-left\"},[_c('div',{staticClass:\"item reduce\",class:_vm.attr.productSelect.cart_num <= 1 ? 'on' : '',on:{\"click\":_vm.CartNumDes}},[_vm._v(\"\\n -\\n \")]),_c('div',{staticClass:\"item num\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.attr.productSelect.cart_num),expression:\"attr.productSelect.cart_num\"}],staticClass:\"ipt_num\",attrs:{\"type\":\"number\"},domProps:{\"value\":(_vm.attr.productSelect.cart_num)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.attr.productSelect, \"cart_num\", $event.target.value)}}})]),_c('div',{staticClass:\"item plus\",class:_vm.attr.productSelect.cart_num >= _vm.attr.productSelect.stock\n ? 'on'\n : '',on:{\"click\":_vm.CartNumAdd}},[_vm._v(\"\\n +\\n \")])])]),(_vm.isShowBtn)?_c('div',{staticClass:\"wrapper\"},[(_vm.attr.productSelect.quota > 0)?_c('div',{staticClass:\"teamBnt bg-color-red\",on:{\"click\":_vm.openAlone}},[_vm._v(\"\\n 立即参团\\n \")]):_c('div',{staticClass:\"teamBnt bg-color-hui\"},[_vm._v(\"已售罄\")])]):_vm._e()]),_c('div',{staticClass:\"mask\",attrs:{\"hidden\":_vm.attr.cartAttr === false},on:{\"touchmove\":function($event){$event.preventDefault();},\"click\":_vm.closeAttr}})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <div\r\n class=\"product-window group-con\"\r\n :class=\"attr.cartAttr === true ? 'on' : ''\"\r\n :style=\"'padding-bottom:' + (isShowBtn ? '0' : '')\"\r\n >\r\n <div class=\"textpic acea-row row-between-wrapper\">\r\n <div class=\"pictrue\">\r\n <img :src=\"attr.productSelect.image\" class=\"image\" />\r\n </div>\r\n <div class=\"text\">\r\n <div class=\"line1\">\r\n {{ attr.productSelect.store_name }}\r\n </div>\r\n <div class=\"money font-color-red\">\r\n ¥<span class=\"num\">{{ attr.productSelect.price }}</span>\r\n <span class=\"stock\" v-if=\"isShow\">\r\n 库存: {{ attr.productSelect.stock }}\r\n </span>\r\n <span class=\"stock\" v-else>\r\n 限量:\r\n {{\r\n attr.productSelect.quota_show\r\n ? attr.productSelect.quota_show\r\n : 0\r\n }}\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"iconfont icon-guanbi\" @click=\"closeAttr\"></div>\r\n </div>\r\n <div class=\"productWinList\">\r\n <div\r\n class=\"item\"\r\n v-for=\"(item, indexw) in attr.productAttr\"\r\n :key=\"indexw\"\r\n >\r\n <div class=\"title\">{{ item.attr_name }}</div>\r\n <div class=\"listn acea-row row-middle\">\r\n <div\r\n class=\"itemn\"\r\n :class=\"item.index === itemn.attr ? 'on' : ''\"\r\n v-for=\"(itemn, indexn) in item.attr_value\"\r\n @click=\"tapAttr(indexw, itemn.attr)\"\r\n :key=\"indexn\"\r\n >\r\n {{ itemn.attr }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"cart\">\r\n <div class=\"title\">数量</div>\r\n <div class=\"carnum acea-row row-left\">\r\n <div\r\n class=\"item reduce\"\r\n :class=\"attr.productSelect.cart_num <= 1 ? 'on' : ''\"\r\n @click=\"CartNumDes\"\r\n >\r\n -\r\n </div>\r\n <div class=\"item num\">\r\n <input\r\n type=\"number\"\r\n v-model=\"attr.productSelect.cart_num\"\r\n class=\"ipt_num\"\r\n />\r\n </div>\r\n <div\r\n class=\"item plus\"\r\n :class=\"\r\n attr.productSelect.cart_num >= attr.productSelect.stock\r\n ? 'on'\r\n : ''\r\n \"\r\n @click=\"CartNumAdd\"\r\n >\r\n +\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"wrapper\" v-if=\"isShowBtn\">\r\n <div\r\n class=\"teamBnt bg-color-red\"\r\n @click=\"openAlone\"\r\n v-if=\"attr.productSelect.quota > 0\"\r\n >\r\n 立即参团\r\n </div>\r\n <div class=\"teamBnt bg-color-hui\" v-else>已售罄</div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mask\"\r\n @touchmove.prevent\r\n :hidden=\"attr.cartAttr === false\"\r\n @click=\"closeAttr\"\r\n ></div>\r\n </div>\r\n</template>\r\n<script>\r\nexport default {\r\n name: \"ProductWindow\",\r\n props: {\r\n attr: {\r\n type: Object,\r\n default: () => {}\r\n }\r\n },\r\n data: function() {\r\n return {};\r\n },\r\n computed: {\r\n isShow() {\r\n return this.$route.path.indexOf(\"detail\") === 1;\r\n },\r\n isShowBtn() {\r\n return this.$route.path.indexOf(\"group_rule\") != -1;\r\n }\r\n },\r\n mounted: function() {},\r\n methods: {\r\n openAlone() {\r\n this.$emit(\"changeFun\", { action: \"goPay\", value: false });\r\n },\r\n closeAttr: function() {\r\n this.$emit(\"changeFun\", { action: \"changeattr\", value: false });\r\n },\r\n CartNumDes: function() {\r\n this.$emit(\"changeFun\", { action: \"ChangeCartNum\", value: false });\r\n },\r\n CartNumAdd: function() {\r\n this.$emit(\"changeFun\", { action: \"ChangeCartNum\", value: 1 });\r\n },\r\n tapAttr: function(indexw, indexn) {\r\n let that = this;\r\n if (that.attr.productSelect.quota > 0) {\r\n that.attr.productAttr[indexw].index = indexn;\r\n let value = that\r\n .getCheckedValue()\r\n .sort()\r\n .join(\",\");\r\n that.$emit(\"changeFun\", { action: \"ChangeAttr\", value: value });\r\n }\r\n },\r\n //获取被选中属性;\r\n getCheckedValue: function() {\r\n let productAttr = this.attr.productAttr;\r\n let value = [];\r\n for (let i = 0; i < productAttr.length; i++) {\r\n for (let j = 0; j < productAttr[i].attr_value.length; j++) {\r\n if (productAttr[i].index === productAttr[i].attr_value[j].attr) {\r\n value.push(productAttr[i].attr_value[j].attr);\r\n }\r\n }\r\n }\r\n return value;\r\n }\r\n }\r\n};\r\n</script>\r\n<style scoped>\r\n.joinCart {\r\n width: 80%;\r\n height: 0.76rem;\r\n line-height: 0.76rem;\r\n text-align: center;\r\n}\r\n.ipt_num {\r\n width: 100%;\r\n display: block;\r\n line-height: 0.54rem;\r\n text-align: center;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./ProductWindow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./ProductWindow.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProductWindow.vue?vue&type=template&id=334e6857&scoped=true&\"\nimport script from \"./ProductWindow.vue?vue&type=script&lang=js&\"\nexport * from \"./ProductWindow.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProductWindow.vue?vue&type=style&index=0&id=334e6857&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"334e6857\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar $export = require('./_export');\nvar aFunction = require('./_a-function');\nvar toObject = require('./_to-object');\nvar fails = require('./_fails');\nvar $sort = [].sort;\nvar test = [1, 2, 3];\n\n$export($export.P + $export.F * (fails(function () {\n // IE8-\n test.sort(undefined);\n}) || !fails(function () {\n // V8 bug\n test.sort(null);\n // Old WebKit\n}) || !require('./_strict-method')($sort)), 'Array', {\n // 22.1.3.25 Array.prototype.sort(comparefn)\n sort: function sort(comparefn) {\n return comparefn === undefined\n ? $sort.call(toObject(this))\n : $sort.call(toObject(this), aFunction(comparefn));\n }\n});\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.posterImageStatus)?_c('div',{staticClass:\"poster-first\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.canvasStatus && _vm.posterImage),expression:\"!canvasStatus && posterImage\"}],staticClass:\"poster-pop\"},[_c('img',{staticClass:\"close\",attrs:{\"src\":require(\"@assets/images/poster-close.png\")},on:{\"click\":_vm.posterImageClose}}),_c('img',{ref:\"conf0\",staticClass:\"poster-image\",attrs:{\"src\":_vm.posterImage,\"alt\":\"tp\",\"id\":\"scream\"}}),_c('div',{staticClass:\"keep\"},[_vm._v(\"长按图片可以保存到手机\")])]),_c('div',{staticClass:\"mask\",on:{\"touchmove\":function($event){$event.preventDefault();},\"click\":_vm.posterImageClose}}),_c('div',{staticClass:\"canvasBox\"},[_c('canvas',{ref:\"myCanvas\",attrs:{\"width\":\"240\",\"height\":\"412\"}})])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div v-if=\"posterImageStatus\" class=\"poster-first\">\r\n <!--<div class=\"poster-pop\" v-show=\"!canvasStatus\">-->\r\n <!--<img-->\r\n <!--src=\"@assets/images/poster-close.png\"-->\r\n <!--class=\"close\"-->\r\n <!--@click=\"posterImageClose\"-->\r\n <!--/>-->\r\n <!--</div>-->\r\n <div class=\"poster-pop\" v-show=\"!canvasStatus && posterImage\">\r\n <img\r\n src=\"@assets/images/poster-close.png\"\r\n class=\"close\"\r\n @click=\"posterImageClose\"\r\n />\r\n <img\r\n :src=\"posterImage\"\r\n ref=\"conf0\"\r\n alt=\"tp\"\r\n class=\"poster-image\"\r\n id=\"scream\"\r\n />\r\n <div class=\"keep\">长按图片可以保存到手机</div>\r\n </div>\r\n <div class=\"mask\" @touchmove.prevent @click=\"posterImageClose\"></div>\r\n <div class=\"canvasBox\">\r\n <canvas ref=\"myCanvas\" width=\"240\" height=\"412\"></canvas>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nexport default {\r\n name: \"StorePoster\",\r\n props: {\r\n posterImageStatus: Boolean,\r\n posterData: Object\r\n },\r\n data: function() {\r\n return {\r\n canvasStatus: false,\r\n posterImage: \"\"\r\n };\r\n },\r\n watch: {\r\n posterImageStatus: function() {\r\n let that = this;\r\n if (that.posterImageStatus === true) {\r\n that.$nextTick(function() {\r\n that.savePosterPath();\r\n });\r\n }\r\n }\r\n },\r\n mounted: function() {},\r\n methods: {\r\n posterImageClose: function() {\r\n this.posterImageStatus = false;\r\n this.canvasStatus = false;\r\n this.$emit(\"setPosterImageStatus\");\r\n },\r\n savePosterPath: function() {\r\n this.$dialog.loading.open();\r\n this.setHtml2Canvas();\r\n },\r\n setHtml2Canvas: function() {\r\n var c = this.$refs.myCanvas;\r\n var ctx = c.getContext(\"2d\");\r\n var imageData = ctx.getImageData(0, 0, c.width, c.height);\r\n for (var i = 0; i < imageData.data.length; i += 4) {\r\n // 当该像素是透明的,则设置成白色\r\n if (imageData.data[i + 3] == 0) {\r\n imageData.data[i] = 255;\r\n imageData.data[i + 1] = 255;\r\n imageData.data[i + 2] = 255;\r\n imageData.data[i + 3] = 255;\r\n }\r\n }\r\n ctx.putImageData(imageData, 0, 0);\r\n var img = new Image();\r\n let imgY = 225;\r\n img.onload = function() {\r\n ctx.drawImage(img, 0, 0, 240, imgY);\r\n };\r\n img.src = this.posterData.image;\r\n\r\n ctx.font = \"14px PingFang-SC-Medium\";\r\n ctx.fillStyle = \"#282828\";\r\n var str = this.posterData.title;\r\n var initHeight = 260;\r\n let fontWidth = ctx.measureText(str).width;\r\n this.canvasTextAutoLine(str, c, 10, initHeight, 20, 225, 2);\r\n ctx.font = \"16px PingFang-SC-Heavy\";\r\n ctx.fillStyle = \"#DF2D0A\";\r\n let textY = 0;\r\n if (fontWidth < 220) {\r\n textY = initHeight + 30;\r\n } else {\r\n textY = initHeight + 45;\r\n }\r\n ctx.textAlign = \"center\";\r\n ctx.fillText(\"¥\" + this.posterData.price, 120, textY);\r\n\r\n var screamsCode = new Image();\r\n let codeY = textY + 10;\r\n screamsCode.onload = function() {\r\n ctx.drawImage(screamsCode, 10, codeY, 75, 75);\r\n };\r\n screamsCode.src = this.posterData.code;\r\n ctx.font = \"12px Arial\";\r\n ctx.fillStyle = \"#282828\";\r\n ctx.textAlign = \"left\";\r\n let fontY = codeY + 75 / 2;\r\n ctx.fillText(\"长按识别二维码 立即购买\", 90, fontY);\r\n setTimeout(() => {\r\n this.posterImage = c.toDataURL();\r\n this.$dialog.loading.close();\r\n }, 500);\r\n },\r\n /*\r\n str:要绘制的字符串\r\n canvas:canvas对象\r\n initX:绘制字符串起始x坐标\r\n initY:绘制字符串起始y坐标\r\n lineHeight:字行高,自己定义个值即可\r\n canvasWidth:文本宽度\r\n lines: 行数\r\n */\r\n canvasTextAutoLine(\r\n str,\r\n canvas,\r\n initX,\r\n initY,\r\n lineHeight,\r\n canvasWidth,\r\n lines\r\n ) {\r\n var ctx = canvas.getContext(\"2d\");\r\n var lineWidth = 0;\r\n var lastSubStrIndex = 0;\r\n var beginLineHeight = lineHeight;\r\n var beginY = initY;\r\n for (let i = 0; i < str.length; i++) {\r\n lineWidth += ctx.measureText(str[i]).width;\r\n if (lineWidth > canvasWidth - initX) {\r\n //减去initX,防止边界出现的问题\r\n if (initY >= beginY + beginLineHeight * (lines - 1)) {\r\n ctx.fillText(\r\n str.substring(lastSubStrIndex, i - 1) + \"...\",\r\n initX,\r\n initY\r\n );\r\n return;\r\n } else {\r\n ctx.fillText(str.substring(lastSubStrIndex, i), initX, initY);\r\n initY += lineHeight;\r\n lineWidth = 0;\r\n lastSubStrIndex = i;\r\n }\r\n }\r\n if (i == str.length - 1) {\r\n ctx.fillText(str.substring(lastSubStrIndex, i + 1), initX, initY);\r\n }\r\n }\r\n }\r\n }\r\n};\r\n</script>\r\n<style scoped>\r\n.poster-first .mask {\r\n z-index: 999 !important;\r\n}\r\n.canvasBox {\r\n width: 100%;\r\n height: 100%;\r\n margin: auto;\r\n /*display: flex;*/\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n display: none;\r\n}\r\n.poster-first {\r\n overscroll-behavior: contain;\r\n}\r\n.poster-pop {\r\n width: 4.8rem;\r\n position: fixed;\r\n left: 50%;\r\n transform: translateY(-50%);\r\n -webkit-transform: translateY(-50%);\r\n -o-transform: translateY(-50%);\r\n -ms-transform: translateY(-50%);\r\n -moz-transform: translateY(-50%);\r\n z-index: 9999;\r\n top: 50%;\r\n margin-left: -2.4rem;\r\n}\r\n.poster-pop .canvas {\r\n background-color: #ffffff;\r\n width: 100%;\r\n}\r\n.poster-pop .poster-image {\r\n width: 100%;\r\n display: block;\r\n}\r\n.poster-pop .canvas .image {\r\n width: 100%;\r\n height: 4.5rem;\r\n display: block;\r\n}\r\n.poster-pop .canvas .text {\r\n text-align: center;\r\n margin-top: 0.32rem;\r\n}\r\n.poster-pop .canvas .text.black {\r\n padding: 0 0.1rem;\r\n color: #000;\r\n}\r\n.poster-pop .canvas .text.rad {\r\n color: #ff0000;\r\n}\r\n.poster-pop .canvas .code {\r\n padding: 0 0.1rem 0.2rem 0.1rem;\r\n}\r\n.poster-pop .canvas .code .code-img {\r\n width: 1.7rem;\r\n height: 1.7rem;\r\n}\r\n.poster-pop .canvas .code .code-img img {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.poster-pop .canvas .code .code-text {\r\n width: 2.8rem;\r\n font-size: 0.24rem;\r\n}\r\n.poster-pop .close {\r\n width: 0.46rem;\r\n height: 0.75rem;\r\n position: fixed;\r\n right: 0;\r\n top: -0.75rem;\r\n display: block;\r\n}\r\n.keep {\r\n color: #fff;\r\n text-align: center;\r\n font-size: 0.25rem;\r\n margin-top: 0.1rem;\r\n}\r\n.mask {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n background-color: rgba(0, 0, 0, 0.6);\r\n z-index: 9;\r\n}\r\nimg {\r\n border: none;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./StorePoster.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./StorePoster.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StorePoster.vue?vue&type=template&id=15b57016&scoped=true&\"\nimport script from \"./StorePoster.vue?vue&type=script&lang=js&\"\nexport * from \"./StorePoster.vue?vue&type=script&lang=js&\"\nimport style0 from \"./StorePoster.vue?vue&type=style&index=0&id=15b57016&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/_vue-loader@15.9.0@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"15b57016\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}