style: remove redundant box-border utility classes

Remove the unnecessary box-border CSS class from component template class lists across the codebase, cleaning up styling without altering any component functionality.
This commit is contained in:
duanshuwen
2026-07-24 16:50:53 +08:00
parent cb7054cd90
commit e174e3b726
45 changed files with 75 additions and 80 deletions

View File

@@ -1,5 +1,5 @@
<template>
<view class="bg-white box-border rounded-12 p-[12px] mb-12">
<view class="bg-white rounded-12 p-[12px] mb-12">
<view class="flex flex-items-center flex-justify-between">
<view class="flex flex-items-center">
<text class="font-size-16 color-171717 line-height-24 font-500">

View File

@@ -1,7 +1,7 @@
<template>
<view class="footer bg-white box-border flex flex-items-center flex-justify-between p-[12px]">
<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 box-border bg-white rounded-10 flex flex-items-center flex-justify-center font-size-14 font-500 color-525866 mr-12"
class="left border-none bg-white rounded-10 flex flex-items-center flex-justify-center font-size-14 font-500 color-525866 mr-12"
@click="emit('refund', orderData)">
申请退款
</button>

View File

@@ -13,7 +13,7 @@
<!-- 权益部分 -->
<view class="border-box flex flex-items-center pt-[12px]">
<text class="bg-[#f7f7f7] box-border rounded-4 font-size-11 color-525866 mr-4 pt-[4px] pb-[4px] pl-[6px] pr-[6px]"
<text class="bg-[#f7f7f7] rounded-4 font-size-11 color-525866 mr-4 pt-[4px] pb-[4px] pl-[6px] pr-[6px]"
v-for="(item, index) in commodityFacilityList" :key="index">
{{ item }}
</text>

View File

@@ -1,5 +1,5 @@
<template>
<view class="card-content box-border pt-[12px]">
<view class="card-content pt-[12px]">
<view class="flex items-center justify-between">
<view class="left flex-full font-size-14 line-height-20 color-171717 mr-12">
{{ orderData.commodityName }}

View File

@@ -1,5 +1,5 @@
<template>
<view class="order-card bg-white box-border p-[12px] rounded-12 m-12" @click.stop="handleCardClick">
<view class="order-card bg-white p-[12px] rounded-12 m-12" @click.stop="handleCardClick">
<!-- 卡片头部 -->
<view class="card-header flex items-center">
<view class="status-info flex items-center flex-full">
@@ -21,7 +21,7 @@
<view v-if="orderData.orderStatus === '0'" class="text-right">
<button
class="go-pay box-border border-none font-size-14 color-white bg-[#ff3d60] rounded-5 inline-block text-center line-height-30"
class="go-pay border-none font-size-14 color-white bg-[#ff3d60] rounded-5 inline-block text-center line-height-30"
@click.stop="handleCardClick">
去支付
</button>

View File

@@ -1,5 +1,5 @@
<template>
<view class="bg-white box-border rounded-10 p-[12px]">
<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>

View File

@@ -10,8 +10,7 @@
<uni-icons class="close absolute" type="close" size="20" color="#CACFD8" @click="handleClose" />
</view>
<view
class="bg-white box-border rounded-12 flex flex-col flex-items-center flex-justify-center p-[12px] mb-12 mx-12">
<view class="bg-white rounded-12 flex flex-col flex-items-center flex-justify-center p-[12px] mb-12 mx-12">
<view class="flex w-full flex-row flex-items-center flex-justify-between py-[4px]">
<view>
@@ -31,8 +30,8 @@
</view>
<view
class="flex flex-col w-full flex-items-center flex-justify-center box-border rounded-8 border pt-[16px] pb-[32px] mt-12">
<view class="flex flex-row flex-justify-between box-border w-full px-[12px]">
class="flex flex-col w-full flex-items-center flex-justify-center rounded-8 border pt-[16px] pb-[32px] mt-12">
<view class="flex flex-row flex-justify-between w-full px-[12px]">
<view class="bg-[#F0F8F3] theme-color-500 font-size-14 px-[12px] line-height-24 rounded-12">凭证{{
selectedVoucherList.length > 1 ? currentVoucherIndex + 1 : '' }}</view>
<view class="text-color-500 font-size-14 px-[12px] line-height-24 rounded-12">此码仅可核销{{ selectedVoucher.count

View File

@@ -1,5 +1,5 @@
<template>
<view class="bg-white box-border rounded-10 p-[12px] mb-12" v-if="hasConsumerData">
<view class="bg-white rounded-10 p-[12px] mb-12" v-if="hasConsumerData">
<view v-for="(item, index) in consumerList" :key="index">
<view class="flex mb-8 font-size-12">
<text class="w-60 color-99A0AE">住客姓名</text>

View File

@@ -1,5 +1,5 @@
<template>
<view class="bg-white box-border rounded-12 px-[12px] pt-[12px] mb-12">
<view class="bg-white rounded-12 px-[12px] pt-[12px] mb-12">
<text class="font-size-16 color-171717 line-height-24 font-500">
核销凭证列表
</text>

View File

@@ -2,7 +2,7 @@
<view class="order-detail-page flex flex-col h-screen">
<TopNavBar titleAlign="center" :background="$theme - color - 100" title="订单详情" />
<view class="order-detail-wrapper box-border flex-full overflow-hidden scroll-y">
<view class="order-detail-wrapper flex-full overflow-hidden scroll-y">
<OrderStatusInfo :orderData="orderData" />
<VoucherList v-if="orderData.orderType != 0 && orderData.orderStatus === '2'" :orderData="orderData"