refactor: migrate legacy color classes to inline tailwind text utilities
Replace all usages of legacy `.color-*` and `.text-color-*` SCSS utility classes with inline Tailwind `text-[#hexcode]` arbitrary value classes. Remove the deprecated `src/static/scss/colors.scss` file, and fix minor formatting/indentation issues across multiple component files.
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<template>
|
||||
<view class="bg-white rounded-10 p-[12px]">
|
||||
<view class="flex mb-8 font-size-12">
|
||||
<text class="w-60 color-99A0AE">订单编号</text>
|
||||
<text class="color-525866">{{ orderData.orderId }}</text>
|
||||
<text class="w-60 text-[#99a0ae]">订单编号</text>
|
||||
<text class="text-[#525866]">{{ orderData.orderId }}</text>
|
||||
</view>
|
||||
<view class="flex mb-8 font-size-12">
|
||||
<text class="w-60 color-99A0AE">下单时间</text>
|
||||
<text class="color-525866">{{ orderData.createTime }}</text>
|
||||
<text class="w-60 text-[#99a0ae]">下单时间</text>
|
||||
<text class="text-[#525866]">{{ orderData.createTime }}</text>
|
||||
</view>
|
||||
<view class="flex font-size-12">
|
||||
<text class="w-60 color-99A0AE">支付状态</text>
|
||||
<text class="w-60 text-[#99a0ae]">支付状态</text>
|
||||
<text :class="[
|
||||
{
|
||||
'color-FF3D60': statusCode === '0' || statusCode === '3',
|
||||
'text-[#ff3d60]': statusCode === '0' || statusCode === '3',
|
||||
'color-21B466': ['1', '2', '4', '5', '6'].includes(statusCode),
|
||||
},
|
||||
]">
|
||||
|
||||
Reference in New Issue
Block a user