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.
111 lines
2.5 KiB
111 lines
2.5 KiB
<script> |
|
export default { |
|
onLaunch: function() { |
|
console.log('App Launch') |
|
// 假设你想隐藏索引为1的tabBar页签 |
|
// uni.setTabBarItem({ |
|
// index: 1, |
|
// visible:false, |
|
// success: function () { |
|
// console.log('TabBar item hidden successfully'); |
|
// }, |
|
// fail: function (err) { |
|
// console.error('Failed to hide TabBar item:', err); |
|
// } |
|
// }); |
|
|
|
uni.hideTabBar() |
|
}, |
|
onShow: function() { |
|
console.log('App Show') |
|
}, |
|
onHide: function() { |
|
console.log('App Hide') |
|
} |
|
} |
|
</script> |
|
|
|
<style lang="scss"> |
|
@font-face { |
|
font-family: 'Tensentype-MeiHeiJ-Bold'; |
|
/* 定义字体名称 */ |
|
src: url('~@/static/fonts/Tensentype-MeiHeiJ-Bold.TTF') format('truetype'); |
|
/* 指定字体文件路径 */ |
|
} |
|
|
|
@font-face { |
|
font-family: 'SOURCEHANSANSCN-REGULAR'; |
|
/* 定义字体名称 */ |
|
src: url('~@/static/fonts/SOURCEHANSANSCN-REGULAR.TTF') format('truetype'); |
|
/* 指定字体文件路径 */ |
|
} |
|
|
|
@font-face { |
|
font-family: 'SOURCEHANSANSCN-MEDIUM'; |
|
/* 定义字体名称 */ |
|
src: url('~@/static/fonts/SOURCEHANSANSCN-MEDIUM.TTF') format('truetype'); |
|
/* 指定字体文件路径 */ |
|
} |
|
|
|
@font-face { |
|
font-family: 'SOURCEHANSANSCN-BOLD'; |
|
/* 定义字体名称 */ |
|
src: url('~@/static/fonts/SOURCEHANSANSCN-BOLD.TTF') format('truetype'); |
|
/* 指定字体文件路径 */ |
|
} |
|
|
|
@font-face { |
|
font-family: 'Alimama_ShuHeiTi_Bold'; |
|
/* 定义字体名称 */ |
|
src: url('~@/static/fonts/Alimama_ShuHeiTi_Bold.ttf') format('truetype'); |
|
/* 指定字体文件路径 */ |
|
} |
|
|
|
@font-face { |
|
font-family: 'MFLiHei_Noncommercial-Regular'; |
|
/* 定义字体名称 */ |
|
src: url('~@/static/fonts/MFLiHei_Noncommercial-Regular.ttf') format('truetype'); |
|
/* 指定字体文件路径 */ |
|
} |
|
|
|
uni-toast { |
|
z-index: 99999999999999999 !important; |
|
} |
|
|
|
.uni-picker-container { |
|
z-index: 99999 !important; |
|
} |
|
|
|
/* placeholder的样式 */ |
|
.uni-input-placeholder { |
|
color: #B4BAC9 !important; |
|
} |
|
|
|
.uni-textarea-placeholder { |
|
color: #B4BAC9 !important; |
|
} |
|
|
|
// |
|
/*每个页面公共css */ |
|
@import "./common/css/css.css"; |
|
@import "./common/css/global.scss"; |
|
/*每个页面公共css */ |
|
@import "@/uni_modules/uview-ui/index.scss"; |
|
|
|
// page { |
|
// background: #F6F8FA; |
|
// } |
|
page { |
|
background: transparent; |
|
} |
|
|
|
|
|
.custom_bg { |
|
background: linear-gradient(135deg, #5282CC 0%, #1246B3 100%); |
|
color: #ffffff; |
|
} |
|
|
|
.uni-system-preview-image { |
|
z-index: 1000000 !important; |
|
} |
|
</style> |