style: 购物车、我的页面ui
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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' }" -->
|
||||
|
||||
@@ -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">
|
||||
|
||||
+9
-2
@@ -19,7 +19,7 @@
|
||||
--color10: #0e517c;
|
||||
--color11: #1675b2;
|
||||
--color12: #777777;
|
||||
--color13: #ee0a24;
|
||||
--color13: #ff5b0d;
|
||||
--color14: #26243e;
|
||||
--color15: #ff393a;
|
||||
--color16: #ffffff;
|
||||
@@ -42,7 +42,14 @@
|
||||
--color34: #333333;
|
||||
--color35: #ff2e2e;
|
||||
--color36: #969696;
|
||||
--money: #ee0a24;
|
||||
--money: #ff5b0d;
|
||||
--accent-grad-start: #fd9d72;
|
||||
--accent-grad-end: #fe5108;
|
||||
--brand-blue: #2456ec;
|
||||
--auth-grad-start: #fa8735;
|
||||
--auth-grad-end: #fe3b48;
|
||||
--wallet-grad-start: #fd9d72;
|
||||
--wallet-grad-end: #ff4e00;
|
||||
--fff: #ffffff;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ page {
|
||||
color: #ffffff;
|
||||
}
|
||||
.c_EE0A24 {
|
||||
color: #ee0a24;
|
||||
color: #ff5b0d;
|
||||
}
|
||||
.c_primary {
|
||||
color: #fa7e31;
|
||||
@@ -87,7 +87,9 @@ page {
|
||||
.c_money {
|
||||
color: var(--money);
|
||||
}
|
||||
|
||||
.b_fff {
|
||||
background-color: #fff;
|
||||
}
|
||||
.submit-btn {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
left: sticky ? 'auto' : '0px',
|
||||
top: state.fixed && !bottom ? (noNav ? val : val + sys_navBar) + 'px' : 'auto',
|
||||
bottom: insetHeight,
|
||||
zIndex: index + sheep.$zIndex.navbar,
|
||||
zIndex: resolvedZIndex,
|
||||
},
|
||||
!alway ? { opacity: state.opacityVal } : '',
|
||||
]"
|
||||
@@ -17,7 +17,7 @@
|
||||
<view
|
||||
class="ui-fixed-content"
|
||||
@tap="toTop"
|
||||
:style="[{ zIndex: index + sheep.$zIndex.navbar }]"
|
||||
:style="[{ zIndex: resolvedZIndex }]"
|
||||
>
|
||||
<slot></slot>
|
||||
<view
|
||||
@@ -31,7 +31,7 @@
|
||||
class="ui-fixed-bg"
|
||||
:class="[ui, bg]"
|
||||
:style="[
|
||||
{ zIndex: index + sheep.$zIndex.navbar - 1 },
|
||||
{ zIndex: resolvedZIndex - 1 },
|
||||
bgStyles,
|
||||
opacity ? { opacity: state.opacityVal } : '',
|
||||
]"
|
||||
@@ -134,9 +134,19 @@
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
zIndex: {
|
||||
type: [Number, String],
|
||||
default: null,
|
||||
},
|
||||
});
|
||||
|
||||
state.fixed = !unref(props.sticky);
|
||||
const resolvedZIndex = computed(() => {
|
||||
if (props.zIndex !== null && props.zIndex !== undefined && props.zIndex !== '') {
|
||||
return Number(props.zIndex);
|
||||
}
|
||||
return unref(props.index) + sheep.$zIndex.navbar;
|
||||
});
|
||||
onPageScroll((e) => {
|
||||
let top = e.scrollTop;
|
||||
state.scrollTop = top;
|
||||
|
||||
Reference in New Issue
Block a user