index.wxml
2.15 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
<!--tabRepairOrder/components/servicePopup/index.wxml-->
<wxs src="../../index.wxs" module="filter" />
<popup show="{{show}}" title="选择服务项目" bindconfirm="confirm" bindcancel="cancel">
<view class="servies-content">
<view class="top">
<search-input bindsearch="search" placeholder="服务项目名称" bindinput="handelSearchInput" value="{{searchValue}}" />
</view>
<view class="content">
<scroll-view scroll-y style="height: 100%;" enhanced="{{true}}" show-scrollbar="{{false}}">
<block wx:for="{{servicesList}}" wx:key="index">
<view class="content-box">
<view class="item-top" bindtap="handleShowItem" data-index="{{index}}">
<view class="left">
<image src="{{IMG_URL}}collapse_icon.png" class="{{!item.showItemFlag ? 'rotate-180' : ''}}" mode=""/>
<text calss="name">{{item.title}}</text>
</view>
<view class="check-tip">已选择:<text>{{filter.activeNum(item.detailList)}}</text>个</view>
</view>
<block wx:for="{{item.detailList}}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<view hidden="{{!item.showItemFlag}}">
<view class="item-box" >
<view class="box">
<view class="ser-name text-hide">{{i.serviceItemsName}}</view>
<view class="other"><text>用料标准{{i.materialStandard || '-'}}米/件</text>|<text>施工标准{{i.timeStandard || '-'}}min</text></view>
</view>
<view class="check" bindtap="handleChecked" data-target="{{i}}">
<block wx:if="{{i.active}}">
<image src="{{IMG_URL}}check.png" mode=""/>
</block>
<block wx:else>
<view class="arc"></view>
</block>
</view>
</view>
</view>
</block>
</view>
</block>
</scroll-view>
</view>
<view class="bottom">共选项目<text>{{filter.activeNum(copyServicesList, 'detailList')}}</text>个</view>
</view>
</popup>