30 lines
911 B
Plaintext
30 lines
911 B
Plaintext
|
<!--pages/search/search.wxml-->
|
||
|
<wxs module="_"> module.exports.contain = function(arr, key) { return arr.indexOf(key) > -1 } </wxs>
|
||
|
<view class="example-search">
|
||
|
<t-search
|
||
|
value="{{value}}"
|
||
|
center
|
||
|
placeholder="搜索用户"
|
||
|
action="{{actionText}}"
|
||
|
bind:blur="blurHandle"
|
||
|
bind:focus="focusHandle"
|
||
|
bind:action-click="actionHandle"
|
||
|
bind:change="changeHandle"
|
||
|
/>
|
||
|
</view>
|
||
|
<view class="line"></view>
|
||
|
<view class="search-wrap">
|
||
|
<view wx:for="{{projectData}}" wx:key="id" >
|
||
|
<t-checkbox value="{{item.id}}"
|
||
|
|
||
|
default-checked="{{_.contain(defaultValue, item.id)}}"
|
||
|
label="{{item.nickName}}({{item.userName}})"
|
||
|
bind:change="onCheckAllChange"
|
||
|
data-item="{{item.id}}"
|
||
|
/>
|
||
|
</view>
|
||
|
|
||
|
<t-button bind:tap="actionHandle" theme="primary" size="large" class="bottomSave" >确定选择({{defaultValue.length}})
|
||
|
</t-button>
|
||
|
</view>
|