index.wxml
8.61 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!--packageCrowdFunding/pages/homePage/index/index.wxml-->
<wxs src="../../index.wxs" module="filter" />
<view class="layout_box">
<scroll-view scroll-y style="height: 100%;" bindscroll="onScroll" bindscrolltolower="onBottomRefresh">
<view class="tips">
<view class="tips-text text-hide">
你好,
<text>{{loginRoleLabel[loginRole]|| ''}}{{userInfo.name || ''}}</text>
</view>
</view>
<view class="{{!waitInputCount ? 'constent_no_tips_box' : ''}} content_box">
<view class="swiper-wrap">
<swiper bindchange="changeSwiper">
<block wx:for="{{3}}" wx:key="index">
<swiper-item>
<view class="swiper-item">
<view class="total-wrap">
<view class="item">
<view class="title">{{current==0?'今日':current==1?'本月':'累计'}}产值</view>
<veiw class="number">
<text class="unit">¥</text>
<text>{{staticData.totalOutputValue||0}}</text>
</veiw>
</view>
<view class="item">
<view class="title">转化率</view>
<view class="number"><text>{{staticData.conversionRate > 100 ? 100 : staticData.conversionRate||0}}</text><text class="units">%</text></view>
</view>
</view>
<view class="custom-statistic">
<view class="customItem" wx:for="{{ itemDataList }}" wx:key="index" wx:for-index="index">
<block wx:if="{{item.index==2||item.index==1}}">
<view class="label">
<text>{{item.label}} </text><text>/{{item.waitlabel}}</text>
</view>
<view class="number">
<view class="firstValue">{{staticData[item.value]||0}}</view>
<view class="lastValue">/{{staticData[item.waitValue]||0}}</view>
</view>
</block>
<block wx:else>
<view class="label">
{{item.label}}
</view>
<view class="number">
<text class="unit" wx:if="{{ item.unit }}">¥</text>
<view> {{staticData[item.value]||0}}</view>
</view>
</block>
</view>
</view>
</view>
</swiper-item>
</block>
</swiper>
<view class="dots">
<view wx:for="{{3}}" wx:key="index" wx:for-index="idx" class="dot {{current==idx?'active':''}}"></view>
</view>
</view>
<block wx:if="{{isWait&&todoList.length>0}}">
<view class="todo-list">
<view class="title">今日待办·{{todoList.length}}</view>
<view class="todo-items">
<view class="todo-item" wx:key="idx" wx:for="{{ispopUp?todoList:stodoList}}" wx:for-index="idx">
<view class="todo-item-title">
<image src="{{IMG_URL}}{{item.taskType=='1'?'warn':'task'}}.png" /><text>{{todos[item.taskId]}}</text>
</view>
<view class="todo-item-info">{{item.content }}</view>
<view class="todo-item-btn" wx:if="{{item.taskId==2}}" bindtap="goto" data-id="{{item.taskId}}">去开单</view>
<view class="todo-item-btn" wx:elif="{{item.taskId==4}}" data-id="{{item.taskId}}" bindtap="goto">去处理</view>
<view class="todo-item-btn" wx:elif="{{item.taskId==1}}" data-id="{{item.taskId}}" bindtap="goto">去填写</view>
<view class="todo-item-btn" wx:else bindtap="closeRemind" data-id="{{item.taskId}}">关闭提醒</view>
</view>
</view>
<view class="pack-up {{!ispopUp?'pack-up-active':''}}" wx:if="{{todoList.length>2}}" bindtap="packupList">
<image src="{{IMG_URL}}pack-up.png" />
</view>
</view>
</block>
<view class="menu_box">
<block wx:for="{{ menuList }}" wx:key="index">
<view class="menu_item" bindtap="navGo" data-item="{{ item }}">
<view class="icon">
<image src="{{ IMG_URL}}crowdFunding/{{item.icon }}.png" mode="widthFix" />
</view>
<view class="text">{{item.menuText}}</view>
<view class="hot_icon" wx:if="{{ item.tipsNum }}">{{item.tipsNum}}</view>
<view class="bubble_icon" wx:if="{{ item.noRead }}"></view>
</view>
</block>
</view>
<!-- <view class="menu_box" wx:if="{{newMenuList.length}}">
<block wx:for="{{ newMenuList }}" wx:key="index">
<view class="menu_item" bindtap="navGo" data-item="{{ item }}">
<view class="icon">
<image src="{{ IMG_URL}}crowdFunding/{{item.icon }}.png" mode="widthFix" />
</view>
<view class="text">{{item.menuText}}</view>
<view class="hot_icon" wx:if="{{ item.tipsNum }}">{{item.tipsNum}}</view>
<view class="bubble_icon" wx:if="{{ item.noRead }}"></view>
</view>
</block>
</view> -->
</view>
<!-- <view class="receive-list" wx:if="{{storeRangeList.length || userInfo.loginRole== 3 || userInfo.loginRole== 5}}">
<view class="'screen-box' {{showScreen ? '' : 'sticky-screen'}} {{isScrollTop ? 'bg-white' : ''}}">
<view>
<text class="name text-hide">{{searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper && userInfo.loginRole != 3 ? userInfo.default4SStoreInfo.merchantName : '全部门店'}}</text>
</view>
<view bindtap="showScreenPop">
<text class="text">筛选</text>
<gl-image webp src="/equity/screen-icon.png" />
</view>
</view>
<view class="list-box">
<block wx:if="{{filter.isShowEmpty(listData)}}">
<block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}">
<view class="date-section {{showScreen ? '' : 'sticky-date-section'}}">
<text class="date">{{item.staticDateStr}}</text>
<scroll-view scroll-x show-scrollbar="{{false}}" class="static">
<view class="static-warp">
<view>
<text class="summary-item">交付量 {{item.deliveryVolume}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item">触客数 {{item.customerContacts}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item blue {{isFilterUpgrade ? 'blue-blod' : ''}}" data-type="upgrade" bindtap="filterItemData">升级 {{item.upgrades}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item blue {{isFilterDefeat ? 'blue-blod' : ''}}" data-type="defeat" bindtap="filterItemData">战败 {{item.losses}}</text>
</view>
</view>
</scroll-view>
</view>
<block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="time" wx:for-index="subIndex" wx:for-item="record">
<view class="record-card" bindtap="goReceptionDetail" data-item="{{record}}">
<view class="record-card-top">
<text class="round-dot" style="font-size: {{subIndex + 1 > 99 ? 'var(--fontSize16)' : 'var(--fontSize20)'}};">{{subIndex + 1}}</text>
<view class="card-line"></view>
</view>
<view class="card-item">
<record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}"></record-item>
</view>
</view>
</block>
</block>
</block>
<block wx:if="{{!filter.isShowEmpty(listData) && loaded}}">
<view class="empty-box">
<image class="no-data-img" src="{{IMG_URL}}empty_data.png" />
<view class="list-not-text">近七天暂无接待记录数据</view>
</view>
</block>
<block wx:if="{{nothing}}">
<view class="show-more-btn" bindtap="goPage">查看更多</view>
</block>
<view class="seize-box"></view>
</view>
</view> -->
</scroll-view>
</view>
<task-dialog wx:if="{{ showTaskDialog }}" showDialog="{{ showTaskDialog }}" taskInfo="{{ taskInfo }}"></task-dialog>