Commit 2268014a by Jaxon

Merge branch 'feature/statistics' into 'SAAS+V5.8.2'

Feature/statistics

See merge request !8
2 parents 076453da 4d300521
...@@ -11,6 +11,7 @@ miniprogram_npm ...@@ -11,6 +11,7 @@ miniprogram_npm
# local env files # local env files
.env.local .env.local
.env.*.local .env.*.local
.idea
*.local.json *.local.json
.vscode/changelists.json .vscode/changelists.json
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.statistics-item-wrapper { .statistics-item-wrapper {
background-color: white; background-color: white;
padding: var(--fontSize16) 0; padding: 0 0 var(--fontSize16);
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
border-radius: var(--fontSize24); border-radius: var(--fontSize24);
...@@ -29,15 +29,15 @@ ...@@ -29,15 +29,15 @@
overflow: hidden; overflow: hidden;
margin-right: var(--fontSize32); margin-right: var(--fontSize32);
.title-label { .title-label {
font-weight: 500; font-weight: 600;
font-size: var(--fontSize28); font-size: var(--fontSize28);
line-height: var(--fontSize44); line-height: var(--fontSize44);
color: rgba(0, 0, 0, 0.9); color: rgba(0, 0, 0, 0.9);
} }
.title-sub-label { .title-sub-label {
font-weight: 400; font-weight: 400;
font-size: 10px; font-size: var(--fontSize24);
line-height: 16px; line-height: var(--fontSize40);
color: #00000066; color: #00000066;
&:empty + .title-sub-label__default { &:empty + .title-sub-label__default {
display: block; display: block;
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
&__default { &__default {
display: none; display: none;
font-weight: 400; font-weight: 400;
font-size: 10px; font-size: var(--fontSize24);
line-height: 16px; line-height: var(--fontSize40);
color: #00000066; color: #00000066;
} }
} }
......
...@@ -15,12 +15,6 @@ export const brandTypeList = [ ...@@ -15,12 +15,6 @@ export const brandTypeList = [
export const schemaList = [ export const schemaList = [
{ {
name: "displayTotalOutput",
label: "总产值",
col: 8,
titleInfo: true,
},
{
name: "displayDeliveryCount", name: "displayDeliveryCount",
label: "交付数", label: "交付数",
col: 8, col: 8,
...@@ -34,6 +28,13 @@ export const schemaList = [ ...@@ -34,6 +28,13 @@ export const schemaList = [
}, },
{ {
name: "displayTotalOutput",
label: "总产值(万)",
col: 8,
titleInfo: true,
},
{
name: "displayVehicleWarrantyRate", name: "displayVehicleWarrantyRate",
label: "整车延保", label: "整车延保",
col: 8, col: 8,
......
...@@ -10,7 +10,7 @@ Page({ ...@@ -10,7 +10,7 @@ Page({
merchantName: undefined, merchantName: undefined,
navBarHeight: 84, navBarHeight: 84,
brandTypeList: [], brandTypeList: [],
schemaList: schemaList, schemaList: [],
originList: [], originList: [],
list: [], list: [],
query: { query: {
...@@ -42,6 +42,7 @@ Page({ ...@@ -42,6 +42,7 @@ Page({
label: `${query.statDimension === "1" ? "问界鸿蒙" : "通用品牌"}-${options.merchantName}`, label: `${query.statDimension === "1" ? "问界鸿蒙" : "通用品牌"}-${options.merchantName}`,
}, },
], ],
schemaList: String(query.statDimension) === "1" ? schemaList : schemaCommonBrandList,
merchantName: options.merchantName, merchantName: options.merchantName,
query: { query: {
...this.data.query, ...this.data.query,
...@@ -54,8 +55,11 @@ Page({ ...@@ -54,8 +55,11 @@ Page({
} }
this.setData({ this.setData({
brandTypeList: wx.$util.deepClone(brandTypeList), brandTypeList: wx.$util.deepClone(brandTypeList),
schemaList: schemaList,
query: { query: {
...this.data.query, ...this.data.query,
dateType: 0, dateType: 0,
startDate: dayjs().startOf("day").format("YYYY-MM-DD"), startDate: dayjs().startOf("day").format("YYYY-MM-DD"),
endDate: dayjs().endOf("day").format("YYYY-MM-DD"), endDate: dayjs().endOf("day").format("YYYY-MM-DD"),
......
/* packageIndex/pages/specialTask/specialTask.wxss */ /* packageIndex/pages/specialTask/specialTask.wxss */
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
page { page {
background: #f2f3f7; background: #f2f3f7;
height: 100%; height: 100%;
...@@ -21,13 +26,20 @@ page { ...@@ -21,13 +26,20 @@ page {
padding: 0 var(--fontSize24) var(--fontSize16); padding: 0 var(--fontSize24) var(--fontSize16);
.title-wrapper { .title-wrapper {
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: var(--fontSize28);
line-height: 14px; line-height: var(--fontSize28);
color: #000000e5; color: #000000e5;
padding: var(--fontSize16) 0; padding: var(--fontSize16) 0;
} }
.item-wrapper { .item-wrapper {
margin-bottom: 8px; margin-bottom: var(--fontSize16);
.title-sub-wrapper {
font-weight: 400;
font-size: var(--fontSize24);
line-height: var(--fontSize40);
margin-right: var(--fontSize16);
}
} }
.last-tips { .last-tips {
padding: var(--fontSize30) 0; padding: var(--fontSize30) 0;
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
data="{{ item }}" data="{{ item }}"
beTap="{{ false }}" beTap="{{ false }}"
schema="{{ schemaList }}"> schema="{{ schemaList }}">
<view slot="title-sub"> <view slot="title-sub" class="title-sub-wrapper text-hide">
{{ item.merchantName }} {{ item.merchantName }}
</view> </view>
</StatisticsItem> </StatisticsItem>
......
export const schemaList = [ export const schemaList = [
{ {
name: "displayTotalOutput",
label: "总产值(万)",
col: 8,
},
{
name: "displayDeliveryCount", name: "displayDeliveryCount",
label: "交付数", label: "交付数",
col: 8, col: 8,
...@@ -14,6 +9,11 @@ export const schemaList = [ ...@@ -14,6 +9,11 @@ export const schemaList = [
label: "触客数", label: "触客数",
col: 8, col: 8,
}, },
{
name: "displayTotalOutput",
label: "总产值(万)",
col: 8,
},
{ {
name: "displayVehicleWarrantyRate", name: "displayVehicleWarrantyRate",
......
/* packageIndex/pages/specialTask/specialTask.wxss */ /* packageIndex/pages/specialTask/specialTask.wxss */
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
page { page {
background: #f2f3f7; background: #f2f3f7;
height: 100%; height: 100%;
...@@ -46,8 +51,8 @@ page { ...@@ -46,8 +51,8 @@ page {
padding: 0 var(--fontSize24) var(--fontSize16); padding: 0 var(--fontSize24) var(--fontSize16);
.title-wrapper { .title-wrapper {
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: var(--fontSize28);
line-height: 14px; line-height: var(--fontSize28);
color: #000000e5; color: #000000e5;
padding: var(--fontSize16) 0; padding: var(--fontSize16) 0;
} }
...@@ -57,6 +62,9 @@ page { ...@@ -57,6 +62,9 @@ page {
display: flex; display: flex;
align-items: center; align-items: center;
.label { .label {
font-weight: 400;
font-size: var(--fontSize24);
line-height: var(--fontSize40);
margin-right: var(--fontSize16); margin-right: var(--fontSize16);
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!