
<view class="pg">

    <view class="selectBox">
    <view class="selectCard">
        <text>请选择充电站</text>
        <picker bindchange="bindPickerChange1" value="{{index}}" range="{{select1_arr}}">
            <view class="picker">{{select1_text}}</view>
        </picker>
    </view>
    <view class="selectCard">
        <text>请选择充电桩</text>
        <picker bindchange="bindPickerChange2" value="{{index}}" range="{{select2_arr}}">
            <view class="picker">{{select2_text}}</view>
        </picker>
    </view>
    </view>


    <view class='charging_text_title'>
      <view class='charging'>
        <image src='/images/charging2_1.png' bindtap="wxTestDebugClick"></image>
      </view>
      <view class='charging_text_title1'>
        <text class='bold'>{{chargPile.chargPileName}}</text>
        <text class="h1">终端编号：{{chargPile.chargPileId}}</text>
      </view>
    </view>
    <rich-text space='nbsp' nodes="地址：{{chargPile.address}}" style='line-height:30rpx;font-size:24rpx;margin-bottom:10rpx;word-wrap: break-word;' ></rich-text>
    <text class="stitle" >电池包举升控制</text>
    <view class="vbtn v3">
        <button class='btn b3 active' bindtap="upBtn" >上升</button>
        <button class='btn b3 active' bindtap="downBtn" >下降</button>
        <button class='btn b3 active' bindtap="pauseBtn" >暂停</button>
    </view>
    <text class="stitle" >选择车辆</text>
    <view class="vbtn v3">
        <block wx:for="{{cars}}" wx:key="id">
            <button class="btn b3 {{carIndex==index?'active':''}}" bindtap="carTap" data-idx="{{index}}">{{item.carName}}</button>
        </block>
    </view>
    <text class="stitle" >选择点位</text>
    <view class="vbtn v3">
        <block wx:for="{{locations}}" wx:key="id">
            <button class="btn b3 {{locationIndex==index?'active':''}}" bindtap="locationTap" data-idx="{{index}}" >{{item.pointShowName}}</button>
        </block>
    </view>    <text class="stitle" >选择任务类型</text>
    <view class="vbtn v3">
        <block wx:for="{{tractorTaskTypeList}}" wx:key="id">
            <button class="btn b3 {{tractorTaskTypeIndex==index?'active':''}} char4" bindtap="tractorTaskTypeTap" data-idx="{{index}}" >{{item.txt}}</button>
        </block>
    </view>
    <view class="vbtn v1">
        <button class='btn b1 active' bindtap="submit" >调度车辆</button>
    </view>
    <text class="stitle" >启动充电</text>
    <view class="vbtn v1" style="margin-top: 20rpx;">
        <button class='btn b1 active' bindtap="goToScanResult" >启动充电</button>
    </view>
    <text class="stitle" >回收电池包</text>
    <view class="vbtn v1" style="margin-top: 20rpx;">
      <button class='btn b1 active' bindtap="goToRecycle" >回收电池包</button>
    </view>
    
</view>
