|
@@ -218,11 +218,11 @@ function handleJyBanner() {
|
|
|
<!-- h340rpx -->
|
|
<!-- h340rpx -->
|
|
|
<swiper :duration="300" :style="swiperStyle" class="transition-height" @change="handleChangeSwiper">
|
|
<swiper :duration="300" :style="swiperStyle" class="transition-height" @change="handleChangeSwiper">
|
|
|
<swiper-item
|
|
<swiper-item
|
|
|
- v-for="pageIndex in Math.ceil(navList.filter(i => i.show).length / 8)" :key="pageIndex"
|
|
|
|
|
|
|
+ v-for="pageIndex in Math.ceil(navList.filter((i: any) => i.show).length / 8)" :key="pageIndex"
|
|
|
>
|
|
>
|
|
|
<view class="grid grid-cols-4 gap-12rpx">
|
|
<view class="grid grid-cols-4 gap-12rpx">
|
|
|
<template
|
|
<template
|
|
|
- v-for="item in navList.filter(i => i.show).slice((pageIndex - 1) * 8, pageIndex * 8)"
|
|
|
|
|
|
|
+ v-for="item in navList.filter((i: any) => i.show).slice((pageIndex - 1) * 8, pageIndex * 8)"
|
|
|
:key="item.icon"
|
|
:key="item.icon"
|
|
|
>
|
|
>
|
|
|
<view
|
|
<view
|
|
@@ -247,7 +247,7 @@ function handleJyBanner() {
|
|
|
</swiper-item>
|
|
</swiper-item>
|
|
|
</swiper>
|
|
</swiper>
|
|
|
<view class="w-full flex items-center justify-center">
|
|
<view class="w-full flex items-center justify-center">
|
|
|
- <view v-for="_pageIndex, index in Math.ceil(navList.filter(i => i.show).length / 8)" :key="index" class="mr14rpx transition-all transition-duration-400 ease-in" :class="[currentIndex == index ? 'rounded-12rpx w-40rpx h12rpx bg-[var(--them-color)]' : 'w12rpx h12rpx rounded-50% bg-#F0F0F0']" />
|
|
|
|
|
|
|
+ <view v-for="_pageIndex, index in Math.ceil(navList.filter((i: any) => i.show).length / 8)" :key="index" class="mr14rpx transition-all transition-duration-400 ease-in" :class="[currentIndex == index ? 'rounded-12rpx w-40rpx h12rpx bg-[var(--them-color)]' : 'w12rpx h12rpx rounded-50% bg-#F0F0F0']" />
|
|
|
</view>
|
|
</view>
|
|
|
</wd-skeleton>
|
|
</wd-skeleton>
|
|
|
</view>
|
|
</view>
|
|
@@ -338,7 +338,7 @@ function handleJyBanner() {
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view
|
|
<view
|
|
|
- v-if="!item.skuList.some((it) => it.saleStatus)"
|
|
|
|
|
|
|
+ v-if="!item.skuList.some((it: any) => it.saleStatus)"
|
|
|
class="absolute left-0 top-0 z-1 h-full w-full flex items-center justify-center bg-[rgba(255,255,255,0.6)]"
|
|
class="absolute left-0 top-0 z-1 h-full w-full flex items-center justify-center bg-[rgba(255,255,255,0.6)]"
|
|
|
>
|
|
>
|
|
|
<view
|
|
<view
|