1 |
- {"version":3,"sources":["webpack:///./src/views/activity/BargainRecord.vue?dde9","webpack:///src/views/activity/BargainRecord.vue","webpack:///./src/views/activity/BargainRecord.vue?23f8","webpack:///./src/views/activity/BargainRecord.vue","webpack:///./src/components/CountDown.vue?6b45","webpack:///src/components/CountDown.vue","webpack:///./src/components/CountDown.vue?4b22","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","image","_v","_s","title","datatime","residue_price","status","on","$event","getBargainUserCancel","bargain_id","_e","goDetail","goList","loadingList","staticRenderFns","name","components","CountDown","Loading","props","data","bargain","page","limit","mounted","getBargainUserList","$scroll","$refs","container","methods","$router","push","path","id","that","component","tipText","isDay","day","dayText","hour","hourText","minute","minuteText","second","secondText","type","String","default","Number","Boolean","created","show_time","runTime","intDiff","Math","floor","setInterval","getCombinationList","request","get","login","getCombinationDetail","getCombinationPink","getCombinationRemove","post","getCombinationPoster","getSeckillConfig","getSeckillList","time","getSeckillDetail","getBargainList","getBargainDetail","getBargainShare","getBargainStart","getBargainHelp","getBargainHelpPrice","getBargainHelpCount","getBargainStartUser","getBargainHelpList","getBargainPoster"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,IAAI,YAAYC,YAAY,kBAAkB,CAACP,EAAIQ,GAAIR,EAAW,SAAE,SAASS,EAAKC,GAAO,OAAON,EAAG,MAAM,CAACO,IAAID,EAAMH,YAAY,QAAQ,CAACH,EAAG,MAAM,CAACG,YAAY,uCAAuC,CAACH,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,MAAM,CAACQ,MAAM,CAAC,IAAMH,EAAKI,WAAWT,EAAG,MAAM,CAACG,YAAY,mCAAmC,CAACH,EAAG,MAAM,CAACG,YAAY,SAAS,CAACP,EAA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,EAAevD,GAC7B,OAAOuC,OAAQM,KAAK,gBAAiB7C,GAOhC,SAASwD,EAAoBxD,GAClC,OAAOuC,OAAQM,KAAK,sBAAuB7C,GAOtC,SAASyD,EAAoBzD,GAClC,OAAOuC,OAAQM,KAAK,sBAAuB7C,GAOtC,SAAS0D,EAAoB1D,GAClC,OAAOuC,OAAQM,KAAK,sBAAuB7C,GAOtC,SAAS2D,EAAmB3D,GACjC,OAAOuC,OAAQM,KAAK,qBAAsB7C,GAOrC,SAAS4D,EAAiB5D,GAC/B,OAAOuC,OAAQM,KAAK,kBAAmB7C,GAOlC,SAASK,EAAmBL,GACjC,OAAOuC,OAAQC,IAAI,qBAAsBxC,GAMpC,SAASZ,EAAqBY,GACnC,OAAOuC,OAAQM,KAAK,uBAAwB7C","file":"h5/js/chunk-9cb98e8c.efc00f03.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@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!./BargainRecord.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!./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@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","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@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!./CountDown.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!./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@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","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":""}
|