1 |
- {"version":3,"sources":["webpack:///./src/components/CountDown.vue?a418","webpack:///src/components/CountDown.vue","webpack:///./src/components/CountDown.vue?c935","webpack:///./src/components/CountDown.vue","webpack:///./src/views/activity/SeckillDetails.vue?08a7","webpack:///./src/views/activity/SeckillDetails.vue?f6fd","webpack:///src/views/activity/SeckillDetails.vue","webpack:///./src/views/activity/SeckillDetails.vue?04a4","webpack:///./src/views/activity/SeckillDetails.vue","webpack:///./src/views/activity/SeckillDetails.vue?bc22"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","tipText","isDay","day","_e","dayText","hour","hourText","minute","minuteText","second","secondText","staticRenderFns","CountDownvue_type_script_lang_js_","name","props","type","String","default","datatime","Number","Boolean","data","created","show_time","mounted","methods","that","runTime","intDiff","Date","parse","Math","floor","setInterval","components_CountDownvue_type_script_lang_js_","component","Object","componentNormalizer","__webpack_exports__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SeckillDetails_vue_vue_type_style_index_1_id_2fede8ec_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SeckillDetails_vue_vue_type_style_index_1_id_2fede8ec_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","n","directives","rawName","value","expression","class","posterImageStatus","attrs","imgUrls","domProps","textContent","storeInfo","price","is-day","tip-text","day-text","hour-text","minute-text","second-text","title","on","click","setPosterImageStatus","stock","sales","innerHTML","description","staticStyle","height","$event","$router","push","path","tapBuy","attr","changeFun","posterData","NAME","SeckillDetailsvue_type_script_lang_js_","components","ProductConSwiper","CountDown","ProductWindow","StorePoster","domStatus","image","code","action","replyCount","reply","cartNum","cartAttr","productSelect","store_name","unique","cart_num","watch","$route","console","log","mountedStart","id","params","parseInt","time","activity","then","res","$set","images","image_base","updateTitle","length","substring","code_base","setProductSelect","document","meta","sTop","body","documentElement","scrollTop","opt","esm_typeof","undefined","changeattr","ChangeCartNum","selecAttrTap","_this","attrcartAttr","productId","product_id","uniqueId","secKillId","new","store","cartId","catch","$dialog","error","msg","activity_SeckillDetailsvue_type_script_lang_js_","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SeckillDetails_vue_vue_type_style_index_0_id_2fede8ec_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SeckillDetails_vue_vue_type_style_index_0_id_2fede8ec_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default"],"mappings":"gHAAA,IAAAA,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,QAAmB,CAAAN,EAAAO,GAAA,OAAAP,EAAAQ,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D,KAAAkB,cAAAG,YAIAoB,iBAAA,WACA,IAAA3F,EAAAlC,KACAoF,EAAAlD,EAAAkD,KACAA,EAAAkB,cAAAP,MAAA7D,EAAA2B,UAAAkC,MACAX,EAAAkB,cAAAC,WAAArE,EAAA2B,UAAAQ,MACAe,EAAAkB,cAAAxC,MAAA5B,EAAA2B,UAAAC,MACAsB,EAAAkB,cAAA7B,MAAAvC,EAAA2B,UAAAY,MACAW,EAAAiB,UAAA,EACAnE,EAAAoF,KAAApF,EAAA,OAAAkD,IAEAqD,aAAA,WACAzI,KAAAqG,UAAA,GAEAlB,OAAA,eAAAuD,EAAA1I,KACAkC,EAAAlC,KACA,MAAAkC,EAAAkD,KAAAiB,SACAnE,EAAAkD,KAAAiB,UAAArG,KAAAoF,KAAAuD,iBACA,CACA,IAAA9G,EAAA,GACAA,EAAA+G,UAAA1G,EAAA2B,UAAAgF,WACAhH,EAAAuE,QAAAlE,EAAAkD,KAAAkB,cAAAG,SACA5E,EAAAiH,SAAA5G,EAAAkD,KAAAkB,cAAAE,OACA3E,EAAAkH,UAAA7G,EAAA2B,UAAAkD,GACAlF,EAAAmH,IAAA,EACApG,OAAAqG,EAAA,KAAArG,CAAAf,GACAuF,KAAA,SAAAC,GACAnF,EAAA8C,QAAAC,KAAA,CACAC,KAAA,iBAAAmC,EAAAxF,KAAAqH,WAGAC,MAAA,SAAA9B,GACAqB,EAAAU,QAAAC,MAAAhC,EAAAiC,WCnNuWC,EAAA,oCCSvW5G,EAAgBC,OAAAC,EAAA,KAAAD,CACd2G,EACAzJ,EACAqB,GACF,EACA,KACA,WACA,MAIe2B,EAAA,WAAAH,6CCpBf,IAAA6G,EAAAxG,EAAA,QAAAyG,EAAAzG,EAAAE,EAAAsG,GAA4fC,EAAG","file":"h5/js/chunk-210f6068.25a7b4dc.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"time\"},[_vm._v(\"\\n \"+_vm._s(_vm.tipText)),(_vm.isDay === true)?_c('span',{staticClass:\"styleAll\"},[_vm._v(_vm._s(_vm.day))]):_vm._e(),_c('span',{staticClass:\"timeTxt\"},[_vm._v(_vm._s(_vm.dayText))]),_c('span',{staticClass:\"styleAll\"},[_vm._v(_vm._s(_vm.hour))]),_c('span',{staticClass:\"timeTxt\"},[_vm._v(_vm._s(_vm.hourText))]),_c('span',{staticClass:\"styleAll\"},[_vm._v(_vm._s(_vm.minute))]),_c('span',{staticClass:\"timeTxt\"},[_vm._v(_vm._s(_vm.minuteText))]),_c('span',{staticClass:\"styleAll\"},[_vm._v(_vm._s(_vm.second))]),_c('span',{staticClass:\"timeTxt\"},[_vm._v(_vm._s(_vm.secondText))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"time\">\r\n {{ tipText }}<span class=\"styleAll\" v-if=\"isDay === true\">{{ day }}</span\r\n ><span class=\"timeTxt\">{{ dayText }}</span\r\n ><span class=\"styleAll\">{{ hour }}</span\r\n ><span class=\"timeTxt\">{{ hourText }}</span\r\n ><span class=\"styleAll\">{{ minute }}</span\r\n ><span class=\"timeTxt\">{{ minuteText }}</span\r\n ><span class=\"styleAll\">{{ second }}</span\r\n ><span class=\"timeTxt\">{{ secondText }}</span>\r\n </div>\r\n</template>\r\n<script>\r\nexport default {\r\n name: \"CountDown\",\r\n props: {\r\n //距离开始提示文字\r\n tipText: {\r\n type: String,\r\n default: \"倒计时\"\r\n },\r\n dayText: {\r\n type: String,\r\n default: \"天\"\r\n },\r\n hourText: {\r\n type: String,\r\n default: \"时\"\r\n },\r\n minuteText: {\r\n type: String,\r\n default: \"分\"\r\n },\r\n secondText: {\r\n type: String,\r\n default: \"秒\"\r\n },\r\n datatime: {\r\n type: Number,\r\n default: 0\r\n },\r\n isDay: {\r\n type: Boolean,\r\n default: true\r\n }\r\n },\r\n data: function() {\r\n return {\r\n day: \"00\",\r\n hour: \"00\",\r\n minute: \"00\",\r\n second: \"00\"\r\n };\r\n },\r\n created: function() {\r\n this.show_time();\r\n },\r\n mounted: function() {},\r\n methods: {\r\n show_time: function() {\r\n let that = this;\r\n function runTime() {\r\n //时间函数\r\n let intDiff = that.datatime - Date.parse(new Date()) / 1000; //获取数据中的时间戳的时间差;\r\n let day = 0,\r\n hour = 0,\r\n minute = 0,\r\n second = 0;\r\n if (intDiff > 0) {\r\n //转换时间\r\n if (that.isDay === true) {\r\n day = Math.floor(intDiff / (60 * 60 * 24));\r\n } else {\r\n day = 0;\r\n }\r\n hour = Math.floor(intDiff / (60 * 60)) - day * 24;\r\n minute = Math.floor(intDiff / 60) - day * 24 * 60 - hour * 60;\r\n second =\r\n Math.floor(intDiff) -\r\n day * 24 * 60 * 60 -\r\n hour * 60 * 60 -\r\n minute * 60;\r\n if (hour <= 9) hour = \"0\" + hour;\r\n if (minute <= 9) minute = \"0\" + minute;\r\n if (second <= 9) second = \"0\" + second;\r\n that.day = day;\r\n that.hour = hour;\r\n that.minute = minute;\r\n that.second = second;\r\n } else {\r\n that.day = \"00\";\r\n that.hour = \"00\";\r\n that.minute = \"00\";\r\n that.second = \"00\";\r\n }\r\n }\r\n runTime();\r\n setInterval(runTime, 1000);\r\n }\r\n }\r\n};\r\n</script>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CountDown.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CountDown.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CountDown.vue?vue&type=template&id=794dd60d&\"\nimport script from \"./CountDown.vue?vue&type=script&lang=js&\"\nexport * from \"./CountDown.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SeckillDetails.vue?vue&type=style&index=1&id=2fede8ec&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SeckillDetails.vue?vue&type=style&index=1&id=2fede8ec&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.domStatus),expression:\"domStatus\"}],class:[_vm.posterImageStatus ? 'noscroll product-con' : 'product-con']},[_c('ProductConSwiper',{attrs:{\"imgUrls\":_vm.imgUrls}}),_c('div',{staticClass:\"nav acea-row row-between-wrapper\"},[_c('div',{staticClass:\"money\"},[_vm._v(\"\\n ¥\"),_c('span',{staticClass:\"num\",domProps:{\"textContent\":_vm._s(_vm.storeInfo.price)}}),_c('span',{staticClass:\"y-money\",domProps:{\"textContent\":_vm._s('¥' + _vm.storeInfo.price)}})]),_c('div',{staticClass:\"acea-row row-middle\"},[_c('div',{staticClass:\"times\"},[_c('div',[_vm._v(\"距秒杀结束仅剩\")]),_c('CountDown',{attrs:{\"is-day\":false,\"tip-text\":'',\"day-text\":'',\"hour-text\":' : ',\"minute-text\":' : ',\"second-text\":'',\"datatime\":_vm.datatime}})],1),_c('div',{staticClass:\"iconfont icon-jiantou\"})])]),_c('div',{staticClass:\"wrapperRush\"},[_c('div',{staticClass:\"introduce acea-row row-between\"},[_c('div',{staticClass:\"infor\",domProps:{\"textContent\":_vm._s(_vm.storeInfo.title)}}),_c('div',{staticClass:\"iconfont icon-fenxiang\",on:{\"click\":_vm.setPosterImageStatus}})]),_c('div',{staticClass:\"label acea-row row-middle\"},[_c('div',{staticClass:\"stock\",domProps:{\"textContent\":_vm._s('库存:' + _vm.storeInfo.stock + '件')}}),_c('div',{domProps:{\"textContent\":_vm._s('销量:' + _vm.storeInfo.sales + '件')}})])]),_c('div',{staticClass:\"product-intro\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"产品介绍\")]),_c('div',{staticClass:\"conter\",domProps:{\"innerHTML\":_vm._s(_vm.storeInfo.description)}})]),_c('div',{staticStyle:{\"height\":\"1.2rem\"}}),_c('div',{staticClass:\"footerRush acea-row row-between-wrapper\"},[_c('div',{staticClass:\"customerSer acea-row row-center-wrapper row-column\",on:{\"click\":function($event){return _vm.$router.push({ path: '/customer/list' })}}},[_c('div',{staticClass:\"iconfont icon-kefu\"}),_c('div',[_vm._v(\"客服\")])]),_c('div',{staticClass:\"bnt bg-color-green\",on:{\"click\":_vm.tapBuy}},[_vm._v(\"立即购买\")])]),_c('ProductWindow',{attrs:{\"attr\":_vm.attr},on:{\"changeFun\":_vm.changeFun}}),_c('StorePoster',{attrs:{\"posterImageStatus\":_vm.posterImageStatus,\"posterData\":_vm.posterData},on:{\"setPosterImageStatus\":_vm.setPosterImageStatus}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div\r\n :class=\"[posterImageStatus ? 'noscroll product-con' : 'product-con']\"\r\n v-show=\"domStatus\"\r\n >\r\n <ProductConSwiper :imgUrls=\"imgUrls\"></ProductConSwiper>\r\n <div class=\"nav acea-row row-between-wrapper\">\r\n <div class=\"money\">\r\n ¥<span class=\"num\" v-text=\"storeInfo.price\"></span\r\n ><span class=\"y-money\" v-text=\"'¥' + storeInfo.price\"></span>\r\n </div>\r\n <div class=\"acea-row row-middle\">\r\n <div class=\"times\">\r\n <div>距秒杀结束仅剩</div>\r\n <CountDown\r\n :is-day=\"false\"\r\n :tip-text=\"''\"\r\n :day-text=\"''\"\r\n :hour-text=\"' : '\"\r\n :minute-text=\"' : '\"\r\n :second-text=\"''\"\r\n :datatime=\"datatime\"\r\n ></CountDown>\r\n </div>\r\n <div class=\"iconfont icon-jiantou\"></div>\r\n </div>\r\n </div>\r\n <div class=\"wrapperRush\">\r\n <div class=\"introduce acea-row row-between\">\r\n <div class=\"infor\" v-text=\"storeInfo.title\"></div>\r\n <div class=\"iconfont icon-fenxiang\" @click=\"setPosterImageStatus\"></div>\r\n </div>\r\n <div class=\"label acea-row row-middle\">\r\n <div class=\"stock\" v-text=\"'库存:' + storeInfo.stock + '件'\"></div>\r\n <div v-text=\"'销量:' + storeInfo.sales + '件'\"></div>\r\n </div>\r\n </div>\r\n <div class=\"product-intro\">\r\n <div class=\"title\">产品介绍</div>\r\n <div class=\"conter\" v-html=\"storeInfo.description\"></div>\r\n </div>\r\n <div style=\"height:1.2rem;\"></div>\r\n <div class=\"footerRush acea-row row-between-wrapper\">\r\n <div\r\n class=\"customerSer acea-row row-center-wrapper row-column\"\r\n @click=\"$router.push({ path: '/customer/list' })\"\r\n >\r\n <div class=\"iconfont icon-kefu\"></div>\r\n <div>客服</div>\r\n </div>\r\n <div class=\"bnt bg-color-green\" @click=\"tapBuy\">立即购买</div>\r\n </div>\r\n <ProductWindow v-on:changeFun=\"changeFun\" :attr=\"attr\"></ProductWindow>\r\n <StorePoster\r\n v-on:setPosterImageStatus=\"setPosterImageStatus\"\r\n :posterImageStatus=\"posterImageStatus\"\r\n :posterData=\"posterData\"\r\n ></StorePoster>\r\n </div>\r\n</template>\r\n<style scoped>\r\n.noscroll {\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n</style>\r\n<script>\r\nimport ProductConSwiper from \"@components/ProductConSwiper\";\r\nimport CountDown from \"@components/CountDown\";\r\nimport ProductWindow from \"@components/ProductWindow\";\r\nimport StorePoster from \"@components/StorePoster\";\r\nimport { getSeckillDetail } from \"@api/activity\";\r\nimport { postCartAdd } from \"@api/store\";\r\nconst NAME = \"SeckillDetails\";\r\n\r\nexport default {\r\n name: \"SeckillDetails\",\r\n components: {\r\n ProductConSwiper,\r\n CountDown,\r\n ProductWindow,\r\n StorePoster\r\n },\r\n props: {},\r\n data: function() {\r\n return {\r\n domStatus: false,\r\n posterData: {\r\n image: \"\",\r\n title: \"\",\r\n price: \"\",\r\n code: \"\"\r\n },\r\n posterImageStatus: false,\r\n action: \"\",\r\n imgUrls: [],\r\n storeInfo: [],\r\n replyCount: 0,\r\n reply: [],\r\n cartNum: 1,\r\n attr: {\r\n cartAttr: false,\r\n productSelect: {\r\n image: \"\",\r\n store_name: \"\",\r\n price: \"\",\r\n stock: \"\",\r\n unique: \"\",\r\n cart_num: 1\r\n }\r\n },\r\n datatime: 0\r\n };\r\n },\r\n watch: {\r\n $route: function(n) {\r\n var that = this;\r\n console.log(n);\r\n if (n.name === NAME) {\r\n that.mountedStart();\r\n }\r\n }\r\n },\r\n mounted: function() {\r\n this.mountedStart();\r\n },\r\n methods: {\r\n mountedStart: function() {\r\n var that = this;\r\n let id = that.$route.params.id;\r\n that.datatime = parseInt(that.$route.params.time);\r\n getSeckillDetail(id).then(res => {\r\n that.$set(that, \"storeInfo\", res.data.storeInfo);\r\n that.$set(that, \"imgUrls\", res.data.storeInfo.images);\r\n that.$set(that, \"replyCount\", res.data.replyCount);\r\n that.$set(that, \"reply\", res.data.reply);\r\n that.posterData.image = that.storeInfo.image_base;\r\n that.updateTitle();\r\n if (that.storeInfo.title.length > 30) {\r\n that.posterData.title = that.storeInfo.title.substring(0, 30) + \"...\";\r\n } else {\r\n that.posterData.title = that.storeInfo.title;\r\n }\r\n that.posterData.price = that.storeInfo.price;\r\n that.posterData.code = that.storeInfo.code_base;\r\n that.setProductSelect();\r\n that.domStatus = true;\r\n });\r\n },\r\n updateTitle() {\r\n document.title = this.storeInfo.title || this.$route.meta.title;\r\n },\r\n setPosterImageStatus: function() {\r\n var sTop = document.body || document.documentElement;\r\n sTop.scrollTop = 0;\r\n this.posterImageStatus = !this.posterImageStatus;\r\n },\r\n //将父级向子集多次传送的函数合二为一;\r\n changeFun: function(opt) {\r\n if (typeof opt !== \"object\") opt = {};\r\n let action = opt.action || \"\";\r\n let value = opt.value === undefined ? \"\" : opt.value;\r\n this[action] && this[action](value);\r\n },\r\n changeattr: function(res) {\r\n var that = this;\r\n that.attr.cartAttr = res;\r\n },\r\n ChangeCartNum: function(res) {\r\n var that = this;\r\n if (res) {\r\n if (that.attr.productSelect.cart_num < that.storeInfo.stock) {\r\n that.attr.productSelect.cart_num++;\r\n }\r\n } else {\r\n if (that.attr.productSelect.cart_num > 1) {\r\n that.attr.productSelect.cart_num--;\r\n }\r\n }\r\n },\r\n setProductSelect: function() {\r\n var that = this;\r\n var attr = that.attr;\r\n attr.productSelect.image = that.storeInfo.image;\r\n attr.productSelect.store_name = that.storeInfo.title;\r\n attr.productSelect.price = that.storeInfo.price;\r\n attr.productSelect.stock = that.storeInfo.stock;\r\n attr.cartAttr = false;\r\n that.$set(that, \"attr\", attr);\r\n },\r\n selecAttrTap: function() {\r\n this.cartAttr = true;\r\n },\r\n tapBuy: function() {\r\n var that = this;\r\n if (that.attr.cartAttr == false) {\r\n that.attr.cartAttr = !this.attr.attrcartAttr;\r\n } else {\r\n var data = {};\r\n data.productId = that.storeInfo.product_id;\r\n data.cartNum = that.attr.productSelect.cart_num;\r\n data.uniqueId = that.attr.productSelect.unique;\r\n data.secKillId = that.storeInfo.id;\r\n data.new = 1;\r\n postCartAdd(data)\r\n .then(res => {\r\n that.$router.push({\r\n path: \"/order/submit/\" + res.data.cartId\r\n });\r\n })\r\n .catch(res => {\r\n this.$dialog.error(res.msg);\r\n });\r\n }\r\n }\r\n }\r\n};\r\n</script>\r\n<style scoped>\r\n.product-con .nav {\r\n padding: 0 0.2rem;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SeckillDetails.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SeckillDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SeckillDetails.vue?vue&type=template&id=2fede8ec&scoped=true&\"\nimport script from \"./SeckillDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./SeckillDetails.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SeckillDetails.vue?vue&type=style&index=0&id=2fede8ec&scoped=true&lang=css&\"\nimport style1 from \"./SeckillDetails.vue?vue&type=style&index=1&id=2fede8ec&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2fede8ec\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SeckillDetails.vue?vue&type=style&index=0&id=2fede8ec&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SeckillDetails.vue?vue&type=style&index=0&id=2fede8ec&scoped=true&lang=css&\""],"sourceRoot":""}
|