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 c64799f2
authored
Aug 24, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
看产值样式调整,需求细节
1 parent
39e3b95d
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
82 additions
and
57 deletions
pages/tab/outputValue/components/merchant/merchant.js
pages/tab/outputValue/components/merchant/merchant.scss
pages/tab/outputValue/components/merchant/merchant.wxml
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.js
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.scss
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.js
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.scss
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
pages/tab/outputValue/outputValue.wxml
pages/tab/outputValue/components/merchant/merchant.js
View file @
c64799f
...
@@ -20,9 +20,12 @@ Component({
...
@@ -20,9 +20,12 @@ Component({
sceneType
:
''
sceneType
:
''
}
}
}
}
// observer: function (n) {
},
// n && this.merchantRefresh()
tabBarStyle
:
{
// }
type
:
Number
,
observer
:
function
(
n
)
{
if
(
n
)
this
.
setData
({
emptyDataStyle
:
`height: calc(100vh -
${
n
}
px - 88rpx - 24rpx)`
})
}
}
}
},
},
...
...
pages/tab/outputValue/components/merchant/merchant.scss
View file @
c64799f
/* pages/tab/outputValue/components/merchant/merchant.wxss */
/* pages/tab/outputValue/components/merchant/merchant.wxss */
.merchantCon
{
box-sizing
:
border-box
;
background-color
:
#F2F3F7
;
height
:
100%
;
padding
:
0
16rpx
;
}
.merchant
{
.merchant
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
color
:
#323436
;
color
:
#323436
;
// padding-top: 16rpx;
// padding-top: 16rpx;
background-color
:
#F2F3F7
;
background-color
:
#F2F3F7
;
height
:
100%
;
padding
:
0
16rpx
;
}
}
.merchant-content
{
.merchant-content
{
...
@@ -18,6 +13,10 @@
...
@@ -18,6 +13,10 @@
margin-bottom
:
44rpx
;
margin-bottom
:
44rpx
;
}
}
.btn-box
{
padding-bottom
:
44rpx
;
}
.btn
{
.btn
{
width
:
256rpx
;
width
:
256rpx
;
height
:
80rpx
;
height
:
80rpx
;
...
@@ -27,7 +26,7 @@
...
@@ -27,7 +26,7 @@
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#5A6066
;
color
:
#5A6066
;
text-align
:
center
;
text-align
:
center
;
margin
:
0
auto
44rpx
;
margin
:
0
auto
;
}
}
.end-txt
{
.end-txt
{
...
...
pages/tab/outputValue/components/merchant/merchant.wxml
View file @
c64799f
<!--pages/tab/outputValue/components/merchant/merchant.wxml-->
<!--pages/tab/outputValue/components/merchant/merchant.wxml-->
<view class="merchantCon">
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{busiScrollTop}}">
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{busiScrollTop}}">
<!-- 全部 - 服务商总产值 -->
<!-- 全部 - 服务商总产值 -->
<service-total wx:if="{{merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total>
<service-total wx:if="{{!searchForm.sceneType && merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total>
<view wx:for="{{merchantList}}" wx:key="index" class="merchant-content">
<view wx:for="{{merchantList}}" wx:key="index" class="merchant-content">
<!-- 全部 -->
<!-- 全部 -->
<merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}" searchForm="{{searchForm}}"></merchant-all>
<merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}"></merchant-all>
<!-- 指定场景:太阳膜,售后众筹,会员权益/升级 -->
<!-- 指定场景:太阳膜,售后众筹,会员权益/升级 -->
<merchant-scene wx:else searchForm="{{searchForm}}" curInfo="{{item}}"></merchant-scene>
<merchant-scene wx:else searchForm="{{searchForm}}" curInfo="{{item}}"></merchant-scene>
</view>
<view wx:if="{{!loading}}">
<view wx:if="{{!merchantList.length}}" class="end-txt">
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" emptyDataStyle="{{emptyDataStyle}}" />
</view>
</view>
<view wx:if="{{!loading}}">
<view class="btn-box" wx:elif="{{!isEnd}}">
<view wx:if="{{!merchantList.length}}" class="end-txt">
<view class="btn" bindtap="getMore">加载更多</view>
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" />
</view>
<view class="btn" wx:elif="{{!isEnd}}" bindtap="getMore">加载更多</view>
<view wx:else class="end-txt">
<view>到底啦~</view>
</view>
</view>
</view>
</scroll-view>
</view>
\ No newline at end of file
\ No newline at end of file
<view wx:else class="end-txt">
<view>到底啦~</view>
</view>
</view>
</scroll-view>
\ No newline at end of file
\ No newline at end of file
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.js
View file @
c64799f
...
@@ -45,7 +45,8 @@ Component({
...
@@ -45,7 +45,8 @@ Component({
date
:
{
date
:
{
year
:
''
,
year
:
''
,
month
:
''
month
:
''
}
},
currentMonth
:
new
Date
().
format
(
'yyyy-MM'
)
},
},
/**
/**
...
...
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.scss
View file @
c64799f
...
@@ -94,6 +94,11 @@
...
@@ -94,6 +94,11 @@
right
:
0
;
right
:
0
;
top
:
66rpx
;
top
:
66rpx
;
right
:
24rpx
;
right
:
24rpx
;
text-align
:
right
;
}
.business-total-other
{
text-align
:
right
;
}
}
.top-num-box
{
.top-num-box
{
...
@@ -165,7 +170,7 @@
...
@@ -165,7 +170,7 @@
}
}
.title-name
{
.title-name
{
width
:
calc
(
100%
-
72rpx
);
max-
width
:
calc
(
100%
-
72rpx
);
}
}
.tips-store
{
.tips-store
{
...
...
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
View file @
c64799f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view class="merchant-scene">
<view class="merchant-scene">
<view class="top">
<view class="top">
<view class="scene-label">{{sceneObj.label}}</view>
<view class="scene-label">{{sceneObj.label}}</view>
<view wx:if="{{sceneObj.name == 'membranes'}}" class="business-total label">业务产值
<view wx:if="{{sceneObj.name == 'membranes'
&& searchForm.startTime && searchForm.endTime
}}" class="business-total label">业务产值
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
</view>
</view>
<view>
<view>
...
@@ -12,18 +12,20 @@
...
@@ -12,18 +12,20 @@
<view class="top-num-box">
<view class="top-num-box">
<view>
<view>
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<
!-- <view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view> --
>
<
view class="total-txt num-grey" wx:if="{{curInfo.curMonthTotalData.total == 0}}">暂无业务收入</view
>
</view>
</view>
<view>
<view>
<view wx:if="{{sceneObj.name != 'membranes'
}}" class="label m-b-12
">业务产值
<view wx:if="{{sceneObj.name != 'membranes'
&& searchForm.startTime && searchForm.endTime}}" class="label m-b-12 business-total-other
">业务产值
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
</view>
</view>
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view wx:if="{{searchForm.startTime && searchForm.endTime}}">
<view class="label">{{item.label}}</view>
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view class="num-grey">
<view class="label">{{item.label}}</view>
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
<view class="num-grey">
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}
<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -48,18 +50,20 @@
...
@@ -48,18 +50,20 @@
</view>
</view>
<!-- 内容 - 太阳膜、会员权益/升级 -->
<!-- 内容 - 太阳膜、会员权益/升级 -->
<view wx:else class="list-content">
<view wx:else class="list-content">
<view class="com-box">
<view wx:if="{{currentMonth == curInfo.yearMonth}}">
<view class="line"></view>
<view class="com-box">
<view class="com-month">当日</view>
<view class="line"></view>
<view class="line"></view>
<view class="com-month">当日</view>
</view>
<view class="line"></view>
<view class="flex">
</view>
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block {{sceneObj.name}}">
<view class="flex">
<view class="label">{{subItem.label}}</view>
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block {{sceneObj.name}}">
<view class="num">
<view class="label">{{subItem.label}}</view>
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
<view class="num">
{{filter.money_three_for_two_thousands(item.curDayTotalData[subItem.name] || 0)}}
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
{{filter.money_three_for_two_thousands(item.curDayTotalData[subItem.name] || 0)}}
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.js
View file @
c64799f
...
@@ -14,6 +14,19 @@ Component({
...
@@ -14,6 +14,19 @@ Component({
this
.
dealCompare
()
this
.
dealCompare
()
}
}
}
}
},
searchForm
:
{
type
:
Object
,
value
:
()
=>
{
return
{
// 服务商商户号
partnerMerchantId
:
''
,
// 4S店商户号
merchantId
:
''
,
startTime
:
''
,
endTime
:
''
,
}
}
}
}
},
},
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.scss
View file @
c64799f
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
}
}
.title-name
{
.title-name
{
width
:
calc
(
100%
-
72rpx
);
max-
width
:
calc
(
100%
-
72rpx
);
}
}
.tips-store
{
.tips-store
{
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
View file @
c64799f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<wxs src="/pages/tab/outputValue/index.wxs" module="filter" />
<wxs src="/pages/tab/outputValue/index.wxs" module="filter" />
<view class="merchant-all">
<view class="merchant-all">
<view class="top">
<view class="top">
<view class="switch-box">对比上月
<view class="switch-box"
wx:if="{{curInfo.merchantDataList.length}}"
>对比上月
<switch style="zoom:.6; margin-left: 8rpx;" color="#3666FE" checked="{{switchChecked}}" bindchange="switchChange" />
<switch style="zoom:.6; margin-left: 8rpx;" color="#3666FE" checked="{{switchChecked}}" bindchange="switchChange" />
</view>
</view>
<view>
<view>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view>
<view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view>
</view>
</view>
<view>
<view
wx:if="{{searchForm.startTime && searchForm.endTime}}"
>
<view wx:for="{{sceneFormList}}" wx:key="index" class="top-right-box">
<view wx:for="{{sceneFormList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view class="num-grey">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}</view>
<view class="num-grey">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}</view>
...
...
pages/tab/outputValue/outputValue.wxml
View file @
c64799f
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<view class="layout" style="padding-top:calc({{tabBarStyle}}px + 88rpx);">
<view class="layout" style="padding-top:calc({{tabBarStyle}}px + 88rpx);">
<!-- 我的门店 -->
<!-- 我的门店 -->
<view class="comCom" hidden="{{tabIndx != 0}}">
<view class="comCom" hidden="{{tabIndx != 0}}">
<merchant id="merchant" searchForm="{{screenFormData}}" />
<merchant id="merchant" searchForm="{{screenFormData}}"
tabBarStyle="{{tabBarStyle}}"
/>
</view>
</view>
<!-- 我的员工 -->
<!-- 我的员工 -->
<view class="comCom" hidden="{{tabIndx != 1}}">
<view class="comCom" hidden="{{tabIndx != 1}}">
...
...
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