SideSelectByPagePopup.wxml 4.17 KB
<!--components/SideSelectPopup/SideSelectPopup.wxml-->
<van-popup custom-style="height: 100%;width:var(--fontSize560);" z-index="999999" custom-class="popclass" bind:click-overlay="closeMenu" position="left" bind:before-enter="hideTabBar" bind:after-leave="showTabBar" show="{{ show }}">
  <view class="wrapper">
    <view class="title_box">
      <view class="title">店面列表</view>
    </view>
    <view class="search-box">
      <view class='select_box' wx:if="{{userInfo.sceneType == 1}}">
        <view class='select' catchtap='selectTap'>
          <view class='select_text'>{{searchSelectData[searchSelectIndex]}}</view>
          <image class='select_img {{showSelect&&"select_img_rotate"}}' src='/images/arrow-right.png'></image>         
        </view>
        <view class='option_box' wx:if="{{showSelect}}">
          <view class='option {{searchSelectIndex == index ? "active" : ""}}' wx:for='{{searchSelectData}}' wx:key='this' data-index='{{index}}' catchtap='optionTap'>{{item}}</view>
        </view>
        <view class="mask_class" wx:if="{{showSelect}}" bindtap="closeSelect"></view>
      </view>
      <view class="search-input">
        <image src="/images/search.png" class="search-icon" />
        <input type="text" placeholder="{{searchSelectIndex == 0 ? '搜索门店名称/商户号' : '搜索客户姓名/手机号'}}" class="input" confirm-type="search" value="{{searchValue}}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="inputConfifm" />
        <block wx:if="{{searchValue}}">
          <image src="/images/clear.png" class="search-clear" bindtap="clearInputText" />
        </block>
      </view>
    </view>
    <!-- 搜门店 -->
    <scroll-view wx:if="{{searchSelectIndex == 0}}" scroll-y style="height: calc(100vh - var(--fontSize264) - var(--fontSize88));" enhanced="{{true}}" show-scrollbar="{{false}}" scroll-top="{{scrollTop}}" bindscrolltolower="scrollonReachBottom">
      <block wx:for="{{storeRangeList}}" wx:key="index" wx:for-index="index">
        <view catch:tap="selectStore" data-item="{{item}}" data-selectindex="{{index}}" class="element {{item.actived ? 'active' : ''}}">
          <view><image src="{{IMG_URL}}/store_icon_nobg.png"></image></view>
          <view class="text_box">
            <view class="label">{{item.merchantName}}</view>
            <view class="label_no" wx:if="{{item.merchantId}}">商户号:{{item.merchantId}}</view>
          </view>
        </view>
      </block>
    </scroll-view>
    <!-- 搜客户 -->
    <scroll-view wx:if="{{customStoreList.length && searchSelectIndex == 1 && userInfo.sceneType == 1}}" scroll-y style="height: calc(100vh - var(--fontSize264) - var(--fontSize88));" enhanced="{{true}}" show-scrollbar="{{false}}" bindscrolltolower="scrollonReachBottom">
      <block wx:for="{{customStoreList}}" wx:key="index" wx:for-index="index">
        <view catch:tap="selectStore" data-item="{{item}}" data-selectindex="{{index}}" class="element custom_element {{item.actived ? 'active' : ''}}">
          <view><image src="{{IMG_URL}}/user_avatar.png"></image></view>
          <view class="text_box">
            <view class="custom_text">
              <view class="name_phone">
                <text class="custom_name">{{item.customer.customerName}}</text>
                <text class="custom_phone">{{item.customer.customerPhone}}</text>
              </view>
              <view class="status_text status_text_{{item.listStatus}}">{{statusText[item.listStatus]}}</view>
            </view>
            <view class="label">{{item.merchantName}}</view>
            <view class="label_no" wx:if="{{item.merchantId}}">商户号:{{item.merchantId}}</view>
          </view>
        </view>
      </block>
    </scroll-view>
    <block wx:if="{{(!customStoreList.length && searchSelectIndex == 1) || (!storeRangeList.length && searchSelectIndex == 0)}}">
      <view class="list_not">
        <image class="list_nothing_img {{customSearchFlag ? '' : 'big_list_nothing_img'}}" src="{{IMG_URL}}/{{customSearchFlag ? 'no_data_bg' : 'search_icon_bg'}}.png" mode=""/>
        <view class="list_not_text">{{customSearchFlag ? '您搜索的内容暂无结果' : '快去搜索看看'}}</view>
      </view>
    </block>
  </view>
</van-popup>