style: standardize design token classes and spacing units

Standardize styling across all components:
1. Replace legacy color utilities and hardcoded hex values with official design token classes
2. Update margin/padding/rounded corner values to use wrapped [px] syntax for consistency
3. Fix inconsistent line-height class names to use leading-[value] format
This commit is contained in:
DEV_DSW
2026-05-29 09:56:52 +08:00
parent 42f364809a
commit 2956287135
31 changed files with 108 additions and 104 deletions

View File

@@ -2,31 +2,31 @@
<div class="create-service-order">
<div class="w-full bg-white border-ff overflow-hidden rounded-20">
<div class=" order-header w-vw flex flex-items-center flex-justify-between bg-theme-color-50">
<span class="text-[18px] font-medium color-171717 text-left ml-12">
<span class="text-[18px] font-medium text-[#171717] text-left ml-12">
{{ isCallSuccess ? "服务已创建" : "呼叫服务" }}
</span>
<img class="header-icon" src="https://oss.nianxx.cn/mp/static/version_101/home/feedback.png" />
</div>
<div v-if="!isCallSuccess" class=" p-[12px]">
<div class="bg-F5F7FA flex flex-items-center p-[12px] rounded-10 text-[14px] color-171717 mb-12">
<div class="bg-F5F7FA flex flex-items-center p-[12px] rounded-10 text-[14px] text-[#171717] mb-[12px]">
<span class="font-medium line-height-22 mr-20">所在位置</span>
<input placeholder="请填写所在位置" v-model="roomId" />
</div>
<div class="bg-F5F7FA flex flex-items-center p-[12px] rounded-10 text-[14px] color-171717 mb-12">
<div class="bg-F5F7FA flex flex-items-center p-[12px] rounded-10 text-[14px] text-[#171717] mb-[12px]">
<span class="font-medium line-height-22 mr-20">联系电话</span>
<input placeholder="请填写联系电话" v-model="contactPhone" @input="handleContactPhoneInput" />
</div>
<div class="bg-F5F7FA p-[12px] rounded-10 text-[14px] font-medium color-171717 mb-12">
<div class="font-medium line-height-22 mb-12">需求信息描述</div>
<div class="bg-F5F7FA p-[12px] rounded-10 text-[14px] font-medium text-[#171717] mb-[12px]">
<div class="font-medium line-height-22 mb-[12px]">需求信息描述</div>
<textarea class="h-80" placeholder="请输入需求信息描述" placeholder-class="text-[14px] font-400" maxlength="100"
v-model="contactText" />
</div>
<div class="bg-F5F7FA p-[12px] rounded-10 text-[14px] font-medium color-171717 mb-12">
<div class="font-medium line-height-22 mb-12">照片上传</div>
<div class="bg-F5F7FA p-[12px] rounded-10 text-[14px] font-medium text-[#171717] mb-[12px]">
<div class="font-medium line-height-22 mb-[12px]">照片上传</div>
<div class="w-80 h-80 bg-white rounded-8 overflow-hidden flex flex-items-center flex-justify-center">
<div v-if="contentImgUrl" class="w-full h-full relative inline-block">
@@ -59,7 +59,8 @@
<img v-if="contentImgUrl" class="right rounded-6" :src="contentImgUrl" mode="aspectFill" />
</div>
<div class="btn rounded-[5px]0 text-white bg-button flex flex-items-center flex-justify-center ml-12 mr-12 mb-12"
<div
class="btn rounded-[5px]0 text-white bg-button flex flex-items-center flex-justify-center ml-12 mr-12 mb-[12px]"
@click="handleCall">
{{ isCallSuccess ? "查看服务" : "立即呼叫" }}
</div>

View File

@@ -1,7 +1,7 @@
<template>
<div class="empty-container flex flex-col items-center justify-center">
<img class="empty-image" :src="emptyIcon" mode="aspectFit" />
<span class="text-[12px] text-center color-99A0AE mt-8">
<span class="text-[12px] text-center text-ink-400 mt-8">
{{ statusText }}
</span>
</div>

View File

