63 lines
1.5 KiB
Plaintext
63 lines
1.5 KiB
Plaintext
<script lang="uts">
|
||
export default {
|
||
onLaunch: function () {
|
||
// #ifdef APP||WEB
|
||
uni.loadFontFace({
|
||
global: true,
|
||
family: 'remixicon',
|
||
source: "url('/static/tmui4xLibs/static/remixicon.ttf')",
|
||
success() {
|
||
uni.setStorageSync("loadedFontBytmx", "true")
|
||
},
|
||
fail(_error : any) {
|
||
uni.setStorageSync("loadedFontBytmx", "")
|
||
},
|
||
})
|
||
// #endif
|
||
},
|
||
onShow: function () { },
|
||
onHide: function () { },
|
||
onLastPageBackPress: function () { },
|
||
onExit: function () { },
|
||
}
|
||
</script>
|
||
|
||
<style>
|
||
/* rpx单位 */
|
||
/* @import url(./uni_modules/tmx-ui/scss/uvue.min.css); */
|
||
/* px单位84kb */
|
||
@import url(./uni_modules/tmx-ui/scss/uvuePx.min.css);
|
||
/* 医院救援平台设计系统 · 全局样式 */
|
||
@import url(./common/styles/hr-design.css);
|
||
|
||
/* 字体图标,仅小程序端引用 */
|
||
/* #ifdef MP-WEIXIN */
|
||
@import url(./uni_modules/tmx-ui/scss/remixicon.min.css);
|
||
/* #endif */
|
||
|
||
/*
|
||
统一页面底色
|
||
⚠ App 端(uvue)CSS 只允许 class 选择器,不支持 page / body 元素选择器:
|
||
这里不再写 `page, body { background-color: #F3F4F6; }`,
|
||
页面底色统一由各页根节点承担 —— 组件页用 hr-page 的 page-bg,
|
||
自绘页直接写 `style="background-color:#F3F4F6"`。
|
||
*/
|
||
|
||
/* #ifdef WEB */
|
||
body::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
|
||
div::-webkit-scrollbar {
|
||
width: 10rpx;
|
||
height: 10rpx;
|
||
border-radius: 20rpx;
|
||
}
|
||
|
||
div::-webkit-scrollbar-thumb {
|
||
background-color: rgba(0, 0, 0, 0.2);
|
||
border-radius: 20rpx;
|
||
}
|
||
/* #endif */
|
||
</style>
|