takePhoto.wxml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <view class="top-container df aic jcc fdc" wx:if="{{shipId}}">
  2. <view class="sign" bind:tap="check">{{checkinStatus==0?'签到':'已签到'}}</view>
  3. <view class="check-time mt30" wx:if="{{checkinStatus==1}}">签到时间: {{checkinDatetime}}</view>
  4. </view>
  5. <view class="top-container exp" wx:else="">
  6. <image class="avatar-icon" src="{{avater_exp}}"></image>
  7. <view class="text" style="text-align: center;">
  8. {{userName?"":"体验用户"}}
  9. <text wx:if="{{userName}}" class="user-name">{{userName}}</text>
  10. <text wx:if="{{phone}}" class="phone">{{phone}}</text>
  11. </view>
  12. </view>
  13. <view wx:if="{{userId&&shipId}}">
  14. <view class="new-camera camera-cargo">
  15. <image class="icon" bindtap="takePhoto" data-mediatype="{{3}}" src="{{newCameraIcon}}"></image>
  16. <view bindtap="takePhoto" data-mediatype="{{3}}">拍货物</view>
  17. </view>
  18. <view class="new-camera camera-bill">
  19. <image class="icon" data-mediatype="{{0}}" bindtap="takeBill" src="{{newCameraIcon}}"></image>
  20. <view data-mediatype="{{0}}" bindtap="takeBill">拍单据</view>
  21. </view>
  22. </view>
  23. <view wx:else>
  24. <image wx:if="{{!userId&&!shipId||!userId}}" class="camera-icon" bindtap="takePhoto" data-mediatype="{{3}}" src="{{cameraIcon}}"></image>
  25. <view wx:else style="margin-top: 20%;">
  26. <view class="line mb30">
  27. <view class="ship-name">船舶名称 :</view>
  28. <input class="ship-name-ipt" model:value="{{shipName}}" type="text" placeholder="请输入船舶名称" />
  29. </view>
  30. <view class="line">
  31. <view class="ship-mmsi">MMSI :</view>
  32. <input class="ship-mmsi-ipt" model:value="{{shipMmsi}}" type="number" placeholder="请输入MMSI" />
  33. </view>
  34. <view bindtap="registerShip" class="submit">绑定船舶</view>
  35. </view>
  36. </view>
  37. <view class="auth-modal" wx:if="{{authModal}}">
  38. <view class="modal">
  39. <view class="service">为了更好的提供服务</view>
  40. <view class="auth-btn" bindtap="openSetting">请授权{{modalText}}</view>
  41. </view>
  42. </view>
  43. <view class="card">
  44. <view class="card-title">我的证书</view>
  45. <view class="">
  46. <view class="df aic fs28 th mb20">
  47. <view class="index-item tac">序号</view>
  48. <view class="fg1 tac">证书名称</view>
  49. <view class="end-time tac">到期时间</view>
  50. </view>
  51. <view class="df aic jcsb fs28 tr mb10" style="{{certs.length===(index+1)?'border:none;margin-bottom:0!important;':''}}" wx:for="{{certs}}" wx:key="index">
  52. <view class="index-item tac">{{index+1}}</view>
  53. <view class="fg1 tac">{{item.certTypeName}}</view>
  54. <view class="end-time tac">{{item.endValidTime}}</view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="card">
  59. <view class="card-title">办证联系人</view>
  60. <view class="">
  61. <view class="df aic jcsb fs28 th">
  62. <view class="index-item tac">序号</view>
  63. <view class="w50p tac">办事处</view>
  64. <view class="w30p tac">姓名</view>
  65. <view class="w20p tac">电话</view>
  66. </view>
  67. <view class="df aic jcsb fs28 mt10 tr" style="{{contacts.length===(index+1)?'border:none;margin-bottom:0!important;':''}}" wx:for="{{contacts}}" wx:key="index">
  68. <view class="index-item tac">{{index+1}}</view>
  69. <view class="w50p tac">{{item.officeName}}</view>
  70. <view class="w30p tac">{{item.contactPerson}}</view>
  71. <view class="w20p tac df aic jcc" bind:tap="makePhoneCall" data-phone="{{item.contactPhone}}">
  72. <image class="tel ml10" data-phone="{{item.contactPhone}}" src="../../images/tel.png" mode="aspectFit" />
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="card ">
  78. <view class="card-title">油价走势</view>
  79. <view class="">
  80. <view class="df aic fs28 th">
  81. <view class="index-item tac">序号</view>
  82. <view class="w60p tac">加油服务商</view>
  83. <view class="w40p tac">油价(元/吨)</view>
  84. </view>
  85. <view class="df aic jcsb fs28 mt10 tr" style="{{oilPriceList.length===(index+1)?'border:none;margin-bottom:0!important;':''}}" wx:for="{{oilPriceList}}" wx:key="index">
  86. <view class="index-item tac">{{index+1}}</view>
  87. <view class="w60p tac">{{item.vendorName}}</view>
  88. <view class="w40p tac">{{item.price}}</view>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="h200"></view>