<!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="./unlockInfo.css">
    <style type="text/css">
        [v-cloak]{
            display: none;
        }
    </style>
    <!--<script type="text/javascript" src="../../lib/js/start.js"></script>-->
    <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">
            <v-touch tag="span" class="header-left icon" v-on:tap="onBackTap">&#xe611;</v-touch>
            <p>{{ $t('title.unlockInfo') }}</p>
            <!--<v-touch tag="span" class="header-right" v-on:tap="onAddTap" v-show="!role">{{ $t('btn.add') }}</v-touch>-->
        </div>
        <div class="content"> 
            <!--<p class="title">{{ $t('unlockInfo.bindUnlockInfo') }}</p>-->
			<ul class="tab">
				<v-touch tag="li" v-for="(item, key, index) in lockItems" v-text="lockItems[key].text" 
					:class="[{active: (selectItem == key)},{newMsg: newUnlockInfo && (key == 1)}]" v-on:tap="onItemChange(key)">
				</v-touch>
			</ul>
            <!--<u-swipe-list ref="uswipelist" :init-param="componentsConfig.unlockInfoList.initParam"
    		v-on:u-swipe-list-button-tap="onUnlockInfoListButtonTap(arguments[0],arguments[1])"></u-swipe-list>-->
    		<div class="infoList-list" ref="infoList">
		        <ul class="infoList-list-scroll" v-show="infoList.length">
		        	<li class="infoList-list-row" v-for="(item, index) in infoList">
			            <div class="infoList-list-handle">
			            	<p class="infoList-list-title">{{ item.title }}</p>
			            	<p class="infoList-list-subtitle">{{ item.subtitle }}</p>
			            </div>
			            <div class="infoList-list-button">
			            	<v-touch tag="div" class="infoList-list-buttonCont" v-for="(button, buttonIndex) in item.buttons" v-show="button.imgClass || button.text" v-on:tap="onImgButtonTap(index, buttonIndex)">
			            		<!--<img  :src="button.imgSrc" v-show="button.imgSrc">-->
			            		<p v-bind:class="button.imgClass" v-show="button.imgClass"></p>
			            		{{ button.text }}
			            	</v-touch>
			            </div>
		        	</li>
		        	<!--<v-touch tag="li" class="infoList-list-load" v-on:tap="onTapLoad" v-show="loadShowFlag">
		                <span class="infoList-list-load-animation" v-show="loadFlag"></span>
		                {{ loadText }}
		            </v-touch>-->
		        </ul>
		        <p class="infoList-list-tip" v-bind:class="{'noHistory-list-tip':selectItem == 0}" v-show="tipShowFlag && (infoList.length == 0)">{{ selectItem == 0 ? noHistoryTip : unlockInfoListTip }}</p>
		    </div>
        </div>   
        <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="./unlockInfo.js" defer async></script>
    
</body>
</html>