MerchantScene.wxml
4.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!--pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml-->
<wxs src="/pages/tab/outputValue/index.wxs" module="filter" />
<view class="merchant-scene">
<view class="top">
<view class="scene-label">{{sceneObj.label}}</view>
<view wx:if="{{sceneObj.name == 'membranes'}}" class="business-total label">业务产值
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
</view>
<view>
<text class="num-month">{{date.month}}</text><text class="month">月</text><text class="year">{{date.year}}年</text>
</view>
<view class="top-num-box">
<view>
<view class="num-blue ft-40"><text class="f-28">¥</text>{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</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 business-total-other">业务产值
<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 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>
</view>
</view>
<!-- 门店列表 -->
<view class="contanier">
<view wx:for="{{curInfo.merchantDataList}}" wx:key="index" class="list" bindtap="jump" data-info="{{item}}">
<view class="title-box flex-between {{index == 0 ? 'title-box-first' : ''}}">
<view class="title-block">
<view class="title-name text-hide">{{item.merchantName}}</view>
<text class="tips-store">门店</text>
</view>
<view class="num-blue"><text class="f-24">¥</text>{{filter.money_three_for_two_thousands(item.bizTotal || 0)}}</view>
</view>
<!-- 内容 - 售后众筹 -->
<view wx:if="{{sceneObj.name == 'crowdfund'}}" class="list-content crowdfund-box">
<view class="com-box">
<view class="line crowdfund"></view>
<view class="crowdfund-total">{{item.activityTotal}}场 | {{item.orderTotal}}单</view>
<view class="line crowdfund"></view>
</view>
<view class="flex-wrap">
<view wx:for="{{item.curMonthTotalData}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="{{subItem.isShow ? 'crowdfund-item' : ''}}">
<view wx:if="{{subItem.isShow}}">
<view class="label">{{subItem.productName}}</view>
<view class="num">{{subItem.activityTotal || 0}}场<text class="num-grey">/</text>{{subItem.orderTotal || 0}}单<text class="num-grey">/</text>¥{{filter.money_three_for_two_thousands(subItem.bizTotal || 0)}}</view>
</view>
</view>
</view>
</view>
<!-- 内容 - 太阳膜、会员权益/升级 -->
<view wx:else class="list-content">
<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>
<view>
<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 wx:if="{{currentMonth != curInfo.yearMonth}}" class="label">{{subItem.label}}</view>
<view class="num">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>{{filter.money_three_for_two_thousands(item.curMonthTotalData[0][subItem.name] || 0)}}<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>