refactor: remove custom font-weight scss and update class usages

Delete the standalone font-weight.scss utility file, remove its import from the main scss index, and update all existing references to the custom font-{weight} classes to use either built-in semantic font utilities or inline functional font weight classes matching the project's utility-first styling pattern.
This commit is contained in:
duanshuwen
2026-07-24 22:05:42 +08:00
parent c125154a75
commit 872a3fac18
49 changed files with 152 additions and 181 deletions

View File

@@ -2,7 +2,7 @@
<view class="bg-white rounded-[12px] p-[12px] mb-[12px]">
<view class="flex flex-items-center flex-justify-between">
<view class="flex flex-items-center">
<text class="font-size-16 text-[#171717] leading-[24px] font-500">
<text class="font-size-16 text-[#171717] leading-[24px] font-[500]">
订单金额
</text>
<text class="amt font-size-18 font-bold text-[#ff3d60] ml-[4px]">

View File

@@ -1,12 +1,12 @@
<template>
<view class="footer bg-white flex flex-items-center flex-justify-between p-[12px]">
<button v-if="['1', '2'].includes(statusCode)"
class="left border-none bg-white rounded-[10px] flex flex-items-center flex-justify-center font-size-14 font-500 text-[#525866] mr-[12px]"
class="left border-none bg-white rounded-[10px] flex flex-items-center flex-justify-center font-size-14 font-[500] text-[#525866] mr-[12px]"
@click="emit('refund', orderData)">
申请退款
</button>
<button :class="[
'right border-none rounded-[10px] flex flex-full flex-items-center flex-justify-center font-size-14 font-500 bg-[#0CCD58]',
'right border-none rounded-[10px] flex flex-full flex-items-center flex-justify-center font-size-14 font-[500] bg-[#0CCD58]',
{
'bg-[#ff3d60]': statusCode === '0',
'text-white': ['1', '2', '3', '4', '5', '6'].includes(statusCode),

View File

@@ -3,7 +3,7 @@
<!-- 酒店类型入住离店日期部分 -->
<DateRangeSection v-if="orderData.orderType == 0" :selectedDate="selectedDate" />
<view class="font-size-16 font-500 text-[#000000] leading-[24px] ellipsis-1">
<view class="font-size-16 font-[500] text-[#000000] leading-[24px] ellipsis-1">
{{ orderData.commodityName }}
</view>
@@ -21,7 +21,7 @@
</view>
<view v-if="orderType != 0" class="border-box bg-white p-[12px] rounded-[12px] mb-[12px]">
<view class="font-size-16 font-500 text-[#000000] leading-[24px] ellipsis-1 mb-[8px]">
<view class="font-size-16 font-[500] text-[#000000] leading-[24px] ellipsis-1 mb-[8px]">
{{ orderData.commodityName }}
</view>
@@ -31,7 +31,7 @@
</view>
<view v-if="orderData.orderStatus === '0'"
class="border-box border-top pt-[12px] font-size-14 font-500 text-[#171717] mt-[12px]">[电子凭证]直接验证使用</view>
class="border-box border-top pt-[12px] font-size-14 font-[500] text-[#171717] mt-[12px]">[电子凭证]直接验证使用</view>
</view>
</template>

View File

@@ -15,7 +15,7 @@
<view class="flex w-full flex-row flex-items-center flex-justify-between py-[4px]">
<view>
<view class="font-size-16 font-500 text-[#000000] leading-[24px] ellipsis-1">
<view class="font-size-16 font-[500] text-[#000000] leading-[24px] ellipsis-1">
{{ selectedVoucher.name }}
</view>
</view>

View File

@@ -1,5 +1,5 @@
<template>
<view class="border-box font-size-24 text-[#171717] leading-[32px] font-500 pt-[12px] pb-[12px]">
<view class="border-box font-size-24 text-[#171717] leading-[32px] font-[500] pt-[12px] pb-[12px]">
{{ currentStatusText }}
</view>
</template>

View File

@@ -1,6 +1,6 @@
<template>
<view class="bg-white rounded-[12px] px-[12px] pt-[12px] mb-[12px]">
<text class="font-size-16 text-[#171717] leading-[24px] font-500">
<text class="font-size-16 text-[#171717] leading-[24px] font-[500]">
核销凭证列表
</text>