<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="format-detection" content="telephone=no"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../lib/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="./device.css">
    <style type="text/css">
        [v-cloak]{
            display: none;
        }
    </style>
    <script type="text/javascript" src="../../lib/js/p.js"></script>
    <script type="text/javascript" src="../../lib/js/UIOT.js"></script>
</head>
<body ontouchstart="">

    <div id="app" v-cloak>
        <div class="header">
            <p>{{ $t('title.device') }}</p>
            <v-touch tag="span" class="header-right icon" v-on:tap="onDoorlockManageTap">&#xe61d;</v-touch>
        </div>
        <div class="content"> 
            <u-carousel :init-param="componentsConfig.carousel.initParam"></u-carousel>
            <div class="deviceHandle">
                <u-marquee :init-param="componentsConfig.marquee.initParam" :active="activeFlag"></u-marquee>
                <div class="switchGroup">
                    <!-- 开门记录 -->
                    <div class="col-xs-6 opendoorRecord newMsg">
                        <u-switch :value="valueOpendoorRecord" :init-param="componentsConfig.opendoorRecordSwitch.initParam" v-on:u-switch-tap="onOpendoorRecordTap"></u-switch>
                    </div>
                    <!-- 安全报警 -->
                    <div class="col-xs-6 securityAlarm newMsg">
                        <u-switch :value="valueSecurityAlarm" :init-param="componentsConfig.securityAlarmSwitch.initParam" v-on:u-switch-tap="onSecurityAlarmTap"></u-switch>
                    </div>
                    <!-- 远程开门 -->
                    <div class="col-xs-6 remoteOpendoor newMsg">
                        <u-switch :value="valueRemoteOpendoor" :init-param="componentsConfig.remoteOpendoorSwitch.initParam" v-on:u-switch-tap="onRemoteOpendoorTap"></u-switch>
                    </div>
                    <!-- 劫持报警 -->
                    <div class="col-xs-6 hijackAlarm newMsg">
                        <u-switch :value="valueHijackAlarm" :init-param="componentsConfig.hijackAlarmSwitch.initParam" v-on:u-switch-tap="onHijackAlarmTap"></u-switch>
                    </div>
                </div>
            </div>
        </div>
        <transition name="fade">
            <div class="followServiceNumber-dialog" v-show="followShowFlag">
                <div class="followServiceNumber-dialog-box">
                    <ul class="">
                        <li>{{ $t('device.followTitle') }}</li>
                        <li v-html="$t('device.followCont1')"></li>
                        <li v-html="$t('device.followCont2')"></li>
                        <li>
                            <p></p>
                        </li>
                    </ul>
                    <u-button :init-param="componentsConfig.saveQRcodeButton.initParam" v-on:u-button-tap="onSaveQRcodeButtonTap"></u-button>
                    <p class="linkText"><v-touch tag="span" v-on:tap="onLaterFollowTap">{{ $t('device.laterFollow') }}</v-touch></p>
                </div>
            </div>
        </transition> 
        <u-dialog ref="udialog" :init-param="componentsConfig.dialog.initParam"></u-dialog>
        <u-loading ref="uloading" :init-param="componentsConfig.loading.initParam"></u-loading>
    </div>

    <script type="text/javascript" src="./index.js" defer async></script>
    
</body>
</html>