<!-- pages/setWifi/setWifi.wxml -->
<nav-bar bind:goBack="_goBack" nav-bgc-class="ex-nav-bgc-class" nav-title-class="ex-nav-title-class" ex-back-pre="ex-back-pre" bind:callback="callback" navbarData='{{navbarData}}'></nav-bar>
<view class="container">
    <view class="wifi_icon">
        <image src="../../images/common/wifi.png" mode="aspectFit"></image>
    </view>
    <view class="title">配置设备Wi-Fi</view>
    <view class="input-group">
        <view class="input-with-icon">
            <image class="icon" src="../../images/common/wifi_icon.png" mode="aspectFit"></image>
            <input class="input" type="text" placeholder="请输入Wi-Fi名称" value="{{wifiName}}" bindinput="onWifiNameInput" />
        </view>
    </view>
    <view class="input-group">
        <view class="input-with-icon">
            <image class="icon" src="../../images/common/lock.png" mode="aspectFit"></image>
            <!-- <input class="input" type="{{passwordType}}" placeholder="请输入密码" value="{{wifiPassword}}" bindinput="onWifiPasswordInput" /> -->
            <input class="input" password="{{passwordType}}" bindinput="onWifiPasswordInput" placeholder="请输入WiFi密码" value="{{wifiPassword}}" />
            <image class="eye-icon" src="{{eyeIconSrc}}" mode="aspectFit" bindtap="togglePasswordVisibility"></image>
        </view>
    </view>
    <view class="title_tips">不支持5G、酒店、机场等需要认证的WI-FI网络</view>
    <view class="confirm-button" bindtap="onConfirm">确认</view>
</view>