deliverClue.wxml 2.87 KB
<view class="clue-box">
  <!-- tab切换 -->
  <view class="tab-box">
    <scroll-view class="tab-scroll" scroll-into-view="{{to}}" enhanced="{{true}}" show-scrollbar="{{false}}" scroll-x="{{true}}" scroll-with-animation>
      <block wx:for="{{tab}}" wx:key="index">
        <view id="{{tab.length<5?'':'to-{{index}}'}}" class="tab_element {{tab.length<5?widthClass[tab.length]:'mwith-120'}}" bindtap="tabClick" data-index="{{index}}">
          <view class="inner {{index == tabIndex? 'active' : '' }}">
            {{item}}
          </view>
        </view>
      </block>
    </scroll-view>
  </view>
  <view class="type-box" wx:if="{{tabIndex==1}}">
    <block wx:for="{{type}}" wx:key="index">
    <view class="type-item {{typeIndex === item.value?'active':''}}" data-index="{{item.value}}" bindtap="typeClick">{{item.label}}</view>
    </block>
  </view>
  <scroll-view wx:if="{{list.length}}" scroll-y refresher-enabled bindrefresherrefresh="activityRefresh" bindscrolltolower="scrollonReachBottom" bindscroll="scrollIng" refresher-triggered="{{activeTrigger}}" style="{{'height: calc(100% - 330rpx);'}}">
    <view class="list-box">
      <block wx:for="{{list}}" wx:key="index">
        <view class="list-item" data-id="{{item.id}}" bindtap="jump">
          <view class="top">
            <view class="top-left">
              <glsx-image webp src="{{item.customerImageUrl ? item.customerImageUrl : 'store-assistant/default_avatar.png'}}"></glsx-image>
              <view class="name-mobile">
                <view class="name">
                  {{item.customerName || ""}}
                </view>
                <view class="mobile">
                  {{item.customerPhone || ""}}
                  <glsx-image wx:if="{{item.customerPhone}}" data-name="{{item.customerPhone}}" catchtap="toCopyName" class="copy" src="store-assistant/copy_name.png"></glsx-image>
                </view>
              </view>
            </view>
            <view class="top-right" wx:if="{{item.customerPhone}}">
              <glsx-image class="btn_icon"  webp src="store-assistant/activity_order_phone_icon.png" catchtap="callPhone" data-mobile="{{item.customerPhone}}"></glsx-image>
            </view>
          </view>
          <view class="bottom">
            <view class="activity">
              车牌号码:{{item.licensePlate || '-'}}
            </view>
            <view class="activity">
              设备类型:{{item.snTypeName || '-'}}
            </view>
            <view class="activity">
              碰撞时间:{{item.collisionTime || '-'}}
            </view>
          </view>
        </view>
      </block>
      <!-- <official-account></official-account> -->
    </view>
  </scroll-view>
  <view class="no-data" wx:if="{{!list.length}}">
    <glsx-image class="no_data_image" webp src="store-assistant/no_visitor_data.png"></glsx-image>
    <view class="text">暂无线索</view>
  </view>
</view>