Files
BlockChainH5/App.vue
2021-10-09 17:29:14 +08:00

37 lines
915 B
Vue

<script>
export default {
onLaunch: function() {
// if (typeof WeixinJSBridge == 'object' && typeof WeixinJSBridge.invoke == 'function') {
// handleFontSize();
// } else {
// document.addEventListener('WeixinJSBridgeReady', handleFontSize, false);
// }
// function handleFontSize() {
// // 设置网页字体为默认大小
// WeixinJSBridge.invoke('setFontSizeCallback', { fontSize: 0 });
// // 重写设置网页字体大小的事件
// WeixinJSBridge.on('menu:setfont', function() {
// WeixinJSBridge.invoke('setFontSizeCallback', { fontSize: 0 });
// });
// }
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
page{
background: #F5F5F5;
-webkit-text-size-adjust: 100% !important;
}
</style>
<style lang="scss">
@import "uview-ui/index.scss";
</style>