diff --git a/.env.production b/.env.production
index 2a4f841..7f079f7 100644
--- a/.env.production
+++ b/.env.production
@@ -3,10 +3,10 @@ ENV = 'production'
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
# 测试
-VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn'
+# VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn'
# 生产
-# VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn'
+VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn'
# 预发布接口
# VUE_APP_BASE_API = 'https://pre-cashieradmin.sxczgkj.cn'
diff --git a/src/api/home.js b/src/api/home.js
index fa865d5..23f222d 100644
--- a/src/api/home.js
+++ b/src/api/home.js
@@ -1,17 +1,17 @@
-import request from '@/utils/request'
+import request from "@/utils/request";
/**
* 汇总数据
* @returns
*/
export function summaryGet() {
- return request({
- url: '/api/summary',
- method: 'get',
- params: {
- shopId: localStorage.getItem('shopId')
- }
- })
+ return request({
+ url: "/api/summary",
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId")
+ }
+ });
}
/**
@@ -19,13 +19,13 @@ export function summaryGet() {
* @returns
*/
export function summaryTodayGet() {
- return request({
- url: '/api/summary/today',
- method: 'get',
- params: {
- shopId: localStorage.getItem('shopId')
- }
- })
+ return request({
+ url: "/api/summary/today",
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId")
+ }
+ });
}
/**
@@ -33,14 +33,14 @@ export function summaryTodayGet() {
* @returns
*/
export function summaryDateGet(day) {
- return request({
- url: '/api/summary/date',
- method: 'get',
- params: {
- shopId: localStorage.getItem('shopId'),
- day: day
- }
- })
+ return request({
+ url: "/api/summary/date",
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId"),
+ day: day
+ }
+ });
}
/**
@@ -48,14 +48,14 @@ export function summaryDateGet(day) {
* @returns
*/
export function dateAmount(day) {
- return request({
- url: '/api/summary/dateAmount',
- method: 'get',
- params: {
- shopId: localStorage.getItem('shopId'),
- day: day
- }
- })
+ return request({
+ url: "/api/summary/dateAmount",
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId"),
+ day: day
+ }
+ });
}
/**
@@ -63,16 +63,16 @@ export function dateAmount(day) {
* @returns
*/
export function dateProduct(day, page, size) {
- return request({
- url: '/api/summary/dateProduct',
- method: 'get',
- params: {
- shopId: localStorage.getItem('shopId'),
- day: day,
- page: page,
- size: size
- }
- })
+ return request({
+ url: "/api/summary/dateProduct",
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId"),
+ day: day,
+ page: page,
+ size: size
+ }
+ });
}
/**
@@ -80,14 +80,14 @@ export function dateProduct(day, page, size) {
* @returns
*/
export function datePayType(day) {
- return request({
- url: '/api/summary/datePayType',
- method: 'get',
- params: {
- shopId: localStorage.getItem('shopId'),
- day: day
- }
- })
+ return request({
+ url: "/api/summary/datePayType",
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId"),
+ day: day
+ }
+ });
}
/**
@@ -95,15 +95,15 @@ export function datePayType(day) {
* @returns
*/
export function daydownload(data) {
- return request({
- url: '/api/summary/day/download',
- method: 'post',
- data: {
- shopId: localStorage.getItem('shopId'),
- ...data
- },
- responseType: 'blob'
- })
+ return request({
+ url: "/api/summary/day/download",
+ method: "post",
+ data: {
+ shopId: localStorage.getItem("shopId"),
+ ...data
+ },
+ responseType: "blob"
+ });
}
/**
@@ -111,14 +111,14 @@ export function daydownload(data) {
* @returns
*/
export function daycount(params) {
- return request({
- url: '/api/summary/day/count',
- method: 'get',
- params: {
- shopId: localStorage.getItem('shopId'),
- ...params
- }
- })
+ return request({
+ url: "/api/summary/day/count",
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId"),
+ ...params
+ }
+ });
}
/**
@@ -126,13 +126,27 @@ export function daycount(params) {
* @returns
*/
export function summaryday(params) {
- return request({
- url: '/api/summary/day',
- method: 'get',
- params: {
- shopId: localStorage.getItem('shopId'),
- ...params
- }
- })
+ return request({
+ url: "/api/summary/day",
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId"),
+ ...params
+ }
+ });
}
+/**
+ * 营业板块
+ * @returns
+ */
+export function summarytrade(data) {
+ return request({
+ url: "/api/summary/trade",
+ method: "post",
+ data: {
+ shopId: localStorage.getItem("shopId"),
+ ...data
+ }
+ });
+}
diff --git a/src/assets/images/data_home_bg1.png b/src/assets/images/data_home_bg1.png
new file mode 100644
index 0000000..3034319
Binary files /dev/null and b/src/assets/images/data_home_bg1.png differ
diff --git a/src/assets/images/data_home_item1.png b/src/assets/images/data_home_item1.png
new file mode 100644
index 0000000..082564d
Binary files /dev/null and b/src/assets/images/data_home_item1.png differ
diff --git a/src/assets/images/data_home_item1_icon.png b/src/assets/images/data_home_item1_icon.png
new file mode 100644
index 0000000..493c506
Binary files /dev/null and b/src/assets/images/data_home_item1_icon.png differ
diff --git a/src/assets/images/data_home_item2.png b/src/assets/images/data_home_item2.png
new file mode 100644
index 0000000..0b9a553
Binary files /dev/null and b/src/assets/images/data_home_item2.png differ
diff --git a/src/assets/images/data_home_item2_icon.png b/src/assets/images/data_home_item2_icon.png
new file mode 100644
index 0000000..1f0cb4e
Binary files /dev/null and b/src/assets/images/data_home_item2_icon.png differ
diff --git a/src/assets/images/data_home_item3.png b/src/assets/images/data_home_item3.png
new file mode 100644
index 0000000..e2f257b
Binary files /dev/null and b/src/assets/images/data_home_item3.png differ
diff --git a/src/assets/images/data_home_item3_icon.png b/src/assets/images/data_home_item3_icon.png
new file mode 100644
index 0000000..7cc6781
Binary files /dev/null and b/src/assets/images/data_home_item3_icon.png differ
diff --git a/src/assets/images/data_home_item4.png b/src/assets/images/data_home_item4.png
new file mode 100644
index 0000000..097c19a
Binary files /dev/null and b/src/assets/images/data_home_item4.png differ
diff --git a/src/assets/images/data_home_item4_icon.png b/src/assets/images/data_home_item4_icon.png
new file mode 100644
index 0000000..01920f3
Binary files /dev/null and b/src/assets/images/data_home_item4_icon.png differ
diff --git a/src/assets/images/default_logo.png b/src/assets/images/default_logo.png
new file mode 100644
index 0000000..e79c156
Binary files /dev/null and b/src/assets/images/default_logo.png differ
diff --git a/src/assets/images/img_download_error.png b/src/assets/images/img_download_error.png
new file mode 100644
index 0000000..9bc9660
Binary files /dev/null and b/src/assets/images/img_download_error.png differ
diff --git a/src/assets/styles/element-variables.scss b/src/assets/styles/element-variables.scss
index a4f8c4a..9814b2a 100644
--- a/src/assets/styles/element-variables.scss
+++ b/src/assets/styles/element-variables.scss
@@ -6,7 +6,7 @@
/* theme color */
$--color-primary: #1890ff;
$--color-success: #13ce66;
-$--color-warning: #FFBA00;
+$--color-warning: #ffba00;
$--color-danger: #ff4949;
// $--color-info: #1E1E1E;
@@ -17,10 +17,10 @@ $--button-font-weight: 400;
$--border-color-light: #dfe4ed;
$--border-color-lighter: #e6ebf5;
-$--table-border:1px solid#dfe6ec;
+$--table-border: 1px solid#dfe6ec;
/* icon font path, required */
-$--font-path: '~element-ui/lib/theme-chalk/fonts';
+$--font-path: "~element-ui/lib/theme-chalk/fonts";
@import "../../../node_modules/element-ui/packages/theme-chalk/src/index";
diff --git a/src/assets/styles/index.css b/src/assets/styles/index.css
index 1b84427..09133f8 100644
--- a/src/assets/styles/index.css
+++ b/src/assets/styles/index.css
@@ -139,7 +139,7 @@
height: 100%;
position: fixed;
font-size: 0;
- top: 0;
+ top: 60px;
bottom: 0;
left: 0;
z-index: 1001;
diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss
index 17381fc..33fed06 100644
--- a/src/assets/styles/sidebar.scss
+++ b/src/assets/styles/sidebar.scss
@@ -14,7 +14,7 @@
height: 100%;
position: fixed;
font-size: 0;
- top: 0;
+ top: 60px;
bottom: 0;
left: 0;
z-index: 1001;
diff --git a/src/assets/styles/variables.scss b/src/assets/styles/variables.scss
index cab7c4c..32be479 100644
--- a/src/assets/styles/variables.scss
+++ b/src/assets/styles/variables.scss
@@ -9,15 +9,15 @@ $yellow: #fec171;
$panGreen: #30b08f;
// sidebar
-$menuText: #bfcbd9;
+$menuText: #999;
$menuActiveText: #409eff;
-$subMenuActiveText: #f4f4f5; // https://github.com/ElemeFE/element/issues/12951
+$subMenuActiveText: #555; // https://github.com/ElemeFE/element/issues/12951
-$menuBg: #333;
-$menuHover: #444;
+$menuBg: #fff;
+$menuHover: rgba(121, 145, 188, 0.18);
-$subMenuBg: #444;
-$subMenuHover: #555;
+$subMenuBg: #fff;
+$subMenuHover: rgba(121, 145, 188, 0.18);
$sideBarWidth: 205px;
diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue
index 8ecebed..896a9b6 100644
--- a/src/layout/components/AppMain.vue
+++ b/src/layout/components/AppMain.vue
@@ -38,7 +38,7 @@ export default {
}
.fixed-header+.app-main {
- padding-top: 50px;
+ padding-top: 140px;
}
.hasTagsView {
@@ -48,7 +48,7 @@ export default {
}
.fixed-header+.app-main {
- padding-top: 84px;
+ padding-top: 140px;
}
}
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 9112d05..a97e293 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -16,18 +16,18 @@
-->
-
+ -->
diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue
index 69ed635..0e7e2e5 100644
--- a/src/layout/components/Sidebar/Logo.vue
+++ b/src/layout/components/Sidebar/Logo.vue
@@ -1,20 +1,22 @@
-