Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-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 07b7e624
authored
Aug 28, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修改 ui走查
1 parent
14cb61fe
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
65 additions
and
52 deletions
components/Popup/Popup.wxml
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.scss
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.wxml
pages/tab/outputValue/components/ScreenConfirmBox/index.wxs
pages/tab/outputValue/components/SwitchAccountPopup/SwitchAccountPopup.wxml
pages/tab/outputValue/components/Tab/Tab.wxss
pages/tab/outputValue/components/employees/employess.js
pages/tab/outputValue/components/employees/employess.scss
pages/tab/outputValue/components/employees/employess.wxml
pages/tab/outputValue/index.wxs
pages/tab/outputValue/outputValue.scss
components/Popup/Popup.wxml
View file @
07b7e62
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
</view>
</view>
<view class="popup-footer {{(isTab || customIsTab) && (!hideTab || !customHideTab) ?'':'isFullSucreen'}}" wx:if="{{only}}">
<view class="popup-footer {{(isTab || customIsTab) && (!hideTab || !customHideTab) ?'':'isFullSucreen'}}" wx:if="{{only}}">
<view class="cancel btn text-center" bindtap="hidePopup">取消</view>
<view class="cancel btn text-center" bindtap="hidePopup">取消</view>
<view class="confirm btn text-center" bindtap="confirm">确
认
</view>
<view class="confirm btn text-center" bindtap="confirm">确
定
</view>
</view>
</view>
<view class="popup-footer {{(isTab || customIsTab) && (!hideTab || !customHideTab) ?'':'isFullSucreen'}}" wx:else>
<view class="popup-footer {{(isTab || customIsTab) && (!hideTab || !customHideTab) ?'':'isFullSucreen'}}" wx:else>
<view class="confirm doubtn text-center" bindtap="confirm">确
认
</view>
<view class="confirm doubtn text-center" bindtap="confirm">确
定
</view>
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
View file @
07b7e62
...
@@ -210,12 +210,13 @@ Component({
...
@@ -210,12 +210,13 @@ Component({
})
})
},
},
confirm
()
{
confirm
()
{
if
(
this
.
data
.
screenConfirmFlag
)
return
wx
.
$api
.
showLoading
(
'加载中'
)
wx
.
$api
.
showLoading
(
'加载中'
)
let
{
userInfo
,
formData
,
staffList
,
sceneList
}
=
this
.
data
let
{
userInfo
,
formData
,
staffList
,
sceneList
}
=
this
.
data
formData
.
sceneType
=
sceneList
.
filter
(
val
=>
val
.
active
)[
0
]?.
id
||
''
formData
.
sceneType
=
sceneList
.
filter
(
val
=>
val
.
active
)[
0
]?.
id
||
''
formData
.
staffUUIDs
=
staffList
.
filter
(
val
=>
val
.
active
).
map
(
subVal
=>
{
if
(
subVal
.
uuid
)
return
subVal
.
uuid
})
formData
.
staffUUIDs
=
staffList
.
filter
(
val
=>
val
.
active
).
map
(
subVal
=>
{
if
(
subVal
.
uuid
)
return
subVal
.
uuid
})
this
.
triggerEvent
(
'screenFlag'
)
this
.
triggerEvent
(
'screenFlag'
)
this
.
setData
({
screenFlag
:
true
})
this
.
setData
({
screen
Confirm
Flag
:
true
})
const
thisPage
=
wx
.
$router
.
getPageInstance
()
const
thisPage
=
wx
.
$router
.
getPageInstance
()
if
(
formData
?.
partnerMerchantIds
[
0
]
!==
userInfo
.
subLoginUser
.
merchantId
)
{
if
(
formData
?.
partnerMerchantIds
[
0
]
!==
userInfo
.
subLoginUser
.
merchantId
)
{
USERAPI
.
switchSubLoginInfo
({
merchantId
:
formData
?.
partnerMerchantIds
[
0
]
}).
then
(
res
=>
{
USERAPI
.
switchSubLoginInfo
({
merchantId
:
formData
?.
partnerMerchantIds
[
0
]
}).
then
(
res
=>
{
...
@@ -230,6 +231,7 @@ Component({
...
@@ -230,6 +231,7 @@ Component({
screenFormData
:
formData
,
screenFormData
:
formData
,
})
})
thisPage
.
searchEvent
()
thisPage
.
searchEvent
()
this
.
setData
({
screenConfirmFlag
:
false
})
})
})
}
else
{
}
else
{
wx
.
$api
.
hideLoading
()
wx
.
$api
.
hideLoading
()
...
@@ -237,6 +239,7 @@ Component({
...
@@ -237,6 +239,7 @@ Component({
screenFormData
:
formData
screenFormData
:
formData
})
})
thisPage
.
searchEvent
()
thisPage
.
searchEvent
()
this
.
setData
({
screenConfirmFlag
:
false
})
}
}
},
},
reset
()
{
reset
()
{
...
...
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.scss
View file @
07b7e62
...
@@ -110,8 +110,8 @@
...
@@ -110,8 +110,8 @@
.box
.list_box
{
.box
.list_box
{
display
:
grid
;
display
:
grid
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
grid-template-columns
:
repeat
(
auto-fill
,
216rpx
);
grid-template-columns
:
repeat
(
auto-fill
,
216rpx
);
grid-template-rows
:
auto
;
font-size
:
26rpx
;
font-size
:
26rpx
;
}
}
...
...
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.wxml
View file @
07b7e62
<!--pages/tab/output/components/ScreenConfirmBox/ScreenConfirmBox.wxml-->
<!--pages/tab/output/components/ScreenConfirmBox/ScreenConfirmBox.wxml-->
<wxs src="./index.wxs" module="filter" />
<wxs src=".
./..
/index.wxs" module="filter" />
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{height}}px);margin-top:{{tabBarStyle}}px;"
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{height}}px);margin-top:{{tabBarStyle}}px;"
hidden="{{!show}}">
hidden="{{!show}}">
<view class="main" style="padding-bottom:{{btnHeight}}px;min-height: calc(100% - {{btnHeight}}px);">
<view class="main" style="padding-bottom:{{btnHeight}}px;min-height: calc(100% - {{btnHeight}}px);">
...
...
pages/tab/outputValue/components/ScreenConfirmBox/index.wxs
deleted
100644 → 0
View file @
14cb61f
/** 具体时间截取月份 */
var filterDate = function (n) {
var year = n && n.split('-')[0]
var month = n && n.split('-')[1]
return n && year + '/' + month
}
/*
* 导出
*/
module.exports = {
filterDate: filterDate
}
pages/tab/outputValue/components/SwitchAccountPopup/SwitchAccountPopup.wxml
View file @
07b7e62
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
bindinput="input"
bindinput="input"
bindconfirm="search" />
bindconfirm="search" />
</view>
</view>
<view class="search text-center" bindtap="s
howConfirm
">
<view class="search text-center" bindtap="s
earch" data-value="{{searchKeyword}}
">
<view class="text-center">搜索</view>
<view class="text-center">搜索</view>
</view>
</view>
</view>
</view>
...
...
pages/tab/outputValue/components/Tab/Tab.wxss
View file @
07b7e62
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
display: flex;
display: flex;
align-items: center;
align-items: center;
box-sizing: border-box;
box-sizing: border-box;
color: #
A9A9A9
;
color: #
636465
;
justify-content: center;
justify-content: center;
font-size: 34rpx;
font-size: 34rpx;
}
}
...
...
pages/tab/outputValue/components/employees/employess.js
View file @
07b7e62
...
@@ -34,7 +34,8 @@ Component({
...
@@ -34,7 +34,8 @@ Component({
nothing
:
false
,
nothing
:
false
,
scrollTop
:
0
,
scrollTop
:
0
,
isAsk
:
false
,
isAsk
:
false
,
emptyDataStyle
:
''
emptyDataStyle
:
''
,
searchFormData
:
{}
},
},
/**
/**
...
@@ -49,10 +50,10 @@ Component({
...
@@ -49,10 +50,10 @@ Component({
})
})
},
},
showMore
(
e
)
{
showMore
(
e
)
{
let
{
index
}
=
e
.
currentTarget
.
dataset
let
{
index
,
flag
}
=
e
.
currentTarget
.
dataset
let
params
=
`dataList[
${
index
}
].showMore`
let
params
=
`dataList[
${
index
}
].showMore`
this
.
setData
({
this
.
setData
({
[
params
]:
true
[
params
]:
flag
})
})
},
},
onBottomRefresh
()
{
onBottomRefresh
()
{
...
@@ -97,6 +98,7 @@ Component({
...
@@ -97,6 +98,7 @@ Component({
merchantOutputValuesPageSize
,
merchantOutputValuesPageSize
,
...
thisPage
.
data
.
screenFormData
...
thisPage
.
data
.
screenFormData
}
}
this
.
setData
({
searchFormData
:
thisPage
.
data
.
screenFormData
})
delete
params
.
shopMerchantNames
delete
params
.
shopMerchantNames
delete
params
.
sceneType
// 删除场景参数
delete
params
.
sceneType
// 删除场景参数
if
(
nothing
||
isAsk
)
{
if
(
nothing
||
isAsk
)
{
...
...
pages/tab/outputValue/components/employees/employess.scss
View file @
07b7e62
/* pages/tab/outputValue/components/employees/employess.wxss */
/* pages/tab/outputValue/components/employees/employess.wxss */
.search_time_box
{
height
:
48rpx
;
line-height
:
48rpx
;
width
:
100%
;
background
:
#EAEFFE
;
color
:
#3666FE
;
font-size
:
24rpx
;
text-align
:
center
;
}
.list
{
.list
{
padding
:
0
16rpx
;
padding
:
0
16rpx
;
width
:
100%
;
width
:
100%
;
...
@@ -14,7 +23,7 @@
...
@@ -14,7 +23,7 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
100%
;
width
:
100%
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
box-shadow
:
0
2rpx
2rpx
0
#b4bacc
52
;
box-shadow
:
0
2rpx
2
0
rpx
0
#b4bacc
52
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
padding
:
40rpx
0
24rpx
24rpx
;
padding
:
40rpx
0
24rpx
24rpx
;
margin
:
0
24rpx
24rpx
0
;
margin
:
0
24rpx
24rpx
0
;
...
@@ -63,6 +72,7 @@
...
@@ -63,6 +72,7 @@
}
}
.merchant_num
{
.merchant_num
{
margin-left
:
64rpx
;
margin-left
:
64rpx
;
color
:
#5A6066
;
}
}
.commission
{
.commission
{
font-size
:
24rpx
;
font-size
:
24rpx
;
...
@@ -95,7 +105,7 @@
...
@@ -95,7 +105,7 @@
.line
{
.line
{
width
:
calc
(
100%
+
48rpx
);
width
:
calc
(
100%
+
48rpx
);
height
:
1rpx
;
height
:
1rpx
;
background
:
rgba
(
228
,
230
,
238
,
.
5
);
background
:
rgba
(
228
,
230
,
238
,
.
3
);
margin
:
40rpx
-24rpx
0
;
margin
:
40rpx
-24rpx
0
;
}
}
.merchant_box
{
.merchant_box
{
...
@@ -106,23 +116,27 @@
...
@@ -106,23 +116,27 @@
}
}
.flex_spa-arr
{
.flex_spa-arr
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
align-items
:
flex-start
;
.flex
{
box-sizing
:
border-box
;
padding-right
:
30rpx
;
}
.flex_1
{
.flex_1
{
flex
:
1
;
width
:
calc
(
100%
-
552rpx
);
padding-right
:
0
;
}
}
.flex_2
{
.flex_2
{
flex
:
2
;
width
:
196rpx
;
}
}
.flex_3
{
.flex_3
{
flex
:
3
;
width
:
314rpx
;
padding-right
:
52rpx
;
}
}
.font_wei
{
.font_wei
{
font-size
:
28rpx
;
font-size
:
28rpx
;
font-weight
:
6
00
;
font-weight
:
7
00
;
color
:
#323436
;
color
:
#323436
;
}
margin-bottom
:
8rpx
;
.padd_r16
{
padding-right
:
16rpx
;
}
}
.name
{
.name
{
font-size
:
26rpx
;
font-size
:
26rpx
;
...
@@ -132,9 +146,7 @@
...
@@ -132,9 +146,7 @@
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
}
word-break
:
break-all
;
.flex
{
margin-right
:
20rpx
;
}
}
.flex
:last-child
{
.flex
:last-child
{
margin-right
:
0
;
margin-right
:
0
;
...
@@ -142,11 +154,7 @@
...
@@ -142,11 +154,7 @@
}
}
.merchant_item
{
.merchant_item
{
padding
:
32rpx
0
;
padding
:
32rpx
0
;
border-bottom
:
2rpx
solid
rgba
(
228
,
230
,
238
,
.5
);
border-bottom
:
2rpx
solid
rgba
(
228
,
230
,
238
,
.3
);
}
.merchant_item
:last-child
{
border
:
none
;
padding-bottom
:
8rpx
;
}
}
.showMore
{
.showMore
{
display
:
flex
;
display
:
flex
;
...
...
pages/tab/outputValue/components/employees/employess.wxml
View file @
07b7e62
<!--pages/tab/outputValue/components/employees/employess.wxml-->
<!--pages/tab/outputValue/components/employees/employess.wxml-->
<wxs src="../../index.wxs" module="filter" />
<wxs src="../../index.wxs" module="filter" />
<view wx:if="{{searchFormData.startTime && searchFormData.endTime}}" class="search_time_box">{{filter.filterDate(searchFormData.startTime)+ '-' + filter.filterDate(searchFormData.endTime)}}</view>
<scroll-view
<scroll-view
scroll-y
scroll-y
enable-back-to-top
enable-back-to-top
...
@@ -9,6 +10,7 @@
...
@@ -9,6 +10,7 @@
refresher-threshold="104"
refresher-threshold="104"
scroll-top="{{scrollTop}}"
scroll-top="{{scrollTop}}"
class="list"
class="list"
style="height: {{searchFormData.startTime && searchFormData.endTime ? 'calc(100vh - 48rpx)' : '100%'}}"
refresher-triggered="{{triggered}}">
refresher-triggered="{{triggered}}">
<view class="empty_box"></view>
<view class="empty_box"></view>
<block wx:for="{{dataList}}" wx:key="index">
<block wx:for="{{dataList}}" wx:key="index">
...
@@ -20,8 +22,8 @@
...
@@ -20,8 +22,8 @@
<view class="name">{{item.staffName}}</view>
<view class="name">{{item.staffName}}</view>
<view class="role_name" wx:if="{{item.staffRoleName && item.staffRoleName != '系统默认角色'}}">「<view>{{item.staffRoleName}}</view>」</view>
<view class="role_name" wx:if="{{item.staffRoleName && item.staffRoleName != '系统默认角色'}}">「<view>{{item.staffRoleName}}</view>」</view>
</view>
</view>
<view wx:if="{{item.totalOutputValue < 1000000}}" class="output_text"><text style="font-size: 24rpx;">¥</text><text>{{filter.money_three_for_two_thousands(item.totalOutputValue || '0.00',
fals
e)}}</text></view>
<view wx:if="{{item.totalOutputValue < 1000000}}" class="output_text"><text style="font-size: 24rpx;">¥</text><text>{{filter.money_three_for_two_thousands(item.totalOutputValue || '0.00',
tru
e)}}</text></view>
<view wx:else class="output_text"
><text style="font-size: 24rpx;">¥</text><text>一百万</text><text style="font-size: 24rpx;position: absolute;top
: 0;">+</text></view>
<view wx:else class="output_text"
style="padding-right: 18rpx;"><text style="font-size: 24rpx;">¥</text><text>一百万</text><text style="font-size: 24rpx;position: absolute;top: 0;right
: 0;">+</text></view>
</view>
</view>
<view class="flex_spa-be">
<view class="flex_spa-be">
<view class="merchant_num">服务门店·{{item.outputValueType == 1 ? item.outputValueStats.length : item.constructionStats.length}}家</view>
<view class="merchant_num">服务门店·{{item.outputValueType == 1 ? item.outputValueStats.length : item.constructionStats.length}}家</view>
...
@@ -36,25 +38,28 @@
...
@@ -36,25 +38,28 @@
<!-- 驻店员工 -->
<!-- 驻店员工 -->
<block wx:if="{{item.outputValueType == 1}}">
<block wx:if="{{item.outputValueType == 1}}">
<view class="title flex_spa-arr">
<view class="title flex_spa-arr">
<view class="flex_
2
flex">服务门店</view>
<view class="flex_
3
flex">服务门店</view>
<view class="flex_
1
flex">产值/客单价</view>
<view class="flex_
2
flex">产值/客单价</view>
<view class="flex_1 padd_r16 flex">订单/转化率</view>
<view class="flex_1 padd_r16 flex">订单/转化率</view>
</view>
</view>
<block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view class="merchant_item flex_spa-arr"
style="{{item.outputValueStats.length > 3 && !item.showMore && subIndex == 2 ? 'border:none;' : ''}}" wx:if="{{subIndex < 3 || item.showMore
}}">
<view class="merchant_item flex_spa-arr"
wx:if="{{subIndex < 3 || item.showMore}}" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''
}}">
<view class="flex_
2
name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_
3
name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_
1
flex">
<view class="flex_
2
flex">
<view class="font_wei">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00',
fals
e)}}</view>
<view class="font_wei">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00',
tru
e)}}</view>
<view>{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00',
fals
e)}}</view>
<view>{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00',
tru
e)}}</view>
</view>
</view>
<view class="flex_1 padd_r16 flex">
<view class="flex_1 padd_r16 flex">
<view class="font_wei">{{subItem.orderCount}}单</view>
<view class="font_wei">{{subItem.orderCount}}单</view>
<view>{{subItem.conversionRate}}%</view>
<view>{{subItem.conversionRate}}%</view>
</view>
</view>
</view>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}">
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}"
data-flag="{{true}}"
>
<glsx-image src="output/show_more_icon.png" webp></glsx-image>
<glsx-image src="output/show_more_icon.png" webp></glsx-image>
</view>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.length - 1) && item.showMore}}" bindtap="showMore" data-index="{{index}}" data-flag="{{false}}">
<glsx-image src="output/show_more_icon_up.png" webp></glsx-image>
</view>
</block>
</block>
</block>
</block>
<!-- 技师 -->
<!-- 技师 -->
...
...
pages/tab/outputValue/index.wxs
View file @
07b7e62
...
@@ -46,10 +46,18 @@ var threeNumForTwo = {
...
@@ -46,10 +46,18 @@ var threeNumForTwo = {
}
}
}
}
/** 具体时间截取月份 */
var filterDate = function (n) {
var year = n && n.split('-')[0]
var month = n && n.split('-')[1]
return n && year + '/' + month
}
/*
/*
* 导出
* 导出
*/
*/
module.exports = {
module.exports = {
setPrice: setPrice,
setPrice: setPrice,
money_three_for_two_thousands: threeNumForTwo.money_three_for_two_thousands, //暴露接口调用
money_three_for_two_thousands: threeNumForTwo.money_three_for_two_thousands, //暴露接口调用
filterDate: filterDate
}
}
pages/tab/outputValue/outputValue.scss
View file @
07b7e62
...
@@ -71,6 +71,7 @@
...
@@ -71,6 +71,7 @@
overflow
:
scroll
;
overflow
:
scroll
;
// background-color: #fff;
// background-color: #fff;
background-color
:
#F2F3F7
;
background-color
:
#F2F3F7
;
height
:
100%
;
}
}
.
comCom
:
:-
webkit-scrollbar
{
.
comCom
:
:-
webkit-scrollbar
{
...
...
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