1 |
- {"version":3,"sources":["webpack:///./src/views/activity/GoodsSeckill.vue?a436","webpack:///src/views/activity/GoodsSeckill.vue","webpack:///./src/views/activity/GoodsSeckill.vue?cdde","webpack:///./src/views/activity/GoodsSeckill.vue","webpack:///./src/assets/images/baokuan.png","webpack:///./src/views/activity/GoodsSeckill.vue?8756","webpack:///./src/api/activity.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","timeList","active","attrs","slide","_e","_m","model","value","callback","$$v","expression","_l","item","index","key","on","$event","setTime","slot","_v","_s","time","state","itemSeckill","indexSeckill","goDetail","id","status","image","domProps","title","price","ot_price","quota_show","style","width","loading","percent","quota","seckillList","length","page","loadingList","staticRenderFns","name","components","Tab","Tabs","Loading","props","data","sticky","datatime","limit","mounted","mountedStart","methods","that","$set","res","seckillTime","seckillTimeIndex","stop","getSeckillList","$nextTick","$refs","scrollIntoView","$scroll","container","setTimeout","$router","push","path","component","module","exports","getCombinationList","request","get","login","getCombinationDetail","getCombinationPink","getCombinationRemove","post","getCombinationPoster","getSeckillConfig","getSeckillDetail","getBargainList","getBargainDetail","getBargainShare","getBargainStart","getBargainHelp","getBargainHelpPrice","getBargainHelpCount","getBargainStartUser","getBargainHelpList","getBargainPoster","getBargainUserList","getBargainUserCancel"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,IAAI,YAAYC,YAAY,eAAe,CAACH,EAAG,MAAM,CAACG,YAAY,WAAW,CAAEP,EAAIQ,SAASR,EAAIS,QAASL,EAAG,MAAM,CAACG,YAAY,UAAU,CAACH,EAAG,MAAM,CAACM,MAAM,CAAC,IAAMV,EAAIQ,SAASR,EAAIS,QAAQE,WAAWX,EAAIY,OAAOZ,EAAIa,GAAG,GAAGT,EAAG,OAAO,CAACE,IAAI,WAAWC,YAAY,YAAYG,MAAM,CAAC,cAAc,I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9C,SAASS,EAAiB9D,GAC/B,OAAOmD,OAAQC,IAAI,mBAAqBpD,GAMnC,SAAS+D,EAAgBvC,GAC9B,OAAO2B,OAAQM,KAAK,iBAAkBjC,GAOjC,SAASwC,EAAgBxC,GAC9B,OAAO2B,OAAQM,KAAK,iBAAkBjC,GAOjC,SAASyC,EAAezC,GAC7B,OAAO2B,OAAQM,KAAK,gBAAiBjC,GAOhC,SAAS0C,EAAoB1C,GAClC,OAAO2B,OAAQM,KAAK,sBAAuBjC,GAOtC,SAAS2C,EAAoB3C,GAClC,OAAO2B,OAAQM,KAAK,sBAAuBjC,GAOtC,SAAS4C,EAAoB5C,GAClC,OAAO2B,OAAQM,KAAK,sBAAuBjC,GAOtC,SAAS6C,EAAmB7C,GACjC,OAAO2B,OAAQM,KAAK,qBAAsBjC,GAOrC,SAAS8C,EAAiB9C,GAC/B,OAAO2B,OAAQM,KAAK,kBAAmBjC,GAOlC,SAAS+C,EAAmB/C,GACjC,OAAO2B,OAAQC,IAAI,qBAAsB5B,GAMpC,SAASgD,EAAqBhD,GACnC,OAAO2B,OAAQM,KAAK,uBAAwBjC","file":"h5/js/chunk-c929bd1e.43713bf7.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\",staticClass:\"flash-sale \"},[_c('div',{staticClass:\"saleBox\"},[(_vm.timeList[_vm.active])?_c('div',{staticClass:\"header\"},[_c('img',{attrs:{\"src\":_vm.timeList[_vm.active].slide}})]):_vm._e()]),_vm._m(0),_c('Tabs',{ref:\"timeList\",staticClass:\"time-tabs\",attrs:{\"line-height\":\"0\",\"animated\":\"\",\"title-inactive-color\":\"2\",\"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 acea-row row-column-around\",attrs:{\"slot\":\"title\"},on:{\"click\":function($event){return _vm.setTime(index)}},slot:\"title\"},[_c('span',{staticClass:\"time\"},[_vm._v(_vm._s(item.time))]),_c('span',{staticClass:\"state\"},[_vm._v(_vm._s(item.state))])]),_c('div',{staticClass:\"list\"},_vm._l((_vm.seckillList),function(itemSeckill,indexSeckill){return _c('div',{key:indexSeckill,staticClass:\"item acea-row row-between-wrapper\",on:{\"click\":function($event){return _vm.goDetail(itemSeckill.id, item.status)}}},[_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\"},[_c('span',{staticClass:\"num font-color-red\",domProps:{\"textContent\":_vm._s('¥' + itemSeckill.price)}}),_c('span',{staticClass:\"ot_price\",domProps:{\"textContent\":_vm._s('¥' + itemSeckill.ot_price)}})]),_c('div',{staticClass:\"stock\"},[_vm._v(\"\\n 限量\"),_c('span',{domProps:{\"textContent\":_vm._s(itemSeckill.quota_show + '件')}})]),_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.percent + '%')}})])]),(item.status === 1 && itemSeckill.quota > 0)?_c('div',{staticClass:\"grab bg-color-red\"},[_vm._v(\"\\n 马上抢\\n \")]):_vm._e(),(item.status === 1 && itemSeckill.quota <= 0)?_c('div',{staticClass:\"grab bg-color-hui\"},[_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-hui\"},[_vm._v(\"\\n 已结束\\n \")]):_vm._e()])}),0),(!_vm.status || (_vm.seckillList.length === 0 && _vm.page > 1))?_c('div',{staticClass:\"noCommodity\"},[_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),_c('div',{attrs:{\"id\":\"title0\"}}),_c('div',{attrs:{\"id\":\"title1\"}}),_c('div',{attrs:{\"id\":\"title2\"}})],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"logoPic\"},[_c('img',{attrs:{\"src\":require(\"../../assets/images/baokuan.png\")}})])}]\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"flash-sale \" ref=\"container\">\r\n <div class=\"saleBox\">\r\n <div class=\"header\" v-if=\"timeList[active]\">\r\n <img :src=\"timeList[active].slide\" />\r\n </div>\r\n </div>\r\n <div class=\"logoPic\">\r\n <img src=\"../../assets/images/baokuan.png\" />\r\n </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\r\n ref=\"timeList\"\r\n >\r\n <Tab v-for=\"(item, index) in timeList\" :key=\"index\">\r\n <div\r\n slot=\"title\"\r\n class=\"timeItem acea-row row-column-around\"\r\n @click=\"setTime(index)\"\r\n >\r\n <span class=\"time\">{{ item.time }}</span>\r\n <span class=\"state\">{{ item.state }}</span>\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 @click=\"goDetail(itemSeckill.id, item.status)\"\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 <span\r\n v-text=\"'¥' + itemSeckill.ot_price\"\r\n class=\"ot_price\"\r\n ></span>\r\n </div>\r\n <div class=\"stock\">\r\n 限量<span v-text=\"itemSeckill.quota_show + '件'\"></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.percent + '%'\"\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.quota > 0\"\r\n >\r\n 马上抢\r\n </div>\r\n <div\r\n class=\"grab bg-color-hui\"\r\n v-if=\"item.status === 1 && itemSeckill.quota <= 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-hui\" v-if=\"item.status === 0\">\r\n 已结束\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"noCommodity\"\r\n v-cloak\r\n v-if=\"!status || (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 id=\"title0\"></div>\r\n <div id=\"title1\"></div>\r\n <div id=\"title2\"></div>\r\n </div>\r\n</template>\r\n<script>\r\nimport { getSeckillConfig, getSeckillList } from \"@api/activity\";\r\n// import CountDown from \"@components/CountDown\";\r\nimport { Tab, Tabs } from \"vant\";\r\nimport Loading from \"@components/Loading\";\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 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, \"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.loadingList = false;\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.seckillList = [];\r\n that.page = 1;\r\n that.status = false;\r\n that.loadingList = false;\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 that.loadingList = true;\r\n var time = that.timeList[that.active].id;\r\n getSeckillList(time, { page: that.page, limit: that.limit })\r\n .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 .catch(() => {\r\n that.loadingList = false;\r\n });\r\n },\r\n goDetail: function(id, status) {\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 + \"/\" + status\r\n });\r\n }\r\n }\r\n};\r\n</script>\r\n<style scoped>\r\n.cart-color {\r\n border: none !important;\r\n}\r\n.saleBox {\r\n width: 100%;\r\n height: 2.54rem;\r\n background: #f44939;\r\n opacity: 1;\r\n border-radius: 0 0 0.5rem 0.5rem;\r\n padding: 0.24rem 0.2rem 0 0.2rem;\r\n box-sizing: border-box;\r\n}\r\n.header {\r\n width: 100%;\r\n height: 3rem;\r\n box-sizing: border-box;\r\n margin-top: 0.4rem;\r\n border-radius: 0.2rem 0.2rem 0 0;\r\n overflow: hidden;\r\n background: #f5f5f5;\r\n}\r\n.header img {\r\n width: 100%;\r\n height: 100%;\r\n border-radius: 0.2rem;\r\n overflow: hidden;\r\n}\r\n.timeItem {\r\n font-size: 0.22rem;\r\n color: #333;\r\n width: 100%;\r\n text-align: center;\r\n background-color: #f5f5f5;\r\n padding: 0.21rem 0 0.28rem 0;\r\n}\r\n.flash-sale {\r\n height: 100%;\r\n background: #f5f5f5 !important;\r\n}\r\n.time-tabs {\r\n background: #f5f5f5;\r\n top: 1.1rem;\r\n}\r\n.time-tabs.van-tabs--line {\r\n padding: 0;\r\n background: #f5f5f5;\r\n}\r\n.timeItem .time {\r\n font-size: 0.36rem;\r\n font-weight: bold;\r\n height: 0.5rem;\r\n line-height: 0.5rem;\r\n}\r\n.timeItem .state {\r\n height: 0.3rem;\r\n line-height: 0.3rem;\r\n font-size: 0.2rem;\r\n width: auto;\r\n margin: auto;\r\n}\r\n.activity {\r\n color: #333;\r\n}\r\n.flash-sale .list .item .grab {\r\n background-color: #999;\r\n}\r\n.logoPic {\r\n width: 0.75rem;\r\n height: 0.7rem;\r\n position: absolute;\r\n top: 3.9rem;\r\n z-index: 32;\r\n left: 3.5%;\r\n}\r\n.logoPic img {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.list {\r\n padding: 0 0.2rem;\r\n}\r\n.stock {\r\n color: #999999;\r\n font-size: 0.22rem;\r\n margin-bottom: 0.08rem;\r\n}\r\n.ot_price {\r\n text-decoration: line-through;\r\n color: #999999;\r\n font-size: 0.24rem;\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!./GoodsSeckill.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!./GoodsSeckill.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GoodsSeckill.vue?vue&type=template&id=0ce76860&scoped=true&\"\nimport script from \"./GoodsSeckill.vue?vue&type=script&lang=js&\"\nexport * from \"./GoodsSeckill.vue?vue&type=script&lang=js&\"\nimport style0 from \"./GoodsSeckill.vue?vue&type=style&index=0&id=0ce76860&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 \"0ce76860\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"h5/img/baokuan.6313c8c8.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!./GoodsSeckill.vue?vue&type=style&index=0&id=0ce76860&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!./GoodsSeckill.vue?vue&type=style&index=0&id=0ce76860&scoped=true&lang=css&\"","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":""}
|