Commit c64799f2 by chenwq

看产值样式调整,需求细节

1 parent 39e3b95d
...@@ -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.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--> <!--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="{{!searchForm.sceneType && merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total> <service-total wx:if="{{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}}"></merchant-all> <merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}" searchForm="{{searchForm}}"></merchant-all>
<!-- 指定场景:太阳膜,售后众筹,会员权益/升级 --> <!-- 指定场景:太阳膜,售后众筹,会员权益/升级 -->
<merchant-scene wx:else searchForm="{{searchForm}}" curInfo="{{item}}"></merchant-scene> <merchant-scene wx:else searchForm="{{searchForm}}" curInfo="{{item}}"></merchant-scene>
</view> </view>
<view wx:if="{{!loading}}"> <view wx:if="{{!loading}}">
<view wx:if="{{!merchantList.length}}" class="end-txt"> <view wx:if="{{!merchantList.length}}" class="end-txt">
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" /> <nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" emptyDataStyle="{{emptyDataStyle}}" />
</view>
<view class="btn-box" wx:elif="{{!isEnd}}">
<view class="btn" bindtap="getMore">加载更多</view>
</view> </view>
<view class="btn" wx:elif="{{!isEnd}}" bindtap="getMore">加载更多</view>
<view wx:else class="end-txt"> <view wx:else class="end-txt">
<view>到底啦~</view> <view>到底啦~</view>
</view> </view>
</view> </view>
</scroll-view>
</view>
\ No newline at end of file \ No newline at end of file
</scroll-view>
\ No newline at end of file \ No newline at end of file
...@@ -45,7 +45,8 @@ Component({ ...@@ -45,7 +45,8 @@ Component({
date: { date: {
year: '', year: '',
month: '' month: ''
} },
currentMonth: new Date().format('yyyy-MM')
}, },
/** /**
......
...@@ -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 {
......
...@@ -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,12 +12,13 @@ ...@@ -12,12 +12,13 @@
<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:if="{{searchForm.startTime && searchForm.endTime}}">
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box"> <view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</view> <view class="label">{{item.label}}</view>
<view class="num-grey"> <view class="num-grey">
...@@ -29,6 +30,7 @@ ...@@ -29,6 +30,7 @@
</view> </view>
</view> </view>
</view> </view>
</view>
<!-- 门店列表 --> <!-- 门店列表 -->
<view class="contanier"> <view class="contanier">
<view wx:for="{{curInfo.merchantDataList}}" wx:key="index" class="list" bindtap="jump" data-info="{{item}}"> <view wx:for="{{curInfo.merchantDataList}}" wx:key="index" class="list" bindtap="jump" data-info="{{item}}">
...@@ -48,6 +50,7 @@ ...@@ -48,6 +50,7 @@
</view> </view>
<!-- 内容 - 太阳膜、会员权益/升级 --> <!-- 内容 - 太阳膜、会员权益/升级 -->
<view wx:else class="list-content"> <view wx:else class="list-content">
<view wx:if="{{currentMonth == curInfo.yearMonth}}">
<view class="com-box"> <view class="com-box">
<view class="line"></view> <view class="line"></view>
<view class="com-month">当日</view> <view class="com-month">当日</view>
...@@ -63,6 +66,7 @@ ...@@ -63,6 +66,7 @@
</view> </view>
</view> </view>
</view> </view>
</view>
<view> <view>
<view class="com-box"> <view class="com-box">
<view class="line"></view> <view class="line"></view>
......
...@@ -14,6 +14,19 @@ Component({ ...@@ -14,6 +14,19 @@ Component({
this.dealCompare() this.dealCompare()
} }
} }
},
searchForm: {
type: Object,
value: () => {
return {
// 服务商商户号
partnerMerchantId: '',
// 4S店商户号
merchantId: '',
startTime: '',
endTime: '',
}
}
} }
}, },
......
...@@ -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 {
......
...@@ -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>
......
...@@ -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}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!