sharePage.wxml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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> {{discPort}}
  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 class="{{['df','mb20','mb40']}}" style="position: relative;z-index: 2;">
  34. <view class="{{['mr30','title-circle']}}" style="background: green;"></view>
  35. <view class="text">
  36. <view class="in-text df">
  37. <view class="card-title" style="color:#000;width: 250rpx;margin-right: 30rpx;">卸货港</view>
  38. <view class="card-title" style="color: #000;">{{arrivalDiscPortTime?"实际到港时间":"预计到港时间"}}</view>
  39. </view>
  40. <view class="in-text df">
  41. <view style="width: 250rpx;margin-right: 30rpx;">{{discPort}}</view>
  42. <view>{{arrivalDiscPortTime||expectedArrivalTime}}</view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="{{['df','mb20',index==transInfos.length-1?'mb40':'']}}" style="position: relative;z-index: 2;" wx:for="{{transInfos}}" wx:key="index">
  47. <view class="{{['mr30',index==0?'title-circle transInfos':'circle',arrivalDiscPortTime?'greyback':'']}}"></view>
  48. <view class="text">
  49. <view wx:if="{{index==0}}" class="card-title">运输中</view>
  50. <view class="in-text df">
  51. <view style="width: 250rpx;margin-right: 30rpx;">{{item.createTime}}</view>
  52. <view>{{item.province}}/{{item.city}}/{{item.district}}</view>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="{{['df','mb20',index==loadingInfos.length-1?'mb40':'']}}" style="position: relative;z-index: 2;" wx:for="{{loadingInfos}}" wx:key="index">
  57. <view class="{{['mr30',index==0?'title-circle':'circle']}}"></view>
  58. <view class="text">
  59. <view wx:if="{{index==0}}" class="card-title">装货中</view>
  60. <view class="in-text df">
  61. <view style="width: 250rpx;margin-right: 30rpx;">{{item.createTime}}</view>
  62. <view>{{item.province}}/{{item.city}}/{{item.district}}</view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="{{['df','mb20','mb40']}}" style="position: relative;z-index: 2;">
  67. <view class="{{['mr30','title-circle']}}"></view>
  68. <view class="text">
  69. <view class="card-title">开航</view>
  70. <view class="in-text df">
  71. <view style="width: 250rpx;margin-right: 30rpx;">{{setSailTime}}</view>
  72. <view></view>
  73. </view>
  74. </view>
  75. </view>
  76. </scroll-view>
  77. <view class="long-line"></view>
  78. </view>
  79. </view>
  80. <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">
  81. <view wx:if="{{tab==3}}">
  82. <view>保险单</view>
  83. <view wx:for="{{policys}}" wx:key="index" style="text-align: center;">
  84. <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 60%;height: 240rpx;" mode="aspectFit"></image>
  85. <view wx:if="{{policys.length&&policys.length!=1}}" class="mt10 mb10" style="border-bottom: 2rpx solid #eee;"></view>
  86. </view>
  87. <view class="mt30 mb30" style="border-bottom: 2rpx solid #ccc;"></view>
  88. <view>运单</view>
  89. <view wx:for="{{waybills}}" wx:key="index" style="text-align: center;">
  90. <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 60%;height: 240rpx;" mode="aspectFit"></image>
  91. <view wx:if="{{waybills.length&&waybills.length!=1}}" class="mt10 mb10" style="border-bottom: 2rpx solid #eee;"></view>
  92. </view>
  93. </view>
  94. <view wx:if="{{tab==4}}">
  95. <view class="df aic jcsb pb20" style="border-bottom: 2rpx solid #ddd;">
  96. <view bindtap="changeInfoType" data-type="ship" style="color:{{infoType=='ship'?'#0d8fcc':''}};border-bottom:{{infoType=='ship'?'2rpx solid #0d8fcc':''}}">船舶卸货记录</view>
  97. <view bindtap="changeInfoType" data-type="truck" style="color:{{infoType=='truck'?'#0d8fcc':''}};border-bottom:{{infoType=='truck'?'2rpx solid #0d8fcc':''}}">汽车装货记录</view>
  98. </view>
  99. <view class="ship-discharge-list" wx:if="{{infoType=='ship'}}">
  100. <view class="df aic jcsb mb20 mt10 fz22">
  101. <view>卸货时间</view>
  102. <view>卸货吨位</view>
  103. <view>卸货件数</view>
  104. <view>磅单</view>
  105. </view>
  106. <view wx:for="{{shipDischargeList}}" wx:key="index" class="df aic jcsb mb20 fz22">
  107. <view>{{item.dischargeTime}}</view>
  108. <view>{{item.dischargeTons||''}}</view>
  109. <view>{{item.dischargePieces||''}}</view>
  110. <view wx:if="{{item.files&&item.files.length}}" bindtap="previewImage" data-src="{{item.files[0].viewUrl}}" data-files="{{item.files}}">查看</view>
  111. <view wx:else>暂无</view>
  112. </view>
  113. <view bindtap="scrollShip" class="bottom-text">{{shipDischargeTotal==0?'暂无数据':(shipDischargeTotal>pageSize*shipDischargeCurrentPage?'点击或滑动加载更多...':'已加载完毕')}}</view>
  114. </view>
  115. <view class="truck-load-list" wx:if="{{infoType=='truck'}}">
  116. <view class="df aic jcsb mb20 mt10 fz22">
  117. <view>车号</view>
  118. <view>毛重</view>
  119. <view>皮重</view>
  120. <view>净重</view>
  121. <view>称重时间</view>
  122. <view>单据</view>
  123. </view>
  124. <view wx:for="{{truckLoadList}}" wx:key="index" class="df aic jcsb mb20 fz22">
  125. <view>{{item.carNum}}</view>
  126. <view>{{item.grossWeight}}</view>
  127. <view>{{item.tare}}</view>
  128. <view>{{item.netWeight}}</view>
  129. <view>{{item.weighTime}}</view>
  130. <view wx:if="{{item.file}}" bindtap="previewImage" data-src="{{item.file.viewUrl}}">查看</view>
  131. <view wx:else>暂无</view>
  132. </view>
  133. <view bindtap="scrollTruck" class="bottom-text">{{truckLoadTotal==0?'暂无数据':(truckLoadTotal>pageSize*truckLoadCurrentPage?'点击或滑动加载更多...':'已加载完毕')}}</view>
  134. </view>
  135. </view>
  136. <view wx:if="{{tab==5}}">
  137. <view wx:for="{{medias}}" wx:key="index" style="margin-bottom:50rpx;">
  138. <view style="color: #0c81b8;padding-bottom: 10rpx;margin-bottom: 20rpx; border-bottom: 4rpx dashed rgb(197, 194, 194);">{{item.createTime}}</view>
  139. <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 90%;" mode="aspectFit"></image>
  140. </view>
  141. </view>
  142. </scroll-view>
  143. </block>
  144. <block wx:else>
  145. <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>
  146. <view style="margin-top: 100rpx;font-size: 50rpx;color: #333;text-align: center;">汇很多运输管家先行版
  147. </view>
  148. <view class="df jcc" style="position:absolute;bottom: 15vh;width: 100%;">
  149. <PhoneButton type="primary" bindloginEvent="loginEvent">登录以查看分享</PhoneButton>
  150. </view>
  151. </block>