Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
sales-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bcc92296
authored
Nov 07, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 样式修复
1 parent
594671ce
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
20 deletions
pages/components/directorLeaders/directorLeaders.js
pages/components/regionalLeaders/regionalLeaders.js
pages/components/storeStatistics/storeStatistics.js
pages/components/tableScrollX/table.scss
pages/components/tableScrollX/table.wxml
pages/components/directorLeaders/directorLeaders.js
View file @
bcc9229
...
...
@@ -44,12 +44,12 @@ Component({
{
name
:
'产值/元'
,
key
:
'outputValue'
,
width
:
'var(--fontSize1
6
0)'
width
:
'var(--fontSize1
8
0)'
},
{
name
:
'客单价/元'
,
key
:
'customerUnitPrice'
,
width
:
'var(--fontSize1
6
0)'
width
:
'var(--fontSize1
7
0)'
},
{
name
:
'引流率'
,
...
...
@@ -112,12 +112,12 @@ Component({
{
name
:
'产值/元'
,
key
:
'outputValue'
,
width
:
'var(--fontSize1
6
0)'
width
:
'var(--fontSize1
8
0)'
},
{
name
:
'客单价/元'
,
key
:
'customerUnitPrice'
,
width
:
'var(--fontSize1
6
0)'
width
:
'var(--fontSize1
7
0)'
},
{
name
:
'引流率'
,
...
...
@@ -153,12 +153,12 @@ Component({
{
name
:
'拓客数'
,
key
:
'expansionCounts'
,
width
:
'var(--fontSize
21
5)'
width
:
'var(--fontSize
19
5)'
},
{
name
:
'签约数'
,
key
:
'signingCounts'
,
width
:
'var(--fontSize
21
5)'
width
:
'var(--fontSize
19
5)'
}
],
tableWidthOverview
:
'960'
,
...
...
@@ -531,7 +531,7 @@ Component({
this
.
setData
({
dataOverviewTable
:
res
.
data
,
itemTableHeightOverview
:
res
.
data
.
length
*
72
,
tableWidthOverview
:
overviewTabIndex
==
1
?
'1
020'
:
'640
'
tableWidthOverview
:
overviewTabIndex
==
1
?
'1
130'
:
'645
'
})
console
.
log
(
res
,
'tableWidthOverview'
)
}).
catch
((
err
=>
{
...
...
@@ -578,7 +578,7 @@ Component({
this
.
setData
({
tableData
:
res
.
data
,
itemTableHeight
:
res
.
data
.
length
*
72
,
tableWidth
:
overviewTabIndexRegion
==
1
?
'9
00
'
:
'640'
tableWidth
:
overviewTabIndexRegion
==
1
?
'9
25
'
:
'640'
})
console
.
log
(
'tableWidth'
,
overviewTabIndexRegion
==
1
?
'1025'
:
'400'
)
})
...
...
pages/components/regionalLeaders/regionalLeaders.js
View file @
bcc9229
...
...
@@ -30,12 +30,12 @@ Component({
{
name
:
'拓店数'
,
key
:
'signedHasOrderTotal'
,
width
:
'var(--fontSize1
2
0)'
width
:
'var(--fontSize1
3
0)'
},
{
name
:
'已签约数量'
,
key
:
'signedCount'
,
width
:
'var(--fontSize1
2
0)'
width
:
'var(--fontSize1
3
0)'
},
{
name
:
'跟进中'
,
key
:
'followUpCount'
,
width
:
'var(--fontSize120)'
}
],
...
...
pages/components/storeStatistics/storeStatistics.js
View file @
bcc9229
...
...
@@ -40,19 +40,19 @@ Component({
{
name
:
'已完成'
,
key
:
'completed'
,
width
:
'var(--fontSize1
34
)'
,
width
:
'var(--fontSize1
60
)'
,
beforeUnit
:
'¥'
},
{
name
:
'当月目标'
,
key
:
'target'
,
width
:
'var(--fontSize1
34
)'
,
width
:
'var(--fontSize1
60
)'
,
beforeUnit
:
'¥'
},
{
name
:
'完成率'
,
key
:
'completionRate'
,
width
:
'var(--fontSize
10
0)'
,
width
:
'var(--fontSize
8
0)'
,
unit
:
'%'
}
],
...
...
pages/components/tableScrollX/table.scss
View file @
bcc9229
...
...
@@ -32,6 +32,7 @@
}
.merchantNameWidth
{
width
:
230rpx
;
}
}
...
...
@@ -179,7 +180,7 @@
}
}
.table
.table-body
.th
.name
.
label
Name
{
.table
.table-body
.th
.name
.
merchant
Name
{
height
:
var
(
--
fontSize62
);
box-sizing
:
border-box
;
word-break
:
break-all
;
...
...
@@ -193,6 +194,26 @@
margin
:
15rpx
15rpx
;
}
.table
.table-body
.th
.oneLine
{
line-height
:
var
(
--
fontSize58
);
font-size
:
22rpx
;
margin
:
20rpx
15rpx
;
}
.table
.table-body
.th
.name
.labelName
{
height
:
var
(
--
fontSize62
);
box-sizing
:
border-box
;
word-break
:
break-all
;
display
:
-
webkit-box
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
color
:
#292d33
;
font-size
:
26rpx
;
margin
:
15rpx
15rpx
;
}
.table
.table-body
.th
.labelName.oneLine
{
line-height
:
var
(
--
fontSize58
);
font-size
:
22rpx
;
...
...
pages/components/tableScrollX/table.wxml
View file @
bcc9229
...
...
@@ -5,7 +5,7 @@
<view class="table" wx:if="{{ formattedTable.length > 0 }}">
<view class="table-box">
<view class="table-header" style="width: var(--fontSize{{ tableWidth }})">
<view class="label {{headerConfig.key == 'merchantName'?'merchantNameWidth':''}}">{{headerConfig.name}}</view>
<view class="label {{headerConfig.key == 'merchantName'
||headerConfig.key == 'personnelName'
?'merchantNameWidth':''}}">{{headerConfig.name}}</view>
<view class="values">
<!-- {{ tableSort == index?'active':'' }} -->
<block wx:for="{{ tableObj }}" wx:key="index">
...
...
@@ -28,14 +28,15 @@
<block wx:if="{{ formattedTable.length > 0 }}">
<block wx:for="{{ formattedTable }}" wx:key="index">
<view class="th" style="width: var(--fontSize{{ tableWidth }})">
<block wx:if="
headerConfig.key == 'merchantName'
">
<view class="name
{{?'merchantNameWidth':''}}
" bind:tap="navToRegionalLeaders" data-item="{{ item }}">
<view class="
labelName {{ item[headerConfig.key].length<=(headerConfig.key == 'merchantName'?9:5)
?'oneLine':'' }}">{{item[headerConfig.key]}}</view>
<block wx:if="
{{headerConfig.key == 'merchantName' || headerConfig.key == 'personnelName'}}
">
<view class="name
merchantNameWidth
" bind:tap="navToRegionalLeaders" data-item="{{ item }}">
<view class="
merchantName {{ item[headerConfig.key].length<=9
?'oneLine':'' }}">{{item[headerConfig.key]}}</view>
</view>
</block>
<block wx:else>
<view class="name {{headerConfig.key == 'personnelName'?'personnelName'}}" bind:tap="navToRegionalLeaders" data-item="{{ item }}">
<view class="labelName {{ item[headerConfig.key].length<=(headerConfig.key == 'merchantName'?9:5)?'oneLine':'' }}">{{item[headerConfig.key]}}</view>
<!-- {{headerConfig.key == 'personnelName'?'personnelName':''}} -->
<view class="name " bind:tap="navToRegionalLeaders" data-item="{{ item }}">
<view class="labelName {{ item[headerConfig.key].length<=9?'oneLine':'' }}">{{item[headerConfig.key]}}</view>
</view>
</block>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment