You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
555 B
28 lines
555 B
<script> |
|
export default { |
|
onLaunch: function() { |
|
console.log('App Launch') |
|
// 判断是否是平板 |
|
// uni.getSystemInfo({ |
|
// success: (res)=>{ |
|
// console.log("屏幕尺寸:", res.windowWidth, res.windowHeight) |
|
// if(res.windowWidth > 500){ |
|
// Vue.prototype.pad = true |
|
// }else{ |
|
// Vue.prototype.pad = false |
|
// } |
|
// } |
|
// }); |
|
}, |
|
onShow: function() { |
|
console.log('App Show') |
|
}, |
|
onHide: function() { |
|
console.log('App Hide') |
|
} |
|
} |
|
</script> |
|
|
|
<style> |
|
/*每个页面公共css */ |
|
</style>
|
|
|