style: 购物车、我的页面ui

This commit is contained in:
2026-06-02 14:00:17 +08:00
parent 1fe0a6351c
commit f83068a3fc
12 changed files with 274 additions and 82 deletions
+32 -19
View File
@@ -4,14 +4,14 @@
<slot name="top"></slot>
</view>
<view
class="ss-order-card-warp ss-flex ss-col-stretch ss-row-between"
class="ss-order-card-warp b_fff ss-flex ss-col-stretch ss-row-between"
:style="[{ borderRadius: radius + 'rpx', marginBottom: marginBottom + 'rpx' }]"
>
<view class="img-box ss-m-r-24">
<image class="order-img" :src="sheep.$url.cdn(img)" mode="aspectFill"></image>
</view>
<view
class="box-right ss-flex-col ss-row-between"
class="box-right p-y-20 ss-flex-col ss-row-between"
:style="[{ width: titleWidth ? titleWidth + 'rpx' : '' }]"
>
<view>
@@ -22,9 +22,9 @@
<view class="groupon-box">
<slot name="groupon"></slot>
</view>
<view class="ss-flex">
<view class="ss-flex ss-col-center">
<view class="" :style="[{ color: '#EE0A24' }]" v-if="price && Number(price) > 0">
<view class="price-row ss-flex ss-col-center ss-row-between">
<view class="price-left ss-flex ss-col-center">
<view class="" :style="[{ color: 'var(--money)' }]" v-if="price && Number(price) > 0">
<span class="f500" style="font-size: 24rpx">¥</span>
<span class="priceNum">{{ fen2yuan(price) }}</span>
</view>
@@ -39,9 +39,9 @@
<view v-if="num" class="total-text ss-flex ss-col-center">x {{ num }}</view>
<slot name="priceSuffix"></slot>
</view>
</view>
<view class="tool-box">
<slot name="tool"></slot>
<view class="tool-box">
<slot name="tool"></slot>
</view>
</view>
<view>
<slot name="rightBottom"></slot>
@@ -127,17 +127,18 @@
margin: 0 4rpx;
}
.ss-order-card-warp {
padding: 0 16rpx;
padding: 0 16rpx 0 0;
border-radius: 30rpx;
.img-box {
width: 180rpx;
height: 180rpx;
width: 220rpx;
height: 220rpx;
border-radius: 10rpx;
overflow: hidden;
display: block;
.order-img {
width: 180rpx;
height: 180rpx;
width: 100%;
height: 100%;
}
}
@@ -146,12 +147,24 @@
// width: 500rpx;
// height: 164rpx;
position: relative;
}
.tool-box {
position: absolute;
right: 0rpx;
bottom: -10rpx;
}
.price-row {
gap: 12rpx;
}
.price-left {
flex: 1;
min-width: 0;
flex-wrap: wrap;
gap: 6rpx;
}
.tool-box {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: flex-end;
}
.title-text {
+15 -3
View File
@@ -11,7 +11,11 @@
:color="navBarColors.color"
@clickLeft="onClickLeft"
:index="props.index"
/>
>
<template #right>
<slot name="navRight" />
</template>
</cardNavbar>
<innerNavbar
v-if="navbar === 'inner'"
:title="title"
@@ -22,7 +26,11 @@
:scrollColor="navBarColors.scrollColor"
@clickLeft="onClickLeft"
:index="props.index"
/>
>
<template #right>
<slot name="navRight" />
</template>
</innerNavbar>
<transparentNavbar
v-if="navbar === 'transparent'"
:title="title"
@@ -33,7 +41,11 @@
:scrollColor="navBarColors.scrollColor"
@clickLeft="onClickLeft"
:index="props.index"
/>
>
<template #right>
<slot name="navRight" />
</template>
</transparentNavbar>
<!-- 页面内容插槽 -->
<!-- :style="{ paddingTop: paddingTop + 'px' }" -->
+3
View File
@@ -9,6 +9,9 @@
:tabbar="props.tabbar"
@onClickLeft="onClickLeft"
>
<template #navRight>
<slot name="navRight" />
</template>
<!-- <Agreement /> -->
<view class="theme-ai pages">
<view class="card1 w100">