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:
@@ -2,7 +2,7 @@
|
||||
<view class="bg-[#f5f7fa] flex flex-col h-screen overflow-hidden">
|
||||
<TopNavBar title="房间相册" backgroundColor="transparent" />
|
||||
<view class="p-[8px]">
|
||||
<text class="ml-[4px] font-size-18 text-[#171717] font-[500]">全部({{ albumList.length }})</text>
|
||||
<text class="ml-[4px] text-[18px] text-[#171717] font-[500]">全部({{ albumList.length }})</text>
|
||||
</view>
|
||||
|
||||
<scroll-view scroll-y class="scroll-container overflow-auto">
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
<uni-icons fontFamily="znicons" size="20" color="#171717">
|
||||
{{ zniconsMap[moduleItem.icon] }}
|
||||
</uni-icons>
|
||||
<text class="ml-[4px] font-size-12 text-[#171717] leading-[20px]">
|
||||
<text class="ml-[4px] text-[12px] text-[#171717] leading-[20px]">
|
||||
{{ moduleItem.title }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="border-box flex flex-col flex-items-start mt-[4px] pb-[12px]">
|
||||
<text class="font-size-12 text-[#525866] leading-[20px] mb-[4px]" v-for="(text, index) in moduleItem.desc"
|
||||
<text class="text-[12px] text-[#525866] leading-[20px] mb-[4px]" v-for="(text, index) in moduleItem.desc"
|
||||
:key="index">
|
||||
{{ text }}
|
||||
</text>
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
<ModuleTitle v-if="showTitle" title="套餐包含内容" />
|
||||
<view class="flex flex-items-start flex-col" v-for="(item, index) in goodsData.commodityPackageConfig" :key="index">
|
||||
<view class="title-row py-[4px] ml-[4px]">
|
||||
<text class="left font-size-14 text-[#171717]">{{ item.name }}</text>
|
||||
<text class="left text-[14px] text-[#171717]">{{ item.name }}</text>
|
||||
<view class="sep" aria-hidden="true"></view>
|
||||
<text class="right font-size-14 text-[#171717]">{{ item.count }}{{ item.unit }}</text>
|
||||
<text class="right text-[14px] text-[#171717]">{{ item.count }}{{ item.unit }}</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
@@ -35,13 +35,13 @@
|
||||
|
||||
<!-- 立即抢购 -->
|
||||
<view class="footer border-top">
|
||||
<view class="amt font-size-20 font-bold text-[#ff3d60] line-height-28 flex flex-items-center mr-[8px]">
|
||||
<view class="amt text-[20px] font-bold text-[#ff3d60] line-height-28 flex flex-items-center mr-[8px]">
|
||||
{{ calculatedTotalPrice }}
|
||||
</view>
|
||||
|
||||
<view class="btn rounded-[10px] flex flex-items-center ml-auto pl-[8px]" @click="navigateToPay(goodsData)">
|
||||
<image class="icon" src="https://oss.nianxx.cn/mp/static/version_101/common/btn.png" />
|
||||
<text class="font-size-16 font-[500] text-white">立即预定</text>
|
||||
<text class="text-[16px] font-[500] text-white">立即预定</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user