2 changed files with 148 additions and 10 deletions
@ -1,17 +1,154 @@ |
|||||
<script> |
<script> |
||||
export default { |
export default { |
||||
onLaunch: function() { |
onLaunch: function() {}, |
||||
console.log('App Launch') |
onShow: function() {}, |
||||
}, |
onHide: function() {} |
||||
onShow: function() { |
|
||||
console.log('App Show') |
|
||||
}, |
|
||||
onHide: function() { |
|
||||
console.log('App Hide') |
|
||||
} |
|
||||
} |
} |
||||
</script> |
</script> |
||||
|
|
||||
<style> |
<style> |
||||
/*每个页面公共css */ |
view, |
||||
|
text, |
||||
|
h1, |
||||
|
h2, |
||||
|
h3, |
||||
|
h4, |
||||
|
h5, |
||||
|
p, |
||||
|
span, |
||||
|
a, |
||||
|
div, |
||||
|
ol, |
||||
|
ul, |
||||
|
li, |
||||
|
dl, |
||||
|
dt, |
||||
|
dd, |
||||
|
table, |
||||
|
tbody, |
||||
|
tfoot, |
||||
|
thead, |
||||
|
tr, |
||||
|
th, |
||||
|
td, |
||||
|
input, |
||||
|
textarea, |
||||
|
form { |
||||
|
margin: 0; |
||||
|
padding: 0; |
||||
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); |
||||
|
} |
||||
|
input, |
||||
|
textarea { |
||||
|
outline: none; |
||||
|
} |
||||
|
input[type="text"]{ |
||||
|
border-radius: 12rpx; |
||||
|
-webkit-appearance: none; |
||||
|
} |
||||
|
page,html,body{ |
||||
|
height: 100%; |
||||
|
margin:0 auto; |
||||
|
padding: 0; |
||||
|
background: #F2F2F2; |
||||
|
-webkit-text-size-adjust: 100%; |
||||
|
font-family: PingFangSC-Regular,sans-serif; |
||||
|
font-weight: 400; |
||||
|
height: 100%; |
||||
|
} |
||||
|
.fl { |
||||
|
float: left; |
||||
|
} |
||||
|
.fr { |
||||
|
float: right; |
||||
|
} |
||||
|
.clear:after { |
||||
|
display: block; |
||||
|
content: ''; |
||||
|
clear: both; |
||||
|
} |
||||
|
.hide { |
||||
|
display: none; |
||||
|
} |
||||
|
.hover{ |
||||
|
opacity: 0.7; |
||||
|
} |
||||
|
|
||||
|
.ft18{ |
||||
|
font-size:18rpx; |
||||
|
line-height: 18rpx; |
||||
|
} |
||||
|
.ft22{ |
||||
|
font-size:22rpx; |
||||
|
line-height: 22rpx; |
||||
|
} |
||||
|
.ft24{ |
||||
|
font-size:24rpx; |
||||
|
line-height: 24rpx; |
||||
|
} |
||||
|
.ft26{ |
||||
|
font-size:26rpx; |
||||
|
line-height: 18rpx; |
||||
|
} |
||||
|
.ft28{ |
||||
|
font-size:28rpx; |
||||
|
line-height: 28rpx; |
||||
|
} |
||||
|
.ft30{ |
||||
|
font-size:30rpx; |
||||
|
line-height: 30rpx; |
||||
|
} |
||||
|
.ft32{ |
||||
|
font-size:32rpx; |
||||
|
line-height: 32rpx; |
||||
|
} |
||||
|
.ft34{ |
||||
|
font-size:34rpx; |
||||
|
line-height: 34rpx; |
||||
|
} |
||||
|
.PfScRegular{ |
||||
|
font-family: PingFangSC-Regular, sans-serif !important; |
||||
|
font-weight: 400 !important; |
||||
|
} |
||||
|
.PfScUltralight{ |
||||
|
font-family: PingFangSC-Ultralight, sans-serif !important; |
||||
|
} |
||||
|
.PfScLight{ |
||||
|
font-family: PingFangSC-Light, sans-serif !important; |
||||
|
} |
||||
|
.PfScThin{ |
||||
|
font-family: PingFangSC-Thin, sans-serif !important; |
||||
|
} |
||||
|
.PfScMedium{ |
||||
|
font-family: PingFangSC-Medium, sans-serif !important; |
||||
|
font-weight: 500 !important; |
||||
|
} |
||||
|
.PfScSemibold{ |
||||
|
font-family: PingFangSC-Semibold, sans-serif !important; |
||||
|
font-weight: 600 !important; |
||||
|
} |
||||
|
.PfScHeavy{ |
||||
|
font-family: PingFangSC-Heavy, sans-serif !important; |
||||
|
font-weight: 800 !important; |
||||
|
} |
||||
|
.over2{ |
||||
|
overflow: hidden; |
||||
|
display: -webkit-box; |
||||
|
-webkit-line-clamp: 2; |
||||
|
-webkit-box-orient: vertical; |
||||
|
text-overflow: ellipsis; |
||||
|
} |
||||
|
.over3{ |
||||
|
-webkit-line-clamp: 3 !important; |
||||
|
} |
||||
|
.over4{ |
||||
|
-webkit-line-clamp: 4 !important; |
||||
|
} |
||||
|
.over5{ |
||||
|
-webkit-line-clamp: 5 !important; |
||||
|
} |
||||
|
.btPadding{ |
||||
|
padding-bottom: constant(safe-area-inset-bottom); |
||||
|
padding-bottom: env(safe-area-inset-bottom); |
||||
|
} |
||||
</style> |
</style> |
||||
|
After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in new issue