锦水居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

50 lines
2.4 KiB

<view class="invite-friend">
<view class="search">
<view class="left" bindtap="filterOptions">
<view class="type">{{selectedOption == 'lastName' ? '姓氏' : selectedOption == 'mobile' ? '手机号' : '路名称'}}</view>
<view class="triangle {{filterOptionVisible ? 'rotate' : ''}}"></view>
<view class="options {{filterOptionVisible ? 'show' : ''}}">
<view class="option" catchtap="chooseOption" data-option="lastName">姓氏</view>
<view class="option" catchtap="chooseOption" data-option="road">路名称</view>
<view class="option" catchtap="chooseOption" data-option="mobile">手机号</view>
</view>
</view>
<view class="right">
<image class="search" src="../../images/search.png" />
<input
type="text"
bindconfirm="getInviteList"
maxlength="20"
confirm-type="search"
value="{{searchValue}}"
placeholder-class="search-input"
placeholder="{{selectedOption == 'lastName' ? '请输入姓氏' : selectedOption == 'mobile' ? '请输入手机号' : '请输入路名称+号码'}}"/>
<!-- <wux-search-bar
bind:confirm="getInviteList"
style="width: 100%;"
clear
maxlength="20"
controlled
value="{{searchValue}}"
placeholder="{{selectedOption == 'lastName' ? '请输入姓氏' : selectedOption == 'mobile' ? '请输入手机号' : '请输入路名称+号码'}}"/> -->
</view>
</view>
<contact bind:chooseFriend="chooseFriend" dataList="{{inviteFriendList}}" scrollViewTop="{{110}}" scrollViewBottom="{{110}}" pageType="invite"></contact>
<view class="operation">
<view class="left">
<checkbox-group bind:change="chooseAll">
<checkbox color="red" value="1" checked="{{chooseAllValue}}" />
</checkbox-group>
<text>全部</text>
</view>
<view class="right">
<button class="invite" type="default" size="mini" hover-class="hover-invite" bindtap="inviteFriend">邀请好友</button>
<button bindtap="inviteFriendComfirm" disabled="{{!couldInvite}}" style="background: {{couldInvite ? 'linear-gradient(to right, #fd2316, #ff624a)': '#cecece'}}" class="confirm" type="default" size="mini" hover-class="hover-confirm">确定</button>
</view>
</view>
<invite-friend-dialog
dialogVisible="{{dialogVisible}}"
bind:parentVisibleValue="parentVisibleValue"
groupInfo="{{groupInfo}}">
</invite-friend-dialog>
</view>