|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<link href="../css/mui.min.css" rel="stylesheet"/>
<link href="../css/iconfont.css" rel="stylesheet" />
<link href="../css/app.css" rel="stylesheet"/>
</head>
<body>
<!-- 主页面标题 -->
<header class="mui-bar mui-bar-nav toptitbox">
<span class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left topback"></span>
<h1 class="mui-title toptit">我的关注</h1>
</header>
<!-- 主页面内容容器 -->
<div class="mui-content">
<!-- 主界面具体展示内容 -->
<div class="fixbox">
<ul class="fixbtn" id="fixbtn">
<li index="0" class="mui-col-xs-6 liactive">专家</li><!--当前选中状态 'liactive'-->
<li index="1" class="mui-col-xs-6">资源</li>
</ul>
</div>
</div>
<script src="../js/public/mui.min.js"></script>
<script src="../js/public/base.js"></script>
<script>
var checkedindex = 0;
mui("#fixbtn").on("tap", "li", function() {
checkedindex = this.getAttribute("index");
var libtn_arr = document.getElementById("fixbtn").getElementsByTagName("li");
if(checkedindex == 0) {
libtn_arr[0].classList.add("liactive");
libtn_arr[1].classList.remove("liactive");
var list1 = plus.webview.getWebviewById('attentions-list2.html');
list1.close();
mui.openWindow({
url: 'attentions-list.html',
id: 'attentions-list.html',
show: {
aniShow: "slide-in",
autoShow: false
},
styles:{
top: '85px',
bottom: '0px',
}
});
} else {
libtn_arr[1].classList.add("liactive");
libtn_arr[0].classList.remove("liactive");
var list2 = plus.webview.getWebviewById('attentions-list.html');
list2.close();
mui.openWindow({
url: 'attentions-list2.html',
id: 'attentions-list2.html',
show: {
aniShow: "slide-in",
autoShow: false
},
styles:{
top: '85px',
bottom: '0px',
}
});
}
})
mui.init({
subpages:[{
url:'attentions-list.html',
id:'attentions-list.html',
styles:{
top: '85px',
bottom: '0px',
}
}]
});
mui.plusReady(function(){
plus.nativeUI.showWaiting();
})
</script>
</body>
</html>
|