refactor: remove font-size utility file and replace with inline text classes

Delete the src/static/scss/font-size.scss utility file, and replace all legacy `font-size-*` class usages across the codebase with inline `text-[numberpx]` styling to consolidate font size definitions and remove redundant utility code.
This commit is contained in:
duanshuwen
2026-07-24 22:10:16 +08:00
parent 872a3fac18
commit 157b4f7e22
69 changed files with 255 additions and 324 deletions

View File

@@ -11,14 +11,14 @@
<image v-if="coverImage" class="w-full h-auto block" :src="coverImage" mode="widthFix" />
<view class="pt-[16px] px-[12px] pb-[24px] border-box">
<view class="text-[#171717] font-size-16 font-weight-600">{{ detailTitle }}</view>
<view class="text-[#171717] text-[16px] font-weight-600">{{ detailTitle }}</view>
<view v-if="publishTime" class="notice-time-tag flex flex-row flex-items-center mt-[16px]">
<uni-icons type="clock" size="18" color="#5A6780" />
<text class="text-[#171717] font-size-12 font-weight-600 ml-[8px]">发布时间{{ publishTime }}</text>
<text class="text-[#171717] text-[12px] font-weight-600 ml-[8px]">发布时间{{ publishTime }}</text>
</view>
<view class="mt-[20px] pt-[16px] text-[#666666] font-size-14 leading-[20px] border-top">{{ noticeContent }}
<view class="mt-[20px] pt-[16px] text-[#666666] text-[14px] leading-[20px] border-top">{{ noticeContent }}
</view>
</view>
</view>

View File

@@ -4,14 +4,14 @@
:duration="duration" :indicator-dots="false" :vertical="true">
<swiper-item v-for="item in bannerList" :key="item.entityName">
<view class="swiper-item" @click="clickItem(item)">
<text class="text-color font-size-12 font-[600]">
<text class="text-color text-[12px] font-[600]">
{{ item.entityName }}
</text>
<view class="notice-footer">
<text class="text-color font-size-10 font-[500]">
<text class="text-color text-[10px] font-[500]">
发布时间{{ item.effectiveStartTime }}
</text>
<text class="text-color font-size-10 font-[500] underline-text">
<text class="text-color text-[10px] font-[500] underline-text">
详情
</text>
</view>
@@ -23,7 +23,7 @@
<view v-else-if="props.tipsMessage">
<view class="noMessage">
<text class="noMessage-text text-color font-size-12 font-[600]">
<text class="noMessage-text text-color text-[12px] font-[600]">
{{ props.tipsMessage }}
</text>
</view>