| 1 |
- {"remainingRequest":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/thread-loader/dist/cjs.js!/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/babel-loader/lib/index.js!/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/cache-loader/dist/cjs.js??ref--0-0!/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/vue-loader/lib/index.js??vue-loader-options!/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/src/view/single-page/home/home.vue?vue&type=script&lang=js&","dependencies":[{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/src/view/single-page/home/home.vue","mtime":1618306924000},{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/cache-loader/dist/cjs.js","mtime":1665684022107},{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/thread-loader/dist/cjs.js","mtime":1665684003955},{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/babel-loader/lib/index.js","mtime":1665684010704},{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/cache-loader/dist/cjs.js","mtime":1665684022107},{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/vue-loader/lib/index.js","mtime":1665684006084}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// import axios from '@/libs/api.request'\nimport axios from '@/libs/api.request';\nimport InforCard from '_c/info-card';\nimport { oneOf } from '@/libs/tools';\nimport CountTo from '_c/count-to'; // import { ChartPie, ChartBar } from '_c/charts'\n// import Example from './example.vue'\n\nlet E = require('wangeditor');\n\nlet editor;\nexport default {\n props: {\n value: {\n type: String,\n default: ''\n }\n },\n name: 'home',\n computed: {},\n\n data() {\n return {\n userNum: 0,\n adverNum: 0,\n todayUser: 0,\n proxyMoney: 0,\n currentAdver: 0,\n queryData: {\n pagenum: 15\n },\n total: 0,\n queryDataPage: 1,\n cash: 0,\n cashPage: 1,\n Cashnum: 15,\n isShowUpgrade: false,\n isShowWithdraw: false,\n columns: [{\n title: '会员ID',\n key: 'uid'\n }, {\n title: '姓名',\n key: 'real_name'\n }, {\n title: '手机号',\n key: 'mobile'\n }, {\n title: '申请日期',\n key: 'created_at'\n }, {\n title: '状态',\n key: 'status',\n align: 'center',\n render: (h, params) => {\n return h('p', params.row.status === 0 ? '待审核' : params.row.status === 1 ? '审核通过' : '审核不通过');\n }\n }],\n tableData: [],\n column: [{\n title: '会员ID',\n key: 'uid'\n }, {\n title: '姓名',\n key: 'real_name',\n render: (h, params) => {\n return h('div', [h('p', {}, params.row.user.real_name)]);\n }\n }, {\n title: '手机号',\n key: 'mobile',\n render: (h, params) => {\n return h('div', [h('p', {}, params.row.user.mobile)]);\n }\n }, {\n title: '申请日期',\n key: 'created_at'\n }, {\n title: '状态',\n key: 'status',\n align: 'center',\n render: (h, params) => {\n return h('p', params.row.status === 1 ? '未支付' : params.row.status === 2 ? '待审核' : params.row.status === 3 ? '完成' : params.row.status === 4 ? '支付失败' : params.row.status === 5 ? '审核拒绝' : '未知');\n }\n }],\n agentData: []\n };\n },\n\n mounted() {\n this.getData();\n this.withDraw();\n this.upgrade();\n let that = this;\n setTimeout(function () {\n if (that.isHasPermssion('admins/home/upgrade') && that.isHasPermssion('admins/proxy/upgrade')) {\n that.isShowUpgrade = true;\n }\n\n if (that.isHasPermssion('admins/home/withdraw') && that.isHasPermssion('admins/withdraw/index')) {\n that.isShowWithdraw = true;\n }\n }, 500);\n },\n\n methods: {\n getData() {\n axios.request({\n url: '/admins/home/statistics',\n method: 'POST'\n }).then(res => {\n if (res.data.code === 'success') {\n this.userNum = res.data.data.userNum;\n this.adverNum = res.data.data.adverNum;\n this.currentAdver = res.data.data.currentAdver;\n this.proxyMoney = res.data.data.proxyMoney;\n this.todayUser = res.data.data.todayUser;\n } else {\n this.$Message.error(res.data.message);\n }\n });\n },\n\n withDraw() {\n axios.request({\n url: '/admins/home/withdraw',\n method: 'POST',\n data: {\n page: this.cashPage,\n perPage: this.Cashnum\n }\n }).then(res => {\n if (res.data.code === 'success') {\n this.tableData = res.data.data.data;\n this.cash = res.data.data.total;\n } else {\n this.$Message.error(res.data.message);\n }\n });\n },\n\n upgrade() {\n axios.request({\n url: '/admins/home/upgrade',\n method: 'POST',\n data: {\n page: this.queryDataPage,\n perPage: this.queryData.pagenum\n }\n }).then(res => {\n if (res.data.code === 'success') {\n this.agentData = res.data.data.data;\n this.total = res.data.data.total;\n } else {\n this.$Message.error(res.data.message);\n }\n });\n },\n\n // 代理升级审核分页\n levelchangepage(res) {\n this.queryDataPage = res;\n this.upgrade();\n },\n\n // 提现分页\n tablechangepage(res) {\n this.cashPage = res;\n this.withDraw();\n }\n\n }\n};",null]}
|