sharePage.wxml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <block wx:if="{{isLogin}}">
  2. <map enable-zoom="{{false}}" enable-scroll="{{false}}" markers="{{markers}}" include-points="{{points}}" style="width: 100%;height: 400rpx;" name="map"></map>
  3. <view class="df aic jcsb p20" style="border-bottom: 1px solid #999;border-top: 1px solid #999;">
  4. <view class="tabsview" bindtap="changeTab" data-tab="{{2}}" style="color:{{tab==2?'#0d8fcc':''}};border-bottom:{{tab==2?'2rpx solid #0d8fcc':''}}">航次信息</view>
  5. <view class="tabsview" bindtap="changeTab" data-tab="{{3}}" style="color:{{tab==3?'#0d8fcc':''}};border-bottom:{{tab==3?'2rpx solid #0d8fcc':''}}">单据信息</view>
  6. <view class="tabsview" bindtap="changeTab" data-tab="{{4}}" style="color:{{tab==4?'#0d8fcc':''}};border-bottom:{{tab==4?'2rpx solid #0d8fcc':''}}">卸货信息</view>
  7. <view class="tabsview" bindtap="changeTab" data-tab="{{5}}" style="color:{{tab==5?'#0d8fcc':''}};border-bottom:{{tab==5?'2rpx solid #0d8fcc':''}}">航次照片</view>
  8. </view>
  9. <view class="type2" wx:if="{{tab==2}}">
  10. <view class="card">
  11. <view style="padding: 10rpx 0;border-bottom: 4rpx solid #ddd;">{{shipName}}</view>
  12. <view>
  13. <view class="df aic mt20 fz24 c3">
  14. <view class="df item">
  15. <view>装货港</view> <text class="mr20">:</text> {{loadPort}}
  16. </view>
  17. <view class="df item">
  18. <view>卸货港</view> <text class="mr20">:</text> {{detailInfos[0].portName}}
  19. </view>
  20. </view>
  21. <view class="df aic mt10 fz24 c3">
  22. <view class="df item">
  23. <view>货种</view> <text class="mr20">:</text> {{cargo}}
  24. </view>
  25. <view class="df item">
  26. <view>吨位</view> <text class="mr20">:</text> {{tons}}
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <view style="position: relative;">
  32. <scroll-view class="card" scroll-y="true" style="height:calc(100vh - 760rpx);position: relative;z-index: 20;" lower-threshold="50">
  33. <view wx:for="{{detailInfos}}" wx:for-index="index0" wx:for-item="item0" wx:if="{{item0.setSailTime}}">
  34. <view class="{{['df','mb20']}}" style="position: relative;z-index: 2;">
  35. <view class="{{['mr30','title-circle']}}" style="background: green;"></view>
  36. <view class="text">
  37. <view class="in-text df">
  38. <view class="card-title" style="color:#000;width: 250rpx;margin-right: 30rpx;">卸货港 #{{item0.sort}}</view>
  39. <view class="card-title" style="color: #000;">{{item0.arrivalDiscPortTime?"实际到港时间":"预计到港时间"}}</view>
  40. </view>
  41. <view class="in-text df">
  42. <view style="width: 250rpx;margin-right: 30rpx;">{{item0.portName}}</view>
  43. <view>{{item0.arrivalDiscPortTime||item0.expectedArrivalTime}}</view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="{{['df','mb20',index==transInfos.length-1?'mb40':'']}}" style="position: relative;z-index: 2;" wx:for="{{item0.transInfos}}" wx:key="index">
  48. <view class="{{['mr30',index==0?'title-circle transInfos':'circle',arrivalDiscPortTime?'greyback':'']}}"></view>
  49. <view class="text">
  50. <view wx:if="{{index==0}}" class="card-title">运输中</view>
  51. <view class="in-text df">
  52. <view style="width: 250rpx;margin-right: 30rpx;">{{item.createTime}}</view>
  53. <view>{{item.province}}/{{item.city}}/{{item.district}}</view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="{{['df','mb20',index==loadingInfos.length-1?'mb40':'']}}" style="position: relative;z-index: 2;" wx:for="{{loadingInfos}}" wx:key="index">
  58. <view class="{{['mr30',index==0?'title-circle':'circle']}}"></view>
  59. <view class="text">
  60. <view wx:if="{{index==0}}" class="card-title">装货中</view>
  61. <view class="in-text df">
  62. <view style="width: 250rpx;margin-right: 30rpx;">{{item.createTime}}</view>
  63. <view>{{item.province}}/{{item.city}}/{{item.district}}</view>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="{{['df','mb50']}}" style="position: relative;z-index: 2;">
  68. <view class="{{['mr30','title-circle']}}"></view>
  69. <view class="text">
  70. <view class="in-text df">
  71. <view class="card-title" style="color:#000;width: 250rpx;margin-right: 30rpx;">开航</view>
  72. <view class="card-title" style="color: #000;">{{item0.setSailTime}}</view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </scroll-view>
  78. <view class="long-line"></view>
  79. </view>
  80. </view>
  81. <scroll-view wx:else scroll-y="true" style="height:calc(100vh - 494rpx);padding: 30rpx 50rpx;font-size: 28rpx;color:#222" lower-threshold="50" bindscrolltolower="test">
  82. <view wx:if="{{tab==3}}">
  83. <view>保险单</view>
  84. <view wx:for="{{policys}}" wx:key="index" style="text-align: center;">
  85. <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 60%;height: 240rpx;" mode="aspectFit"></image>
  86. <view wx:if="{{policys.length&&policys.length!=1}}" class="mt10 mb10" style="border-bottom: 2rpx solid #eee;"></view>
  87. </view>
  88. <view class="mt30 mb30" style="border-bottom: 2rpx solid #ccc;"></view>
  89. <view>运单</view>
  90. <view wx:for="{{waybills}}" wx:key="index" style="text-align: center;">
  91. <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 60%;height: 240rpx;" mode="aspectFit"></image>
  92. <view wx:if="{{waybills.length&&waybills.length!=1}}" class="mt10 mb10" style="border-bottom: 2rpx solid #eee;"></view>
  93. </view>
  94. </view>
  95. <view wx:if="{{tab==4}}">
  96. <scroll-view scroll-x="{{true}}" style="white-space: nowrap;">
  97. <view class="{{['port-btns',currentPortId == item.portId?'current-port-btn':'','mr20']}}" wx:for="{{voyage.voyageDetails}}" bindtap="changePort" data-id="{{item.portId}}">{{item.portName}}</view>
  98. </scroll-view>
  99. <view class="df aic jcsb pb20" style="border-bottom: 2rpx solid #ddd;">
  100. <view bindtap="changeInfoType" data-type="ship" style="color:{{infoType=='ship'?'#0d8fcc':''}};border-bottom:{{infoType=='ship'?'2rpx solid #0d8fcc':''}}">船舶卸货记录</view>
  101. <view bindtap="changeInfoType" data-type="truck" style="color:{{infoType=='truck'?'#0d8fcc':''}};border-bottom:{{infoType=='truck'?'2rpx solid #0d8fcc':''}}">汽车装货记录</view>
  102. </view>
  103. <view class="ship-discharge-list" wx:if="{{infoType=='ship'}}">
  104. <view class="df aic jcsb mb20 mt10 fz22">
  105. <view>卸货时间</view>
  106. <view>卸货吨位</view>
  107. <view>卸货件数</view>
  108. <view>磅单</view>
  109. </view>
  110. <view wx:for="{{shipDischargeList}}" wx:key="index" class="df aic jcsb mb20 fz22">
  111. <view>{{item.dischargeTime}}</view>
  112. <view>{{item.dischargeTons||''}}</view>
  113. <view>{{item.dischargePieces||''}}</view>
  114. <view wx:if="{{item.files&&item.files.length}}" bindtap="previewImage" data-src="{{item.files[0].viewUrl}}" data-files="{{item.files}}">查看</view>
  115. <view wx:else>暂无</view>
  116. </view>
  117. <view bindtap="scrollShip" class="bottom-text">{{shipDischargeTotal==0?'暂无数据':(shipDischargeTotal>pageSize*shipDischargeCurrentPage?'点击或滑动加载更多...':'已加载完毕')}}</view>
  118. </view>
  119. <view class="truck-load-list" wx:if="{{infoType=='truck'}}">
  120. <view class="df aic jcsb mb20 mt10 fz22">
  121. <view>车号</view>
  122. <view>毛重</view>
  123. <view>皮重</view>
  124. <view>净重</view>
  125. <view>称重时间</view>
  126. <view>单据</view>
  127. </view>
  128. <view wx:for="{{truckLoadList}}" wx:key="index" class="df aic jcsb mb20 fz22">
  129. <view>{{item.carNum}}</view>
  130. <view>{{item.grossWeight}}</view>
  131. <view>{{item.tare}}</view>
  132. <view>{{item.netWeight}}</view>
  133. <view>{{item.weighTime}}</view>
  134. <view wx:if="{{item.file}}" bindtap="previewImage" data-src="{{item.file.viewUrl}}">查看</view>
  135. <view wx:else>暂无</view>
  136. </view>
  137. <view bindtap="scrollTruck" class="bottom-text">{{truckLoadTotal==0?'暂无数据':(truckLoadTotal>pageSize*truckLoadCurrentPage?'点击或滑动加载更多...':'已加载完毕')}}</view>
  138. </view>
  139. </view>
  140. <view wx:if="{{tab==5}}">
  141. <view wx:for="{{medias}}" wx:key="index" style="margin-bottom:50rpx;">
  142. <view style="color: #0c81b8;padding-bottom: 10rpx;margin-bottom: 20rpx; border-bottom: 4rpx dashed rgb(197, 194, 194);">{{item.createTime}}</view>
  143. <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 90%;" mode="aspectFit"></image>
  144. </view>
  145. </view>
  146. </scroll-view>
  147. </block>
  148. <block wx:else>
  149. <image style="margin:0 auto;display:block;width: 400rpx;margin-top: 10vh;height: 140rpx;" mode="aspectFit" src="https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/miniapp-static/%E6%B1%87%E5%BE%88%E5%A4%9Alogo-%E5%B7%A6%E5%8F%B3.png?sign=fcd18f89de727b0193395cd2d44a730a&t=1647417257"></image>
  150. <view style="margin-top: 100rpx;font-size: 50rpx;color: #333;text-align: center;">汇很多运输管家先行版
  151. </view>
  152. <view class="df jcc" style="position:absolute;bottom: 15vh;width: 100%;">
  153. <PhoneButton type="primary" bindloginEvent="loginEvent">登录以查看分享</PhoneButton>
  154. </view>
  155. </block>