<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>Hello APP</title>
<link rel="stylesheet" type="text/css" href="../../css/api.css" />
<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
</head>
<body>
<div id="app" class="">
<div class="aui-bar aui-bar-btn"
style="width:80%;margin-top:5px">
<div class="aui-bar-btn-item" tampode v-bind:class="{'aui-active':active_index==0}" @click="fnSetNavMenuSelected(0)">未完成</div>
<div class="aui-bar-btn-item" tampode v-bind:class="{'aui-active':active_index==1}" @click="fnSetNavMenuSelected(1)"> 已完成</div>
</div>
</div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/vue.js"></script>
<script type="text/javascript">
var vm=new Vue({
el:"#app",
data:{
active_index:0
},
methods:{
fnSetNavMenuSelected:function(index){
vm.active_index=index;
}
}
});
apiready = function(){
};
</script>
</html>
apicloud之导航栏切换
最新推荐文章于 2020-12-31 10:07:14 发布