[报单模块添加及筛选条件,及权证管理模块没有报单兼容插件]
This commit is contained in:
70
App.vue
70
App.vue
@@ -1,36 +1,44 @@
|
||||
<script>
|
||||
export default {
|
||||
onLaunch() {
|
||||
// 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() {
|
||||
console.log('App Show');
|
||||
},
|
||||
onHide() {
|
||||
console.log('App Hide');
|
||||
},
|
||||
globalData: {
|
||||
mainColor: 'white'
|
||||
}
|
||||
};
|
||||
export default {
|
||||
onLaunch() {
|
||||
//#ifdef H5
|
||||
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
|
||||
})
|
||||
})
|
||||
}
|
||||
//#endif
|
||||
},
|
||||
onShow() {
|
||||
console.log('App Show');
|
||||
},
|
||||
onHide() {
|
||||
console.log('App Hide');
|
||||
},
|
||||
globalData: {
|
||||
mainColor: 'white'
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import 'uview-ui/index.scss';
|
||||
page {
|
||||
background: #f5f5f5;
|
||||
-webkit-text-size-adjust: 100% !important;
|
||||
}
|
||||
@import 'uview-ui/index.scss';
|
||||
|
||||
page {
|
||||
background: #f5f5f5;
|
||||
-webkit-text-size-adjust: 100% !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user