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({
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 */
.merchantCon
{
box-sizing
:
border-box
;
background-color
:
#F2F3F7
;
height
:
100%
;
padding
:
0
16rpx
;
}
.merchant
{
box-sizing
:
border-box
;
color
:
#323436
;
// padding-top: 16rpx;
background-color
:
#F2F3F7
;
height
:
100%
;
padding
:
0
16rpx
;
}
.merchant-content
{
...
...
@@ -18,6 +13,10 @@
margin-bottom
:
44rpx
;
}
.btn-box
{
padding-bottom
:
44rpx
;
}
.btn
{
width
:
256rpx
;
height
:
80rpx
;
...
...
@@ -27,7 +26,7 @@
font-size
:
24rpx
;
color
:
#5A6066
;
text-align
:
center
;
margin
:
0
auto
44rpx
;
margin
:
0
auto
;
}
.end-txt
{
...
...
pages/tab/outputValue/components/merchant/merchant.wxml
View file @
c64799f
<!--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}}">
<!-- 全部 - 服务商总产值 -->
<service-total wx:if="{{!searchForm.sceneType && merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total>
<view wx:for="{{merchantList}}" wx:key="index" class="merchant-content">
<!-- 全部 -->
<merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}"></merchant-all>
<!-- 指定场景:太阳膜,售后众筹,会员权益/升级 -->
<merchant-scene wx:else searchForm="{{searchForm}}" curInfo="{{item}}"></merchant-scene>
<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>
<view wx:for="{{merchantList}}" wx:key="index" class="merchant-content">
<!-- 全部 -->
<merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}" searchForm="{{searchForm}}"></merchant-all>
<!-- 指定场景:太阳膜,售后众筹,会员权益/升级 -->
<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 wx:if="{{!loading}}">
<view wx:if="{{!merchantList.length}}" class="end-txt">
<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 class="btn-box" wx:elif="{{!isEnd}}">
<view class="btn" bindtap="getMore">加载更多</view>
</view>
</scroll-view>
</view>
\ No newline at end of file
<view wx:else class="end-txt">
<view>到底啦~</view>
</view>
</view>
</scroll-view>
\ No newline at end of file
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.js
View file @
c64799f
...
...
@@ -45,7 +45,8 @@ Component({
date
:
{
year
:
''
,
month
:
''
}
},
currentMonth
:
new
Date
().
format
(
'yyyy-MM'
)
},
/**
...
...
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.scss
View file @
c64799f
...
...
@@ -94,6 +94,11 @@
right
:
0
;
top
:
66rpx
;
right
:
24rpx
;
text-align
:
right
;
}
.business-total-other
{
text-align
:
right
;
}
.top-num-box
{
...
...
@@ -165,7 +170,7 @@
}
.title-name
{
width
:
calc
(
100%
-
72rpx
);
max-
width
:
calc
(
100%
-
72rpx
);
}
.tips-store
{
...
...
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
View file @
c64799f
...
...
@@ -3,7 +3,7 @@
<view class="merchant-scene">
<view class="top">
<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>
</view>
<view>
...
...
@@ -12,18 +12,20 @@
<view class="top-num-box">
<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 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>
</view>
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</view>
<view class="num-grey">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}
<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
<view wx:if="{{searchForm.startTime && searchForm.endTime}}">
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</view>
<view class="num-grey">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}
<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
</view>
</view>
</view>
</view>
...
...
@@ -48,18 +50,20 @@
</view>
<!-- 内容 - 太阳膜、会员权益/升级 -->
<view wx:else class="list-content">
<view class="com-box">
<view class="line"></view>
<view class="com-month">当日</view>
<view class="line"></view>
</view>
<view class="flex">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block {{sceneObj.name}}">
<view class="label">{{subItem.label}}</view>
<view class="num">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
{{filter.money_three_for_two_thousands(item.curDayTotalData[subItem.name] || 0)}}
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
<view wx:if="{{currentMonth == curInfo.yearMonth}}">
<view class="com-box">
<view class="line"></view>
<view class="com-month">当日</view>
<view class="line"></view>
</view>
<view class="flex">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block {{sceneObj.name}}">
<view class="label">{{subItem.label}}</view>
<view class="num">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
{{filter.money_three_for_two_thousands(item.curDayTotalData[subItem.name] || 0)}}
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
</view>
</view>
</view>
</view>
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.js
View file @
c64799f
...
...
@@ -14,6 +14,19 @@ Component({
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 @@
}
.title-name
{
width
:
calc
(
100%
-
72rpx
);
max-
width
:
calc
(
100%
-
72rpx
);
}
.tips-store
{
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
View file @
c64799f
...
...
@@ -2,7 +2,7 @@
<wxs src="/pages/tab/outputValue/index.wxs" module="filter" />
<view class="merchant-all">
<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" />
</view>
<view>
...
...
@@ -13,7 +13,7 @@
<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>
<view>
<view
wx:if="{{searchForm.startTime && searchForm.endTime}}"
>
<view wx:for="{{sceneFormList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</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 @@
<view class="layout" style="padding-top:calc({{tabBarStyle}}px + 88rpx);">
<!-- 我的门店 -->
<view class="comCom" hidden="{{tabIndx != 0}}">
<merchant id="merchant" searchForm="{{screenFormData}}" />
<merchant id="merchant" searchForm="{{screenFormData}}"
tabBarStyle="{{tabBarStyle}}"
/>
</view>
<!-- 我的员工 -->
<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