style: 调整ai店铺商品布局、tabbar中心icon白边处理
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<view class="lineTwo size28 f500 m-b-14">
|
||||
{{ props.source === 3 || props.source === 1 ? props.data.spuName : props.data.name }}
|
||||
</view>
|
||||
<view class="flex-center m-t-14 m-b-14" v-if="props.source === 0">
|
||||
<view class="flex-center m-t-14 m-b-14" v-if="props.source === 0&&false">
|
||||
<view class="flex1 m-r-28 progressCard card1">
|
||||
<view class="progress"></view>
|
||||
<view
|
||||
@@ -33,25 +33,14 @@
|
||||
</view>
|
||||
<view class="stockText size24">存量:{{ props.data.stocks }}</view>
|
||||
</view>
|
||||
<view
|
||||
class="flex-center ju-flex-start"
|
||||
v-if="props.source === 0"
|
||||
:style="{ opacity: show ? 0 : 1 }"
|
||||
>
|
||||
<view class="size24 m-r-10">
|
||||
距离<span class="c15">本场{{ timeText }}</span
|
||||
>仅剩
|
||||
<view class="flex-row al-flex-end m-t-14" v-if="props.source === 0">
|
||||
<view class="price-stock-row w100">
|
||||
<view class="c13 size38 weight900">
|
||||
<text class="size28">¥</text
|
||||
>{{ fen2yuan(props.data.discountedPrice ? props.data.discountedPrice : props.data.price) }}
|
||||
</view>
|
||||
<!-- <text class="size20 c_999">存量:{{ props.data.stocks }}</text> -->
|
||||
</view>
|
||||
<uni-countdown
|
||||
color="#FFFFFF"
|
||||
background-color="#FF393A"
|
||||
border-color="#FF393A"
|
||||
:show-day="false"
|
||||
:hour="hour"
|
||||
:minute="minute"
|
||||
:second="second"
|
||||
@timeup="timeup"
|
||||
></uni-countdown>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-center ju-flex-start">
|
||||
@@ -83,11 +72,31 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-row ju-between">
|
||||
<view class="flex-row al-flex-end">
|
||||
<view class="flex-row ju-between footer-row">
|
||||
<view
|
||||
class="countdown-wrap"
|
||||
v-if="props.source === 0"
|
||||
:style="{ opacity: show ? 0 : 1 }"
|
||||
>
|
||||
<view class="size24 countdown-label">
|
||||
距离<text>本场{{ timeText }}</text
|
||||
>仅剩
|
||||
</view>
|
||||
<uni-countdown
|
||||
color="#FFFFFF"
|
||||
background-color="transparent"
|
||||
border-color="transparent"
|
||||
:show-day="false"
|
||||
:hour="hour"
|
||||
:minute="minute"
|
||||
:second="second"
|
||||
@timeup="timeup"
|
||||
></uni-countdown>
|
||||
</view>
|
||||
<view class="flex-row al-flex-end" v-else>
|
||||
<view class="c13 size28 weight900"
|
||||
>¥
|
||||
<span class="size38" v-if="props.source == 1">{{ fen2yuan(props.data.price) }}</span>
|
||||
<text class="size38" v-if="props.source == 1">{{ fen2yuan(props.data.price) }}</text>
|
||||
<span class="size38" v-else-if="props.source == 3">{{
|
||||
fen2yuan(
|
||||
props.data.discountedTotalPrice
|
||||
@@ -116,7 +125,7 @@
|
||||
}}</view
|
||||
>
|
||||
</view>
|
||||
<view v-if="props.source === 0 && timeText !== '开始'">
|
||||
<view v-if="props.source === 0 && timeText !== '开始'" class="spec-btn-wrap">
|
||||
<uni-badge :text="props.data.cartCount" absolute="rightTop" :offset="[8, 3]">
|
||||
<view class="ai-button1 w_144" style="color: #fff" @click.stop="addCar">选规格</view>
|
||||
</uni-badge>
|
||||
@@ -152,6 +161,7 @@
|
||||
import { ref, onMounted, getCurrentInstance, defineProps, watch } from 'vue';
|
||||
import { formatOrderStatus } from '@/sheep/hooks/useGoods';
|
||||
import * as api from '@/sheep/api/ai/index';
|
||||
import { makeViewBoxTransform } from 'zrender/lib/tool/parseSVG';
|
||||
|
||||
const { proxy } = getCurrentInstance() as any;
|
||||
|
||||
@@ -311,7 +321,7 @@
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.card {
|
||||
background: #fff;//#ffefe5;
|
||||
background: #fff;
|
||||
border-radius: 12rpx;
|
||||
padding: 24rpx 20rpx;
|
||||
box-sizing: border-box;
|
||||
@@ -356,9 +366,6 @@
|
||||
left: 14rpx;
|
||||
}
|
||||
|
||||
.progress {
|
||||
}
|
||||
|
||||
.progress1 {
|
||||
width: 0%;
|
||||
background: linear-gradient(90deg, #f7772e 0%, #ee0a24 98%),
|
||||
@@ -375,14 +382,46 @@
|
||||
width: 32rpx !important;
|
||||
height: 32rpx !important;
|
||||
line-height: 32rpx !important;
|
||||
background: linear-gradient(
|
||||
to bottom right,
|
||||
var(--countdown-grad-start) 0%,
|
||||
var(--countdown-grad-end) 100%
|
||||
) !important;
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
:deep(.uni-countdown__splitor) {
|
||||
color: #ff393a !important;
|
||||
color: var(--countdown-grad-end) !important;
|
||||
}
|
||||
|
||||
.card {
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.footer-row {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.countdown-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.countdown-label {
|
||||
line-height: 34rpx;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
|
||||
.spec-btn-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.price-stock-row {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 10rpx 22rpx rgba(38, 107, 246, 0.8);
|
||||
background: transparent;
|
||||
background: rgb(38, 107, 246);
|
||||
}
|
||||
|
||||
.text {
|
||||
|
||||
Reference in New Issue
Block a user