|
@@ -148,7 +148,10 @@ onShareTimeline(() => ({
|
|
|
<div class="absolute top-11 left-0 right-0 bottom-0 bg-white rounded-2xl shadow swiper">
|
|
|
<SwiperEvo v-model="current" :items="favourableProducts">
|
|
|
<template #default="{ item: it }">
|
|
|
- <div class="w-full h-full px-4 flex items-center gap-3 box-border" @click="router.push(`/pages-sub/home/mall/detail/index?id=${it.productId}`)">
|
|
|
+ <div
|
|
|
+ class="w-full h-full px-4 flex items-center gap-3 box-border"
|
|
|
+ @click="router.push(`/pages-sub/home/mall/detail/index?id=${it.productId}`)"
|
|
|
+ >
|
|
|
<wd-img
|
|
|
width="114"
|
|
|
height="114"
|
|
@@ -171,14 +174,16 @@ onShareTimeline(() => ({
|
|
|
|
|
|
<ProgressEvo
|
|
|
:height="6"
|
|
|
- :model-value="(it.exchangeCount / (it.productRepertory + it.exchangeCount) || 0) * 100"
|
|
|
+ :model-value="
|
|
|
+ (it.exchangeCount / (it.productRepertory + it.exchangeCount) || 0) * 100
|
|
|
+ "
|
|
|
color="black"
|
|
|
></ProgressEvo>
|
|
|
</div>
|
|
|
<div
|
|
|
class="text-black/40 text-[10px] font-normal font-['PingFang_SC'] leading-normal"
|
|
|
>
|
|
|
- 还剩{{ it.productRepertory}}件
|
|
|
+ 还剩{{ it.productRepertory }}件
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-else>
|
|
@@ -193,7 +198,6 @@ onShareTimeline(() => ({
|
|
|
class="text-black/40 text-[10px] font-normal font-['PingFang_SC'] leading-normal"
|
|
|
>
|
|
|
<!-- 还剩{{ it.productRepertory - it.exchangeCount }}件-->
|
|
|
- 数量不限
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
@@ -206,7 +210,9 @@ onShareTimeline(() => ({
|
|
|
</div>
|
|
|
<div class="flex-1"></div>
|
|
|
<div
|
|
|
- @click.stop="router.push(`/pages-sub/home/mall/detail/index?id=${it.productId}`)"
|
|
|
+ @click.stop="
|
|
|
+ router.push(`/pages-sub/home/mall/detail/index?id=${it.productId}`)
|
|
|
+ "
|
|
|
>
|
|
|
<wd-img width="106" height="40" :src="grabNow"></wd-img>
|
|
|
</div>
|
|
@@ -295,7 +301,7 @@ onShareTimeline(() => ({
|
|
|
</template>
|
|
|
|
|
|
<style lang="scss">
|
|
|
- :deep(.swiper .swiper-item.h-full>view){
|
|
|
- height:100%;
|
|
|
- }
|
|
|
+:deep(.swiper .swiper-item.h-full > view) {
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
</style>
|