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

@@ -3,17 +3,17 @@
<!-- 卡片头部 -->
<view class="border-box flex flex-items-center pb-[12px]">
<image class="icon mr-[4px]" src="https://oss.nianxx.cn/mp/static/version_101/service/service_icon.png" />
<text class="font-size-14 text-[#525866] leading-[20px]">工单</text>
<text class="font-size-12 text-[#525866] leading-[20px] ml-auto">{{
<text class="text-[14px] text-[#525866] leading-[20px]">工单</text>
<text class="text-[12px] text-[#525866] leading-[20px] ml-auto">{{
isCancelWork ? "已取消" : workOrderStatus(orderData.workOrderStatus)
}}</text>
</view>
<!-- 卡片内容 -->
<view class="border-box card-content flex flex-items-center pb-[12px]">
<view class="border-box left flex-full pr-[20px]">
<view class="font-size-12 text-[#525866] leading-[20px] mb-[4px]">所在位置{{ orderData.roomNo }}</view>
<view class="font-size-12 text-[#525866] leading-[20px] mb-[4px]">联系方式: {{ orderData.userPhone }}</view>
<view class="font-size-12 text-[#525866] leading-[20px] ellipsis-2">需求描述: {{ orderData.content }}</view>
<view class="text-[12px] text-[#525866] leading-[20px] mb-[4px]">所在位置{{ orderData.roomNo }}</view>
<view class="text-[12px] text-[#525866] leading-[20px] mb-[4px]">联系方式: {{ orderData.userPhone }}</view>
<view class="text-[12px] text-[#525866] leading-[20px] ellipsis-2">需求描述: {{ orderData.content }}</view>
</view>
<image v-if="orderData.contentImgUrl" class="right rounded-[6px]" :src="orderData.contentImgUrl"
@@ -23,9 +23,9 @@
<!-- 服务人员 -->
<view v-if="orderData.processMemberName && orderData.processMemberPhone"
class="service-user p-[8px] flex flex-items-center flex-justify-between mb-[12px]">
<view class="font-size-12 leading-[16px]">服务人员{{ orderData.processMemberName }}</view>
<view class="text-[12px] leading-[16px]">服务人员{{ orderData.processMemberName }}</view>
<uni-icons class="ml-auto mr-[4px]" type="phone-filled" size="14" color="#436799" />
<text class="font-size-12 leading-[16px]" @click="callService">拨打电话</text>
<text class="text-[12px] leading-[16px]" @click="callService">拨打电话</text>
</view>
<!-- 取消操作 -->
@@ -34,7 +34,7 @@
orderData.workOrderStatus !== '2' &&
orderData.workOrderStatus !== '3'
" class="flex flex-items-center flex-justify-between">
<text class="cancel border rounded-[6px] font-size-12 leading-[16px] text-[#525866] ml-auto"
<text class="cancel border rounded-[6px] text-[12px] leading-[16px] text-[#525866] ml-auto"
@click="cancelCall">取消呼叫</text>
</view>
</view>