|
|
<!--pages/customerChooseTemplate/customerChooseTemplate.wxml-->
|
|
|
|
|
|
<view class="swiper-tab">
|
|
|
<view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">全部</view>
|
|
|
<view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">收藏夹</view>
|
|
|
</view>
|
|
|
|
|
|
<swiper current="{{currentTab}}" class="swiper-box" style='height:{{winHeight-50}}px' duration="300" bindchange="bindChange">
|
|
|
<swiper-item class="swiper-items1">
|
|
|
<view class='searchView'>
|
|
|
<input class='imput_goodsName' bindinput='getCustomerBySearchString' type='text' placeholder='请输入搜索条件' placeholder-style='color:rgb(202, 202, 202)'></input>
|
|
|
<view class='storageView' catchtap='storegeBtnClick'>收藏</view>
|
|
|
</view>
|
|
|
<scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltoupper="unCheckedScrollUpper" bindscrolltolower="unCheckedScrollLower">
|
|
|
<view class='listBackGroundView'>
|
|
|
<checkbox-group bindchange="checkboxValueChange">
|
|
|
<block wx:for="{{customerArray}}" wx:key="item" wx:for-index="idx">
|
|
|
<template is="customerChoiceTemplate" data="{{item}}" />
|
|
|
</block>
|
|
|
</checkbox-group>
|
|
|
</view>
|
|
|
|
|
|
</scroll-view>
|
|
|
<view class='addGoodsName' catchtap='addCustomerName'>添加客户</view>
|
|
|
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
|
|
|
|
|
|
<template name="customerChoiceTemplate">
|
|
|
<view class='listItem'>
|
|
|
<view class='itemClass'>{{item.Name}}</view>
|
|
|
<checkbox value="{{item.ID}}"/>
|
|
|
</view>
|
|
|
<view class='horizontallineView'></view>
|
|
|
</template>
|