From 90eb656176b584210d36f8027c49059cc728fdc3 Mon Sep 17 00:00:00 2001 From: sliverber <2622874537@qq.com> Date: Tue, 6 Feb 2024 17:57:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 + package.json | 8 +- src/api/channel.js | 37 ++- src/views/channel/creatChannel.vue | 2 +- src/views/channel/index.vue | 341 +++++++++++++++++++--- src/views/order/index.vue | 26 +- src/views/user/list/index.vue | 452 ++++++++++++----------------- 7 files changed, 543 insertions(+), 325 deletions(-) diff --git a/.env.development b/.env.development index 49616a6..5524433 100644 --- a/.env.development +++ b/.env.development @@ -4,6 +4,8 @@ ENV = 'development' # base api # VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = 'http://117.50.215.20:20400' +# VUE_APP_BASE_API = 'http://yruibao.com:81' + # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # to control whether the babel-plugin-dynamic-import-node plugin is enabled. diff --git a/package.json b/package.json index ecda8c5..976277c 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "fuse.js": "3.4.4", "js-cookie": "2.2.0", "jsonlint": "1.6.3", - "jszip": "3.2.1", + "jszip": "^3.10.1", "mpvue-calendar": "^2.3.7", "normalize.css": "7.0.0", "nprogress": "0.2.0", @@ -80,7 +80,7 @@ "xlsx": "0.14.1" }, "devDependencies": { - "@babel/core": "7.0.0", + "@babel/core": "^7.23.9", "@babel/register": "7.0.0", "@vue/cli-plugin-babel": "3.5.3", "@vue/cli-plugin-eslint": "^3.9.1", @@ -94,15 +94,15 @@ "connect": "3.6.6", "eslint": "5.15.3", "eslint-plugin-vue": "5.2.2", - "prettier": "^2.5.1", "html-webpack-plugin": "3.2.0", "husky": "1.3.1", "lint-staged": "8.1.5", "mockjs": "1.0.1-beta3", "plop": "2.3.0", + "prettier": "^2.5.1", "runjs": "^4.3.2", - "script-loader": "^0.7.2", "script-ext-html-webpack-plugin": "2.1.3", + "script-loader": "^0.7.2", "serve-static": "^1.13.2", "svg-sprite-loader": "4.1.3", "svgo": "1.2.0", diff --git a/src/api/channel.js b/src/api/channel.js index ca97190..dcaab21 100644 --- a/src/api/channel.js +++ b/src/api/channel.js @@ -50,7 +50,42 @@ export function ListChannel(pram) { params: data, }); } - +/** + * 渠道统计列表 + * @param pram + * @constructor + */ +export function ListChannels(pram) { + const data = { + channelId: pram.channelId, + + page: pram.page, + limit: pram.limit, + }; + return request({ + url: '/admin/channel/statistics', + method: 'GET', + params: data, + }); +} +/** + * 渠道统计列表 + * @param pram + * @constructor + */ +export function Listuser(pram) { + const data = { + channelId: pram.channelId, + + page: pram.page, + limit: pram.limit, + }; + return request({ + url: '/admin/channel/user', + method: 'GET', + params: data, + }); +} /** * 新增渠道表 * @param pram diff --git a/src/views/channel/creatChannel.vue b/src/views/channel/creatChannel.vue index e8b780e..1ff0ab3 100644 --- a/src/views/channel/creatChannel.vue +++ b/src/views/channel/creatChannel.vue @@ -10,7 +10,7 @@ - + diff --git a/src/views/channel/index.vue b/src/views/channel/index.vue index f3d2d36..a1e4e47 100644 --- a/src/views/channel/index.vue +++ b/src/views/channel/index.vue @@ -2,54 +2,164 @@
- 添加渠道 + 添加渠道
- + - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
统计报表 注册用户
+
+
基础信息
+
+
+
渠道名称:{{ chooselist.name }}
+
添加日期:{{ chooselist.createTime }}
+
备注:{{ chooselist.remark }}
+
+
+
总点击:{{ chooselist.totalClickNum }}
+
总转化率:{{ chooselist.totalConversionRatio }}
+
回款率:{{ chooselist.totalReturnRate }}
+
+
+
总注册:{{ chooselist.totalRegisterNum }}
+
总订单金额:{{ chooselist.totalAmount }}
+
总订单数量:{{ chooselist.totalOrderNum }}
+
+
+
渠道链接:{{ chooselist.url }}
+ +
+
+
日统计报表
+ + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
- +
@@ -57,7 +167,7 @@