| 1 |
- {"remainingRequest":"/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\n// import axios from '@/libs/api.request'\nimport axios from '@/libs/api.request'\nimport InforCard from '_c/info-card'\nimport {\n oneOf\n} from '@/libs/tools'\nimport CountTo from '_c/count-to'\n\n// import { ChartPie, ChartBar } from '_c/charts'\n// import Example from './example.vue'\nlet E = require('wangeditor');\nlet editor;\nexport default {\n props: {\n value: {\n type: String,\n default: '',\n },\n },\n name: 'home',\n computed: {\n\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 {\n \ttitle: '姓名',\n \tkey: 'real_name',\n },\n {\n \ttitle: '手机号',\n \tkey: 'mobile',\n },\n {\n title: '申请日期',\n key: 'created_at'\n },\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 ],\n tableData: [],\n column:[\n {\n title: '会员ID',\n key: 'uid'\n },\n {\n \ttitle: '姓名',\n \tkey: 'real_name',\n \trender: (h, params) => {\n \t\treturn h('div', [\n \t\t\th('p', {\n \t\t\t},params.row.user.real_name),\n \t\t])\n \t},\n },\n {\n \ttitle: '手机号',\n \tkey: 'mobile',\n \trender: (h, params) => {\n \t\treturn h('div', [\n \t\t\th('p', {\n \t\t\t},params.row.user.mobile),\n \t\t])\n \t},\n },\n {\n title: '申请日期',\n key: 'created_at'\n },\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 ],\n agentData:[]\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 if(that.isHasPermssion('admins/home/withdraw') && that.isHasPermssion('admins/withdraw/index')){\n that.isShowWithdraw=true\n }\n },500)\n },\n methods: {\n getData(){\n axios.request({\n url: '/admins/home/statistics',\n method: 'POST'\n })\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 withDraw(){\n axios.request({\n url: '/admins/home/withdraw',\n method: 'POST',\n data:{\n page:this.cashPage,\n perPage:this.Cashnum\n }\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 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 })\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 levelchangepage(res) {\n this.queryDataPage = res\n this.upgrade()\n },\n // 提现分页\n tablechangepage(res) {\n this.cashPage = res\n this.withDraw()\n },\n }\n}\n",null]}
|