1 |
- {"version":3,"sources":["webpack:///./src/api/activity.js","webpack:///./src/views/activity/GoodsBargain.vue?db7f","webpack:///src/views/activity/GoodsBargain.vue","webpack:///./src/views/activity/GoodsBargain.vue?c657","webpack:///./src/views/activity/GoodsBargain.vue"],"names":["getCombinationList","data","request","get","login","getCombinationDetail","id","getCombinationPink","getCombinationRemove","post","getCombinationPoster","getSeckillConfig","getSeckillList","time","getSeckillDetail","getBargainList","getBargainDetail","getBargainShare","getBargainStart","getBargainHelp","getBargainHelpPrice","getBargainHelpCount","getBargainStartUser","getBargainHelpList","getBargainPoster","getBargainUserList","getBargainUserCancel","render","_vm","this","_h","$createElement","_c","_self","staticClass","_l","item","index","key","attrs","image","domProps","_s","title","_v","people","min_price","on","$event","goDetail","status","_e","staticRenderFns","name","components","props","bargainLis","loading","page","limit","mounted","methods","that","res","length","push","apply","$router","path","component"],"mappings":"gHAAA,wrBAKO,SAASA,EAAmBC,GACjC,OAAOC,OAAQC,IAAI,oBAAqBF,EAAM,CAAEG,OAAO,IAOlD,SAASC,EAAqBC,GACnC,OAAOJ,OAAQC,IAAI,uBAAyBG,EAAI,GAAI,CAAEF,OAAO,IAOxD,SAASG,EAAmBD,GACjC,OAAOJ,OAAQC,IAAI,qBAAuBG,GAMrC,SAASE,EAAqBP,GACnC,OAAOC,OAAQO,KAAK,sBAAuBR,GAOtC,SAASS,EAAqBT,GACnC,OAAOC,OAAQO,KAAK,sBAAuBR,GAMtC,SAASU,IACd,OAAOT,OAAQC,IAAI,iBAAkB,GAAI,CAAEC,OAAO,IAM7C,SAASQ,EAAeC,EAAMZ,GACnC,OAAOC,OAAQC,IAAI,iBAAmBU,EAAMZ,EAAM,CAAEG,OAAO,IAMtD,SAASU,EAAiBR,GAC/B,OAAOJ,OAAQC,IAAI,mBAAqBG,EAAI,GAAI,CAAEF,OAAO,IAOpD,SAASW,EAAed,GAC7B,OAAOC,OAAQC,IAAI,gBAAiBF,EAAM,CAAEG,OAAO,IAM9C,SAASY,EAAiB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port 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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"bargain-list\"},[_c('div',{staticClass:\"header\"}),_c('div',{staticClass:\"list\"},[_vm._l((_vm.bargainLis),function(item,index){return _c('div',{key:index,staticClass:\"item acea-row row-between-wrapper\"},[_c('div',{staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":item.image}})]),_c('div',{staticClass:\"text acea-row row-column-around\"},[_c('div',{staticClass:\"line1\",domProps:{\"textContent\":_vm._s(item.title)}}),_c('div',{staticClass:\"num\"},[_c('span',{staticClass:\"iconfont icon-pintuan\"}),_vm._v(_vm._s(item.people)+\"人正在参与\\n \")]),_c('div',{staticClass:\"money font-color-red\"},[_vm._v(\"\\n 可砍至: ¥\"),_c('span',{staticClass:\"price\",domProps:{\"textContent\":_vm._s(item.min_price)}})])]),_c('div',{staticClass:\"cutBnt bg-color-red\",on:{\"click\":function($event){return _vm.goDetail(item.id)}}},[_c('span',{staticClass:\"iconfont icon-kanjia\"}),_vm._v(\"参与砍价\\n \")])])}),(!_vm.status)?_c('div',{staticClass:\"load font-color-red\",on:{\"click\":_vm.getBargainList}},[_vm._v(\"\\n 点击加载更多\\n \")]):_vm._e()],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"bargain-list\">\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 bargainLis\"\r\n :key=\"index\"\r\n >\r\n <div class=\"pictrue\"><img :src=\"item.image\" /></div>\r\n <div class=\"text acea-row row-column-around\">\r\n <div class=\"line1\" v-text=\"item.title\"></div>\r\n <div class=\"num\">\r\n <span class=\"iconfont icon-pintuan\"></span\r\n >{{ item.people }}人正在参与\r\n </div>\r\n <div class=\"money font-color-red\">\r\n 可砍至: ¥<span class=\"price\" v-text=\"item.min_price\"></span>\r\n </div>\r\n </div>\r\n <div class=\"cutBnt bg-color-red\" @click=\"goDetail(item.id)\">\r\n <span class=\"iconfont icon-kanjia\"></span>参与砍价\r\n </div>\r\n </div>\r\n <div class=\"load font-color-red\" v-if=\"!status\" @click=\"getBargainList\">\r\n 点击加载更多\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport { getBargainList } from \"@api/activity\";\r\nexport default {\r\n name: \"GoodsBargain\",\r\n components: {},\r\n props: {},\r\n data: function() {\r\n return {\r\n bargainLis: [], //砍价列表\r\n status: false, //砍价列表是否获取完成 false 未完成 true 完成\r\n loading: false, //当前接口是否请求完成 false 完成 true 未完成\r\n page: 1, //页码\r\n limit: 20 //数量\r\n };\r\n },\r\n mounted: function() {\r\n this.getBargainList();\r\n },\r\n methods: {\r\n getBargainList: function() {\r\n var that = this;\r\n if (that.loading) return;\r\n if (that.status) return;\r\n that.loading = true;\r\n getBargainList({ page: that.page, limit: that.limit }).then(res => {\r\n that.status = res.data.length < that.limit;\r\n that.bargainLis.push.apply(that.bargainLis, res.data);\r\n that.page++;\r\n that.loading = false;\r\n });\r\n },\r\n goDetail: function(id) {\r\n this.$router.push({\r\n path: \"/activity/dargain_detail/\" + id + \"/0\"\r\n });\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!./GoodsBargain.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!./GoodsBargain.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GoodsBargain.vue?vue&type=template&id=b2129354&\"\nimport script from \"./GoodsBargain.vue?vue&type=script&lang=js&\"\nexport * from \"./GoodsBargain.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"],"sourceRoot":""}
|