1 line
9.9 KiB
Plaintext
1 line
9.9 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/老农商城/mall-laonong/pagesA/integral/integral.vue?f412","webpack:///D:/老农商城/mall-laonong/pagesA/integral/integral.vue?9301","webpack:///D:/老农商城/mall-laonong/pagesA/integral/integral.vue?28ec","webpack:///D:/老农商城/mall-laonong/pagesA/integral/integral.vue?8969","uni-app:///pagesA/integral/integral.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,sG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,iBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAqH;AACrH;AAC4D;AACL;;;AAGvD;AACoL;AACpL,gBAAgB,2LAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,mFAAM;AACR,EAAE,4FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,oMAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACpDA;AAAA;AAAA;AAAA;AAA0rB,CAAgB,wrBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACmC9sB;AACA,MADA,kBACA;AACA;AACA,sBADA,EACA;AACA,cAFA,EAEA;AACA,aAHA;AAIA,cAJA;AAKA,cALA;AAMA,mBANA;AAOA,sBAPA;;AASA,GAXA;AAYA,QAZA,oBAYA;AACA;AACA;AACA,GAfA;AAgBA,eAhBA,2BAgBA;AACA;AACA;AACA;AACA;AACA;AACA,GAtBA;AAuBA;AACA;AACA,eAFA,yBAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OATA;AAUA,KAbA;;AAeA;AACA,cAhBA,wBAgBA;AACA;AACA,oBADA;;AAGA;AACA,uBADA;AAEA,uBAFA;AAGA,qBAHA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAVA;AAWA,KApCA;;AAsCA;AACA,kBAvCA,4BAuCA;AACA;AACA,kDADA;;AAGA,KA3CA,EAvBA,E","file":"pagesA/integral/integral.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesA/integral/integral.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./integral.vue?vue&type=template&id=012f252b&\"\nvar renderjs\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 \"!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesA/integral/integral.vue\"\nexport default component.exports","export * from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./integral.vue?vue&type=template&id=012f252b&\"","var components\ntry {\n components = {\n statusNav: function() {\n return import(\n /* webpackChunkName: \"components/status-nav/status-nav\" */ \"@/components/status-nav/status-nav.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l0 = _vm.isLoading\n ? _vm.__map(_vm.detailedList, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var m0 = parseInt(item.num)\n return {\n $orig: $orig,\n m0: m0\n }\n })\n : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./integral.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./integral.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view v-if=\"isLoading\">\r\n\t\t<status-nav :ifReturn=\"true\" navBarTitle=\"我的积分\" :marginBottom=\"0\"></status-nav>\r\n\t\t<!-- 余额概况 -->\r\n\t\t<view class=\"recharge border-box\">\r\n\t\t\t<view class=\"recharge-msg radius30 border-box\">\r\n\t\t\t\t<view class=\"txt flex\">\r\n\t\t\t\t\t<text class=\"font30\">我的积分</text>\r\n\t\t\t\t\t<text class=\"font24\" @tap=\"goIntegralRule\">积分规则</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"price font60\">{{score}}</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 明细 -->\r\n\t\t<view class=\"recharge-detailed border-box pad-all20 mar-s20\">\r\n\t\t\t<view class=\"recharge-title font30 flex\">\r\n\t\t\t\t<view class=\"line background-orange\"></view>\r\n\t\t\t\t<text>积分明细</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"detailed-list\">\r\n\t\t\t\t<view class=\"detailed-item font30 border-box pad-sx20 flex\" v-for=\"(item,index) in detailedList\" :key=\"index\">\r\n\t\t\t\t\t<view class=\"txt\">\r\n\t\t\t\t\t\t<view class=\"name mar-x10\">{{item.name}}</view>\r\n\t\t\t\t\t\t<view class=\"time font24 color-99\">{{item.created_at}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"price\" style=\"margin-right: 10rpx;\" :class=\"item.num<0?'color-red':''\"><text v-if=\"item.num>0\">+</text>{{parseInt(item.num)}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 到底啦 -->\r\n\t\t<view class=\"no-more pad-sx25 font24\" style=\"margin: 0;\" v-if=\"noMore\"><text>—— 到底啦 ——</text></view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tdetailedList:[],//明细列表\r\n\t\t\t\tscore:0, //积分\r\n\t\t\t\tpage:1, \r\n\t\t\t\tsize:10,\r\n\t\t\t\ttotal:0,\r\n\t\t\t\tnoMore:false,\r\n\t\t\t\tisLoading:false,\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\t// 获取个人信息\r\n\t\t\tthis.getUserInfo();\r\n\t\t},\r\n\t\tonReachBottom() {\r\n\t\t\tif(!this.noMore){\r\n\t\t\t\tthis.page++;\r\n\t\t\t\t// 查询积分明细\r\n\t\t\t\tthis.getScoreEV();\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 获取个人信息\r\n\t\t\tgetUserInfo(){\r\n\t\t\t\tthis.$requst.post('/api/user/info').then(res=>{\r\n\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\tconsole.log(res,'用户信息');\r\n\t\t\t\t\t\tthis.score = res.data.score;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tthis.detailedList = [];\r\n\t\t\t\t\t\t// 查询积分明细\r\n\t\t\t\t\t\tthis.getScoreEV();\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 查询积分明细\r\n\t\t\tgetScoreEV(){\r\n\t\t\t\tuni.showLoading({\r\n\t\t\t\t\ttitle:'加载中'\r\n\t\t\t\t})\r\n\t\t\t\tlet params = {\r\n\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\tsize:this.size,\r\n\t\t\t\t\ttype:'score'\r\n\t\t\t\t}\r\n\t\t\t\tthis.$requst.post('/api/user/data-log-list',params).then(res=>{\r\n\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\tconsole.log(res,'积分明细');\r\n\t\t\t\t\t\tif(res.data==0){\r\n\t\t\t\t\t\t\tthis.noMore = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.detailedList = this.detailedList.concat(res.data);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\tthis.isLoading = true;\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 查看积分规则\r\n\t\t\tgoIntegralRule(){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:`/pagesB/integral-rule/integral-rule`\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t\r\n</style>\r\n"],"sourceRoot":""} |