JM-MiniApp/App.vue
2023-10-19 23:23:22 +08:00

170 lines
3.0 KiB
Vue

<script>
import uniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
/*每个页面公共css */
.page-bg-gray{
background: rgb(248, 248, 248);
}
.page-box{
/* height: 100%;
overflow: scroll; */
min-height: 100%;
}
uni-page-body,page{
height: 100%;
}
page{
font-size: 28rpx;
}
.text-ellipsis-1{ /*超出部分省略号 单行*/
overflow:hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 1;
display: -webkit-box;
-webkit-box-orient: vertical;
/* min-height: 38rpx; */
}
.icon-custom{
width: 32rpx;
height: 32rpx;
}
.small-text{
color: gray !important;
font-size: 24rpx;
font-weight: 100 !important;
}
.bold-text{
font-weight: 600;
font-size: 36rpx;
}
.margin-line{
height: 20rpx;
width: 100%;
background-color: rgb(248, 248, 248);
}
.clearCss{
opacity: 0 !important;
}
.shim{/* 垫片 */
width: 100%;
height: 140rpx;
}
.big-text{
font-size: 80rpx;
/* font-weight: 600; */
}
.red-text{
color: red;
}
.line{
height: 2rpx;
width: 100%;
background-color: #e7e7e7;
}
.num-show{
position: absolute;
width: 40rpx;
height: 40rpx;
color: white;
background: #7cc4e8;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
top: -24rpx;
right: -10rpx;
border: 2rpx solid white;
}
/* 通用卡片样式 */
.u-card{
background-color: white;
.u-card-row:last-child{
border-bottom: unset;
}
.u-card-row{
padding: 40rpx;
border-bottom: 2rpx solid #e7e7e7;
.u-card-row-btn{
color: #086EC7;
}
.u-card-row-top,.u-card-row-content{
display: flex;
align-items: center;
justify-content: space-between;
}
.u-card-row-top{
padding-bottom: 40rpx;
.u-card-left{
}
.u-card-right{
.u-card-right-btn{
color:#7cc4e8
}
}
}
.u-card-row-content{
.u-card-left{
// width: 50%;
}
.u-card-right{
// width: 50%;
display: flex;
}
}
}
}
// 弹出窗样式
.popup-content{
padding-top: 40rpx;
background-color: white;
border-radius: 20rpx 20rpx 0 0;
overflow: scroll;
}
.small-btn-css{
background: #7CC4E8;
color: white;
padding: 6rpx 40rpx;
border-radius: 40rpx;
font-size: 28rpx;
white-space: nowrap;
margin-left: 10rpx;
position: relative;
}
.cancel-btn{
display: block;
margin-top: 20rpx;
.add-btn{
background: white !important;
color: black !important;
border: 2rpx solid #7cc4e8 !important;
}
}
.invalidCss{
background-color: #767676 !important;
}
:deep(){
.uni-popup__wrapper{
bottom: -34px;
}
.popup-content{
bottom: -34px;
padding-bottom: 34px;
background-color: white;
}
}
</style>