1 |
- {"version":3,"sources":["webpack:///./src/api/activity.js","webpack:///./src/views/activity/GoodsGroup.vue?de87","webpack:///src/views/activity/GoodsGroup.vue","webpack:///./src/views/activity/GoodsGroup.vue?2813","webpack:///./src/views/activity/GoodsGroup.vue"],"names":["__webpack_require__","d","__webpack_exports__","getCombinationList","getCombinationDetail","getCombinationPink","getCombinationRemove","getCombinationPoster","getSeckillConfig","getSeckillList","getSeckillDetail","getBargainList","getBargainDetail","getBargainShare","getBargainStart","getBargainHelp","getBargainHelpPrice","getBargainHelpCount","getBargainStartUser","getBargainHelpList","getBargainPoster","getBargainUserList","getBargainUserCancel","_utils_request__WEBPACK_IMPORTED_MODULE_0__","data","request","get","login","id","post","time","render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","_l","item","index","key","on","click","$event","link","attrs","src","image","domProps","textContent","_s","title","people","_v","price","product_price","_m","loaded","status","loading","loadingList","staticRenderFns","GoodsGroupvue_type_script_lang_js_","name","components","Loading","props","combinationList","page","limit","mounted","_this","$scroll","$refs","container","methods","that","Object","activity","then","res","length","push","apply","$router","path","activity_GoodsGroupvue_type_script_lang_js_","component","componentNormalizer"],"mappings":"gHAAAA,EAAAC,EAAAC,EAAA,sBAAAC,IAAAH,EAAAC,EAAAC,EAAA,sBAAAE,IAAAJ,EAAAC,EAAAC,EAAA,sBAAAG,IAAAL,EAAAC,EAAAC,EAAA,sBAAAI,IAAAN,EAAAC,EAAAC,EAAA,sBAAAK,IAAAP,EAAAC,EAAAC,EAAA,sBAAAM,IAAAR,EAAAC,EAAAC,EAAA,sBAAAO,IAAAT,EAAAC,EAAAC,EAAA,sBAAAQ,IAAAV,EAAAC,EAAAC,EAAA,sBAAAS,IAAAX,EAAAC,EAAAC,EAAA,sBAAAU,IAAAZ,EAAAC,EAAAC,EAAA,sBAAAW,IAAAb,EAAAC,EAAAC,EAAA,sBAAAY,IAAAd,EAAAC,EAAAC,EAAA,sBAAAa,IAAAf,EAAAC,EAAAC,EAAA,sBAAAc,IAAA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,MAIe9D,EAAA,WAAAwF","file":"h5/js/chunk-c70af1fc.90f8abce.js","sourcesContent":["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, time) {\r\n return request.get(\r\n \"/seckill/detail/\" + id + \"/\" + time,\r\n {},\r\n { login: false }\r\n );\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\",staticClass:\"group-list\"},[_c('div',{staticClass:\"header\"}),_c('div',{staticClass:\"list\"},[_vm._l((_vm.combinationList),function(item,index){return _c('div',{key:index,staticClass:\"item acea-row row-between-wrapper\",on:{\"click\":function($event){return _vm.link(item.id)}}},[_c('div',{staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":item.image}})]),_c('div',{staticClass:\"text\"},[_c('div',{staticClass:\"line1\",domProps:{\"textContent\":_vm._s(item.title)}}),_c('div',{staticClass:\"acea-row\"},[_c('div',{staticClass:\"team acea-row row-middle cart-color\"},[_c('div',{staticClass:\"iconfont icon-pintuan\"}),_c('div',{staticClass:\"num\",domProps:{\"textContent\":_vm._s(item.people + '人团')}})])]),_c('div',{staticClass:\"bottom acea-row row-between-wrapper\"},[_c('div',{staticClass:\"money\"},[_vm._v(\"\\n ¥\"),_c('span',{staticClass:\"num\",domProps:{\"textContent\":_vm._s(item.price)}}),_c('span',{staticClass:\"y-money\",domProps:{\"textContent\":_vm._s('¥' + item.product_price)}})]),_vm._m(0,true)])])])}),_c('Loading',{attrs:{\"loaded\":_vm.status,\"loading\":_vm.loadingList}})],2)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"groupBnt bg-color-red\"},[_vm._v(\"\\n 去拼团\"),_c('span',{staticClass:\"iconfont icon-jiantou\"})])}]\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"group-list\" ref=\"container\">\r\n <div class=\"header\"></div>\r\n <div class=\"list\">\r\n <div\r\n class=\"item acea-row row-between-wrapper\"\r\n v-for=\"(item, index) in combinationList\"\r\n :key=\"index\"\r\n @click=\"link(item.id)\"\r\n >\r\n <div class=\"pictrue\"><img :src=\"item.image\" /></div>\r\n <div class=\"text\">\r\n <div class=\"line1\" v-text=\"item.title\"></div>\r\n <div class=\"acea-row\">\r\n <div class=\"team acea-row row-middle cart-color\">\r\n <div class=\"iconfont icon-pintuan\"></div>\r\n <div class=\"num\" v-text=\"item.people + '人团'\"></div>\r\n </div>\r\n </div>\r\n <div class=\"bottom acea-row row-between-wrapper\">\r\n <div class=\"money\">\r\n ¥<span class=\"num\" v-text=\"item.price\"></span\r\n ><span class=\"y-money\" v-text=\"'¥' + item.product_price\"></span>\r\n </div>\r\n <div class=\"groupBnt bg-color-red\">\r\n 去拼团<span class=\"iconfont icon-jiantou\"></span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <Loading :loaded=\"status\" :loading=\"loadingList\"></Loading>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport { getCombinationList } from \"@api/activity\";\r\nimport Loading from \"@components/Loading\";\r\n\r\nexport default {\r\n name: \"GoodsGroup\",\r\n components: {\r\n Loading\r\n },\r\n props: {},\r\n data: function() {\r\n return {\r\n combinationList: [],\r\n status: false, //砍价列表是否获取完成 false 未完成 true 完成\r\n loading: false, //当前接口是否请求完成 false 完成 true 未完成\r\n page: 1, //页码\r\n limit: 20, //数量\r\n loadingList: false\r\n };\r\n },\r\n mounted: function() {\r\n this.getCombinationList();\r\n this.$scroll(this.$refs.container, () => {\r\n !this.loadingList && this.getCombinationList();\r\n });\r\n },\r\n methods: {\r\n getCombinationList: function() {\r\n var that = this;\r\n if (that.loading) return;\r\n if (that.status) return;\r\n getCombinationList({ page: that.page, limit: that.limit }).then(res => {\r\n that.status = res.data.length < that.limit;\r\n that.combinationList.push.apply(that.combinationList, res.data);\r\n that.page++;\r\n that.loading = false;\r\n });\r\n },\r\n link: function(id) {\r\n this.$router.push({\r\n path: \"/activity/group_detail/\" + id\r\n });\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!./GoodsGroup.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!./GoodsGroup.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GoodsGroup.vue?vue&type=template&id=3e59a149&\"\nimport script from \"./GoodsGroup.vue?vue&type=script&lang=js&\"\nexport * from \"./GoodsGroup.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"],"sourceRoot":""}
|