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 01585592
authored
Nov 06, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 样式修复
1 parent
65094dab
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
124 deletions
login/index/components/Box/Box.js
pages/components/directorLeaders/directorLeaders.scss
pages/components/regionalLeaders/regionalLeaders.scss
pages/components/storeStatistics/storeStatistics.scss
pages/components/storeWarning/storeWarning.scss
pages/components/tableScrollX/table.js
pages/tab/index/index.js
pages/tab/index/index.scss
pages/tab/index/index.wxml
login/index/components/Box/Box.js
View file @
0158559
...
@@ -198,7 +198,16 @@ Component({
...
@@ -198,7 +198,16 @@ Component({
this
.
setData
({
this
.
setData
({
smsError
:
true
smsError
:
true
})
})
wx
.
$api
.
showToast
(
message
||
'系统异常'
)
// wx.$api.showToast(message || '系统异常')
wx
.
showModal
({
title
:
'提示'
,
content
:
message
||
'系统异常'
,
confirmText
:
'我知道了'
,
showCancel
:
false
,
confirmColor
:
'#292d33'
,
success
(
res
)
{
}
})
}
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
...
...
pages/components/directorLeaders/directorLeaders.scss
View file @
0158559
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
.left
{
.left
{
color
:
#181a1f
;
color
:
#181a1f
;
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
5
00
;
font-weight
:
6
00
;
}
}
.right
{
.right
{
...
...
pages/components/regionalLeaders/regionalLeaders.scss
View file @
0158559
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
.title
{
.title
{
color
:
#181a1f
;
color
:
#181a1f
;
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
5
00
;
font-weight
:
6
00
;
margin
:
24rpx
0
;
margin
:
24rpx
0
;
}
}
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
.left
{
.left
{
color
:
#181a1f
;
color
:
#181a1f
;
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
5
00
;
font-weight
:
6
00
;
}
}
.right
{
.right
{
...
...
pages/components/storeStatistics/storeStatistics.scss
View file @
0158559
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
.title
{
.title
{
color
:
#181a1f
;
color
:
#181a1f
;
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
5
00
;
font-weight
:
6
00
;
margin-bottom
:
24rpx
;
margin-bottom
:
24rpx
;
margin-top
:
24rpx
;
}
}
.tableBox
{
.tableBox
{
...
@@ -31,7 +32,7 @@
...
@@ -31,7 +32,7 @@
.left
{
.left
{
color
:
#181a1f
;
color
:
#181a1f
;
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
5
00
;
font-weight
:
6
00
;
}
}
.right
{
.right
{
...
@@ -99,6 +100,7 @@
...
@@ -99,6 +100,7 @@
}
}
.merchantName
{
.merchantName
{
font-weight
:
600
;
color
:
#292d33
;
color
:
#292d33
;
font-size
:
28rpx
;
font-size
:
28rpx
;
margin
:
12rpx
0
;
margin
:
12rpx
0
;
...
...
pages/components/storeWarning/storeWarning.scss
View file @
0158559
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
.left
{
.left
{
color
:
#181a1f
;
color
:
#181a1f
;
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
5
00
;
font-weight
:
6
00
;
}
}
}
}
...
...
pages/components/tableScrollX/table.js
View file @
0158559
...
@@ -40,117 +40,8 @@ Component({
...
@@ -40,117 +40,8 @@ Component({
data
:
{
data
:
{
// tableWidth: 1088,
// tableWidth: 1088,
// tableFlag: true,
// tableFlag: true,
table
:
[
table
:
[],
// {
// id: null,
// merchantId: 44218100,
// merchantName: '测试门店22',
// dataDate: null,
// getTotal: 0,
// usedTotal: 0,
// upgradeTotal: 0,
// upgradeMoneyTotal: null,
// createdBy: null,
// createdDate: null,
// updatedBy: null,
// updatedDate: null,
// deletedFlag: null,
// startDate: null,
// endDate: null,
// yqMerchantIds: null,
// orderByType: null,
// addTotal: 0,
// orderMoneyTotal: 0,
// merchantIdList: null,
// usedPer: null,
// upgradePer: null,
// totalUsedPer: null,
// totalUpgradePer: null,
// customerUnitMoney: 0,
// upgradeRate: 0,
// experienceTotal: 0,
// filmTimes: 0,
// notUpgradeTotal: null,
// filmTimesGrowth: null,
// usedTotalGrowth: null,
// upgradeTotalGrowth: null,
// notUpgradeTotalGrowth: null,
// orderMoneyTotalGrowth: null,
// customerUnitMoneyGrowth: null,
// experienceTotalGrowth: null,
// upgradeRateGrowth: null,
// goodsOrCouponType: null,
// queryRangeType: null
// },
// {
// id: null,
// merchantId: 44218100,
// merchantName: '测试门店22',
// dataDate: null,
// getTotal: 0,
// usedTotal: 0,
// upgradeTotal: 0,
// upgradeMoneyTotal: null,
// createdBy: null,
// createdDate: null,
// updatedBy: null,
// updatedDate: null,
// deletedFlag: null,
// startDate: null,
// endDate: null,
// yqMerchantIds: null,
// orderByType: null,
// addTotal: 0,
// orderMoneyTotal: 0,
// merchantIdList: null,
// usedPer: null,
// upgradePer: null,
// totalUsedPer: null,
// totalUpgradePer: null,
// customerUnitMoney: 0,
// upgradeRate: 0,
// experienceTotal: 0,
// filmTimes: 0,
// notUpgradeTotal: null,
// filmTimesGrowth: null,
// usedTotalGrowth: null,
// upgradeTotalGrowth: null,
// notUpgradeTotalGrowth: null,
// orderMoneyTotalGrowth: null,
// customerUnitMoneyGrowth: null,
// experienceTotalGrowth: null,
// upgradeRateGrowth: null,
// goodsOrCouponType: null,
// queryRangeType: null
// }
],
formattedTable
:
[]
formattedTable
:
[]
// tableObj: [
// {
// name: '贴膜',
// unit: '/台',
// key: 'filmTimes',
// width: 'var(--fontSize110)'
// },
// {
// name: '核销',
// unit: '/张',
// key: 'usedTotal',
// width: 'var(--fontSize110)'
// },
// {
// name: '体验',
// unit: '/位',
// key: 'experienceTotal',
// width: 'var(--fontSize110)'
// },
// {
// name: '转化',
// unit: '/单',
// key: 'upgradeTotal',
// width: 'var(--fontSize110)'
// },
// ]
},
},
observers
:
{
observers
:
{
'table, tableObj'
:
function
(
table
,
tableObj
)
{
'table, tableObj'
:
function
(
table
,
tableObj
)
{
...
@@ -166,6 +57,14 @@ Component({
...
@@ -166,6 +57,14 @@ Component({
let
{
headerConfig
}
=
this
.
data
let
{
headerConfig
}
=
this
.
data
// let { headerConfig } = this.data
// let { headerConfig } = this.data
console
.
log
(
headerConfig
,
'headerConfig'
)
console
.
log
(
headerConfig
,
'headerConfig'
)
if
(
headerConfig
.
key
==
'merchantName'
)
{
let
{
item
}
=
e
.
currentTarget
.
dataset
wx
.
navigateTo
({
url
:
`/packageCustomer/pages/merchantDetail/merchantDetail?query=
${
encodeURIComponent
(
JSON
.
stringify
(
item
)
)}
`
})
}
if
(
headerConfig
.
key
==
'regionName'
)
{
if
(
headerConfig
.
key
==
'regionName'
)
{
let
{
item
}
=
e
.
currentTarget
.
dataset
let
{
item
}
=
e
.
currentTarget
.
dataset
wx
.
navigateTo
({
wx
.
navigateTo
({
...
@@ -178,7 +77,10 @@ Component({
...
@@ -178,7 +77,10 @@ Component({
formatTable
(
table
,
tableObj
)
{
formatTable
(
table
,
tableObj
)
{
// 通用格式化:为空返回"0.00",数值保留两位小数,并加千分位逗号
// 通用格式化:为空返回"0.00",数值保留两位小数,并加千分位逗号
// 特例:当 headerConfig.key 为 'staffName' 时不处理数值格式化
// 特例:当 headerConfig.key 为 'staffName' 时不处理数值格式化
if
(
this
.
data
.
headerConfig
&&
this
.
data
.
headerConfig
.
key
===
'staffName'
)
{
if
(
this
.
data
.
headerConfig
&&
this
.
data
.
headerConfig
.
key
===
'staffName'
)
{
this
.
setData
({
formattedTable
:
table
})
this
.
setData
({
formattedTable
:
table
})
return
return
}
}
...
...
pages/tab/index/index.js
View file @
0158559
...
@@ -8,7 +8,8 @@ Page({
...
@@ -8,7 +8,8 @@ Page({
*/
*/
data
:
{
data
:
{
navStyle
:
'background-color: rgba(0,0,0,0);'
,
navStyle
:
'background-color: rgba(0,0,0,0);'
,
track_event_code
:
'sales_index_view_page'
track_event_code
:
'sales_index_view_page'
,
navTitleStyle
:
"font-weight: 600; font- size: 32rpx; color: #000;"
,
},
},
// navbar高度设置
// navbar高度设置
// navbarReady(e) {
// navbarReady(e) {
...
@@ -42,7 +43,7 @@ Page({
...
@@ -42,7 +43,7 @@ Page({
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
:
function
()
{},
onReady
:
function
()
{
},
onReachBottom
()
{
onReachBottom
()
{
console
.
log
(
'滑到底部了'
)
console
.
log
(
'滑到底部了'
)
...
@@ -70,11 +71,11 @@ Page({
...
@@ -70,11 +71,11 @@ Page({
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh
:
function
()
{},
onPullDownRefresh
:
function
()
{
},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
:
function
()
{},
onShareAppMessage
:
function
()
{
},
onShareTimeline
:
function
()
{}
onShareTimeline
:
function
()
{
}
})
})
pages/tab/index/index.scss
View file @
0158559
...
@@ -5,6 +5,12 @@ page {
...
@@ -5,6 +5,12 @@ page {
overflow
:
scroll
;
overflow
:
scroll
;
}
}
.indexTitle
{
.navigation-bar-titleText
{
font-weight
:
600
;
}
}
@keyframes
opacity-view
{
@keyframes
opacity-view
{
0
%
{
0
%
{
opacity
:
0
;
opacity
:
0
;
...
...
pages/tab/index/index.wxml
View file @
0158559
<!--pages/tab/index/index.wxml-->
<!--pages/tab/index/index.wxml-->
<!-- <text>pages/tab/index/index.wxml</text> -->
<!-- <text>pages/tab/index/index.wxml</text> -->
<navigation-bar navStyle="{{ navStyle }}" bindnavbarReady="navbarReady">首页</navigation-bar>
<navigation-bar navStyle="{{ navStyle }}" bindnavbarReady="navbarReady"
navTitleStyle="{{navTitleStyle}}"
>首页</navigation-bar>
<view class="bg"></view>
<view class="bg"></view>
<view style="height:100vh;overflow: hidden;">
<view style="height:100vh;overflow: hidden;">
<view class="layout" style="height:calc(100vh - {{ navBarHeight}}px); margin-top:{{ navBarHeight + 'px' }}">
<view class="layout" style="height:calc(100vh - {{ navBarHeight}}px); margin-top:{{ navBarHeight + 'px' }}">
...
...
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