lcny-admin-mobile-vue/src/App.vue

285 lines
4.9 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 lang="scss">
@import "uview-ui/index.scss";
/*每个页面公共css */
.bg-page{
width: 100%;
min-height: 100%;
background-color: #eeeeef;
position: absolute;
left: 0;
top: 0;
}
.mt24{
margin-top: 24rpx;
}
.mt20{
margin-top: 20rpx;
}
.mr20{
margin-right: 20rpx;
}
.mr30{
margin-right: 30rpx;
}
.pdlr30{
padding-left: 30rpx;
padding-right: 30rpx;
}
.pdlr18{
padding-left: 18rpx;
padding-right: 18rpx;
}
.pdl40{
padding-left: 40rpx;
}
.pdlr12{
padding-left: 12rpx;
padding-right: 12rpx;
}
.flex-column{
display: flex;
flex-direction: column;
}
.flex-row{
display: flex;
flex-direction: row;
}
.flex-1{
flex: 1;
}
.clamp {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: block;
}
.clamp-2 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.cu-btn{
height: 60rpx;
flex-shrink: 0;
font-size: 24rpx;
position: relative;
border: 0rpx;
display: inline-flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
padding: 0 30rpx;
line-height: 1;
text-align: center;
text-decoration: none;
overflow: visible;
margin-left: initial;
transform: translate(0rpx, 0rpx);
margin-right: initial;
}
.cu-btn.round{
border-radius: 1000rpx;
border: none;
}
.cu-btn::after {
display: none;
}
.cu-btn[class*="bg-"]::after {
display: none;
}
.cu-btn.round[class*="line"]::after {
border-radius: 1000rpx;
}
.cu-btn.button-hover {
transform: translate(1rpx, 1rpx);
}
.cu-btn[class*="line"] {
background-color: transparent;
}
.handle-btn .u-btn.u-btn--warning--disabled{
color: #ffffff !important;
border-color: #C0C0C0 !important;
background-color: #C0C0C0 !important;
}
.cu-btn[class*="line"]::after {
content: " ";
display: block;
width: 200%;
height: 200%;
position: absolute;
top: 0;
left: 0;
border: 1rpx solid currentColor;
transform: scale(0.5);
transform-origin: 0 0;
box-sizing: border-box;
border-radius: 12rpx;
z-index: 1;
pointer-events: none;
}
.safe-area-inset-bottom{
padding-bottom: 0;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
.input-placeholder,.textarea-placeholder{
color: #c3c3c3;
}
.list_arrowR::after{
content: '';
width: 15rpx;
height: 25rpx;
position: absolute;
right: 10rpx;
top: 50%;
transform: translateY(-50%);
background: url('./static/img/my_arrow_right.png') no-repeat center;
background-size: 100%;
}
.uni-input-input:disabled{
background-color: #f8f8f8;
}
.bg_colorf8{
background-color: #f8f8f8;
}
// 顶部筛选样式
.secreen-section{
.slot-content{
padding: 30rpx;
}
.select-date{
padding: 30rpx;
display: flex;
align-items: center;
font-size: 28rpx;
margin-bottom: 40rpx;
.time_box{
display: flex;
align-items: center;
.tip_txt{
color: #ccc;
}
.delete_btn{
padding: 15rpx;
margin-left: 15rpx;
}
}
}
.quick_times{
padding: 18rpx 24rpx 24rpx 24rpx;
.tab-section{
display: flex;
flex-direction: row;
align-items: center;
overflow: hidden;
position: relative;
height: 72rpx;
background-color: rgb(238, 238, 239);
padding: 6rpx;
border-radius: 10rpx;
.tab-item{
flex: 1;
text-align: center;
font-size: 28rpx;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
color: #303133;
padding: 0 6rpx;
&.active{
font-weight: bold;
background-color: rgb(255, 255, 255);
}
}
}
}
}
// 图表标题通用
.chart_section{
.top_box{
display: flex;
align-items: center;
justify-content: space-between;
padding: 24rpx 30rpx;
margin-bottom: 20rpx;
font-size: 28rpx;
.tit{
font-size: 28rpx;
font-weight: bold;
.unit{
font-weight: 500;
margin-left: 16rpx;
font-size: 24rpx;
}
}
}
}
.u-popup-section{
height: 100%;
display: flex;
flex-direction: column;
.top_box{
height: 96rpx;
padding: 0 40rpx;
.title{
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 32rpx;
font-weight: bold;
}
}
.form_cont{
padding: 0 30rpx;
.title2{
font-size: 30rpx;
font-weight: bold;
padding: 20rpx 0;
}
.label_tit{
padding-top: 28rpx;
}
}
.label_tit{
padding: 18rpx 0;
}
.scroll-y{
flex: 1;
flex-shrink: 0;
min-height: 1px;
}
.input_unit_ibox{
padding: 0 24rpx;
}
.buttom_section{
display: flex;
padding: 40rpx 24rpx 40rpx 24rpx;
.btn{
width: 220rpx;
}
}
}
</style>