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 7be89fa1
authored
Aug 29, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
二次ui走查修改
1 parent
e002e12d
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
81 additions
and
44 deletions
components/CalendarMonth/CalendarMonth.wxml
components/Popup/Popup.wxss
pages/tab/outputValue/components/ScreenBox/ScreenBox.js
pages/tab/outputValue/components/ScreenBox/ScreenBox.wxml
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.wxml
pages/tab/outputValue/components/SwitchAccountPopup/SwitchAccountPopup.scss
pages/tab/outputValue/components/employees/employess.scss
pages/tab/outputValue/components/employees/employess.wxml
pages/tab/outputValue/components/selectMerchantPopup/selectMerchantPopup.scss
pages/tab/outputValue/outputValue.scss
pages/tab/outputValue/outputValue.wxml
components/CalendarMonth/CalendarMonth.wxml
View file @
7be89fa
...
...
@@ -74,7 +74,7 @@
<block wx:for="{{yearList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<swiper-item class="calenderMonth">
<block wx:for="{{item}}" wx:for-item="monItem" wx:for-index="monIndex" wx:key="monIndex">
<view bindtap="monChoose" data-type="month" data-index="{{monIndex}}" data-yearindex="{{index}}" data-data="{{monItem}}" class="monItem {{monItem.start?'active':''}} {{monItem.select?'select':''}} {{monItem.end?'end':''}} {{monItem.disable?'disable':''}}">
<view bindtap="monChoose" data-type="month" data-index="{{monIndex}}" data-yearindex="{{index}}" data-data="{{monItem}}" class="monItem {{monItem.start?'active':''}} {{monItem.select?'select':''}} {{monItem.end?'end':''}} {{monItem.disable?'disable':''}}"
style="background: {{monItem.start || monItem.select || monItem.end ? calenderColor : ''}};"
>
<view>{{monItem.label}}</view>
<view class="text" wx:if="{{monItem.start}}">开始</view>
<view class="text" wx:if="{{monItem.end}}">结束</view>
...
...
components/Popup/Popup.wxss
View file @
7be89fa
...
...
@@ -76,7 +76,7 @@
height: 80rpx;
box-sizing: border-box;
border-radius: 12rpx;
font-size:
28
rpx;
font-size:
32
rpx;
}
.popup-footer .doubtn {
...
...
@@ -84,7 +84,7 @@
height: 80rpx;
box-sizing: border-box;
border-radius: 12rpx;
font-size:
28
rpx;
font-size:
32
rpx;
}
.popup-footer .cancel {
...
...
pages/tab/outputValue/components/ScreenBox/ScreenBox.js
View file @
7be89fa
...
...
@@ -8,7 +8,9 @@ Component({
formData
:
Object
,
tabBarStyle
:
String
,
isShowFilterScreen
:
Boolean
,
tabType
:
Number
tabType
:
Number
,
statusBarHeight
:
Number
,
navigationBarHeight
:
Number
},
/**
...
...
pages/tab/outputValue/components/ScreenBox/ScreenBox.wxml
View file @
7be89fa
...
...
@@ -12,4 +12,4 @@
<!-- 选择门店 -->
<select-merchant-popup wx:if="{{popupShow}}" bind:hidePopup="handleSlectMerchant" bindmerchantConfirm="handleMerchantChange" selectInfo="{{formData}}" popShow="{{popupShow}}" merchantRange="{{merchantList}}"/>
<!-- 筛选 -->
<screen-confirm-box wx:if="{{pageLoaded}}" bindscreenFlag="handleScreenFlag" tabBarStyle="{{tabBarStyle}}" show="{{confirmShow}}" userInfo="{{userInfo}}" formData="{{formData}}" tabType="{{tabType}}" bindchangeService="hanbleChangeService"></screen-confirm-box>
\ No newline at end of file
<screen-confirm-box wx:if="{{pageLoaded}}" bindscreenFlag="handleScreenFlag" statusBarHeight="{{statusBarHeight}}" navigationBarHeight="{{navigationBarHeight}}" tabBarStyle="{{tabBarStyle}}" show="{{confirmShow}}" userInfo="{{userInfo}}" formData="{{formData}}" tabType="{{tabType}}" bindchangeService="hanbleChangeService"></screen-confirm-box>
\ No newline at end of file
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
View file @
7be89fa
...
...
@@ -23,7 +23,9 @@ Component({
}
},
tabType
:
Number
,
// tab值 0我的门店 1我的员工
userInfo
:
Object
userInfo
:
Object
,
statusBarHeight
:
Number
,
navigationBarHeight
:
Number
},
/**
...
...
@@ -209,6 +211,11 @@ Component({
isReset
:
false
})
},
// 日期组件
showCalendar
(
e
)
{
let
calendarMonthModule
=
this
.
selectComponent
(
'#calendarMonth'
)
calendarMonthModule
.
showCalendar
&&
calendarMonthModule
.
showCalendar
(
e
)
},
confirm
()
{
if
(
this
.
data
.
screenConfirmFlag
)
return
wx
.
$api
.
showLoading
(
'加载中'
)
...
...
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.wxml
View file @
7be89fa
<!--pages/tab/output/components/ScreenConfirmBox/ScreenConfirmBox.wxml-->
<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:
calc({{statusBarHeight + navigationBarHeight}}px)
;"
hidden="{{!show}}">
<view class="main" style="padding-bottom:{{btnHeight}}px;min-height: calc(100% - {{btnHeight}}px);">
<view class="box">
...
...
@@ -24,13 +24,14 @@
自定义月份
<view class="picker_box">
<CalendarMonth
id="calendarMonth"
wx:if="{{isShowCalendarMonth}}"
allowSameDay
shortcut
bindselect="dateRangeSelect"
rangeAll
dateType="range"
calenderColor="#3
582E
E"
calenderColor="#3
666F
E"
vertical
minDate="2020-10-01"
maxDate="{{ dateObj.today }}"
...
...
@@ -49,11 +50,15 @@
</view>
</view>
<view class="date_box">
<view class="date_item" wx:if="{{formData.startTime}}">{{filter.filterDate(formData.startTime) || '开始时间'}}</view>
<view class="date_item placeholder" wx:else>请选择</view>
<view bindtap="showCalendar" data-type="show">
<view class="date_item" wx:if="{{formData.startTime}}">{{filter.filterDate(formData.startTime) || '开始时间'}}</view>
<view class="date_item placeholder" wx:else>请选择</view>
</view>
<view>-</view>
<view class="date_item" wx:if="{{formData.endTime}}">{{filter.filterDate(formData.endTime) || '结束时间'}}</view>
<view class="date_item placeholder" wx:else>请选择</view>
<view bindtap="showCalendar" data-type="show">
<view class="date_item" wx:if="{{formData.endTime}}">{{filter.filterDate(formData.endTime) || '结束时间'}}</view>
<view class="date_item placeholder" wx:else>请选择</view>
</view>
</view>
</view>
<view class="box" wx:if="{{tabType == 0}}">
...
...
pages/tab/outputValue/components/SwitchAccountPopup/SwitchAccountPopup.scss
View file @
7be89fa
...
...
@@ -24,8 +24,8 @@
}
.search-box
.search-input
.search-icon
{
width
:
2
8rpx
;
height
:
2
8rpx
;
width
:
4
8rpx
;
height
:
4
8rpx
;
margin
:
0
10rpx
0
26rpx
;
}
...
...
@@ -38,6 +38,7 @@
.search-box
.search-input
.input
{
font-size
:
28rpx
;
width
:
calc
(
100%
-
136rpx
);
text-align
:
left
;
}
.input-placeholder
{
...
...
@@ -80,7 +81,8 @@
color
:
#323436
;
line-height
:
80rpx
;
padding
:
0
32rpx
;
font-size
:
28rpx
;
font-weight
:
normal
;
}
.active
{
...
...
pages/tab/outputValue/components/employees/employess.scss
View file @
7be89fa
...
...
@@ -64,11 +64,12 @@
}
.output_text
{
position
:
relative
;
text
{
color
:
#4772FC
;
font-size
:
36rpx
;
font-family
:
'ali-bold'
;
font-weight
:
700
;
font-family
:
"ali-bold"
;
color
:
#4772FC
;
font-size
:
36rpx
;
font-weight
:
700
;
.unit
{
font-size
:
24rpx
;
}
}
.merchant_num
{
...
...
@@ -114,6 +115,7 @@
font-size
:
28rpx
;
.title
{
font-size
:
24rpx
;
font-weight
:
normal
;
color
:
#8A8C90
;
}
.flex_spa-arr
{
...
...
pages/tab/outputValue/components/employees/employess.wxml
View file @
7be89fa
...
...
@@ -22,8 +22,8 @@
<view class="name">{{item.staffName}}</view>
<view class="role_name" wx:if="{{item.staffRoleName && item.staffRoleName != '系统默认角色'}}">「<view>{{item.staffRoleName}}</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', true)}}</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 wx:if="{{item.totalOutputValue < 1000000}}" class="output_text"><text
class="unit">¥</text>{{filter.money_three_for_two_thousands(item.totalOutputValue || '0.00', true)}}
</view>
<view wx:else class="output_text" style="padding-right: 18rpx;"><text
class="unit">¥</text>一百万
<text style="font-size: 24rpx;position: absolute;top: 0;right: 0;">+</text></view>
</view>
<view class="flex_spa-be">
<view class="merchant_num">服务门店·{{item.outputValueType == 1 ? item.outputValueStats.length : item.constructionStats.length}}家</view>
...
...
@@ -44,11 +44,11 @@
</view>
<block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 &&
!item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 &&
item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 &&
(!item.showMore && subIndex == 2) ||
item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex">
<view class="font_wei700">{{'
¥
' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', true)}}</view>
<view class="font_wei500">{{'
¥
' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', true)}}</view>
<view class="font_wei700">{{'
¥
' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', true)}}</view>
<view class="font_wei500">{{'
¥
' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', true)}}</view>
</view>
<view class="flex_1 flex">
<view class="font_wei700">{{subItem.orderCount}}单</view>
...
...
@@ -73,16 +73,16 @@
</view>
<block wx:for="{{item.constructionStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 &&
!item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 &&
item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 &&
(!item.showMore && subIndex == 2) ||
item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex">
<view class="font_wei700">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view>
<view class="font_wei400">赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view>
</view>
<view class="flex_1 flex">
<view class="font_wei700" wx:if="{{subItem.upgradeIncentiveFee && subItem.upgradeConstructionCount}}">
¥
{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view>
<view class="font_wei700" wx:if="{{subItem.upgradeIncentiveFee && subItem.upgradeConstructionCount}}">
¥
{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view>
<view class="font_wei700" wx:if="{{!subItem.upgradeIncentiveFee || !subItem.upgradeConstructionCount}}">-</view>
<view class="font_wei400" wx:if="{{subItem.notUpgradeIncentiveFee && subItem.notUpgradeConstructionCount}}">
¥
{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view>
<view class="font_wei400" wx:if="{{subItem.notUpgradeIncentiveFee && subItem.notUpgradeConstructionCount}}">
¥
{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view>
<view class="font_wei400" wx:if="{{!subItem.notUpgradeIncentiveFee || !subItem.notUpgradeConstructionCount}}">-</view>
</view>
</view>
...
...
pages/tab/outputValue/components/selectMerchantPopup/selectMerchantPopup.scss
View file @
7be89fa
...
...
@@ -42,8 +42,8 @@
color
:
rgba
(
200
,
201
,
204
,
.89
);
}
.search-icon
{
width
:
2
8rpx
;
height
:
2
8rpx
;
width
:
4
8rpx
;
height
:
4
8rpx
;
}
.search-clear
{
width
:
36rpx
;
...
...
@@ -54,6 +54,7 @@
font-size
:
28rpx
;
width
:
calc
(
100%
-
136rpx
);
margin-left
:
10rpx
;
text-align
:
left
;
}
}
}
...
...
@@ -68,6 +69,8 @@
width
:
100%
;
height
:
80rpx
;
color
:
#323436
;
font-size
:
28rpx
;
font-weight
:
normal
;
line-height
:
80rpx
;
padding
:
0
32rpx
;
}
...
...
pages/tab/outputValue/outputValue.scss
View file @
7be89fa
...
...
@@ -33,6 +33,19 @@
height
:
34rpx
;
}
.bg_iamge
{
width
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
0
;
z-index
:
-1
;
.image_class
{
background-color
:
#fff
;
width
:
100%
;
height
:
100%
;
}
}
.layout
{
box-sizing
:
border-box
;
position
:
relative
;
...
...
@@ -45,19 +58,19 @@
height
:
100vh
;
overflow
:
hidden
;
&
:
:
after
{
content
:
''
;
width
:
100%
;
// height: 486rpx;
height
:
264rpx
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/background.png')
no-repeat
;
background-size
:
100%
100%
;
background-color
:
#fff
;
position
:
absolute
;
left
:
0
;
top
:
0
;
z-index
:
-1
;
}
//
&::after {
//
content: '';
//
width: 100%;
//
// height: 486rpx;
//
height: 264rpx;
//
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/background.png') no-repeat;
//
background-size: 100% 100%;
//
background-color: #fff;
//
position: absolute;
//
left: 0;
//
top: 0;
//
z-index: -1;
//
}
.tabContainer
{
// height: 100rpx;
...
...
pages/tab/outputValue/outputValue.wxml
View file @
7be89fa
...
...
@@ -3,7 +3,7 @@
<block>
<tab wx:if="{{!isShowFilterScreen}}" noLine="{{true}}" tab="{{tabList}}" itemWidth="{{'136rpx'}}" tabBoxStyle="{{tabBoxStyle}}" index="{{tabIndx}}" unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" />
<view class="screen_box">
<screen-box id="screenBox" formData="{{screenFormData}}" tabType="{{tabIndx}}" tabBarStyle="{{tabBarStyle}}" isShowFilterScreen="{{isShowFilterScreen}}" bindconfirm="screenConfirm"></screen-box>
<screen-box id="screenBox" formData="{{screenFormData}}"
statusBarHeight="{{statusBarHeight}}" navigationBarHeight="{{navigationBarHeight}}"
tabType="{{tabIndx}}" tabBarStyle="{{tabBarStyle}}" isShowFilterScreen="{{isShowFilterScreen}}" bindconfirm="screenConfirm"></screen-box>
</view>
</block>
<block wx:if="{{isShowFilterScreen}}">
...
...
@@ -13,6 +13,9 @@
<view>筛选</view>
</block>
</navigation-bar>
<view class="bg_iamge" style="height: calc({{statusBarHeight + navigationBarHeight}}px + 88rpx);">
<glsx-image src="{{'output/background.png'}}" class="image_class" />
</view>
<view class="layout" style="padding-top:calc({{statusBarHeight + navigationBarHeight}}px + 88rpx);">
<!-- 我的门店 -->
<view class="comCom" hidden="{{tabIndx != 0}}">
...
...
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