Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant-assemble
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 d2568e2e
authored
Apr 21, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
e25ac7b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
270 additions
and
110 deletions
packageOutput/components/staff/staff.js
packageOutput/components/staff/staff.scss
packageOutput/components/staff/staff.wxml
packageOutput/pages/crowdDetail/crowdDetail.js
packageOutput/pages/crowdDetail/crowdDetail.scss
packageOutput/pages/crowdDetail/crowdDetail.wxml
packageOutput/pages/monthReport/monthReport.js
packageOutput/pages/monthReport/monthReport.wxml
packagesList/outDetail/components/menu/index.wxml
packagesList/outDetail/index.js
packagesList/outDetail/index.scss
packagesList/outDetail/index.wxml
pages/tab/mine/mine.wxml
project.private.config.json
packageOutput/components/staff/staff.js
View file @
d2568e2
...
...
@@ -16,13 +16,54 @@ Component({
* 组件的初始数据
*/
data
:
{
dataType
:
{
crowType
:
[{
label
:
'转发次数'
,
value
:
1
},
{
label
:
'访客总数'
,
value
:
2
},
{
label
:
'浏览总数'
,
value
:
3
},
{
label
:
'成交单量'
,
value
:
4
},
{
label
:
'转化率'
,
value
:
5
}],
boutique
:
[{
label
:
'单量'
,
value
:
1
},
{
label
:
'客单量'
,
value
:
2
},
{
label
:
'转化率'
,
value
:
3
}]
},
show
:
true
,
selectTxt
:
'单量'
,
selectValue
:
1
,
},
/**
* 组件的方法列表
*/
methods
:
{
showUp
()
{
this
.
setData
({
show
:
false
})
},
selectType
(
e
)
{
const
{
value
,
label
}
=
e
.
target
.
dataset
console
.
log
(
label
)
this
.
setData
({
selectValue
:
value
,
show
:
true
,
selectTxt
:
label
})
}
}
})
packageOutput/components/staff/staff.scss
View file @
d2568e2
page
{
background
:
#f3f3f3
;
font-size
:
30rpx
;
}
.box
{
margin
:
20rpx
;
background
:
#FFFFFF
;
box-shadow
:
0
2rpx
20rpx
0
#b4bacc
52
;
border-radius
:
20rpx
;
padding
:
32rpx
40rpx
;
.box-title
{
font-weight
:
600
;
font-size
:
32rpx
;
color
:
#1B233D
;
line-height
:
48rpx
;
display
:
flex
;
justify-content
:
space-between
;
.select-up
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#666666
;
position
:
relative
;
text-align
:
center
;
.staff-type
{
width
:
108rpx
;
}
.up-box
{
position
:
absolute
;
width
:
108rpx
;
height
:
160rpx
;
background
:
#FFFFFF
;
box-shadow
:
0
0
18rpx
0
#3a596a
1c
;
border-radius
:
8rpx
;
z-index
:
10
;
.up-item
{
flex
:
auto
;
font-weight
:
400
;
font-size
:
20rpx
;
color
:
#666666
;
line-height
:
53rpx
;
&
.checked
{
color
:
#708CFF
;
}
}
}
}
}
.staff-input
{
width
:
638rpx
;
height
:
64rpx
;
background
:
#ffffff
7d
;
border
:
2rpx
solid
#EEEEEE
;
border-radius
:
12rpx
;
margin
:
40rpx
auto
20rpx
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
0rpx
20rpx
;
box-sizing
:
border-box
;
input
{
height
:
64rpx
;
line-height
:
64rpx
;
color
:
#999999
;
flex
:
1
;
}
}
}
.table
{
display
:
flex
;
}
...
...
packageOutput/components/staff/staff.wxml
View file @
d2568e2
<!--packageOutput/components/staff/staff.wxml-->
<view class='table'>
<!-- 左侧固定 -->
<view class='table_left_column'>
<view class='left_col_item'>排名</view>
<view class='left_col_item' wx:for="{{sfaffList[0].list}}" wx:for-index="index" wx:key="index">{{index+1}}</view>
</view>
<!-- 右侧表格滚动 -->
<view class="table_right_scroll_box">
<view class="flex_direction_column_item" wx:for="{{sfaffList}}" wx:for-index="index" wx:key="index">
<view class='item_name'>{{item.name}}</view>
<view wx:for="{{item.list}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_desc'>
<block wx:if="{{litem.price !='缺货'}}">¥{{litem.price}}/斤</block>
<block wx:else>缺货</block>
</view>
<view class="box staff-box">
<view class="box-title">
<text>员工排行榜</text>
<view class="select-up">
<view bindtap="showUp" class="staff-type">{{selectTxt}}</view>
<view class="up-box" hidden="{{show}}">
<view class="up-item {{selectValue == item.value? 'checked':''}}" wx:for="{{dataType}}" wx:key="{{index}}" data-label="{{item.label}}" data-value="{{item.value}}" catchtap="selectType">
{{item.label}}
</view>
</view>
</view>
</view>
</view>
</view>
<view class="staff-input">
<input placeholder="输入员工名称" />
<icon class="icon-small" type="search" size="14"></icon>
</view>
<view class='table'>
<!-- 左侧固定 -->
<view class='table_left_column'>
<view class='left_col_item'>排名</view>
<view class='left_col_item' wx:for="{{sfaffList[0].list[sfaffList[0].val]}}" wx:for-index="index" wx:key="index">{{index+1}}</view>
</view>
<!-- 右侧表格滚动 -->
<view class="table_right_scroll_box">
<view class="flex_direction_column_item" wx:for="{{sfaffList}}" wx:for-index="index" wx:key="index">
<view class='item_name'>{{item.name}}</view>
<view wx:for="{{item.list[item.val]}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_desc'>
<block>{{litem}}</block>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
packageOutput/pages/crowdDetail/crowdDetail.js
View file @
d2568e2
This diff is collapsed.
Click to expand it.
packageOutput/pages/crowdDetail/crowdDetail.scss
View file @
d2568e2
.layout
{
position
:
relative
;
.bg-box
{
width
:
100%
;
overflow
:
hidden
;
position
:
absolute
;
left
:
0
;
z-index
:
-1
;
.bg
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
z-index
:
-1
;
top
:
0
;
left
:
0
;
}
}
.bg-box
{
width
:
100%
;
overflow
:
hidden
;
position
:
absolute
;
left
:
0
;
z-index
:
-1
;
.bg
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
z-index
:
-1
;
top
:
0
;
left
:
0
;
}
}
}
.output-box
{
background
:
#F4F8FE
;
border-radius
:
32rpx
;
margin
:
0
16rpx
;
padding
:
24rpx
;
.output-title
{
font-weight
:
600
;
font-size
:
32rpx
;
color
:
#1B233D
;
line-height
:
48rpx
;
margin-bottom
:
22rpx
;
display
:
flex
;
}
.output-box
{
background
:
#F4F8FE
;
border-radius
:
32rpx
;
margin
:
0
16rpx
;
padding
:
24rpx
;
.output-title
{
font-weight
:
600
;
font-size
:
32rpx
;
color
:
#1B233D
;
line-height
:
48rpx
;
margin-bottom
:
22rpx
;
.output-value
{
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
33
.33%
);
row-gap
:
24rpx
;
padding
:
32rpx
;
background-image
:
linear-gradient
(
180deg
,
#FFFFFF
72%
,
#EBF1FF
100%
);
border-radius
:
16rpx
;
.output-item
{
text-align
:
center
;
.output-num
{
font-weight
:
600
;
font-size
:
44rpx
;
color
:
#1B233D
;
line-height
:
64rpx
;
}
.output-label
{
font-size
:
24rpx
;
color
:
#6E6E7A
;
line-height
:
36rpx
;
margin-top
:
12rpx
;
}
}
.output-value
{
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
33
.33%
);
row-gap
:
24rpx
;
padding
:
32rpx
;
background-image
:
linear-gradient
(
180deg
,
#FFFFFF
72%
,
#EBF1FF
100%
);
border-radius
:
16rpx
;
.output-item
{
text-align
:
center
;
.output-num
{
font-weight
:
600
;
font-size
:
44rpx
;
color
:
#1B233D
;
line-height
:
64rpx
;
}
.output-label
{
font-size
:
24rpx
;
color
:
#6E6E7A
;
line-height
:
36rpx
;
margin-top
:
12rpx
;
}
}
}
}
}
.box
{
margin
:
20rpx
;
background
:
#FFFFFF
;
...
...
@@ -67,16 +74,42 @@
font-size
:
32rpx
;
color
:
#1B233D
;
line-height
:
48rpx
;
display
:
flex
;
justify-content
:
space-between
;
.select-up
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#666666
;
position
:
relative
;
.up-box
{
position
:
absolute
;
width
:
108rpx
;
height
:
160rpx
;
background
:
#FFFFFF
;
box-shadow
:
0
0
18rpx
0
#3a596a
1c
;
border-radius
:
8rpx
;
.up-item
{
flex
:
auto
;
font-weight
:
400
;
font-size
:
20rpx
;
color
:
#666666
;
text-align
:
center
;
line-height
:
53rpx
;
}
}
}
}
.staff-input
{
width
:
638rpx
;
height
:
64rpx
;
background
:
#ffffff
7d
;
border
:
2rpx
solid
#EEEEEE
;
border-radius
:
12rpx
;
margin
:
20rpx
auto
;
margin
:
40rpx
auto
20rpx
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
...
...
packageOutput/pages/crowdDetail/crowdDetail.wxml
View file @
d2568e2
...
...
@@ -14,7 +14,7 @@
产值总览
</view>
<view class="output-value">
<view class="output-item" wx:for="{{outputValue}}">
<view class="output-item" wx:for="{{outputValue}}"
wx:key="{{index}}"
>
<view class="output-num">444</view>
<view class="output-label">{{item.label}}</view>
</view>
...
...
@@ -25,14 +25,7 @@
<invert-analyse data="{{analyseValue}}"></invert-analyse>
</view>
<view class="box staff-box">
<view class="box-title">员工排行榜</view>
<view class="staff-input">
<input placeholder="输入员工名称" />
<icon class="icon-small" type="search" size="14"></icon>
</view>
<staff sfaffList="{{sfaffList}}" />
</view>
<staff sfaffList="{{sfaffList}}" />
</scroll-view>
</view>
...
...
packageOutput/pages/monthReport/monthReport.js
View file @
d2568e2
...
...
@@ -92,10 +92,10 @@ Page({
}
},
month
:
()
=>
{
apiName
=
'boutiquecouponQueryBy
Day
Report'
,
apiName
=
'boutiquecouponQueryBy
Month
Report'
,
params
=
{
merchantId
,
reportMonth
:
timeValue
reportMonth
:
timeValue
.
substring
(
0
,
7
)
}
}
},
...
...
@@ -120,17 +120,27 @@ Page({
}
dataT
[
type
][
timeType
]()
ActivityApi
[
apiName
](
params
).
then
(
res
=>
{
const
list
=
res
.
employeeOutputList
||
res
.
staffList
const
staffList
=
list
.
length
?
list
.
splice
(
0
,
3
):
new
Array
(
3
).
fill
(
1
)
const
billboard
=
staffList
.
map
((
item
,
idx
)
=>
{
return
{
sort
:
idx
+
1
,
value
:
item
.
outputValue
||
item
.
orderMoneyTotal
||
0
,
name
:
item
.
transferName
||
item
.
employeeName
}
})
this
.
setData
({
outputData
:
res
||
{},
triggered
:
false
triggered
:
false
,
billboard
})
})
},
//获取
day后的
//获取
下个月时间
getNextMonth
(
time
)
{
const
arr
=
time
.
split
(
'-'
)
let
year
=
arr
[
0
];
//获取当前日期的年份
let
month
=
+
arr
[
1
];
//获取当前日期的月份
let
month
=
+
arr
[
1
]
+
1
;
//获取当前日期的月份
let
day
=
arr
[
2
];
//获取当前日期的日
if
(
month
==
13
)
{
year
=
parseInt
(
year
)
+
1
;
...
...
@@ -147,7 +157,6 @@ Page({
return
`
${
date
.
getFullYear
()}
年
${
date
.
getMonth
()
+
1
}
}月`
;
},
onInput
(
event
)
{
console
.
log
(
event
.
detail
)
this
.
setData
({
currentDate
:
event
.
detail
,
});
...
...
packageOutput/pages/monthReport/monthReport.wxml
View file @
d2568e2
...
...
@@ -44,7 +44,7 @@
<view class="billboard-item" wx:for="{{billboard}}" wx:key="{{index}}">
<view class="billboard-item-bar">
<view class="bill-border">
<view class="bill-num" style="transform:translate({{index==1?-20:0}}rpx,0rpx)">¥{{item.value}}</view>
<view class="bill-num"
wx:if="{{item.name}}"
style="transform:translate({{index==1?-20:0}}rpx,0rpx)">¥{{item.value}}</view>
<view class="bill-name" style="transform:translate({{index==1?-20:0}}rpx,0rpx)">{{item.name}}</view>
</view>
<glsx-image webp custom-class="bill-bg" src="store-assistant-assemble/output/bill_{{item.sort}}.png"></glsx-image>
...
...
packagesList/outDetail/components/menu/index.wxml
View file @
d2568e2
<van-popup custom-style="height: 100%;width:70%;" custom-class="popclass" bind:click-overlay="closeMenu" position="
lef
t" show="{{ show }}">
<van-popup custom-style="height: 100%;width:70%;" custom-class="popclass" bind:click-overlay="closeMenu" position="
righ
t" show="{{ show }}">
<view class="wrapper">
<view class="title">工作台</view>
<block wx:for="{{menus}}" wx:key="index">
...
...
packagesList/outDetail/index.js
View file @
d2568e2
...
...
@@ -64,7 +64,7 @@ Component({
onLoad
(
options
)
{
const
{
merchantId
,
merchantName
}
=
options
;
this
.
setData
({
merchantId
,
merchantName
})
this
.
setData
({
merchantId
:
44211227
,
merchantName
})
this
.
getSubscribeConfig
(
options
)
this
.
addEvent
()
},
...
...
packagesList/outDetail/index.scss
View file @
d2568e2
...
...
@@ -7,14 +7,6 @@
font-size
:
34rpx
;
font-weight
:
600
;
}
.nav-func-icon
{
width
:
88rpx
;
height
:
88rpx
;
position
:
absolute
;
left
:
0rpx
;
top
:
50%
;
transform
:
translateY
(
-50%
);
}
}
.layout
{
...
...
@@ -47,12 +39,25 @@
padding
:
0
32rpx
;
.tab-scroll
{
height
:
100%
;
width
:
600rpx
;
}
.nav-btn
{
width
:
88rpx
;
transform
:
translate
(
20rpx
,
8rpx
);
.nav-func-icon
{
width
:
88rpx
;
height
:
88rpx
;
}
}
.tab_element
{
display
:
inline-block
;
width
:
50%
;
padding
:
0rpx
28rpx
;
position
:
relative
;
line-height
:
96rpx
;
margin-right
:
24rpx
;
&
:last-child
{
margin-right
:
0rpx
;
}
.inner
{
width
:
100%
;
display
:
flex
;
...
...
packagesList/outDetail/index.wxml
View file @
d2568e2
<wxs src="./index.wxs" module="fn"></wxs>
<view class="navigation-bar">
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady" page-title="工作台">
<navigation-bar
showBack="{{true}}"
navStyle="{{navStyle}}" bindnavbarReady="navbarReady" page-title="工作台">
<view class="bar-nav">
<glsx-image class="nav-func-icon" bind:tap="showMenuList" webp src="store-assistant/menu/menu_logo.png"></glsx-image>
<view class="bar-text">工作台</view>
</view>
</navigation-bar>
...
...
@@ -28,6 +27,10 @@
</view>
</block>
</scroll-view>
<view class="nav-btn">
<glsx-image class="nav-func-icon" bind:tap="showMenuList" webp src="store-assistant/menu/menu_logo.png"></glsx-image>
</view>
</view>
<!-- currentServiceType 0售后众筹 1续保膨胀金 2定保招揽 3私域运营 4精品礼券 5续保招揽 6节假日关怀 -->
<view class="pannel" style="height:calc(100% - 30rpx)">
...
...
@@ -42,7 +45,5 @@
</view>
</view>
</block>
<!-- 安装信息 -->
<install-popup show="{{showPopup}}" data="{{installItem}}" bind:hidePopup="hidePopup"></install-popup>
<!-- 菜单信息 -->
<menu bind:currentMenu="getCurrentMenu" tabs="{{tab}}" totals="{{totals_zc}}" tabIndex="{{tabIndex}}" show="{{showMenu}}"></menu>
\ No newline at end of file
pages/tab/mine/mine.wxml
View file @
d2568e2
<!-- pages/tab/output/output.wxml -->
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady">我的</navigation-bar>
<view class="layout" style="padding-top:{{tabBarStyle}}px;">
<view class="userInfoCon">
<view class="userInfoCon"
bindtap="jumpLogout"
>
<glsx-image class="headPortrait" src="{{userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp>
头像
</glsx-image>
...
...
@@ -9,7 +9,7 @@
<view class="name">{{userInfo.merchantName}}</view>
<view class="id">{{userInfo.merchantId}}</view>
</view>
<view class="logot"
bindtap="jumpLogout"
>
<view class="logot">
<glsx-image class="logot" webp src="store-assistant-assemble/login/arrow-left.png"></glsx-image>
</view>
</view>
...
...
project.private.config.json
View file @
d2568e2
...
...
@@ -111,7 +111,7 @@
},
{
"name"
:
""
,
"pathName"
:
"pa
ckageOutput/pages/crowdDetail/crowdDetail
"
,
"pathName"
:
"pa
ges/tab/output/output
"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
...
...
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