<view class="adddevice_bg"></view>
<view class="adddevice">
    <view class="adddevice_card">
        <view class="card_title">扫描附近设备</view>
        <view class="card_message" ty:if="{{scan_list.length > 0}}">发现以下设备，请点击联网</view>
        <view class="card_message" ty:else>持续自动搜索中…</view>
        <view class="card_list" ty:if="{{scan_list.length > 0}}">
            <view class="card_item {{item.checked ? 'checked' : ''}}" ty:for="{{scan_list}}" ty:key="index" bind:tap="goSelectWifi"> 
                <view class="card_item_img img_box">
                    <image src="{{item.imgUrl}}" mode="widthFix"></image>
                </view>
                <view class="card_item_text">{{item.name}}</view>
            </view>
        </view>
        <view class="card_box" ty:else>
            <view class="card_scan">
                <view class="scan_round1">
                    <view class="scan_round2 radius_absolute">
                        <view class="scan_round3 radius_absolute">
                            <view class="scan_round4 radius_absolute">
                                <view class="scan_round5 radius_absolute"></view>
                            </view>
                        </view>
                    </view>
                </view>
            </view>
            <view class="card_text">请将手机尽量靠近要添加的设备</view>
            <view class="card_tip">未发现设备，可在下面的列表中选择添加</view>
        </view>
    </view>
    <view class="adddevice_card">
        <view class="card_title">手动添加设备</view>
        <view class="card_category">
            <view class="card_category_list" ty:for="{{device_list}}" ty:key="{{index}}">
                <view class="card_category_name">{{item.category}}</view>
                <view class="card_category_item">
                    <view class="card_category_box" ty:for="{{item.device}}" ty:key="{{index}}">
                        <view class="card_category_img img_box">
                            <image src="{{item.imgUrl}}" mode="widthFix"></image>
                        </view>
                        <view class="device_box_title">{{item.name}}</view>
                    </view>
                </view>
            </view>
        </view>
    </view>

</view>