PageScreen.wxml
4.12 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
<!--pages/tabWorkOrder/components/OrderScreen/OrderScreen.wxml-->
<scroll-view
scroll-y
class="confirm-box"
style="height:calc(100vh - {{ navBarHeight}}px);margin-top:{{navBarHeight }}px;"
hidden="{{ !show }}"
>
<view class="main" style="padding-bottom: {{ btnHeight}}px;min-height: calc(100% - {{btnHeight }}px);">
<view class="box">
<view class="title">
<view class="title-left">主营品牌</view>
</view>
<view class="choose-btn" bindtap="chooseCarBrand">
<text>去选择</text>
<image src="{{ IMG_URL }}customer/arrow.png" mode="" />
</view>
<view class="list-box">
<block wx:for="{{ form.selectedMainBrand }}" wx:key="index">
<view class="item flex-1 text-center active" data-index="{{ index }}">{{item.name}}{{ (item.children && item.children[0] && item.children[0].name) || (item.name || '') }}</view>
</block>
</view>
</view>
<view class="box">
<view class="title">业务类型</view>
<view class="list-box">
<block wx:for="{{ form.businessTypeList }}" wx:key="index">
<view
class="item text-center {{ item.active?'active':'' }}"
bindtap="choose"
data-list-name="businessTypeList"
data-index="{{ index }}"
>{{item.name}}</view>
</block>
</view>
</view>
<view class="box">
<view class="title">合作模式</view>
<view class="list-box">
<block wx:for="{{ form.cooperationModelList }}" wx:key="index">
<view
class="item text-center {{ item.active?'active':'' }}"
bindtap="choose"
data-list-name="cooperationModelList"
data-index="{{ index }}"
>{{item.name}}</view>
</block>
</view>
</view>
<view class="box">
<view class="title">流量情况</view>
<view class="list-box">
<block wx:for="{{ form.trafficStatusList }}" wx:key="index">
<view
class="item text-center {{ item.active?'active':'' }}"
bindtap="choose"
data-list-name="trafficStatusList"
data-index="{{ index }}"
>{{item.name}}</view>
</block>
</view>
</view>
<view class="box" wx:if="{{ userInfo.loginRole == 1 }}">
<view class="title">
<view class="title-left">所属省份</view>
<view
wx:if="{{ form.provinces.length > 12 }}"
bindtap="showMore"
data-type="provincesShowMore"
class="collapse-btn {{ !provincesShowMore ? 'rotate-180' : '' }}"
>
<image src="{{ IMG_URL }}customer/collapse_icon.png" mode="" />
</view>
</view>
<view class="list-box">
<block wx:for="{{ form.provinces }}" wx:key="index">
<view
class="item text-center {{ item.active?'active':'' }}"
hidden="{{ index >= 12 && !provincesShowMore }}"
bindtap="choose"
data-list-name="provinces"
data-index="{{ index }}"
>{{item.name}}</view>
</block>
</view>
</view>
<view class="box" wx:if="{{ userInfo.loginRole == 1 }}">
<view class="title">
<view class="title-left">销售人员</view>
<view
wx:if="{{ form.salesStaffList.length > 12 }}"
bindtap="showMore"
data-type="salesStaffShowMore"
class="collapse-btn {{ !salesStaffShowMore ? 'rotate-180' : '' }}"
>
<image src="{{ IMG_URL }}customer/collapse_icon.png" mode="" />
</view>
</view>
<view class="list-box">
<block wx:for="{{ form.salesStaffList }}" wx:key="index">
<view
class="item text-center {{ item.active?'active':'' }}"
bindtap="choose"
data-list-name="salesStaffList"
data-index="{{ index }}"
hidden="{{ index >= 12 && !salesStaffShowMore }}"
>
<view class="text-item">{{item.name}}</view>
</view>
</block>
</view>
</view>
</view>
<view class="btn-box isFullSucreen-btn">
<view class="btn clear text-center" bindtap="reset">清除</view>
<view class="btn done text-center" bindtap="confirm">确定</view>
</view>
</scroll-view>
<popup
show="{{ carBrandPopupShow }}"
title="选择品牌"
bind:hidePopup="hideBrandPopup"
customPopupSlotStyle="{{ 'height: calc(100% - 282rpx)' }}"
bindconfirm="brandConfirm"
height="90%"
>
<car-brand id="car-brand" popupShow="{{ carBrandPopupShow }}" multiple="{{ false }}" selectedList="{{ form.selectedMainBrand }}"></car-brand>
</popup>