diff --git a/gulpfile.js b/gulpfile.js index f869365..7059ca6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,27 +1,27 @@ -var gulp = require('gulp') -var $ = require('gulp-load-plugins')() -var path = require('path') -var del = require('del') +var gulp = require('gulp'); +var $ = require('gulp-load-plugins')(); +var path = require('path'); +var del = require('del'); -var distPath = path.resolve('./dist') -var version = '' // 版本号 -var versionPath = '' // 版本号路径 +var distPath = path.resolve('./dist'); +var version = ''; // 版本号 +var versionPath = ''; // 版本号路径 var env = ''; // 运行环境 // 创建版本号(年月日时分) (function () { - var d = new Date() - var yy = d.getFullYear().toString().slice(2) - var MM = d.getMonth() + 1 >= 10 ? (d.getMonth() + 1) : '0' + (d.getMonth() + 1) - var DD = d.getDate() >= 10 ? d.getDate() : '0' + d.getDate() - var h = d.getHours() >= 10 ? d.getHours() : '0' + d.getHours() - var mm = d.getMinutes() >= 10 ? d.getMinutes() : '0' + d.getMinutes() + var d = new Date(); + var yy = d.getFullYear().toString().slice(2); + var MM = d.getMonth() + 1 >= 10 ? (d.getMonth() + 1) : '0' + (d.getMonth() + 1); + var DD = d.getDate() >= 10 ? d.getDate() : '0' + d.getDate(); + var h = d.getHours() >= 10 ? d.getHours() : '0' + d.getHours(); + var mm = d.getMinutes() >= 10 ? d.getMinutes() : '0' + d.getMinutes(); version = yy + MM + DD + h + mm; versionPath = distPath + '/' + version; -})() +})(); // 编译 -gulp.task('build', $.shell.task(['node build/build.js'])) +gulp.task('build', $.shell.task(['node build/build.js'])); // 创建版本号目录 gulp.task('create:versionCatalog', gulp.series('build', function () { @@ -64,7 +64,7 @@ gulp.task('build-end', function () { return del([`${distPath}/static`, `${versionPath}/static/config`]); }) -env = process.env.npm_config_qa ? 'qa' : process.env.npm_config_uat ? 'uat' : 'prod' +env = process.env.npm_config_qa ? 'qa' : process.env.npm_config_uat ? 'uat' : 'prod'; gulp.task('default', gulp.series('clean', diff --git a/src/views/common/home.vue b/src/views/common/home.vue index e5c69b8..c9f8928 100644 --- a/src/views/common/home.vue +++ b/src/views/common/home.vue @@ -1,137 +1,203 @@ - - - - - - - 总用户数 - {{tableData.totalUsers ? tableData.totalUsers : 0}}人 - - - - - - - - 今日新增 - {{tableData.newToday ? tableData.newToday : 0}}人 - - - - - - - 本月新增 - {{tableData.newMonth ? tableData.newMonth : 0}}人 - - - - - - - 本年新增 - {{tableData.newYear ? tableData.newYear : 0}}人 - - - - - - - 总收入 - - {{tableData.totalRevenue ? tableData.totalRevenue : 0}}元 - - - - - - - 今日收入 - - {{tableData.todayRevenue ? tableData.todayRevenue : 0 }}元 - - - - - - - 本月收入 - - {{tableData.monthRevenue ? tableData.monthRevenue : 0}}元 - - - - - - - 本年收入 - {{tableData.yearRevenue ? tableData.yearRevenue : 0}}元 - - - - - - - - - - - - - - - - - - - - - 总人数 - - {{taskStat.sumUserCount ? taskStat.sumUserCount : 0}}人 - - - - - - - 普通用户 - - {{taskStat.userCount ? taskStat.userCount : 0}}人 - - - - - - - 会员人数 - - {{taskStat.memberCount ? taskStat.memberCount : 0}}人 - - - - - - - 充值会员用户 - - {{taskStat.moneyMemberCount ? taskStat.moneyMemberCount : 0}}人 - - - - + + + + + + + 总用户数 + + {{ + tableData.totalUsers ? tableData.totalUsers : 0 + }}人 + + + + + + + + 今日新增 + + {{ tableData.newToday ? tableData.newToday : 0 }}人 + + + + + + + + 本月新增 + + {{ tableData.newMonth ? tableData.newMonth : 0 }}人 + + + + + + + + 本年新增 + + {{ tableData.newYear ? tableData.newYear : 0 }}人 + + + + + + + + 总收入 + + {{ + tableData.totalRevenue ? tableData.totalRevenue : 0 + }}元 + + + + + + + + 今日收入 + + {{ + tableData.todayRevenue ? tableData.todayRevenue : 0 + }}元 + + + + + + + + 本月收入 + + {{ + tableData.monthRevenue ? tableData.monthRevenue : 0 + }}元 + + + + + + + + 本年收入 + + {{ + tableData.yearRevenue ? tableData.yearRevenue : 0 + }}元 + + + + + + + + + + + + + + + - - - 赠送会员用户 - - {{taskStat.giveMemberCount ? taskStat.giveMemberCount : 0}}人 - - - + + + 总人数 + + {{ + taskStat.sumUserCount ? taskStat.sumUserCount : 0 + }}人 + + + + + + + + 普通用户 + + {{ + taskStat.userCount ? taskStat.userCount : 0 + }}人 + + + + + + + + 会员人数 + + {{ + taskStat.memberCount ? taskStat.memberCount : 0 + }}人 + + + + + + + + 充值会员用户 + + {{ + taskStat.moneyMemberCount ? taskStat.moneyMemberCount : 0 + }}人 + + + + + + + + 赠送会员用户 + + {{ + taskStat.giveMemberCount ? taskStat.giveMemberCount : 0 + }}人 + + + - - - - APP用户 - - {{taskStat.appCount ? taskStat.appCount : 0}}人 - - - - - - - - H5用户 - - {{taskStat.h5Count ? taskStat.h5Count : 0}}人 - - - - - - - - 小程序用户 - - {{taskStat.wxCount ? taskStat.wxCount : 0}}人 - - - - - - - - 抖音用户 - - {{taskStat.dyCount ? taskStat.dyCount : 0}}人 - - - - - - - - 当前在线人数 - {{taskStat2 ? taskStat2 : 0}}人 - - - - - - - - - - - - {{scope.$index+1}} - - - - - - - - - - - - - - - - - - - 总订单 - - {{orderStat.sumCourseOrdersCount ? orderStat.sumCourseOrdersCount : 0}}单 - - - - - - - - 待支付订单 - - {{orderStat.daiCourseKeOrdersCount ? orderStat.daiCourseKeOrdersCount : 0}}单 - - - - - - - - 已支付订单 - - {{orderStat.wanCourseKeOrdersCount ? orderStat.wanCourseKeOrdersCount : 0}}单 - - - - - - - - 退款订单 - - {{orderStat.tuiCourseOrdersCount ? orderStat.tuiCourseOrdersCount : 0}}单 - - - - - - - - 短剧总金额 - - {{orderStat.sumCourseOrdersMoney ? orderStat.sumCourseOrdersMoney : 0}}元 - - - - - - - - 待支付金额 - - {{orderStat.daiCourseOrdersMoney ? orderStat.daiCourseOrdersMoney : 0}}元 - - - - - - - - 已支付金额 - - {{orderStat.wanCourseOrdersMoney ? orderStat.wanCourseOrdersMoney : 0}}元 - - - - - - - - 退款金额 - - {{orderStat.tuiCourseOrdersMoney ? orderStat.tuiCourseOrdersMoney : 0}}元 - - - - - - - - - - - - 分销总金额 - - {{fenxiaoStat.sumMoney ? fenxiaoStat.sumMoney : 0}}元 - - - - - - - - 一级分销金额 - - {{fenxiaoStat.oneMoney ? fenxiaoStat.oneMoney : 0}}元 - - - - - - - - 二级分销金额 - - {{fenxiaoStat.twoMoney ? fenxiaoStat.twoMoney : 0}}元 - - - - - - - - 渠道分销金额 - - {{fenxiaoStat.qdMoney ? fenxiaoStat.qdMoney : 0}}元 - - - - - - - + + + + + + + {{ scope.$index + 1 }} + + + + + + + + + + + + + + + + + + 总订单 + + {{ + orderStat.sumCourseOrdersCount + ? orderStat.sumCourseOrdersCount + : 0 + }}单 + + + + + + + + 待支付订单 + + {{ + orderStat.daiCourseKeOrdersCount + ? orderStat.daiCourseKeOrdersCount + : 0 + }}单 + + + + + + + + 已支付订单 + + {{ + orderStat.wanCourseKeOrdersCount + ? orderStat.wanCourseKeOrdersCount + : 0 + }}单 + + + + + + + + 退款订单 + + {{ + orderStat.tuiCourseOrdersCount + ? orderStat.tuiCourseOrdersCount + : 0 + }}单 + + + + + + + + 短剧总金额 + + {{ + orderStat.sumCourseOrdersMoney + ? orderStat.sumCourseOrdersMoney + : 0 + }}元 + + + + + + + + 待支付金额 + + {{ + orderStat.daiCourseOrdersMoney + ? orderStat.daiCourseOrdersMoney + : 0 + }}元 + + + + + + + + 已支付金额 + + {{ + orderStat.wanCourseOrdersMoney + ? orderStat.wanCourseOrdersMoney + : 0 + }}元 + + + + + + + + 退款金额 + + {{ + orderStat.tuiCourseOrdersMoney + ? orderStat.tuiCourseOrdersMoney + : 0 + }}元 + + + + + + + + 提现次数 + + {{ + orderStat.cashCount + ? orderStat.cashCount + : 0 + }} + + + + + + + + 提现总金额 + + {{ + orderStat.cashSum + ? orderStat.cashSum + : 0 + }}元 + + + + + + + + + + + + 分销总金额 + + {{ + fenxiaoStat.sumMoney ? fenxiaoStat.sumMoney : 0 + }}元 + + + + + + + + 一级分销金额 + + {{ + fenxiaoStat.oneMoney ? fenxiaoStat.oneMoney : 0 + }}元 + + + + + + + + 二级分销金额 + + {{ + fenxiaoStat.twoMoney ? fenxiaoStat.twoMoney : 0 + }}元 + + + + + + + + 渠道分销金额 + + {{ + fenxiaoStat.qdMoney ? fenxiaoStat.qdMoney : 0 + }}元 + + + + + + - 总收入 - {{MoneyData.sumMoney ? MoneyData.sumMoney : 0}}元 + + {{ + MoneyData.sumMoney ? MoneyData.sumMoney : 0 + }}元 + @@ -367,7 +529,10 @@ 短剧收入 - {{MoneyData.courseMoney ? MoneyData.courseMoney : 0}}元 + {{ + MoneyData.courseMoney ? MoneyData.courseMoney : 0 + }}元 @@ -377,901 +542,965 @@ 会员收入 - {{MoneyData.vipMoney ? MoneyData.vipMoney : 0}}元 + {{ + MoneyData.vipMoney ? MoneyData.vipMoney : 0 + }}元 - - - - - - 充值总金额 - {{rechgeData.sumMoney ? rechgeData.sumMoney : 0}}元 - - - - - - - - 微信APP充值金额 - - {{rechgeData.weiXinAppMoney ? rechgeData.weiXinAppMoney : 0}}元 - - - - - - - - 微信公众号充值金额 - - {{rechgeData.weiXinGZHMoney ? rechgeData.weiXinGZHMoney : 0}}元 - - - - - - - - 微信小程序充值金额 - - {{rechgeData.weiXinXCXMoney ? rechgeData.weiXinXCXMoney : 0}}元 - - - - + + + + + + 充值总金额 + + {{ + rechgeData.sumMoney ? rechgeData.sumMoney : 0 + }}元 + + + + + + + + 微信APP充值金额 + + {{ + rechgeData.weiXinAppMoney ? rechgeData.weiXinAppMoney : 0 + }}元 + + + + + + + + 微信公众号充值金额 + + {{ + rechgeData.weiXinGZHMoney ? rechgeData.weiXinGZHMoney : 0 + }}元 + + + + + + + + 微信小程序充值金额 + + {{ + rechgeData.weiXinXCXMoney ? rechgeData.weiXinXCXMoney : 0 + }}元 + + + + - - - - 支付APP充值金额 - - {{rechgeData.zhiFuBaoAppMoney ? rechgeData.zhiFuBaoAppMoney : 0}}元 - - - - - - - - 小程序充值金额 - - {{rechgeData.weiXinXCXMoney ? rechgeData.weiXinXCXMoney : 0}}元 - - - - - - - - 支付宝H5充值金额 - - {{rechgeData.zhiFuBaoH5Money ? rechgeData.zhiFuBaoH5Money : 0}}元 - - - - - - - - 抖音充值金额 - - {{rechgeData.dyMoney ? rechgeData.dyMoney : 0}}元 - - - - - - - - 苹果充值金额 - - {{rechgeData.iosMoney ? rechgeData.iosMoney : 0}}元 - - - - - - - - 快手充值金额 - - {{rechgeData.ksMoney ? rechgeData.ksMoney : 0}}元 - - - - - - - + + + + 支付APP充值金额 + + {{ + rechgeData.zhiFuBaoAppMoney + ? rechgeData.zhiFuBaoAppMoney + : 0 + }}元 + + + + + + + + 小程序充值金额 + + {{ + rechgeData.weiXinXCXMoney ? rechgeData.weiXinXCXMoney : 0 + }}元 + + + + + + + + 支付宝H5充值金额 + + {{ + rechgeData.zhiFuBaoH5Money + ? rechgeData.zhiFuBaoH5Money + : 0 + }}元 + + + + + + + + 抖音充值金额 + + {{ + rechgeData.dyMoney ? rechgeData.dyMoney : 0 + }}元 + + + + + + + + 苹果充值金额 + + {{ + rechgeData.iosMoney ? rechgeData.iosMoney : 0 + }}元 + + + + + + + + 快手充值金额 + + {{ + rechgeData.ksMoney ? rechgeData.ksMoney : 0 + }}元 + + + + + + + - - - - - - 订单折线图 - - - - - - - - - - - - - - - 用户增长折线图 - - - - - - - - - + + + + + + + + + + + + + 用户增长折线图 + + + + + + + + - - + +