ScreenConfirmBox.wxml
3.74 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/output/components/ScreenConfirmBox/ScreenConfirmBox.wxml-->
<wxs src="../../index.wxs" module="filter" />
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{statusBarHeight + navigationBarHeight}}px);margin-top:calc({{statusBarHeight + navigationBarHeight}}px);"
hidden="{{!show}}">
<view class="main" style="padding-bottom:{{btnHeight}}px;min-height: calc(100% - {{btnHeight}}px);">
<view class="box">
<view class="title">
服务商名称
<block wx:if="{{userInfo.isSuper}}">
<view class="picker_box" bindtap="servicePicker">
<view class="picker_text">
切换
</view>
<glsx-image src="{{'output/drop_down.png'}}" class="icon" />
</view>
</block>
</view>
<view class="service_name" bindtap="servicePicker">
{{ merchantRange[subIndex].merchantName||userInfo.subLoginUser.merchantName }}
</view>
</view>
<view class="box">
<view class="title">
自定义月份
<view class="picker_box">
<CalendarMonth
id="calendarMonth"
wx:if="{{isShowCalendarMonth}}"
allowSameDay
shortcut
bindselect="dateRangeSelect"
rangeAll
dateType="range"
calenderColor="#3666FE"
vertical
minDate="2020-10-01"
maxDate="{{ dateObj.today }}"
forceFullSucreen="{{ bottomLift>0?true:false }}"
isComponents
isChangeType="{{false}}"
dayType="{{0}}"
>
<view class="picker_box_text">
<view class="picker_text">
选择日期
</view>
<glsx-image src="{{'output/drop_down.png'}}" class="icon" />
</view>
</CalendarMonth>
</view>
</view>
<view class="date_box">
<view bindtap="showCalendar" data-type="show">
<view class="date_item" wx:if="{{formData.startTime}}">{{filter.filterDate(formData.startTime) || '开始时间'}}</view>
<view class="date_item placeholder" wx:else>请选择</view>
</view>
<view>-</view>
<view bindtap="showCalendar" data-type="show">
<view class="date_item" wx:if="{{formData.endTime}}">{{filter.filterDate(formData.endTime) || '结束时间'}}</view>
<view class="date_item placeholder" wx:else>请选择</view>
</view>
</view>
</view>
<view class="box" wx:if="{{tabType == 0}}">
<view class="title padd_b0">
场景品类
</view>
<view class="list_box">
<block wx:for="{{sceneList}}" wx:key="index">
<view class="list_item {{item.active?'active':''}}" bindtap="choose" data-index="{{index}}" data-list-name="sceneList">{{item.label}}</view>
</block>
</view>
</view>
<view class="box" wx:if="{{tabType == 1}}">
<view class="title padd_b0">
员工
</view>
<view class="list_box">
<block wx:for="{{staffList}}" wx:key="index">
<view class="list_item {{item.active?'active':''}}" bindtap="choose" data-index="{{index}}" data-multiple="true" data-list-name="staffList">
<view>{{item.staffName}}</view>
</view>
</block>
</view>
</view>
</view>
<view class="btn-box isFullSucreen">
<view class="btn clear text-center" bindtap="reset">重置</view>
<view class="btn done text-center" bindtap="confirm">确定</view>
</view>
</scroll-view>
<switchAccountPopup wx:if="{{servicePopupShow}}" bind:hidePopup="servicePicker" bindchangeAccount="changeMerchantRange" popShow="{{servicePopupShow}}" merchantRange="{{merchantRange}}" selectInfo="{{formData}}" customHideTab="{{true}}"/>