1 |
- {"version":3,"sources":["webpack:///./src/views/activity/BargainRecord.vue?8a12","webpack:///src/views/activity/BargainRecord.vue","webpack:///./src/views/activity/BargainRecord.vue?05bc","webpack:///./src/views/activity/BargainRecord.vue","webpack:///./src/components/CountDown.vue?6bde","webpack:///src/components/CountDown.vue","webpack:///./src/components/CountDown.vue?c935","webpack:///./src/components/CountDown.vue","webpack:///./src/api/activity.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","_l","item","index","key","attrs","src","image","_v","_s","title","is-day","tip-text","day-text","hour-text","minute-text","second-text","datatime","residue_price","status","on","click","$event","getBargainUserCancel","bargain_id","_e","goDetail","goList","loaded","loading","loadingList","staticRenderFns","BargainRecordvue_type_script_lang_js_","name","components","CountDown","Loading","props","data","bargain","page","limit","mounted","_this","getBargainUserList","$scroll","$refs","container","methods","id","$router","push","path","that","Object","activity","then","res","length","apply","catch","$dialog","error","msg","bargainId","success","activity_BargainRecordvue_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_","__webpack_require__","d","getCombinationList","getCombinationDetail","getCombinationPink","getCombinationRemove","getCombinationPoster","getSeckillConfig","getSeckillList","getSeckillDetail","getBargainList","getBargainDetail","getBargainShare","getBargainStart","getBargainHelp","getBargainHelpPrice","getBargainHelpCount","getBargainStartUser","getBargainHelpList","getBargainPoster","_utils_request__WEBPACK_IMPORTED_MODULE_0__","request","get","login","post","time"],"mappings":"uHAAA,IAAAA,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,IAAA,YAAAC,YAAA,kBAA6C,CAAAP,EAAAQ,GAAAR,EAAA,iBAAAS,EAAAC,GAA4C,OAAAN,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AAOJ,OAAQC,IACb,mBAAqBrE,EAAK,IAAMwE,EAChC,GACA,CAAEF,OAAO,IAQN,SAASb,EAAepE,GAC7B,OAAO+E,OAAQC,IAAI,gBAAiBhF,EAAM,CAAEiF,OAAO,IAM9C,SAASZ,EAAiB1D,GAC/B,OAAOoE,OAAQC,IAAI,mBAAqBrE,GAMnC,SAAS2D,EAAgBtE,GAC9B,OAAO+E,OAAQG,KAAK,iBAAkBlF,GAOjC,SAASuE,EAAgBvE,GAC9B,OAAO+E,OAAQG,KAAK,iBAAkBlF,GAOjC,SAASwE,EAAexE,GAC7B,OAAO+E,OAAQG,KAAK,gBAAiBlF,GAOhC,SAASyE,EAAoBzE,GAClC,OAAO+E,OAAQG,KAAK,sBAAuBlF,GAOtC,SAAS0E,EAAoB1E,GAClC,OAAO+E,OAAQG,KAAK,sBAAuBlF,GAOtC,SAAS2E,EAAoB3E,GAClC,OAAO+E,OAAQG,KAAK,sBAAuBlF,GAOtC,SAAS4E,EAAmB5E,GACjC,OAAO+E,OAAQG,KAAK,qBAAsBlF,GAOrC,SAAS6E,EAAiB7E,GAC/B,OAAO+E,OAAQG,KAAK,kBAAmBlF,GAOlC,SAASM,EAAmBN,GACjC,OAAO+E,OAAQC,IAAI,qBAAsBhF,GAMpC,SAASf,EAAqBe,GACnC,OAAO+E,OAAQG,KAAK,uBAAwBlF","file":"h5/js/chunk-9cb98e8c.49f477ac.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\",staticClass:\"bargain-record\"},[_vm._l((_vm.bargain),function(item,index){return _c('div',{key:index,staticClass:\"item\"},[_c('div',{staticClass:\"picTxt 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\"},[_vm._v(_vm._s(item.title))]),_c('count-down',{attrs:{\"is-day\":true,\"tip-text\":'倒计时 ',\"day-text\":' 天 ',\"hour-text\":' 时 ',\"minute-text\":' 分 ',\"second-text\":' 秒',\"datatime\":item.datatime}}),_c('div',{staticClass:\"money font-color-red\"},[_vm._v(\"\\n 已砍至\"),_c('span',{staticClass:\"symbol\"},[_vm._v(\"¥\")]),_c('span',{staticClass:\"num\"},[_vm._v(_vm._s(item.residue_price))])])],1)]),_c('div',{staticClass:\"bottom acea-row row-between-wrapper\"},[(item.status === 1)?_c('div',{staticClass:\"purple\"},[_vm._v(\"活动进行中\")]):(item.status === 3)?_c('div',{staticClass:\"success\"},[_vm._v(\"砍价成功\")]):_c('div',{staticClass:\"end\"},[_vm._v(\"活动已结束\")]),_c('div',{staticClass:\"acea-row row-middle row-right\"},[(item.status === 1)?_c('div',{staticClass:\"bnt cancel\",on:{\"click\":function($event){return _vm.getBargainUserCancel(item.bargain_id)}}},[_vm._v(\"\\n 取消活动\\n \")]):_vm._e(),(item.status === 1)?_c('div',{staticClass:\"bnt bg-color-red\",on:{\"click\":function($event){return _vm.goDetail(item.bargain_id)}}},[_vm._v(\"\\n 继续砍价\\n \")]):_c('div',{staticClass:\"bnt bg-color-red\",on:{\"click\":_vm.goList}},[_vm._v(\"重开一个\")])])])])}),_c('Loading',{attrs:{\"loaded\":_vm.status,\"loading\":_vm.loadingList}})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"bargain-record\" ref=\"container\">\r\n <div class=\"item\" v-for=\"(item, index) in bargain\" :key=\"index\">\r\n <div class=\"picTxt acea-row row-between-wrapper\">\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\">{{ item.title }}</div>\r\n <count-down\r\n :is-day=\"true\"\r\n :tip-text=\"'倒计时 '\"\r\n :day-text=\"' 天 '\"\r\n :hour-text=\"' 时 '\"\r\n :minute-text=\"' 分 '\"\r\n :second-text=\"' 秒'\"\r\n :datatime=\"item.datatime\"\r\n ></count-down>\r\n <div class=\"money font-color-red\">\r\n 已砍至<span class=\"symbol\">¥</span\r\n ><span class=\"num\">{{ item.residue_price }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"bottom acea-row row-between-wrapper\">\r\n <div class=\"purple\" v-if=\"item.status === 1\">活动进行中</div>\r\n <div class=\"success\" v-else-if=\"item.status === 3\">砍价成功</div>\r\n <div class=\"end\" v-else>活动已结束</div>\r\n <div class=\"acea-row row-middle row-right\">\r\n <div\r\n class=\"bnt cancel\"\r\n v-if=\"item.status === 1\"\r\n @click=\"getBargainUserCancel(item.bargain_id)\"\r\n >\r\n 取消活动\r\n </div>\r\n <div\r\n class=\"bnt bg-color-red\"\r\n v-if=\"item.status === 1\"\r\n @click=\"goDetail(item.bargain_id)\"\r\n >\r\n 继续砍价\r\n </div>\r\n <div class=\"bnt bg-color-red\" v-else @click=\"goList\">重开一个</div>\r\n </div>\r\n </div>\r\n </div>\r\n <Loading :loaded=\"status\" :loading=\"loadingList\"></Loading>\r\n </div>\r\n</template>\r\n<script>\r\nimport CountDown from \"@components/CountDown\";\r\nimport { getBargainUserList, getBargainUserCancel } from \"@api/activity\";\r\nimport Loading from \"@components/Loading\";\r\n\r\nexport default {\r\n name: \"BargainRecord\",\r\n components: {\r\n CountDown,\r\n Loading\r\n },\r\n props: {},\r\n data: function() {\r\n return {\r\n bargain: [],\r\n status: false, //砍价列表是否获取完成 false 未完成 true 完成\r\n loadingList: false, //当前接口是否请求完成 false 完成 true 未完成\r\n page: 1, //页码\r\n limit: 20 //数量\r\n };\r\n },\r\n mounted: function() {\r\n this.getBargainUserList();\r\n this.$scroll(this.$refs.container, () => {\r\n !this.loadingList && this.getBargainUserList();\r\n });\r\n },\r\n methods: {\r\n goDetail: function(id) {\r\n this.$router.push({\r\n path: \"/activity/dargain_detail/\" + id + \"/0\"\r\n });\r\n },\r\n goList: function() {\r\n this.$router.push({\r\n path: \"/activity/bargain\"\r\n });\r\n },\r\n getBargainUserList: function() {\r\n var that = this;\r\n if (that.loadingList) return;\r\n if (that.status) return;\r\n getBargainUserList({ page: that.page, limit: that.limit })\r\n .then(res => {\r\n that.status = res.data.length < that.limit;\r\n that.bargain.push.apply(that.bargain, res.data);\r\n that.page++;\r\n that.loadingList = false;\r\n })\r\n .catch(res => {\r\n that.$dialog.error(res.msg);\r\n });\r\n },\r\n getBargainUserCancel: function(bargainId) {\r\n var that = this;\r\n getBargainUserCancel({ bargainId: bargainId })\r\n .then(res => {\r\n that.$dialog.success(res.msg).then(() => {\r\n that.status = false;\r\n that.loadingList = false;\r\n that.page = 1;\r\n that.bargain = [];\r\n that.getBargainUserList();\r\n });\r\n })\r\n .catch(res => {\r\n that.$dialog.error(res.msg);\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!./BargainRecord.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!./BargainRecord.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./BargainRecord.vue?vue&type=template&id=371a88ca&\"\nimport script from \"./BargainRecord.vue?vue&type=script&lang=js&\"\nexport * from \"./BargainRecord.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","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/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!./CountDown.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!./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/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 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"],"sourceRoot":""}
|