1 |
- {"version":3,"sources":["webpack:///./src/views/activity/GoodsBargain.vue?cdeb","webpack:///src/views/activity/GoodsBargain.vue","webpack:///./src/views/activity/GoodsBargain.vue?d6b9","webpack:///./src/views/activity/GoodsBargain.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_l","item","index","key","attrs","src","image","domProps","textContent","_s","title","_v","people","min_price","on","click","$event","goDetail","id","status","_e","getBargainList","staticRenderFns","GoodsBargainvue_type_script_lang_js_","name","components","props","data","bargainLis","loading","page","limit","mounted","methods","that","Object","activity","then","res","length","push","apply","$router","path","activity_GoodsBargainvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__"],"mappings":"uHAAA,IAAAA,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,gBAA2B,CAAAF,EAAA,OAAYE,YAAA,WAAqBF,EAAA,OAAYE,YAAA,QAAmB,CAAAN,EAAAO,GAAAP,EAAA,oBAAAQ,EAAAC,GAA+C,OAAAL,EAAA,OAAiBM,IAAAD,EAAAH,YAAA,qCAA0D,CAAAF,EAAA,OAAYE,YAAA,WAAsB,CAAAF,EAAA,OAAYO,MAAA,CAAOC,IAAAJ,EAAAK,WAAkBT,EAAA,OAAcE,YAAA,mCAA8C,CAAAF,EAAA,OAAYE,YAAA,QAAAQ,SAAA,CAA8BC,YAAAf,EAAAgB,GAAAR,EAAAS,UAAkCb,EAAA,OAAYE,YAAA,OAAkB,CAAAF,EAAA,QAAaE,YAAA,0BAAoCN,EAAAkB,GAAAlB,EAAAgB,GAAAR,EAAAW,QAAA,qBAAAf,EAAA,OAA4DE,YAAA,wBAAmC,CAAAN,EAAAkB,GAAA,sBAAAd,EAAA,QAA0CE,YAAA,QAAAQ,SAAA,CAA8BC,YAAAf,EAAAgB,GAAAR,EAAAY,kBAAsChB,EAAA,OAAgBE,YAAA,sBAAAe,GAAA,CAAsCC,MAAA,SAAAC,GAAyB,OAAAvB,EAAAwB,SAAAhB,EAAAiB,OAA+B,CAAArB,EAAA,QAAaE,YAAA,yBAAmCN,EAAAkB,GAAA,sBAA6BlB,EAAA0B,OAA4F1B,EAAA2B,KAA5FvB,EAAA,OAA0BE,YAAA,sBAAAe,GAAA,CAAsCC,MAAAtB,EAAA4B,iBAA4B,CAAA5B,EAAAkB,GAAA,iCACjkCW,EAAA,eC+BAC,EAAA,CACAC,KAAA,eACAC,WAAA,GACAC,MAAA,GACAC,KAAA,WACA,OACAC,WAAA,GACAT,QAAA,EACAU,SAAA,EACAC,KAAA,EACAC,MAAA,KAGAC,QAAA,WACAtC,KAAA2B,kBAEAY,QAAA,CACAZ,eAAA,WACA,IAAAa,EAAAxC,KACAwC,EAAAL,SACAK,EAAAf,SACAe,EAAAL,SAAA,EACAM,OAAAC,EAAA,KAAAD,CAAA,CAAAL,KAAAI,EAAAJ,KAAAC,MAAAG,EAAAH,QAAAM,KAAA,SAAAC,GACAJ,EAAAf,OAAAmB,EAAAX,KAAAY,OAAAL,EAAAH,MACAG,EAAAN,WAAAY,KAAAC,MAAAP,EAAAN,WAAAU,EAAAX,MACAO,EAAAJ,OACAI,EAAAL,SAAA,MAGAZ,SAAA,SAAAC,GACAxB,KAAAgD,QAAAF,KAAA,CACAG,KAAA,4BAAAzB,EAAA,UC/DqW0B,EAAA,cCOrWC,EAAgBV,OAAAW,EAAA,KAAAX,CACdS,EACApD,EACA8B,GACF,EACA,KACA,KACA,MAIeyB,EAAA,WAAAF","file":"h5/js/chunk-2d221dc8.cf00bb8a.js","sourcesContent":["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/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!./GoodsBargain.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!./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/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":""}
|