@@ -1,19 +1,19 @@
<template>
<div class=" flex flex-items-center flex-justify-between mb-12">
<div class=" flex flex-items-center flex-justify-between mb-[12px]">
<div class="left flex flex-items-center">
<span class="text-[12px] color-99A0AE mr-[4px]">入住</span>
<span class="text-[12px] color-171717 mr-16">
<span class="text-[12px] text-ink-400 mr-[4px]">入住</span>
<span class="text-[12px] text-[#171717] mr-16">
{{ selectedDate.startDate }}
</span>
<span class="total rounded-[5px]0 flex flex-items-center text-[11px] color-43669A relative">{{
selectedDate.totalDays }}</span>
<span class="text-[12px] color-99A0AE ml-16">离店</span>
<span class="text-[12px] color-171717 ml-4">
<span class="text-[12px] text-ink-400 ml-16">离店</span>
<span class="text-[12px] text-[#171717] ml-4">
{{ selectedDate.endDate }}
</span>
</div>
<div class="flex flex-items-center" v-if="showBtn" @click="emit('click')">
<span class="text-[12px] theme-color-500 line-height-16">房间详情</span>
<span class="text-[12px] theme-color-500 leading-[16px]">房间详情</span>
<van-icon name="arrow-right" size="15" color="#99A0AE" />
</div>
</div>

View File

@@ -1,8 +1,8 @@
<template>
<uni-popup ref="popupRef" type="bottom" :safe-area="false" @maskClick="handleClose">
<div class="refund-popup bg-F5F7FA ">
<div class=" flex flex-items-center justify-between pt-12 pb-12 relative">
<div class="flex-full text-[16px] color-171717 leading-[24px] text-center">
<div class=" flex flex-items-center justify-between pt-[12px] pb-[12px] relative">
<div class="flex-full text-[16px] text-[#171717] leading-[24px] text-center">
明细详情
</div>
<!-- 关闭按钮 -->
@@ -10,13 +10,13 @@
</div>
<!-- 内容区域 -->
<div class="rounded-[12px] bg-white ml-12 mr-12 mb-40">
<div class=" border-bottom flex flex-items-center flex-justify-between pt-12 pb-12 ml-12 mr-12">
<span class="text-[16px] font-medium color-171717">在线支付</span>
<span class="text-[14px] color-171717">239</span>
<div class=" border-bottom flex flex-items-center flex-justify-between pt-[12px] pb-[12px] ml-12 mr-12">
<span class="text-[16px] font-medium text-[#171717]">在线支付</span>
<span class="text-[14px] text-[#171717]">239</span>
</div>
<div class=" flex flex-items-center flex-justify-between pt-12 pb-12 ml-12 mr-12">
<span class="text-[16px] font-medium color-171717">房费</span>
<span class="text-[14px] color-171717">239</span>
<div class=" flex flex-items-center flex-justify-between pt-[12px] pb-[12px] ml-12 mr-12">
<span class="text-[16px] font-medium text-[#171717]">房费</span>
<span class="text-[14px] text-[#171717]">239</span>
</div>
</div>
</div>

View File

@@ -2,19 +2,19 @@
<div class="create-service-order">
<div class="w-full bg-white border-ff overflow-hidden rounded-20">
<div class=" order-header w-vw flex flex-items-center flex-justify-between bg-theme-color-50">
<span class="text-[18px] font-medium color-171717 text-left ml-12">
<span class="text-[18px] font-medium text-[#171717] text-left ml-12">
{{ isCallSuccess ? "反馈已创建" : "反馈意见" }}
</span>
<img class="header-icon" src="https://oss.nianxx.cn/mp/static/version_101/home/feedback.png" />
</div>
<div v-if="!isCallSuccess" class=" p-[12px]">
<div class="bg-F5F7FA flex flex-items-center p-[12px] rounded-10 text-[14px] color-171717 mb-12">
<div class="bg-F5F7FA flex flex-items-center p-[12px] rounded-10 text-[14px] text-[#171717] mb-[12px]">
<span class="font-medium line-height-22 mr-20">联系电话</span>
<input placeholder="请填写联系电话" v-model="contactPhone" />
</div>
<div class="bg-F5F7FA p-[12px] rounded-10 text-[14px] font-medium color-171717 mb-12">
<div class="font-medium line-height-22 mb-12">意见内容</div>
<div class="bg-F5F7FA p-[12px] rounded-10 text-[14px] font-medium text-[#171717] mb-[12px]">
<div class="font-medium line-height-22 mb-[12px]">意见内容</div>
<textarea class="h-80" placeholder="请输入反馈意见" placeholder-class="text-[14px] font-400" maxlength="100"
v-model="contactText" />
</div>
@@ -34,7 +34,7 @@
</div>
</div>
<div class="footer-help flex flex-items-center pl-12 mb-12">
<div class="footer-help flex flex-items-center pl-12 mb-[12px]">
<img class="help-icon mr-[4px]" src="./images/icon_volume.png" />
<span class="text-[12px] font-medium color-FA7319">
{{ appName }}收到您的意见将第一时间为您处理!

