Commit 5fb5d41f by Jaxon

feat(督导统计): 走查调优

1 parent a73609cb
......@@ -6,7 +6,7 @@
.statistics-item-wrapper {
background-color: white;
padding: var(--fontSize16) 0;
padding: 0 0 var(--fontSize16);
box-sizing: border-box;
overflow: hidden;
border-radius: var(--fontSize24);
......@@ -29,15 +29,15 @@
overflow: hidden;
margin-right: var(--fontSize32);
.title-label {
font-weight: 500;
font-weight: 600;
font-size: var(--fontSize28);
line-height: var(--fontSize44);
color: rgba(0, 0, 0, 0.9);
}
.title-sub-label {
font-weight: 400;
font-size: 10px;
line-height: 16px;
font-size: var(--fontSize24);
line-height: var(--fontSize40);
color: #00000066;
&:empty + .title-sub-label__default {
display: block;
......@@ -45,8 +45,8 @@
&__default {
display: none;
font-weight: 400;
font-size: 10px;
line-height: 16px;
font-size: var(--fontSize24);
line-height: var(--fontSize40);
color: #00000066;
}
}
......
......@@ -15,12 +15,6 @@ export const brandTypeList = [
export const schemaList = [
{
name: "displayTotalOutput",
label: "总产值",
col: 8,
titleInfo: true,
},
{
name: "displayDeliveryCount",
label: "交付数",
col: 8,
......@@ -34,6 +28,13 @@ export const schemaList = [
},
{
name: "displayTotalOutput",
label: "总产值(万)",
col: 8,
titleInfo: true,
},
{
name: "displayVehicleWarrantyRate",
label: "整车延保",
col: 8,
......
......@@ -10,7 +10,7 @@ Page({
merchantName: undefined,
navBarHeight: 84,
brandTypeList: [],
schemaList: schemaList,
schemaList: [],
originList: [],
list: [],
query: {
......@@ -42,6 +42,7 @@ Page({
label: `${query.statDimension === "1" ? "问界鸿蒙" : "通用品牌"}-${options.merchantName}`,
},
],
schemaList: String(query.statDimension) === "1" ? schemaList : schemaCommonBrandList,
merchantName: options.merchantName,
query: {
...this.data.query,
......@@ -54,8 +55,11 @@ Page({
}
this.setData({
brandTypeList: wx.$util.deepClone(brandTypeList),
schemaList: schemaList,
query: {
...this.data.query,
dateType: 0,
startDate: dayjs().startOf("day").format("YYYY-MM-DD"),
endDate: dayjs().endOf("day").format("YYYY-MM-DD"),
......@@ -90,8 +94,8 @@ Page({
});
this.setData({
originList: data,
list: this.filterData(data),
originList: data.splice(0, 10),
list: this.filterData(data.splice(0, 10)),
});
} finally {
wx.$util.hideLoading();
......
/* packageIndex/pages/specialTask/specialTask.wxss */
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
page {
background: #f2f3f7;
height: 100%;
......@@ -21,13 +26,20 @@ page {
padding: 0 var(--fontSize24) var(--fontSize16);
.title-wrapper {
font-weight: 400;
font-size: 14px;
line-height: 14px;
font-size: var(--fontSize28);
line-height: var(--fontSize28);
color: #000000e5;
padding: var(--fontSize16) 0;
}
.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 {
padding: var(--fontSize30) 0;
......
......@@ -44,7 +44,7 @@
data="{{ item }}"
beTap="{{ false }}"
schema="{{ schemaList }}">
<view slot="title-sub">
<view slot="title-sub" class="title-sub-wrapper text-hide">
{{ item.merchantName }}
</view>
</StatisticsItem>
......
export const schemaList = [
{
name: "displayTotalOutput",
label: "总产值(万)",
col: 8,
},
{
name: "displayDeliveryCount",
label: "交付数",
col: 8,
......@@ -14,6 +9,11 @@ export const schemaList = [
label: "触客数",
col: 8,
},
{
name: "displayTotalOutput",
label: "总产值(万)",
col: 8,
},
{
name: "displayVehicleWarrantyRate",
......
/* packageIndex/pages/specialTask/specialTask.wxss */
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
page {
background: #f2f3f7;
height: 100%;
......@@ -46,8 +51,8 @@ page {
padding: 0 var(--fontSize24) var(--fontSize16);
.title-wrapper {
font-weight: 400;
font-size: 14px;
line-height: 14px;
font-size: var(--fontSize28);
line-height: var(--fontSize28);
color: #000000e5;
padding: var(--fontSize16) 0;
}
......@@ -57,6 +62,9 @@ page {
display: flex;
align-items: center;
.label {
font-weight: 400;
font-size: var(--fontSize24);
line-height: var(--fontSize40);
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!