1 |
- {"version":3,"sources":["webpack:///./src/components/CountDown.vue?6b45","webpack:///src/components/CountDown.vue","webpack:///./src/components/CountDown.vue?4b22","webpack:///./src/components/CountDown.vue","webpack:///./src/views/activity/SeckillDetails.vue?2261","webpack:///./src/views/activity/SeckillDetails.vue?3cbc","webpack:///src/views/activity/SeckillDetails.vue","webpack:///./src/views/activity/SeckillDetails.vue?88b7","webpack:///./src/views/activity/SeckillDetails.vue","webpack:///./src/api/activity.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","tipText","isDay","day","_e","dayText","hour","hourText","minute","minuteText","second","secondText","staticRenderFns","name","props","type","String","default","datatime","Number","Boolean","data","created","show_time","mounted","methods","runTime","intDiff","that","Math","floor","setInterval","component","directives","rawName","value","expression","class","posterImageStatus","attrs","imgUrls","domProps","storeInfo","price","ot_price","title","on","setPosterImageStatus","total","quota","attr","productAttr","selecAttrTap","attrTxt","attrValue","description","staticStyle","$event","$router","push","path","setCollect","userCollect","$route","params","status","productSelect","product_stock","openAlone","tapBuy","changeFun","posterData","components","ProductConSwiper","CountDown","ProductWindow","StorePoster","domStatus","image","code","action","replyCount","reply","cartNum","cartAttr","store_name","unique","cart_num","isOpen","productValue","watch","n","NAME","mountedStart","parseInt","time","$set","res","images","image_base","updateTitle","length","substring","code_base","setProductSelect","getImageBase64","setShare","DefaultSelect","document","meta","sTop","body","documentElement","scrollTop","changeattr","ChangeAttr","ChangeCartNum","undefined","num","key","split","i","sort","join","stock","attrcartAttr","productId","product_id","uniqueId","secKillId","id","new","getCombinationList","request","get","login","getCombinationDetail","getCombinationPink","getCombinationRemove","post","getCombinationPoster","getSeckillConfig","getSeckillList","getSeckillDetail","getBargainList","getBargainDetail","getBargainShare","getBargainStart","getBargainHelp","getBargainHelpPrice","getBargainHelpCount","getBargainStartUser","getBargainHelpList","getBargainPoster","getBargainUserList","getBargainUserCancel"],"mappings":"yIAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EA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AsBtH,GAOrC,SAASoI,EAAiBpI,GAC/B,OAAOgH,OAAQM,KAAK,kBAAmBtH,GAOlC,SAASqI,EAAmBrI,GACjC,OAAOgH,OAAQC,IAAI,qBAAsBjH,GAMpC,SAASsI,EAAqBtI,GACnC,OAAOgH,OAAQM,KAAK,uBAAwBtH","file":"h5/js/chunk-5944b76d.bd665624.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@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!./CountDown.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!./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@15.9.0@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@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!./SeckillDetails.vue?vue&type=style&index=0&id=b8d268c0&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!./SeckillDetails.vue?vue&type=style&index=0&id=b8d268c0&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.ot_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:\"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\"},[_vm._v(\"\\n 累计销售:\"+_vm._s(_vm.storeInfo.total ? _vm.storeInfo.total : 0)+\" 件\\n \")]),_c('div',[_vm._v(\"限量: \"+_vm._s(_vm.storeInfo.quota ? _vm.storeInfo.quota : 0)+\" 件\")])])]),(_vm.attr.productAttr.length)?_c('div',{staticClass:\"attribute acea-row row-between-wrapper\",on:{\"click\":_vm.selecAttrTap}},[_c('div',[_vm._v(\"\\n \"+_vm._s(_vm.attrTxt)+\":\"),_c('span',{staticClass:\"atterTxt\"},[_vm._v(_vm._s(_vm.attrValue))])]),_c('div',{staticClass:\"iconfont icon-jiantou\"})]):_vm._e(),_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:\"item acea-row row-center-wrapper row-column\",on:{\"click\":_vm.setCollect}},[_c('div',{staticClass:\"iconfont\",class:_vm.storeInfo.userCollect ? 'icon-shoucang1' : 'icon-shoucang'}),_c('div',[_vm._v(\"收藏\")])]),(\n _vm.$route.params.status === '1' &&\n _vm.attr.productSelect.quota > 0 &&\n _vm.attr.productSelect.product_stock > 0\n )?_c('div',{staticClass:\"bnt acea-row\"},[_c('div',{staticClass:\"joinCart\",on:{\"click\":_vm.openAlone}},[_vm._v(\"原价购买\")]),_c('div',{staticClass:\"buy\",on:{\"click\":_vm.tapBuy}},[_vm._v(\"立即抢购\")])]):_vm._e(),(\n _vm.$route.params.status === '1' &&\n _vm.attr.productSelect.quota <= 0 &&\n _vm.attr.productSelect.product_stock <= 0\n )?_c('div',{staticClass:\"bnt acea-row\"},[_c('div',{staticClass:\"joinCart\",on:{\"click\":_vm.openAlone}},[_vm._v(\"原价购买\")]),_c('div',{staticClass:\"buy bg-color-hui\"},[_vm._v(\"已售罄\")])]):_vm._e(),(_vm.$route.params.status === '2')?_c('div',{staticClass:\"bnt acea-row\"},[_c('div',{staticClass:\"joinCart\",on:{\"click\":_vm.openAlone}},[_vm._v(\"原价购买\")]),_c('div',{staticClass:\"buy bg-color-hui\"},[_vm._v(\"即将开始\")])]):_vm._e(),(_vm.$route.params.status === '0')?_c('div',{staticClass:\"bnt acea-row\"},[_c('div',{staticClass:\"joinCart\",on:{\"click\":_vm.openAlone}},[_vm._v(\"原价购买\")]),_c('div',{staticClass:\"buy bg-color-hui\"},[_vm._v(\"已结束\")])]):_vm._e()]),_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.ot_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>\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\">\r\n 累计销售:{{ storeInfo.total ? storeInfo.total : 0 }} 件\r\n </div>\r\n <div>限量: {{ storeInfo.quota ? storeInfo.quota : 0 }} 件</div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"attribute acea-row row-between-wrapper\"\r\n @click=\"selecAttrTap\"\r\n v-if=\"attr.productAttr.length\"\r\n >\r\n <div>\r\n {{ attrTxt }}:<span class=\"atterTxt\">{{ attrValue }}</span>\r\n </div>\r\n <div class=\"iconfont icon-jiantou\"></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\r\n class=\"item acea-row row-center-wrapper row-column\"\r\n @click=\"setCollect\"\r\n >\r\n <div\r\n class=\"iconfont\"\r\n :class=\"storeInfo.userCollect ? 'icon-shoucang1' : 'icon-shoucang'\"\r\n ></div>\r\n <div>收藏</div>\r\n </div>\r\n <div\r\n class=\"bnt acea-row\"\r\n v-if=\"\r\n $route.params.status === '1' &&\r\n attr.productSelect.quota > 0 &&\r\n attr.productSelect.product_stock > 0\r\n \"\r\n >\r\n <div class=\"joinCart\" @click=\"openAlone\">原价购买</div>\r\n <div class=\"buy\" @click=\"tapBuy\">立即抢购</div>\r\n </div>\r\n <div\r\n class=\"bnt acea-row\"\r\n v-if=\"\r\n $route.params.status === '1' &&\r\n attr.productSelect.quota <= 0 &&\r\n attr.productSelect.product_stock <= 0\r\n \"\r\n >\r\n <div class=\"joinCart\" @click=\"openAlone\">原价购买</div>\r\n <div class=\"buy bg-color-hui\">已售罄</div>\r\n </div>\r\n <div class=\"bnt acea-row\" v-if=\"$route.params.status === '2'\">\r\n <div class=\"joinCart\" @click=\"openAlone\">原价购买</div>\r\n <div class=\"buy bg-color-hui\">即将开始</div>\r\n </div>\r\n <div class=\"bnt acea-row\" v-if=\"$route.params.status === '0'\">\r\n <div class=\"joinCart\" @click=\"openAlone\">原价购买</div>\r\n <div class=\"buy bg-color-hui\">已结束</div>\r\n </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<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\nimport { imageBase64 } from \"@api/public\";\r\nimport { isWeixin } from \"@utils/index\";\r\nimport { openShareAll } from \"@libs/wechat\";\r\nimport { getCollectAdd, getCollectDel } from \"@api/user\";\r\nconst NAME = \"SeckillDetails\";\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 quota: \"\",\r\n unique: \"\",\r\n cart_num: 1\r\n },\r\n productAttr: []\r\n },\r\n datatime: 0,\r\n attrTxt: \"请选择\",\r\n isOpen: false, //是否打开属性组件\r\n attrValue: \"\",\r\n cart_num: 1, //购买数量\r\n productValue: []\r\n };\r\n },\r\n watch: {\r\n $route: function(n) {\r\n var that = this;\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 //收藏商品\r\n setCollect: function() {\r\n let that = this,\r\n id = that.storeInfo.product_id,\r\n category = \"product\";\r\n if (that.storeInfo.userCollect) {\r\n getCollectDel(id, category).then(function() {\r\n that.storeInfo.userCollect = !that.storeInfo.userCollect;\r\n });\r\n } else {\r\n getCollectAdd(id, category).then(function() {\r\n that.storeInfo.userCollect = !that.storeInfo.userCollect;\r\n });\r\n }\r\n },\r\n //打开属性插件;\r\n selecAttrTap: function() {\r\n if (this.$route.params.status === \"1\") {\r\n this.attr.cartAttr = true;\r\n this.isOpen = true;\r\n }\r\n },\r\n openAlone: function() {\r\n this.$router.push({ path: \"/detail/\" + this.storeInfo.product_id });\r\n },\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.attr.productAttr = res.data.productAttr;\r\n that.productValue = res.data.productValue;\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 that.getImageBase64();\r\n that.setShare();\r\n if (that.attr.productAttr != 0) that.DefaultSelect();\r\n });\r\n },\r\n setShare: function() {\r\n isWeixin() &&\r\n openShareAll({\r\n desc: this.storeInfo.info,\r\n title: this.storeInfo.title,\r\n link: location.href,\r\n imgUrl: this.storeInfo.image\r\n });\r\n },\r\n getImageBase64: function() {\r\n let that = this;\r\n imageBase64(this.posterData.image, that.posterData.code).then(res => {\r\n that.posterData.image = res.data.image;\r\n that.posterData.code = res.data.code;\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 //选择属性;\r\n ChangeAttr: function(res) {\r\n let productSelect = this.productValue[res];\r\n if (productSelect) {\r\n this.$set(this.attr.productSelect, \"image\", productSelect.image);\r\n this.$set(this.attr.productSelect, \"price\", productSelect.price);\r\n this.$set(this.attr.productSelect, \"quota\", productSelect.quota);\r\n this.$set(this.attr.productSelect, \"unique\", productSelect.unique);\r\n this.$set(this.attr.productSelect, \"cart_num\", 1);\r\n this.$set(\r\n this.attr.productSelect,\r\n \"quota_show\",\r\n productSelect.quota_show\r\n );\r\n this.$set(this, \"attrValue\", res);\r\n this.$set(this, \"attrTxt\", \"已选择\");\r\n } else {\r\n this.$set(this.attr.productSelect, \"image\", this.storeInfo.image);\r\n this.$set(this.attr.productSelect, \"price\", this.storeInfo.price);\r\n this.$set(this.attr.productSelect, \"quota\", 0);\r\n this.$set(this.attr.productSelect, \"unique\", \"\");\r\n this.$set(this.attr.productSelect, \"cart_num\", 0);\r\n this.$set(this.attr.productSelect, \"quota_show\", 0);\r\n this.$set(this, \"attrValue\", \"\");\r\n this.$set(this, \"attrTxt\", \"请选择\");\r\n }\r\n },\r\n ChangeCartNum: function(res) {\r\n //changeValue:是否 加|减\r\n //获取当前变动属性\r\n let productSelect = this.productValue[this.attrValue];\r\n //如果没有属性,赋值给商品默认库存\r\n if (productSelect === undefined && !this.attr.productAttr.length)\r\n productSelect = this.attr.productSelect;\r\n if (productSelect === undefined) return;\r\n let quota = productSelect.quota || 0;\r\n let num = this.attr.productSelect;\r\n if (res) {\r\n num.cart_num++;\r\n if (num.cart_num > quota) {\r\n this.$set(this.attr.productSelect, \"cart_num\", quota);\r\n this.$set(this, \"cart_num\", quota);\r\n }\r\n } else {\r\n num.cart_num--;\r\n if (num.cart_num < 1) {\r\n this.$set(this.attr.productSelect, \"cart_num\", 1);\r\n this.$set(this, \"cart_num\", 1);\r\n }\r\n }\r\n },\r\n //默认选中属性;\r\n DefaultSelect: function() {\r\n let productAttr = this.attr.productAttr,\r\n value = [];\r\n for (var key in this.productValue) {\r\n if (this.productValue[key].quota > 0) {\r\n value = this.attr.productAttr.length ? key.split(\",\") : [];\r\n break;\r\n }\r\n }\r\n for (let i = 0; i < productAttr.length; i++) {\r\n this.$set(productAttr[i], \"index\", value[i]);\r\n }\r\n //sort();排序函数:数字-英文-汉字;\r\n let productSelect = this.productValue[value.sort().join(\",\")];\r\n if (productSelect && productAttr.length) {\r\n this.$set(this.attr.productSelect, \"store_name\", this.storeInfo.title);\r\n this.$set(this.attr.productSelect, \"image\", productSelect.image);\r\n this.$set(this.attr.productSelect, \"price\", productSelect.price);\r\n this.$set(this.attr.productSelect, \"quota\", productSelect.quota);\r\n this.$set(this.attr.productSelect, \"unique\", productSelect.unique);\r\n this.$set(this.attr.productSelect, \"cart_num\", 1);\r\n this.$set(\r\n this.attr.productSelect,\r\n \"quota_show\",\r\n productSelect.quota_show\r\n );\r\n this.$set(this, \"attrValue\", value.sort().join(\",\"));\r\n this.$set(this, \"attrTxt\", \"已选择\");\r\n } else if (!productSelect && productAttr.length) {\r\n this.$set(this.attr.productSelect, \"store_name\", this.storeInfo.title);\r\n this.$set(this.attr.productSelect, \"image\", this.storeInfo.image);\r\n this.$set(this.attr.productSelect, \"price\", this.storeInfo.price);\r\n this.$set(this.attr.productSelect, \"quota\", 0);\r\n this.$set(this.attr.productSelect, \"unique\", \"\");\r\n this.$set(this.attr.productSelect, \"cart_num\", 0);\r\n this.$set(this.attr.productSelect, \"quota_show\", 0);\r\n this.$set(this, \"attrValue\", \"\");\r\n this.$set(this, \"attrTxt\", \"请选择\");\r\n } else if (!productSelect && !productAttr.length) {\r\n this.$set(this.attr.productSelect, \"store_name\", this.storeInfo.title);\r\n this.$set(this.attr.productSelect, \"image\", this.storeInfo.image);\r\n this.$set(this.attr.productSelect, \"price\", this.storeInfo.price);\r\n this.$set(this.attr.productSelect, \"quota\", 0);\r\n this.$set(this.attr.productSelect, \"quota_show\", 0);\r\n this.$set(\r\n this.attr.productSelect,\r\n \"unique\",\r\n this.storeInfo.unique || \"\"\r\n );\r\n this.$set(this.attr.productSelect, \"cart_num\", 1);\r\n this.$set(this, \"attrValue\", \"\");\r\n this.$set(this, \"attrTxt\", \"请选择\");\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.quota = that.storeInfo.stock;\r\n attr.cartAttr = false;\r\n that.$set(that, \"attr\", attr);\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.noscroll {\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.bg-color-hui {\r\n background: #bbbbbb !important;\r\n line-height: 0.76rem;\r\n text-align: center;\r\n}\r\n.item {\r\n font-size: 0.2rem;\r\n color: #666;\r\n text-align: center;\r\n}\r\n.product-con .nav {\r\n padding: 0 0.2rem;\r\n}\r\n.product-con .bnt {\r\n width: 77% !important;\r\n}\r\n.product-con .bnt > div {\r\n width: 50% !important;\r\n}\r\n.icon-shoucang1 {\r\n color: #e93323;\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!./SeckillDetails.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!./SeckillDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SeckillDetails.vue?vue&type=template&id=b8d268c0&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=b8d268c0&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 \"b8d268c0\",\n null\n \n)\n\nexport default component.exports","import request from \"@utils/request\";\r\n\r\n/**\r\n * 拼团列表\r\n */\r\nexport function getCombinationList(data) {\r\n return request.get(\"/combination/list\", data, { login: false });\r\n}\r\n\r\n/**\r\n * 拼团产品详情\r\n * @param {*} id\r\n */\r\nexport function getCombinationDetail(id) {\r\n return request.get(\"/combination/detail/\" + id, {}, { login: false });\r\n}\r\n\r\n/**\r\n * 拼团 开团\r\n * @param {*} id\r\n */\r\nexport function getCombinationPink(id) {\r\n return request.get(\"/combination/pink/\" + id);\r\n}\r\n\r\n/**\r\n * 拼团 取消开团\r\n */\r\nexport function getCombinationRemove(data) {\r\n return request.post(\"/combination/remove\", data);\r\n}\r\n\r\n/**\r\n * 拼团海报\r\n * @param {*} id\r\n */\r\nexport function getCombinationPoster(data) {\r\n return request.post(\"/combination/poster\", data);\r\n}\r\n\r\n/**\r\n * 秒杀列表配置\r\n */\r\nexport function getSeckillConfig() {\r\n return request.get(\"/seckill/index\", {}, { login: false });\r\n}\r\n\r\n/**\r\n * 秒杀列表\r\n */\r\nexport function getSeckillList(time, data) {\r\n return request.get(\"/seckill/list/\" + time, data, { login: false });\r\n}\r\n\r\n/**\r\n * 秒杀产品详情\r\n */\r\nexport function getSeckillDetail(id) {\r\n return request.get(\"/seckill/detail/\" + id, {}, { login: false });\r\n}\r\n\r\n/**\r\n * 砍价列表\r\n * @param {*} data\r\n */\r\nexport function getBargainList(data) {\r\n return request.get(\"/bargain/list\", data, { login: false });\r\n}\r\n\r\n/**\r\n * 砍价产品详情\r\n */\r\nexport function getBargainDetail(id) {\r\n return request.get(\"/bargain/detail/\" + id);\r\n}\r\n\r\n/**\r\n * 砍价 观看/分享/参与次数\r\n */\r\nexport function getBargainShare(data) {\r\n return request.post(\"/bargain/share\", data);\r\n}\r\n\r\n/**\r\n * 砍价开启\r\n * @param {*} data\r\n */\r\nexport function getBargainStart(data) {\r\n return request.post(\"/bargain/start\", data);\r\n}\r\n\r\n/**\r\n * 砍价 帮助好友砍价\r\n * @param {*} data\r\n */\r\nexport function getBargainHelp(data) {\r\n return request.post(\"/bargain/help\", data);\r\n}\r\n\r\n/**\r\n * 砍价 砍掉金额\r\n * @param {*} data\r\n */\r\nexport function getBargainHelpPrice(data) {\r\n return request.post(\"/bargain/help/price\", data);\r\n}\r\n\r\n/**\r\n * 砍价 砍价帮总人数、剩余金额、进度条、已经砍掉的价格\r\n * @param {*} data\r\n */\r\nexport function getBargainHelpCount(data) {\r\n return request.post(\"/bargain/help/count\", data);\r\n}\r\n\r\n/**\r\n * 砍价 开启砍价用户信息\r\n * @param {*} data\r\n */\r\nexport function getBargainStartUser(data) {\r\n return request.post(\"/bargain/start/user\", data);\r\n}\r\n\r\n/**\r\n * 砍价 砍价帮\r\n * @param {*} data\r\n */\r\nexport function getBargainHelpList(data) {\r\n return request.post(\"/bargain/help/list\", data);\r\n}\r\n\r\n/**\r\n * 砍价海报\r\n * @param {*} data\r\n */\r\nexport function getBargainPoster(data) {\r\n return request.post(\"/bargain/poster\", data);\r\n}\r\n\r\n/**\r\n * 砍价列表(已参与)\r\n * @param {*} data\r\n */\r\nexport function getBargainUserList(data) {\r\n return request.get(\"/bargain/user/list\", data);\r\n}\r\n\r\n/**\r\n * 砍价取消\r\n */\r\nexport function getBargainUserCancel(data) {\r\n return request.post(\"/bargain/user/cancel\", data);\r\n}\r\n"],"sourceRoot":""}
|