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.

82 lines
1.7 KiB

<script>
export default {
onLaunch: function() {
console.log('App Launch')
// uni.getSystemInfo({
// success: function(e) {
// // #ifndef MP
// Vue.prototype.StatusBar = e.statusBarHeight;
// if (e.platform == 'android') {
// Vue.prototype.CustomBar = e.statusBarHeight + 50;
// } else {
// Vue.prototype.CustomBar = e.statusBarHeight + 45;
// };
// // #endif
// // #ifdef MP-WEIXIN
// Vue.prototype.StatusBar = e.statusBarHeight;
// let custom = wx.getMenuButtonBoundingClientRect();
// Vue.prototype.Custom = custom;
// Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
// // #endif
// // #ifdef MP-ALIPAY
// Vue.prototype.StatusBar = e.statusBarHeight;
// Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
// // #endif
// }
// })
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
/*每个页面公共css */
@import "colorui/main.css";
@import "colorui/icon.css";
@import "uview-ui/index.scss";
@import "common/iconfont.css";
page {
background-color: #F5F5F5;
font-size: 30rpx;
}
/* 全局公共样式类 */
.text-hidden {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.two-line {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.clear {
overflow: hidden;
}
.bg-img {
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-color: #F5F5F5;
}
image {
display: block;
height: auto;
// background-color: #ffffff;
}
</style>