fix: 修复发行模式骨架屏样式错乱问题,组件样式需要写入到骨架屏文件

This commit is contained in:
苟川东 2025-04-24 10:19:51 +08:00
parent e5fa269e08
commit 4250d7c8f6
2 changed files with 129 additions and 0 deletions

View File

@ -145,9 +145,73 @@
</view>
</template>
<style lang="scss" scoped>
@import '../../components/me-icon/me-icon.css';
@font-face {
font-family: me-icon;
src: url('../../components/me-icon/me-icon.ttf');
}
.ctr {
padding: 0 32rpx;
box-sizing: border-box;
.btn-container {
.icon {
margin-right: 8rpx;
}
.btn {
width: 100%;
height: 96rpx;
border-radius: 16rpx;
font-size: 30rpx;
line-height: 112rpx;
text-align: center;
.text {
height: 96rpx;
line-height: 96rpx;
}
}
.btn-active {
color: #FFFFFF;
}
.btn-default {
color: var(--descriptionColor);
}
.wireframe-btn {
.btn {
border: 1px solid var(--contentBgColor);
box-sizing: border-box;
}
}
}
.me-icon {
font-family: me-icon;
text-decoration: none;
text-align: center;
}
.me-top {
.capsule {
.icon-ctr {
width: 60rpx;
height: 60rpx;
border: 1px solid #E9F1FE;
border-radius: 50%;
position: absolute;
left: 0;
.icon {
width: 80%;
height: 80%;
border-radius: 50%;
}
}
.title {
font-weight: 500;
font-size: 32rpx;
color: var(--titleColor);
}
}
}
.fixed-top {
position: fixed;
top: 0;

View File

@ -183,9 +183,74 @@
</template>
<style lang="scss" scoped>
@import '../../components/me-icon/me-icon.css';
@font-face {
font-family: me-icon;
src: url('../../components/me-icon/me-icon.ttf');
}
.ctr {
padding: 0 32rpx;
box-sizing: border-box;
.btn-container {
.icon {
margin-right: 8rpx;
}
.btn {
width: 100%;
height: 96rpx;
border-radius: 16rpx;
font-size: 30rpx;
line-height: 112rpx;
text-align: center;
.text {
height: 96rpx;
line-height: 96rpx;
}
}
.btn-active {
color: #FFFFFF;
}
.btn-default {
color: var(--descriptionColor);
}
.wireframe-btn {
.btn {
border: 1px solid var(--contentBgColor);
box-sizing: border-box;
}
}
}
.me-icon {
font-family: me-icon;
text-decoration: none;
text-align: center;
}
.me-top {
.capsule {
.icon-ctr {
width: 60rpx;
height: 60rpx;
border: 1px solid #E9F1FE;
border-radius: 50%;
position: absolute;
left: 0;
.icon {
width: 80%;
height: 80%;
border-radius: 50%;
}
}
.title {
font-weight: 500;
font-size: 32rpx;
color: var(--titleColor);
}
}
}
.fixed-top {
position: fixed;
top: 0;