<!-- pages/deviceDetail/detail.wxml -->
<view class="container">
    <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" navbar-data='{{nvabarData}}'></nav-bar>
    <view class="img_section">
        <image src="{{device.img}}" class="avatar"></image>
        <!-- <image src="https://music-play.oss-cn-shenzhen.aliyuncs.com/device/20220909100711728016597.png" class="avatar"></image> -->
    </view>
    <view class="section">
        <view wx:if="{{isShowWallpaper}}" class="item" bindtap="goToWallpaper">
            <text class="label">壁纸设置</text>
            <!-- <text class="arrow">></text> -->
            <image class="arrow" src="../../images/common/icon_arrow.png"></image>
        </view>
        <view class="item" bindtap="goToAccountSecurity">
            <view class="left-content">
                <text class="label">省电模式</text>
                <image class="question" bind:tap="questionTap" src="../../images/common/icon_question.png"></image>
            </view>
            <switch class="switch" color="#6546A3" checked="{{powerOpen}}" bindchange="powerTap" />
        </view>
        <view class="item" bindtap="goToOta">
            <view class="left-content">
                <text class="label">固件信息</text>
                <view wx:if="{{updateData.hasNewVersion}}" class="red"></view>
            </view>
            <image class="arrow" src="../../images/common/icon_arrow.png"></image>
        </view>
    </view>
</view>