1 |
- {"version":3,"sources":["webpack:///./src/views/user/signIn/Integral.vue?f9fe","webpack:///src/views/user/signIn/Integral.vue","webpack:///./src/views/user/signIn/Integral.vue?be0e","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","$event","nav","icon","name","attrs","_m","mark","add_time","pm","number","_e","loaded","loading","staticRenderFns","components","Loading","props","data","navList","where","page","limit","sign","all","list","mounted","getIntegral","getInfo","$scroll","$refs","container","methods","that","component","module","exports"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,IAAI,YAAYC,YAAY,oBAAoB,CAACH,EAAG,MAAM,CAACG,YAAY,UAAU,CAACH,EAAG,MAAM,CAACG,YAAY,gBAAgB,CAACP,EAAIQ,GAAG,UAAUJ,EAAG,MAAM,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,KAAKC,aAAaP,EAAG,MAAM,CAACG,YAAY,SAASH,EAAG,MAAM,CAACG,YAAY,gBAAgB,CAACH,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACH,EAAG,MAAM,CAACG,YAAY,OAAO,CAACP,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,KAAKE,iBAAiBR,EAAG,MAAM,CAACJ,EAAIQ,GAAG,YAAYJ,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACH,EAAG,MAAM,CAACG,YAAY,OAAO,CAACP,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,KAAKG,uBAAuBT,EAAG,MAAM,CAACJ,EAAIQ,GAAG,YAAYJ,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACH,EAAG,MAAM,CAACG,YAAY,OAAO,CAACP,EAAIQ,GAAGR,EA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AMC,WAAW,YAChC,EAAP,yBAGEC,QAAS,CACP9B,IAAK,SAAT,GACMtB,KAAKmB,QAAUH,GAEjBgC,QAAS,WACP,IAAN,OACyB,GAAfK,EAAKrB,QAAkC,GAAhBqB,EAAKpB,UAChCoB,EAAKpB,SAAU,EACf,OAAN,OAAM,CAAN,eACA,YACQ,EAAR,WACQ,EAAR,mCACQ,EAAR,sCACQ,EAAR,0BACQ,EAAR,kCAEA,YACQ,EAAR,4BAIIc,YAAa,WACX,IAAN,OACM,OAAN,OAAM,CAAN,cACA,YACQ,EAAR,eAEA,YACQ,EAAR,6BC1Iod,I,YCOhdO,EAAY,eACd,EACAxD,EACAoC,GACA,EACA,KACA,KACA,MAIa,aAAAoB,E,8BClBfC,EAAOC,QAAU,IAA0B","file":"h5/js/chunk-2d5271a2.26ece090.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@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!./Integral.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!./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@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","module.exports = __webpack_public_path__ + \"h5/img/score.30715cf5.png\";"],"sourceRoot":""}
|