voyages.wxml 1.4 KB

123456789101112131415
  1. <input disabled="{{cargoOwnerId==0}}" model:value="{{term}}" class="p10 m30a search" type="text" placeholder="搜索船舶信息" />
  2. <view class="df aic jcsa tabs">
  3. <view class="tabsview" bindtap="changeStatus" data-status="{{1}}" style="color:{{status==1?'#0d8fcc':''}};border-bottom:{{status==1?'4rpx solid #0d8fcc':''}}">运输中</view>
  4. <view class="tabsview" bindtap="changeStatus" data-status="{{2}}" style="color:{{status==2?'#0d8fcc':''}};border-bottom:{{status==2?'4rpx solid #0d8fcc':''}}">卸货中</view>
  5. <view class="tabsview" bindtap="changeStatus" wx:if="{{type=='voyage'}}" data-status="{{3}}" style="color:{{status==3?'#0d8fcc':''}};border-bottom:{{status==3?'4rpx solid #0d8fcc':''}}">历史航次</view>
  6. </view>
  7. <scroll-view bindrefresherrefresh="scrollDownList" refresher-triggered="{{isFreshing}}" refresher-enabled="{{true}}" scroll-y="true" style="height:calc(100vh - {{height}}rpx);background: #fff;">
  8. <view class="df aic jcsb list" wx:for="{{list}}" wx:key="index" data-id="{{item.id}}" bindtap="goToDetail">
  9. <view class="col-1">{{item.shipName}}</view>
  10. <view class="col-2">{{item.loadPort}}-{{item.dischargePorts}}</view>
  11. <view class="col-3">{{item.cargo}}</view>
  12. <view class="col-4">{{item.tons}}</view>
  13. </view>
  14. <view bindtap="scrollList" class="bottom-text">{{total==0?'暂无数据':(total>size*currentPage?'点击或滑动加载更多...':'已加载完毕')}}</view>
  15. </scroll-view>