{"version":3,"sources":["webpack:///./src/views/user/signIn/Integral.vue?bcfe","webpack:///src/views/user/signIn/Integral.vue","webpack:///./src/views/user/signIn/Integral.vue?7a8a","webpack:///./src/views/user/signIn/Integral.vue","webpack:///./src/assets/images/score.png"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","_v","_s","info","integral","sum_integral","deduction_integral","today_integral","_l","item","index","key","class","current","on","click","$event","nav","icon","name","attrs","hidden","_m","mark","add_time","pm","number","_e","to","src","__webpack_require__","loaded","loading","staticRenderFns","Integralvue_type_script_lang_js_","components","Loading","props","data","navList","where","page","limit","sign","all","list","mounted","_this","getIntegral","getInfo","$scroll","$refs","container","methods","that","Object","user","then","res","length","loadTitle","push","apply","err","$dialog","message","msg","signIn_Integralvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__","module","exports","p"],"mappings":"yHAAA,IAAAA,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,IAAA,YAAAC,YAAA,oBAA+C,CAAAH,EAAA,OAAYG,YAAA,UAAqB,CAAAH,EAAA,OAAYG,YAAA,gBAA2B,CAAAP,EAAAQ,GAAA,UAAAJ,EAAA,OAAAJ,EAAAQ,GAAAR,EAAAS,GAAAT,EAAAU,KAAAC,aAAAP,EAAA,OAA2EG,YAAA,SAAmBH,EAAA,OAAYG,YAAA,gBAA2B,CAAAH,EAAA,OAAYG,YAAA,QAAmB,CAAAH,EAAA,OAAYG,YAAA,OAAkB,CAAAP,EAAAQ,GAAAR,EAAAS,GAAAT,EAAAU,KAAAE,iBAAAR,EAAA,OAAAJ,EAAAQ,GAAA,YAAAJ,EAAA,OAAiFG,YAAA,QAAmB,CAAAH,EAAA,OAAYG,YAAA,OAAkB,CAAAP,EAAAQ,GAAAR,EAAAS,GAAAT,EAAAU,KAAAG,uBAAAT,EAAA,OAAAJ,EAAAQ,GAAA,YAAAJ,E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AC,UAAA,YACAL,EAAAf,SAAAe,EAAAE,aAGAI,QAAA,CACApC,IAAA,SAAAP,GACAhB,KAAAmB,QAAAH,GAEAuC,QAAA,WACA,IAAAK,EAAA5D,KACA,GAAA4D,EAAAvB,QAAA,GAAAuB,EAAAtB,UACAsB,EAAAtB,SAAA,EACAuB,OAAAC,EAAA,KAAAD,CAAAD,EAAAd,OAAAiB,KACA,SAAAC,GACAJ,EAAAtB,SAAA,EACAsB,EAAAvB,OAAA2B,EAAApB,KAAAqB,OAAAL,EAAAd,MAAAE,MACAY,EAAAM,UAAAN,EAAAvB,OAAA,mBACAuB,EAAAd,MAAAC,KAAAa,EAAAd,MAAAC,KAAA,EACAa,EAAAT,KAAAgB,KAAAC,MAAAR,EAAAT,KAAAa,EAAApB,OAEA,SAAAyB,GACAT,EAAAU,QAAAC,QAAAF,EAAAG,SAIAlB,YAAA,WACA,IAAAM,EAAA5D,KACA6D,OAAAC,EAAA,KAAAD,CAAAD,EAAAhB,MAAAmB,KACA,SAAAC,GACAJ,EAAAnD,KAAAuD,EAAApB,MAEA,SAAAyB,GACAT,EAAAU,QAAAC,QAAAF,EAAAG,UC1IgXC,EAAA,cCOhXC,EAAgBb,OAAAc,EAAA,KAAAd,CACdY,EACA3E,EACAyC,GACF,EACA,KACA,KACA,MAIeqC,EAAA,WAAAF,gCClBfG,EAAAC,QAAiB1C,EAAA2C,EAAuB","file":"h5/js/chunk-2d5271a2.d3dae971.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\",staticClass:\"integral-details\"},[_c('div',{staticClass:\"header\"},[_c('div',{staticClass:\"currentScore\"},[_vm._v(\"当前积分\")]),_c('div',[_vm._v(_vm._s(_vm.info.integral))]),_c('div',{staticClass:\"line\"}),_c('div',{staticClass:\"nav acea-row\"},[_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"num\"},[_vm._v(_vm._s(_vm.info.sum_integral))]),_c('div',[_vm._v(\"累计积分\")])]),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"num\"},[_vm._v(_vm._s(_vm.info.deduction_integral))]),_c('div',[_vm._v(\"累计消费\")])]),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"num\"},[_vm._v(_vm._s(_vm.info.today_integral))]),_c('div',[_vm._v(\"今日获得\")])])])]),_c('div',{staticClass:\"wrapper\"},[_c('div',{staticClass:\"nav acea-row\"},_vm._l((_vm.navList),function(item,index){return _c('div',{key:index,staticClass:\"item acea-row row-center-wrapper\",class:_vm.current === index ? 'on' : '',on:{\"click\":function($event){return _vm.nav(index)}}},[_c('span',{staticClass:\"iconfont\",class:item.icon}),_vm._v(_vm._s(item.name)+\"\\n \")])}),0),_c('div',{staticClass:\"list\",attrs:{\"hidden\":_vm.current !== 0}},[_vm._m(0),_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:\"item acea-row row-between-wrapper\"},[_c('div',[_c('div',{staticClass:\"state\"},[_vm._v(_vm._s(item.mark))]),_c('div',[_vm._v(_vm._s(item.add_time))])]),(item.pm == 1)?_c('div',{staticClass:\"num\"},[_vm._v(\"+\"+_vm._s(item.number))]):_vm._e(),(item.pm == 0)?_c('div',{staticClass:\"num font-color-red\"},[_vm._v(\"\\n -\"+_vm._s(item.number)+\"\\n \")]):_vm._e()])})],2),_c('div',{staticClass:\"list2\",attrs:{\"hidden\":_vm.current !== 1}},[_c('router-link',{staticClass:\"item acea-row row-between-wrapper\",attrs:{\"to\":'/'}},[_c('div',{staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":require(\"@assets/images/score.png\")}})]),_c('div',{staticClass:\"name\"},[_vm._v(\"购买商品可获得积分奖励\")]),_c('div',{staticClass:\"earn\"},[_vm._v(\"赚积分\")])]),_c('router-link',{staticClass:\"item acea-row row-between-wrapper\",attrs:{\"to\":'/user/sign'}},[_c('div',{staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":require(\"@assets/images/score.png\")}})]),_c('div',{staticClass:\"name\"},[_vm._v(\"每日签到可获得积分奖励\")]),_c('div',{staticClass:\"earn\"},[_vm._v(\"赚积分\")])])],1)]),_c('Loading',{attrs:{\"loaded\":_vm.loaded,\"loading\":_vm.loading}})],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tip acea-row row-middle\"},[_c('span',{staticClass:\"iconfont icon-shuoming\"}),_vm._v(\"提示:积分数值的高低会直接影响您的会员等级\\n \")])}]\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"integral-details\" ref=\"container\">\r\n <div class=\"header\">\r\n <div class=\"currentScore\">当前积分</div>\r\n <div>{{ info.integral }}</div>\r\n <div class=\"line\"></div>\r\n <div class=\"nav acea-row\">\r\n <div class=\"item\">\r\n <div class=\"num\">{{ info.sum_integral }}</div>\r\n <div>累计积分</div>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"num\">{{ info.deduction_integral }}</div>\r\n <div>累计消费</div>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"num\">{{ info.today_integral }}</div>\r\n <div>今日获得</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"wrapper\">\r\n <div class=\"nav acea-row\">\r\n <div\r\n class=\"item acea-row row-center-wrapper\"\r\n :class=\"current === index ? 'on' : ''\"\r\n v-for=\"(item, index) in navList\"\r\n :key=\"index\"\r\n @click=\"nav(index)\"\r\n >\r\n <span class=\"iconfont\" :class=\"item.icon\"></span>{{ item.name }}\r\n </div>\r\n </div>\r\n <div class=\"list\" :hidden=\"current !== 0\">\r\n <div class=\"tip acea-row row-middle\">\r\n <span class=\"iconfont icon-shuoming\"></span\r\n >提示:积分数值的高低会直接影响您的会员等级\r\n </div>\r\n <div\r\n class=\"item acea-row row-between-wrapper\"\r\n v-for=\"(item, index) in list\"\r\n :key=\"index\"\r\n >\r\n <div>\r\n <div class=\"state\">{{ item.mark }}</div>\r\n <div>{{ item.add_time }}</div>\r\n </div>\r\n <div class=\"num\" v-if=\"item.pm == 1\">+{{ item.number }}</div>\r\n <div class=\"num font-color-red\" v-if=\"item.pm == 0\">\r\n -{{ item.number }}\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"list2\" :hidden=\"current !== 1\">\r\n <router-link class=\"item acea-row row-between-wrapper\" :to=\"'/'\">\r\n <div class=\"pictrue\"><img src=\"@assets/images/score.png\" /></div>\r\n <div class=\"name\">购买商品可获得积分奖励</div>\r\n <div class=\"earn\">赚积分</div>\r\n </router-link>\r\n <router-link\r\n class=\"item acea-row row-between-wrapper\"\r\n :to=\"'/user/sign'\"\r\n >\r\n <div class=\"pictrue\"><img src=\"@assets/images/score.png\" /></div>\r\n <div class=\"name\">每日签到可获得积分奖励</div>\r\n <div class=\"earn\">赚积分</div>\r\n </router-link>\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 { getIntegralList, postSignUser } from \"../../../api/user\";\r\nimport Loading from \"@components/Loading\";\r\nexport default {\r\n name: \"Integral\",\r\n components: {\r\n Loading\r\n },\r\n props: {},\r\n data: function() {\r\n return {\r\n navList: [\r\n { name: \"分值明细\", icon: \"icon-mingxi\" },\r\n { name: \"分值提升\", icon: \"icon-tishengfenzhi\" }\r\n ],\r\n current: 0,\r\n where: {\r\n page: 1,\r\n limit: 15\r\n },\r\n data: {\r\n sign: 1,\r\n integral: 1,\r\n all: 1\r\n },\r\n list: [],\r\n info: [],\r\n loaded: false,\r\n loading: false\r\n };\r\n },\r\n mounted: function() {\r\n this.getIntegral();\r\n this.getInfo();\r\n this.$scroll(this.$refs.container, () => {\r\n !this.loading && this.getInfo();\r\n });\r\n },\r\n methods: {\r\n nav: function(index) {\r\n this.current = index;\r\n },\r\n getInfo: function() {\r\n let that = this;\r\n if (that.loaded == true || that.loading == true) return;\r\n that.loading = true;\r\n getIntegralList(that.where).then(\r\n res => {\r\n that.loading = false;\r\n that.loaded = res.data.length < that.where.limit;\r\n that.loadTitle = that.loaded ? \"人家是有底线的\" : \"上拉加载更多\";\r\n that.where.page = that.where.page + 1;\r\n that.list.push.apply(that.list, res.data);\r\n },\r\n err => {\r\n that.$dialog.message(err.msg);\r\n }\r\n );\r\n },\r\n getIntegral: function() {\r\n let that = this;\r\n postSignUser(that.data).then(\r\n res => {\r\n that.info = res.data;\r\n },\r\n err => {\r\n that.$dialog.message(err.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!./Integral.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!./Integral.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Integral.vue?vue&type=template&id=cebe9a7c&\"\nimport script from \"./Integral.vue?vue&type=script&lang=js&\"\nexport * from \"./Integral.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","module.exports = __webpack_public_path__ + \"h5/img/score.30715cf5.png\";"],"sourceRoot":""}