79 lines
1.2 KiB
Vue
79 lines
1.2 KiB
Vue
<script>
|
|
export default {
|
|
onLaunch: function() {
|
|
console.log('App Launch')
|
|
},
|
|
onShow: function() {
|
|
console.log('App Show')
|
|
},
|
|
onHide: function() {
|
|
console.log('App Hide')
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
/*每个页面公共css */
|
|
page {
|
|
background-color: #f7faff;
|
|
}
|
|
|
|
/* 文字截取 */
|
|
.nowrap {
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.nowrap-multi {
|
|
display: -webkit-box;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
|
|
/* 水平居中 */
|
|
.pack-center {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-box-pack: center;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
z-index: -1;
|
|
}
|
|
|
|
/* 页面信息提醒 */
|
|
.pages-hint {
|
|
width: 100%;
|
|
text-align: center;
|
|
color: #747788;
|
|
font-size: 28rpx;
|
|
background: white;
|
|
}
|
|
|
|
.pages-hint image {
|
|
width: 220rpx;
|
|
height: 220rpx;
|
|
}
|
|
|
|
/* 上拉加载 */
|
|
.pagesLoding{
|
|
text-align: center;
|
|
line-height: 90rpx;
|
|
color: gray;
|
|
}
|
|
|
|
.pagesLoding-icon{
|
|
width: 28rpx;
|
|
height: 28rpx;
|
|
vertical-align: middle;
|
|
margin-right: 10rpx;
|
|
margin-bottom: 3rpx;
|
|
}
|
|
</style>
|