View File

@@ -4,7 +4,7 @@
<ModuleTitle v-if="showTitle" :title="goodsData.commodityPurchaseInstruction.templateTitle" />
<div v-for="(moduleItem, index) in goodsData.commodityPurchaseInstruction
.commodityPurchaseInstructionModuleEntityList" :key="index">
<div class="flex flex-items-start flex-col pt-12 pb-12" :class="{
<div class="flex flex-items-start flex-col pt-[12px] pb-[12px]" :class="{
'border-bottom':
index <
goodsData.commodityPurchaseInstruction
@@ -13,7 +13,7 @@
}">
<div class="flex flex-items-center flex-row flex-shrink-0 mr-8">
<zn-icon :name="moduleItem.moduleIcon" size="20" color="#333"></zn-icon>
<span class="ml-4 text-[14px] color-171717 leading-[20px]">
<span class="ml-4 text-[14px] text-[#171717] leading-[20px]">
{{ moduleItem.moduleTitle }}
</span>
</div>

View File

@@ -1,8 +1,8 @@
<template>
<uni-popup ref="popupRef" type="bottom" :safe-area="false" @maskClick="handleClose">
<div class="refund-popup bg-F5F7FA ">
<div class=" flex flex-items-center justify-between pt-12 pb-12 relative">
<div class="flex-full text-[16px] color-171717 leading-[24px] text-center">
<div class=" flex flex-items-center justify-between pt-[12px] pb-[12px] relative">
<div class="flex-full text-[16px] text-[#171717] leading-[24px] text-center">
取消政策
</div>
<!-- 关闭按钮 -->
@@ -14,11 +14,11 @@
<uni-icons fontFamily="znicons" size="20" color="#333">
{{ iconsMap["zn-refund"] }}
</uni-icons>
<span class="text-[14px] font-600 color-171717 ml-8">
<span class="text-[14px] font-600 text-[#171717] ml-8">
{{ refundTitle }}
</span>
</div>
<div class="text-[14px] text-ink-600 line-height-16 mb-4" v-for="(item, index) in commodityPurchaseInstruction"
<div class="text-[14px] text-ink-600 leading-[16px] mb-4" v-for="(item, index) in commodityPurchaseInstruction"
:key="index">
{{ item }}
</div>

View File

@@ -1,7 +1,7 @@
<template>
<div class="stepper-wrapper flex flex-items-center rounded-8">
<uni-icons type="minus" size="24" color="#D1D1D1" @click="decrease" />
<text class="stepper-text text-center text-[14px] font-medium color-000 ml-4 mr-[4px]">
<text class="stepper-text text-center text-[14px] font-medium text-black ml-4 mr-[4px]">
{{ value }} {{ unit }}
</text>
<uni-icons type="plus" size="24" color="#198CFF" @click="increase" />

View File

@@ -2,7 +2,7 @@
<div class="survey-questionnaire w-vw-24">
<div class="bg-white border-ff overflow-hidden rounded-20">
<div class=" flex flex-items-center flex-justify-between bg-theme-color-50">
<span class="text-[18px] font-medium color-171717 text-left ml-12">
<span class="text-[18px] font-medium text-[#171717] text-left ml-12">
调查问卷
</span>
<img class="w-102 h-72" :src="surveyData.logoUrl" mode="widthFix" />

View File

@@ -1,6 +1,6 @@
<template>
<div class="bg-white rounded-[12px] overflow-hidden mb-12">
<div class=" text-[16px] font-medium color-000 leading-[24px] p-[12px]">
<div class="bg-white rounded-[12px] overflow-hidden mb-[12px]">
<div class=" text-[16px] font-medium text-black leading-[24px] p-[12px]">
使用日期
</div>
<div class="flex flex-items-center ">