1 |
- {"version":3,"sources":["webpack:///./src/views/user/UserBill.vue?1d37","webpack:///src/views/user/UserBill.vue","webpack:///./src/views/user/UserBill.vue?8373","webpack:///./src/views/user/UserBill.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","class","types","on","click","$event","changeTypes","_v","_l","item","index","key","_s","time","val","title","add_time","pm","number","attrs","loaded","loading","staticRenderFns","UserBillvue_type_script_lang_js_","name","components","Loading","props","data","where","page","limit","list","watch","$route.params.types","newVal","that","undefined","getIndex","mounted","$route","params","$scroll","$refs","container","methods","code","sendCode","Object","user","then","res","length","push","apply","error","$dialog","message","msg","user_UserBillvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__"],"mappings":"yHAAA,IAAAA,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,IAAA,YAAAC,YAAA,gBAA2C,CAAAH,EAAA,OAAYG,YAAA,gBAA2B,CAAAH,EAAA,OAAYG,YAAA,OAAAC,MAAA,GAAAR,EAAAS,MAAA,QAAAC,GAAA,CAAwDC,MAAA,SAAAC,GAAyB,OAAAZ,EAAAa,YAAA,MAA4B,CAAAb,EAAAc,GAAA,sBAAAV,EAAA,OAAyCG,YAAA,OAAAC,MAAA,GAAAR,EAAAS,MAAA,QAAAC,GAAA,CAAwDC,MAAA,SAAAC,GAAyB,OAAAZ,EAAAa,YAAA,MAA4B,CAAAb,EAAAc,GAAA,sBAAAV,EAAA,OAAyCG,YAAA,OAAAC,MAAA,GAAAR,EAAAS,MAAA,QAAAC,GAAA,CAAwDC,MAAA,SAAAC,GAAyB,OAAAZ,EAAAa,YAAA,MAA4B,CAAAb,EAAAc,GAAA,wBAAAV,EAAA,OAA2CG,YAAA,eAA0B,CAAAH,EAAA,OAAYG,YAAA,QAAmBP,EAAAe,GAAAf,EAAA,cAAAgB,EAAAC,GAAwC,OAAAb,EAAA,OAAiBc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O,QAAA,CACAC,KAAA,WACApD,KAAAqD,YAEAzC,YAAA,SAAAQ,GACAA,GAAApB,KAAAQ,QACAR,KAAAQ,MAAAY,EACApB,KAAAsC,KAAA,GACAtC,KAAAmC,MAAAC,KAAA,EACApC,KAAA0B,QAAA,EACA1B,KAAA2B,SAAA,IAGAiB,SAAA,WACA,IAAAF,EAAA1C,KACA,GAAA0C,EAAAhB,QAAA,GAAAgB,EAAAf,UACAe,EAAAf,SAAA,EACA2B,OAAAC,EAAA,KAAAD,CAAAZ,EAAAP,MAAAO,EAAAlC,OAAAgD,KACA,SAAAC,GACAf,EAAAf,SAAA,EACAe,EAAAhB,OAAA+B,EAAAvB,KAAAwB,OAAAhB,EAAAP,MAAAE,MACAK,EAAAP,MAAAC,KAAAM,EAAAP,MAAAC,KAAA,EACAM,EAAAJ,KAAAqB,KAAAC,MAAAlB,EAAAJ,KAAAmB,EAAAvB,OAEA,SAAA2B,GACAnB,EAAAoB,QAAAC,QAAAF,EAAAG,WCxGiWC,EAAA,cCOjWC,EAAgBZ,OAAAa,EAAA,KAAAb,CACdW,EACAnE,EACA8B,GACF,EACA,KACA,KACA,MAIewC,EAAA,WAAAF","file":"h5/js/chunk-2d0da964.83eb28ff.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\",staticClass:\"bill-details\"},[_c('div',{staticClass:\"nav acea-row\"},[_c('div',{staticClass:\"item\",class:_vm.types == 0 ? 'on' : '',on:{\"click\":function($event){return _vm.changeTypes(0)}}},[_vm._v(\"\\n 全部\\n \")]),_c('div',{staticClass:\"item\",class:_vm.types == 1 ? 'on' : '',on:{\"click\":function($event){return _vm.changeTypes(1)}}},[_vm._v(\"\\n 消费\\n \")]),_c('div',{staticClass:\"item\",class:_vm.types == 2 ? 'on' : '',on:{\"click\":function($event){return _vm.changeTypes(2)}}},[_vm._v(\"\\n 充值\\n \")])]),_c('div',{staticClass:\"sign-record\"},[_c('div',{staticClass:\"list\"},_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:\"item\"},[_c('div',{staticClass:\"data\"},[_vm._v(_vm._s(item.time))]),_vm._l((item.list),function(val,key){return _c('div',{key:key,staticClass:\"listn\"},[_c('div',{staticClass:\"itemn acea-row row-between-wrapper\"},[_c('div',[_c('div',{staticClass:\"name line1\"},[_vm._v(_vm._s(val.title))]),_c('div',[_vm._v(_vm._s(val.add_time))])]),_c('div',{staticClass:\"num\",class:val.pm == 0 ? 'font-color-red' : ''},[_vm._v(\"\\n \"+_vm._s(val.pm == 0 ? \"-\" : \"+\")+_vm._s(val.number)+\"\\n \")])])])})],2)}),0)]),_c('Loading',{attrs:{\"loaded\":_vm.loaded,\"loading\":_vm.loading}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"bill-details\" ref=\"container\">\r\n <div class=\"nav acea-row\">\r\n <div class=\"item\" :class=\"types == 0 ? 'on' : ''\" @click=\"changeTypes(0)\">\r\n 全部\r\n </div>\r\n <div class=\"item\" :class=\"types == 1 ? 'on' : ''\" @click=\"changeTypes(1)\">\r\n 消费\r\n </div>\r\n <div class=\"item\" :class=\"types == 2 ? 'on' : ''\" @click=\"changeTypes(2)\">\r\n 充值\r\n </div>\r\n </div>\r\n <div class=\"sign-record\">\r\n <div class=\"list\">\r\n <div class=\"item\" v-for=\"(item, index) in list\" :key=\"index\">\r\n <div class=\"data\">{{ item.time }}</div>\r\n <div class=\"listn\" v-for=\"(val, key) in item.list\" :key=\"key\">\r\n <div class=\"itemn acea-row row-between-wrapper\">\r\n <div>\r\n <div class=\"name line1\">{{ val.title }}</div>\r\n <div>{{ val.add_time }}</div>\r\n </div>\r\n <div class=\"num\" :class=\"val.pm == 0 ? 'font-color-red' : ''\">\r\n {{ val.pm == 0 ? \"-\" : \"+\" }}{{ val.number }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <Loading :loaded=\"loaded\" :loading=\"loading\"></Loading>\r\n </div>\r\n</template>\r\n<script>\r\nimport { getCommissionInfo } from \"../../api/user\";\r\nimport Loading from \"@components/Loading\";\r\nexport default {\r\n name: \"UserBill\",\r\n components: {\r\n Loading\r\n },\r\n props: {},\r\n data: function() {\r\n return {\r\n types: \"\",\r\n where: {\r\n page: 1,\r\n limit: 5\r\n },\r\n list: [],\r\n loaded: false,\r\n loading: false\r\n };\r\n },\r\n watch: {\r\n \"$route.params.types\": function(newVal) {\r\n let that = this;\r\n if (newVal != undefined) {\r\n that.types = newVal;\r\n that.list = [];\r\n that.where.page = 1;\r\n that.loaded = false;\r\n that.loading = false;\r\n that.getIndex();\r\n }\r\n },\r\n types: function() {\r\n this.getIndex();\r\n }\r\n },\r\n mounted: function() {\r\n let that = this;\r\n that.types = that.$route.params.types;\r\n that.getIndex();\r\n that.$scroll(that.$refs.container, () => {\r\n !that.loading && that.getIndex();\r\n });\r\n },\r\n methods: {\r\n code: function() {\r\n this.sendCode();\r\n },\r\n changeTypes: function(val) {\r\n if (val != this.types) {\r\n this.types = val;\r\n this.list = [];\r\n this.where.page = 1;\r\n this.loaded = false;\r\n this.loading = false;\r\n }\r\n },\r\n getIndex: function() {\r\n let that = this;\r\n if (that.loaded == true || that.loading == true) return;\r\n that.loading = true;\r\n getCommissionInfo(that.where, that.types).then(\r\n res => {\r\n that.loading = false;\r\n that.loaded = res.data.length < that.where.limit;\r\n that.where.page = that.where.page + 1;\r\n that.list.push.apply(that.list, res.data);\r\n },\r\n error => {\r\n that.$dialog.message(error.msg);\r\n }\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!./UserBill.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!./UserBill.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UserBill.vue?vue&type=template&id=7ab3bbea&\"\nimport script from \"./UserBill.vue?vue&type=script&lang=js&\"\nexport * from \"./UserBill.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":""}
|