refactor: replace theme color utility classes with direct hex values
remove unused theme color background utility classes from background.scss, swap all instances of bg-theme-color-50 and bg-theme-color-500 with their corresponding hex values across vue components, and update bg-liner gradient to use direct hex colors instead of theme variables
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
申请退款
|
||||
</button>
|
||||
<button :class="[
|
||||
'right border-none rounded-10 flex flex-full flex-items-center flex-justify-center font-size-14 font-500 bg-theme-color-500',
|
||||
'right border-none rounded-10 flex flex-full flex-items-center flex-justify-center font-size-14 font-500 bg-[#0CCD58]',
|
||||
{
|
||||
'bg-[#ff3d60]': statusCode === '0',
|
||||
'color-white': ['1', '2', '3', '4', '5', '6'].includes(statusCode),
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<view class="bg-[#f5f7fa] text-color-600 font-size-12 p-4 rounded-4 mr-4">总计{{ selectedVoucher.count }}{{
|
||||
selectedVoucher.unit }}
|
||||
</view>
|
||||
<view class="bg-theme-color-50 theme-color-500 font-size-12 p-4 rounded-4">剩{{ selectedVoucher.count -
|
||||
<view class="bg-[#F0F8F3] theme-color-500 font-size-12 p-4 rounded-4">剩{{ selectedVoucher.count -
|
||||
selectedVoucher.writeOffCount }}{{ selectedVoucher.unit }}可用</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -31,7 +31,7 @@
|
||||
<view
|
||||
class="flex flex-col w-full flex-items-center flex-justify-center border-box rounded-8 border pt-16 pb-32 mt-12">
|
||||
<view class="flex flex-row flex-justify-between border-box w-full px-12">
|
||||
<view class="bg-theme-color-50 theme-color-500 font-size-14 px-12 line-height-24 rounded-12">凭证{{
|
||||
<view class="bg-[#F0F8F3] theme-color-500 font-size-14 px-12 line-height-24 rounded-12">凭证{{
|
||||
selectedVoucherList.length > 1 ? currentVoucherIndex + 1 : '' }}</view>
|
||||
<view class="text-color-500 font-size-14 px-12 line-height-24 rounded-12">此码仅可核销{{ selectedVoucher.count -
|
||||
selectedVoucher.writeOffCount }}份</view>
|
||||
@@ -43,8 +43,7 @@
|
||||
:onval="true" />
|
||||
</view>
|
||||
|
||||
<view v-if="false"
|
||||
class="mt-20 bg-theme-color-50 theme-color-500 font-size-14 px-12 line-height-24 rounded-12">
|
||||
<view v-if="false" class="mt-20 bg-[#F0F8F3] theme-color-500 font-size-14 px-12 line-height-24 rounded-12">
|
||||
{{ selectedVoucher.name }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -12,14 +12,13 @@
|
||||
<view class="flex flex-row mt-8">
|
||||
<view class="bg-[#f5f7fa] text-color-600 font-size-12 p-4 rounded-4 mr-4">总计{{ item.count }}{{ item.unit }}
|
||||
</view>
|
||||
<view class="bg-theme-color-50 theme-color-500 font-size-12 p-4 rounded-4">剩{{ item.count - item.writeOffCount
|
||||
<view class="bg-[#F0F8F3] theme-color-500 font-size-12 p-4 rounded-4">剩{{ item.count - item.writeOffCount
|
||||
}}{{ item.unit }}可用</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="flex flex-items-center px-14 py-8 rounded-8"
|
||||
:class="[item.packageStatus === 0 ? 'bg-theme-color-500' : 'bg-[#f5f5f5]']"
|
||||
@click="handleShowQrcode(item, index)">
|
||||
:class="[item.packageStatus === 0 ? 'bg-[#0CCD58]' : 'bg-[#f5f5f5]']" @click="handleShowQrcode(item, index)">
|
||||
<text v-if="item.packageStatus === 0" class="font-size-14 color-white">出示凭证</text>
|
||||
<text v-else class="font-size-14 text-color-300">已核销</text>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user