电速宝
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

indexcopy.wxml 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <view class="container">
  2. <!-- 地图组件 -->
  3. <!-- <map
  4. id="map"
  5. class="map"
  6. longitude="{{longitude}}"
  7. latitude="{{latitude}}"
  8. scale="16"
  9. markers="{{markers}}"
  10. polyline="{{polyline}}"
  11. show-location
  12. ></map> -->
  13. <map
  14. id="map"
  15. class="map"
  16. longitude="{{longitude}}"
  17. latitude="{{latitude}}"
  18. markers="{{markers}}"
  19. polyline="{{plannedRoute}}"
  20. include-points="{{trackPoints}}"
  21. bindcontroltap="controltap"
  22. show-location
  23. ></map>
  24. <!-- 规划路线叠加显示 -->
  25. <!-- controls="{{controls}}" -->
  26. <!-- 信息提示 -->
  27. <view class="info" wx:if="{{infoText}}">
  28. {{infoText}}
  29. </view>
  30. <!-- 加载提示 -->
  31. <view wx:if="{{loading}}" class="loading-mask">
  32. <view class="loading-view">
  33. <loading size="large" color="#007aff">获取路线中...</loading>
  34. </view>
  35. </view>
  36. <!-- 错误提示 -->
  37. <view wx:if="{{error && !loading}}" class="error-message">
  38. {{error}}
  39. </view>
  40. <view class="detailsbox">
  41. </view>
  42. </view>
  43. <verification-popup
  44. isShow="{{showVerification}}"
  45. phoneNumber="{{phoneNumber}}"
  46. countdownSeconds="60"
  47. bind:close="onPopupClose"
  48. bind:confirm="onCodeConfirm"
  49. bind:resend="onResendCode"
  50. bind:complete="onCodeComplete"
  51. />
  52. <!-- pages/taxi-detail/taxi-detail.wxml -->
  53. <view class="taxi-card-container">
  54. <!-- 背景遮罩(仅非全屏/非最小档显示) -->
  55. <view
  56. class="mask"
  57. wx:if="{{cardHeight !== 'min' && cardHeight !== 'mid' && cardHeight !== 'max'}}"
  58. style="opacity: {{maskOpacity}};"
  59. bindtap="closeCard"
  60. ></view>
  61. <!-- 可拖动卡片(全屏时取消底部圆角) -->
  62. <view
  63. class="taxi-card"
  64. style="height: {{currentHeight}}px;bottom: 0;transition: height 0.3s ease;border-top-left-radius: {{cardHeight === 'max' ? '0' : '16px'}};border-top-right-radius: {{cardHeight === 'max' ? '0' : '16px'}};" bindtouchstart="handleTouchStart" bindtouchmove="handleTouchMove" bindtouchend="handleTouchEnd">
  65. <!-- 拖动指示器(全屏时隐藏) -->
  66. <view class="drag-handler">
  67. <view class="drag-bar"></view>
  68. </view>
  69. <!-- 卡片内容(全屏时增加内边距适配导航栏) -->
  70. <view class="card-content" style="padding-top: {{cardHeight === 'max' ? '40rpx' : '20rpx'}};">
  71. <view class="storagecartext">
  72. <view>
  73. <view class="destination-title">
  74. <text wx:if="{{orderdata.workorderType==0}}" style="font-weight: 600;">待处理</text>
  75. <text wx:if="{{orderdata.workorderType==1}}" style="font-weight: 600;">待处理</text>
  76. <text wx:if="{{orderdata.workorderType==2}}">行驶中</text>
  77. <text wx:if="{{orderdata.workorderType==3}}">到达指定地点</text>
  78. <text wx:if="{{orderdata.workorderType==4}}">工作中</text>
  79. <text wx:if="{{orderdata.workorderType==5}}">完成工作</text>
  80. </view>
  81. <view class="destination-title1" style="margin-top: 20rpx;">
  82. 目的地:{{orderdata.poiName}}
  83. </view>
  84. <view class="destination-font" wx:if="{{userdata.operationRole==5}}">
  85. <view class="driver" wx:if="{{orderdata.driverphone==''}}">司机:<text style="color: #ff6b00;">待接单</text> </view>
  86. <view class="driver" wx:else>司机:{{orderdata.driverName}}·{{orderdata.carName}}
  87. </view>
  88. </view>
  89. <view class="destination-font" wx:if="{{userdata.operationRole==4}}">客户:{{orderdata.receiver}} <t-icon name="call-1-filled" size="28rpx" data-name="call-1-filled" data-phone="{{orderdata.phone}}" bind:tap="ontelephone" style="margin-left:20rpx"/> </view>
  90. </view>
  91. <image wx:if="{{userdata.operationRole==5}}" class="storagecar" src="https://esos-iot.bjdexn.cn/myminio/project/c152026b9bc2485f83b39a6132df3ce7.png" mode="heightFix"/>
  92. <image wx:if="{{userdata.operationRole==4}}" class="storagecar1" src="https://esos-iot.bjdexn.cn/myminio/project/d98e4fde125f40819f8bd8fe872e409c.png" bind:tap="navigation" mode="heightFix"/>
  93. </view>
  94. <view class="card_more" wx:if="{{userdata.operationRole==5&&orderdata.workorderType!=0}}">
  95. <view class="card_morebox">开发票</view>
  96. <view class="card_morebox">联系客服</view>
  97. <view class="card_morebox" data-phone="{{orderdata.driverphone}}" bind:tap="ontelephone">打电话</view>
  98. <view class="card_morebox">再来一单</view>
  99. </view>
  100. <view class="card_box" wx:if="{{userdata.operationRole==5}}">
  101. <!-- 行程详情 -->
  102. <view class="detail-section" style="border-bottom: 1rpx solid #f5f5f5;">
  103. <view class="viewmore_box" bind:tap="onmore">
  104. <view class="section-title">订单详情</view>
  105. <view class="viewmore_right">
  106. <text wx:if="{{!moretype}}">展开详情</text>
  107. <text wx:if="{{moretype}}">收起</text>
  108. <t-icon name="chevron-up" wx:if="{{moretype}}" size="22px" data-name="chevron-up"/>
  109. <t-icon name="chevron-down" wx:if="{{!moretype}}" size="22px" data-name="chevron-down"/>
  110. </view>
  111. </view>
  112. <view class="detail-list" wx:if="{{moretype}}">
  113. <view class="detail-item">
  114. <view class="item-label">订单号</view>
  115. <view class="item-value">{{orderdata.workorderId}}</view>
  116. </view>
  117. <view class="detail-item">
  118. <view class="item-label">创建时间</view>
  119. <view class="item-value">{{orderdata.workorderCreatetime}}</view>
  120. </view>
  121. <view class="detail-item">
  122. <view class="item-label">订单类型</view>
  123. <view class="item-value" wx:if="{{orderdata.chargedischargeType==1}}">充电</view>
  124. <view class="item-value" wx:if="{{orderdata.chargedischargeType==2}}">放电</view>
  125. </view>
  126. <view class="detail-item">
  127. <view class="item-label">需求电量</view>
  128. <view class="item-value">{{orderdata.workorderElectricity}}</view>
  129. </view>
  130. <view class="detail-item">
  131. <view class="item-label">SOC</view>
  132. <view class="item-value">{{orderdata.soc}}</view>
  133. </view>
  134. <view class="detail-item">
  135. <view class="item-label">车型</view>
  136. <view class="item-value">{{orderdata.carMondel}}</view>
  137. </view>
  138. <view class="detail-item">
  139. <view class="item-label">里程</view>
  140. <view class="item-value">12.5km</view>
  141. </view>
  142. <view class="detail-item">
  143. <view class="item-label">预计时长</view>
  144. <view class="item-value">50分钟</view>
  145. </view>
  146. </view>
  147. <view style="height: 20rpx;" wx:if="{{moretype}}"></view>
  148. </view>
  149. <!-- 费用明细 -->
  150. <view class="detail-section">
  151. <view class="viewmore_box" bind:tap="oncostdetails">
  152. <view class="section-title1">100.1 <text class="section_yuan">元</text> </view>
  153. <view class="viewmore_right">
  154. <text wx:if="{{!costdetails}}">费用明细</text>
  155. <text wx:if="{{costdetails}}">费用明细</text>
  156. <t-icon name="chevron-up" wx:if="{{costdetails}}" size="22px" data-name="chevron-up"/>
  157. <t-icon name="chevron-down" wx:if="{{!costdetails}}" size="22px" data-name="chevron-down"/>
  158. </view>
  159. </view>
  160. <view class="fee-list" wx:if="{{costdetails}}">
  161. <view class="fee-item">
  162. <view class="fee-label">起步价</view>
  163. <view class="fee-value">¥13.00</view>
  164. </view>
  165. <view class="fee-item">
  166. <view class="fee-label">里程费</view>
  167. <view class="fee-value">¥32.00</view>
  168. </view>
  169. <view class="fee-item">
  170. <view class="fee-label">时长费</view>
  171. <view class="fee-value">¥8.50</view>
  172. </view>
  173. <view class="fee-item">
  174. <view class="fee-label">服务费</view>
  175. <view class="fee-value">¥5.00</view>
  176. </view>
  177. <view class="fee-item">
  178. <view class="fee-label">电费</view>
  179. <view class="fee-value">¥5.00</view>
  180. </view>
  181. <!-- <view class="fee-item total-fee">
  182. <view class="fee-label">实付款</view>
  183. <view class="fee-value">¥58.50</view>
  184. </view> -->
  185. </view>
  186. <view style="height: 1rpx;"></view>
  187. </view>
  188. </view>
  189. <view class="card_box" wx:if="{{userdata.operationRole==4}}">
  190. <!-- 行程详情 -->
  191. <view class="detail-section" style="border-bottom: 1rpx solid #f5f5f5;">
  192. <view class="viewmore_box" bind:tap="onmore">
  193. <view class="section-title">订单详情</view>
  194. <view class="viewmore_right">
  195. <text wx:if="{{!moretype}}">展开详情</text>
  196. <text wx:if="{{moretype}}">收起</text>
  197. <t-icon name="chevron-up" wx:if="{{moretype}}" size="22px" data-name="chevron-up"/>
  198. <t-icon name="chevron-down" wx:if="{{!moretype}}" size="22px" data-name="chevron-down"/>
  199. </view>
  200. </view>
  201. <view class="detail-list" wx:if="{{moretype}}">
  202. <view class="detail-item">
  203. <view class="item-label">订单号</view>
  204. <view class="item-value">{{orderdata.workorderId}}</view>
  205. </view>
  206. <view class="detail-item">
  207. <view class="item-label">创建时间</view>
  208. <view class="item-value">{{orderdata.workorderCreatetime}}</view>
  209. </view>
  210. <view class="detail-item">
  211. <view class="item-label">订单类型</view>
  212. <view class="item-value" wx:if="{{orderdata.chargedischargeType==1}}">充电</view>
  213. <view class="item-value" wx:if="{{orderdata.chargedischargeType==2}}">放电</view>
  214. </view>
  215. <view class="detail-item">
  216. <view class="item-label">需求电量</view>
  217. <view class="item-value">{{orderdata.workorderElectricity}}</view>
  218. </view>
  219. <view class="detail-item">
  220. <view class="item-label">SOC</view>
  221. <view class="item-value">{{orderdata.soc}}</view>
  222. </view>
  223. <view class="detail-item">
  224. <view class="item-label">车型</view>
  225. <view class="item-value">{{orderdata.carMondel}}</view>
  226. </view>
  227. <view class="detail-item">
  228. <view class="item-label">里程</view>
  229. <view class="item-value">{{distance}} km</view>
  230. </view>
  231. <view class="detail-item">
  232. <view class="item-label">约定时间</view>
  233. <view class="item-value">{{orderdata.workorderStarttime}}</view>
  234. </view>
  235. </view>
  236. <view style="height: 20rpx;" wx:if="{{moretype}}"></view>
  237. </view>
  238. </view>
  239. <view style="height: 140rpx;" wx:if="{{moretype}}"></view>
  240. <!-- 控制按钮区域 -->
  241. <view class="control-panel">
  242. <slide-confirm
  243. wx:if="{{orderdata.workorderType==1&&userdata.operationRole==4}}"
  244. id="mySlideConfirm"
  245. data-type="{{orderdata.workorderType}}"
  246. bind:success="onSlideSuccess"
  247. width="300"
  248. height="50"
  249. defaultText="开始出发"
  250. successText="验证通过"
  251. />
  252. <slide-confirm
  253. wx:if="{{orderdata.workorderType==2&&userdata.operationRole==4}}"
  254. id="mySlideConfirm"
  255. data-type="{{orderdata.workorderType}}"
  256. bind:success="onSlideSuccess"
  257. width="300"
  258. height="50"
  259. defaultText="到达目的地"
  260. successText="验证通过"
  261. />
  262. <slide-confirm
  263. wx:if="{{orderdata.workorderType==3&&userdata.operationRole==4}}"
  264. id="mySlideConfirm"
  265. data-type="{{orderdata.workorderType}}"
  266. bind:success="showVerificationPopup"
  267. width="300"
  268. height="50"
  269. defaultText="开始工作"
  270. successText="验证通过"
  271. />
  272. <slide-confirm
  273. wx:if="{{orderdata.workorderType==4&&userdata.operationRole==4}}"
  274. id="mySlideConfirm"
  275. data-type="{{orderdata.workorderType}}"
  276. bind:success="onSlideSuccess"
  277. width="300"
  278. height="50"
  279. defaultText="完成工作"
  280. successText="验证通过"
  281. />
  282. </view>
  283. </view>
  284. </view>
  285. </view>