烂笔头 1 OK

This commit is contained in:
2020-08-12 22:51:22 +08:00
parent c7ae9e7ac8
commit e4bb86ead9
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
mui.plusReady(function(){ mui.plusReady(function(){
$(".footer").click(function(){ $('body').on('click', ".footer[data-app='app']", function(){
app.create(); app.create();
}) })
}) })

View File

@ -86,10 +86,10 @@
</div> </div>
</div> </div>
</div> </div>
<div id="app3" class="subPage" v-cloak> <div id="app3" class="subPage">
<div style="text-align: center;font-size: 24px;">请等待更新</div> <div style="text-align: center;font-size: 24px;">请等待更新</div>
</div> </div>
<div class="footer note"> <div class="footer" data-app="app">
新增记事 新增记事
</div> </div>
</body> </body>
@ -113,11 +113,13 @@
parent.style.visibility = "visible"; parent.style.visibility = "visible";
}, 100); }, 100);
}; };
$('.subPage').hide().eq(0).show();
$('.indicator').click(function(){ $('.indicator').click(function(){
$('.indicator').removeClass('act'); $('.indicator').removeClass('act');
$('.subPage').hide(); $('.subPage').hide();
$(this).addClass('act'); $(this).addClass('act');
$('#'+$(this).data('app')).show() $('#'+$(this).data('app')).show();
$('.footer').attr('data-app', $(this).data('app'))
}) })
}) })
</script> </script>