<view class="login">
    <image class="welcome" src="../../images/welcome.png"></image>
    <image class="water" src="{{waterImage}}"></image>
    <button bindtap="scanOrQuery" class="btn_edit" wx:if="{{isPlatform=='android'}}">扫码/搜索</button>
    <button bindtap="query" class="btn_edit" wx:if="{{isPlatform=='ios'}}">搜索蓝牙</button>
    <view class="btn_line" wx:if="{{device_id!=''&&connectedDeviceId==''}}">
        <button bindtap="connectTO2" class="btn_edit" id="{{device_id}}" type="warn">直接连接</button>
    </view>
    <view class="btn_line">
        <button bindtap="open" class="btn_edit" type="defaule">启动</button>
    </view>
    <view class="btn_line">
        <button bindtap="close" class="btn_edit" type="defaule">停止</button>
    </view>
</view>
