1 |
- {"version":3,"sources":["webpack:///./src/views/activity/GoodsSeckill.vue?2177","webpack:///./src/views/activity/GoodsSeckill.vue?eac9","webpack:///src/views/activity/GoodsSeckill.vue","webpack:///./src/views/activity/GoodsSeckill.vue?9136","webpack:///./src/views/activity/GoodsSeckill.vue","webpack:///./src/components/CountDown.vue?5cb0","webpack:///src/components/CountDown.vue","webpack:///./src/components/CountDown.vue?c935","webpack:///./src/components/CountDown.vue","webpack:///./src/api/activity.js"],"names":["_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_GoodsSeckill_vue_vue_type_style_index_0_id_b28f268a_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_GoodsSeckill_vue_vue_type_style_index_0_id_b28f268a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","n","render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","attrs","src","headerImg","_e","line-height","animated","title-inactive-color","sticky","model","value","callback","$$v","active","expression","_l","item","index","key","slot","on","click","$event","setTime","_v","_s","time","state","status","is-day","tip-text","day-text","hour-text","minute-text","second-text","datatime","itemSeckill","indexSeckill","image","domProps","textContent","title","price","style","width","loading","percent","stock","goDetail","id","seckillList","length","page","staticStyle","background-color","loaded","loadingList","staticRenderFns","GoodsSeckillvue_type_script_lang_js_","name","components","CountDown","Tab","tab","Tabs","tabs","Loading","props","data","timeList","limit","mounted","mountedStart","methods","_this","that","Object","activity","then","res","$set","lovely","seckillTime","seckillTimeIndex","stop","getSeckillList","$nextTick","$refs","scrollIntoView","$scroll","container","setTimeout","push","apply","$router","path","activity_GoodsSeckillvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__","tipText","isDay","day","dayText","hour","hourText","minute","minuteText","second","secondText","CountDownvue_type_script_lang_js_","type","String","default","Number","Boolean","created","show_time","runTime","intDiff","Date","parse","Math","floor","setInterval","components_CountDownvue_type_script_lang_js_","d","getCombinationList","getCombinationDetail","getCombinationPink","getCombinationRemove","getCombinationPoster","getSeckillConfig","getSeckillDetail","getBargainList","getBargainDetail","getBargainShare","getBargainStart","getBargainHelp","getBargainHelpPrice","getBargainHelpCount","getBargainStartUser","getBargainHelpList","getBargainPoster","getBargainUserList","getBargainUserCancel","_utils_request__WEBPACK_IMPORTED_MODULE_0__","request","get","login","post"],"mappings":"kHAAA,IAAAA,EAAAC,EAAA,QAAAC,EAAAD,EAAAE,EAAAH,GAA0fE,EAAG,8CCA7f,IAAAE,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,IAAA,YAAAC,YAAA,cAAyC,CAAAP,EAAA,UAAAI,EAAA,OAA4BG,YAAA,UAAqB,CAAAH,EAAA,OAAYI,MAAA,CAAOC,IAAAT,EAAAU,eAAqBV,EAAAW,KAAAP,EAAA,QAAwBE,IAAA,WAAAC,YAAA,YAAAC,MAAA,CAA8CI,cAAA,IAAAC,SAAA,GAAAC,uBAAA,IAAAC,OAAAf,EAAAe,QAA+EC,MAAA,CAAQC,MAAAjB,EAAA,OAAAkB,SAAA,SAAAC,GAA4CnB,EAAAoB,OAAAD,GAAeE,WAAA,WAAsBrB,EAAAsB,GAAAtB,EAAA,kBAAAuB,EAAAC,GAA4C,OAAApB,EAAA,OAAiBqB,IAAAD,GAAU,C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EC,OAAO,IAM7C,SAAShE,EAAe3D,EAAM0C,GACnC,OAAO+E,OAAQC,IAAI,iBAAmB1H,EAAM0C,EAAM,CAAEiF,OAAO,IAMtD,SAAShB,EAAiBpF,GAC/B,OAAOkG,OAAQC,IAAI,mBAAqBnG,EAAI,GAAI,CAAEoG,OAAO,IAOpD,SAASf,EAAelE,GAC7B,OAAO+E,OAAQC,IAAI,gBAAiBhF,EAAM,CAAEiF,OAAO,IAM9C,SAASd,EAAiBtF,GAC/B,OAAOkG,OAAQC,IAAI,mBAAqBnG,GAMnC,SAASuF,EAAgBpE,GAC9B,OAAO+E,OAAQG,KAAK,iBAAkBlF,GAOjC,SAASqE,EAAgBrE,GAC9B,OAAO+E,OAAQG,KAAK,iBAAkBlF,GAOjC,SAASsE,EAAetE,GAC7B,OAAO+E,OAAQG,KAAK,gBAAiBlF,GAOhC,SAASuE,EAAoBvE,GAClC,OAAO+E,OAAQG,KAAK,sBAAuBlF,GAOtC,SAASwE,EAAoBxE,GAClC,OAAO+E,OAAQG,KAAK,sBAAuBlF,GAOtC,SAASyE,EAAoBzE,GAClC,OAAO+E,OAAQG,KAAK,sBAAuBlF,GAOtC,SAAS0E,EAAmB1E,GACjC,OAAO+E,OAAQG,KAAK,qBAAsBlF,GAOrC,SAAS2E,EAAiB3E,GAC/B,OAAO+E,OAAQG,KAAK,kBAAmBlF,GAOlC,SAAS4E,EAAmB5E,GACjC,OAAO+E,OAAQC,IAAI,qBAAsBhF,GAMpC,SAAS6E,EAAqB7E,GACnC,OAAO+E,OAAQG,KAAK,uBAAwBlF","file":"h5/js/chunk-32f6fcb1.7eecc700.js","sourcesContent":["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!./GoodsSeckill.vue?vue&type=style&index=0&id=b28f268a&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!./GoodsSeckill.vue?vue&type=style&index=0&id=b28f268a&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\",staticClass:\"flash-sale\"},[(_vm.headerImg)?_c('div',{staticClass:\"header\"},[_c('img',{attrs:{\"src\":_vm.headerImg}})]):_vm._e(),_c('Tabs',{ref:\"timeList\",staticClass:\"time-tabs\",attrs:{\"line-height\":\"0\",\"animated\":\"\",\"title-inactive-color\":\"2\",\"sticky\":_vm.sticky},model:{value:(_vm.active),callback:function ($$v) {_vm.active=$$v},expression:\"active\"}},_vm._l((_vm.timeList),function(item,index){return _c('Tab',{key:index},[_c('div',{staticClass:\"timeItem\",attrs:{\"slot\":\"title\"},on:{\"click\":function($event){return _vm.setTime(index)}},slot:\"title\"},[_c('div',{staticClass:\"time\"},[_vm._v(_vm._s(item.time))]),_c('div',{staticClass:\"state\"},[_vm._v(_vm._s(item.state))])]),_c('div',{staticClass:\"countDown font-color-red acea-row row-center-wrapper\"},[(item.status === 0)?_c('div',{staticClass:\"activity\"},[_vm._v(\"活动已结束\")]):_vm._e(),(item.status === 1)?_c('CountDown',{attrs:{\"is-day\":false,\"tip-text\":'距结束仅剩 ',\"day-text\":'',\"hour-text\":' : ',\"minute-text\":' : ',\"second-text\":'',\"datatime\":_vm.datatime}}):_vm._e(),(item.status === 2)?_c('div',{staticClass:\"activity\"},[_vm._v(\"活动即将开始\")]):_vm._e()],1),_c('div',{staticClass:\"list\"},_vm._l((_vm.seckillList),function(itemSeckill,indexSeckill){return _c('div',{key:indexSeckill,staticClass:\"item acea-row row-between-wrapper\"},[_c('div',{staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":itemSeckill.image}})]),_c('div',{staticClass:\"text acea-row row-column-around\"},[_c('div',{staticClass:\"line1\",domProps:{\"textContent\":_vm._s(itemSeckill.title)}}),_c('div',{staticClass:\"money\"},[_vm._v(\"\\n 限时价\"),_c('span',{staticClass:\"num font-color-red\",domProps:{\"textContent\":_vm._s('¥' + itemSeckill.price)}})]),_c('div',{staticClass:\"progress cart-color\"},[_c('div',{staticClass:\"bg-red\",style:({ width: _vm.loading ? itemSeckill.percent + '%' : '' })}),_c('div',{staticClass:\"piece font-color-red\",domProps:{\"textContent\":_vm._s('仅剩' + itemSeckill.stock + '件')}})])]),(item.status === 1 && itemSeckill.stock > 0)?_c('div',{staticClass:\"grab bg-color-red\",on:{\"click\":function($event){return _vm.goDetail(itemSeckill.id)}}},[_vm._v(\"\\n 马上抢\\n \")]):_vm._e(),(item.status === 1 && itemSeckill.stock <= 0)?_c('div',{staticClass:\"grab\"},[_vm._v(\"\\n 已售磬\\n \")]):_vm._e(),(item.status === 2)?_c('div',{staticClass:\"grab bg-color-red\"},[_vm._v(\"\\n 即将开始\\n \")]):_vm._e(),(item.status === 0)?_c('div',{staticClass:\"grab bg-color-red\"},[_vm._v(\"已结束\")]):_vm._e()])}),0),(_vm.seckillList.length === 0 && _vm.page > 1)?_c('div',{staticClass:\"noCommodity\",staticStyle:{\"background-color\":\"#fff\"}},[_c('div',{staticClass:\"noPictrue\"},[_c('img',{staticClass:\"image\",attrs:{\"src\":require(\"@assets/images/noGood.png\")}})])]):_vm._e(),(_vm.seckillList.length > 0)?_c('Loading',{attrs:{\"loaded\":_vm.status,\"loading\":_vm.loadingList}}):_vm._e()],1)}),1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"flash-sale\" ref=\"container\">\r\n <div class=\"header\" v-if=\"headerImg\"><img :src=\"headerImg\" /></div>\r\n <Tabs\r\n class=\"time-tabs\"\r\n line-height=\"0\"\r\n v-model=\"active\"\r\n animated\r\n title-inactive-color=\"2\"\r\n :sticky=\"sticky\"\r\n ref=\"timeList\"\r\n >\r\n <Tab v-for=\"(item, index) in timeList\" :key=\"index\">\r\n <div slot=\"title\" class=\"timeItem\" @click=\"setTime(index)\">\r\n <div class=\"time\">{{ item.time }}</div>\r\n <div class=\"state\">{{ item.state }}</div>\r\n </div>\r\n <div class=\"countDown font-color-red acea-row row-center-wrapper\">\r\n <div v-if=\"item.status === 0\" class=\"activity\">活动已结束</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 v-if=\"item.status === 1\"\r\n ></CountDown>\r\n <div v-if=\"item.status === 2\" class=\"activity\">活动即将开始</div>\r\n </div>\r\n <div class=\"list\">\r\n <div\r\n class=\"item acea-row row-between-wrapper\"\r\n v-for=\"(itemSeckill, indexSeckill) in seckillList\"\r\n :key=\"indexSeckill\"\r\n >\r\n <div class=\"pictrue\">\r\n <img :src=\"itemSeckill.image\" />\r\n </div>\r\n <div class=\"text acea-row row-column-around\">\r\n <div class=\"line1\" v-text=\"itemSeckill.title\"></div>\r\n <div class=\"money\">\r\n 限时价<span\r\n class=\"num font-color-red\"\r\n v-text=\"'¥' + itemSeckill.price\"\r\n ></span>\r\n </div>\r\n <div class=\"progress cart-color\">\r\n <div\r\n class=\"bg-red\"\r\n :style=\"{ width: loading ? itemSeckill.percent + '%' : '' }\"\r\n ></div>\r\n <div\r\n class=\"piece font-color-red\"\r\n v-text=\"'仅剩' + itemSeckill.stock + '件'\"\r\n ></div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"grab bg-color-red\"\r\n v-if=\"item.status === 1 && itemSeckill.stock > 0\"\r\n @click=\"goDetail(itemSeckill.id)\"\r\n >\r\n 马上抢\r\n </div>\r\n <div\r\n class=\"grab\"\r\n v-if=\"item.status === 1 && itemSeckill.stock <= 0\"\r\n >\r\n 已售磬\r\n </div>\r\n <div class=\"grab bg-color-red\" v-if=\"item.status === 2\">\r\n 即将开始\r\n </div>\r\n <div class=\"grab bg-color-red\" v-if=\"item.status === 0\">已结束</div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"noCommodity\"\r\n v-cloak\r\n style=\"background-color: #fff;\"\r\n v-if=\"seckillList.length === 0 && page > 1\"\r\n >\r\n <div class=\"noPictrue\">\r\n <img src=\"@assets/images/noGood.png\" class=\"image\" />\r\n </div>\r\n </div>\r\n <Loading\r\n :loaded=\"status\"\r\n :loading=\"loadingList\"\r\n v-if=\"seckillList.length > 0\"\r\n ></Loading>\r\n </Tab>\r\n </Tabs>\r\n </div>\r\n</template>\r\n<script>\r\nimport { getSeckillConfig, getSeckillList } from \"@api/activity\";\r\nimport CountDown from \"@components/CountDown\";\r\nimport { Tab, Tabs } from \"vant\";\r\nimport Loading from \"@components/Loading\";\r\n\r\nexport default {\r\n name: \"GoodsSeckill\",\r\n components: {\r\n CountDown,\r\n Tab,\r\n Tabs,\r\n Loading\r\n },\r\n props: {},\r\n data: function() {\r\n return {\r\n headerImg: \"\",\r\n timeList: [],\r\n sticky: false,\r\n loading: false,\r\n datatime: 0,\r\n active: 0,\r\n seckillList: [],\r\n status: false, //砍价列表是否获取完成 false 未完成 true 完成\r\n loadingList: false, //当前接口是否请求完成 false 完成 true 未完成\r\n page: 1, //页码\r\n limit: 5 //数量\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 getSeckillConfig().then(res => {\r\n that.$set(that, \"headerImg\", res.data.lovely);\r\n that.$set(that, \"timeList\", res.data.seckillTime);\r\n that.$set(that, \"active\", res.data.seckillTimeIndex);\r\n that.datatime = that.timeList[that.active].stop;\r\n that.getSeckillList();\r\n that.$nextTick(function() {\r\n that.sticky = true;\r\n that.$refs.timeList.scrollIntoView();\r\n });\r\n });\r\n this.$scroll(this.$refs.container, () => {\r\n !this.loadingList && this.getSeckillList();\r\n });\r\n setTimeout(function() {\r\n that.loading = true;\r\n }, 500);\r\n },\r\n setTime: function(index) {\r\n var that = this;\r\n that.active = index;\r\n that.datatime = that.timeList[that.active].stop;\r\n that.getSeckillList();\r\n },\r\n getSeckillList: function() {\r\n var that = this;\r\n if (that.loadingList) return;\r\n if (that.status) return;\r\n var time = that.timeList[that.active].id;\r\n getSeckillList(time, { page: that.page, limit: that.limit }).then(res => {\r\n that.status = res.data.length < that.limit;\r\n that.seckillList.push.apply(that.seckillList, res.data);\r\n that.page++;\r\n that.loadingList = false;\r\n });\r\n },\r\n goDetail: function(id) {\r\n var that = this;\r\n var time = that.timeList[that.active].stop;\r\n this.$router.push({\r\n path: \"/activity/seckill_detail/\" + id + \"/\" + time\r\n });\r\n }\r\n }\r\n};\r\n</script>\r\n<style scoped>\r\n.timeItem {\r\n font-size: 0.22rem;\r\n color: #282828;\r\n width: 100
|