拓恒飞手平台小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
2.9KB

  1. <!--package_A/page/TaskDetail/index.wxml-->
  2. <view class="detail_container">
  3. <view class="detail_head">
  4. <text>{{dataSource.platformName}}</text>
  5. <text>{{dataSource.createTime}}分配</text>
  6. </view>
  7. <!-- 地图区域 -->
  8. <view id="map" class="map_box">
  9. <base-map wx:if="{{pointList.length !== 0}}" point="{{pointList}}"></base-map>
  10. </view>
  11. <!-- 任务信息 -->
  12. <view class="task_message">
  13. <text class="message_head">{{statusList[dataSource.status].text}}任务</text>
  14. <view class="message_list">
  15. <view class="message_item" wx:for="{{messageList}}" wx:key="index">
  16. <image style="width: 28rpx;height: 28rpx;margin-right: 20rpx;" src="{{'../../../assets/img/'+item.icon+'.png'}}"></image>
  17. <text>{{item.label}}:<text wx:if="{{item.value === 'isLive'}}">{{dataSource[item.value] === 2 ? '否' : '是'}}</text><text wx:else>{{dataSource[item.value] || ''}}</text></text>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 表单区域 -->
  22. <view class="form_container">
  23. <view class="form_item {{item.warning?'warning':''}}" wx:for="{{formRules}}" wx:key="index">
  24. <text class="item_label">{{item.name}}</text>
  25. <picker bindchange="updateChange" mode="selector" data-index="{{index}}" value="{{formOptions[item.value].current}}" range="{{formOptions[item.value].list}}" range-key="{{formOptions[item.value].key}}" disabled="{{disabled}}" class="picker_box">
  26. <view class="picker" wx:if="{{formOptions[item.value].list[formOptions[item.value].current][formOptions[item.value].key]}}">
  27. {{formOptions[item.value].list[formOptions[item.value].current][formOptions[item.value].key]}}
  28. </view>
  29. <view wx:else class="picker">
  30. {{item.placeholder}}
  31. </view>
  32. <image wx:if="{{!disabled}}" style="width: 20rpx; height: 12rpx; position: absolute; top: 20rpx;right: 20rpx;" src="../../../assets/img/down.png"></image>
  33. </picker>
  34. <text class="tips">{{item.placeholder}}</text>
  35. </view>
  36. </view>
  37. <!-- 飞行信息 -->
  38. <view class="fly_message">
  39. <text wx:if="{{dataSource.status > 15}}">飞行开始时间:{{dataSource.flightStarTime || ''}}</text>
  40. <text wx:if="{{dataSource.status > 20}}" style="margin-top: 30rpx;">飞行结束时间:{{dataSource.flightEndTime || ''}}</text>
  41. </view>
  42. <!-- 按钮区域 -->
  43. <view class="btn_list">
  44. <view wx:if="{{dataSource.status === 10}}" class="btn_item order_btn" bindtap="reciveOrder">接单</view>
  45. <view wx:if="{{dataSource.status === 15}}" class="btn_item start_btn" bindtap="beginFlight">开始飞行</view>
  46. <view wx:if="{{dataSource.status === 20}}" class="btn_item end_btn" bindtap="finishFlight">结束飞行</view>
  47. </view>
  48. </view>