|
@@ -119,6 +119,12 @@ const priceTabList = ref([
|
|
minPrice: 1000,
|
|
minPrice: 1000,
|
|
maxPrice: 2000,
|
|
maxPrice: 2000,
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ title: 'home.priceTab.3000spot',
|
|
|
|
+ value: 3000,
|
|
|
|
+ minPrice: 2000,
|
|
|
|
+ maxPrice: 3000,
|
|
|
|
+ },
|
|
])
|
|
])
|
|
|
|
|
|
const dataList = ref<any>([])
|
|
const dataList = ref<any>([])
|
|
@@ -168,7 +174,7 @@ onShow(() => {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
- <z-paging ref="paging" v-model="dataList" bg-color="#fff" use-page-scroll @query="queryList">
|
|
|
|
|
|
+ <z-paging ref="paging" v-model="dataList" use-page-scroll @query="queryList">
|
|
<template #top>
|
|
<template #top>
|
|
<view
|
|
<view
|
|
class="flex items-center justify-between bg-white pb-40rpx pl-42rpx pr-34rpx pt-26rpx"
|
|
class="flex items-center justify-between bg-white pb-40rpx pl-42rpx pr-34rpx pt-26rpx"
|
|
@@ -206,27 +212,35 @@ onShow(() => {
|
|
{{ $t('home.news') }}
|
|
{{ $t('home.news') }}
|
|
</view>
|
|
</view>
|
|
<scroll-view scroll-x>
|
|
<scroll-view scroll-x>
|
|
- <view class="flex items-center gap-22rpx pb-24rpx">
|
|
|
|
- <product v-for="(item, index) in newProducts" :key="index" :item="item" @item-click="toPage('/pages/productDetail/productDetail', { productId: item.productId })" />
|
|
|
|
|
|
+ <view class="flex items-center gap-16rpx pb-24rpx">
|
|
|
|
+ <Product v-for="(item, index) in newProducts" :key="index" :title-font-size="18" :item="item" @item-click="toPage('/pages/productDetail/productDetail', { productId: item.productId })" />
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
- <view>
|
|
|
|
|
|
+ <view class="productList">
|
|
<wd-tabs v-model="priceTab" :line-width="0" :line-height="0" @change="onPriceTabChange">
|
|
<wd-tabs v-model="priceTab" :line-width="0" :line-height="0" @change="onPriceTabChange">
|
|
<template v-for="item in priceTabList" :key="item">
|
|
<template v-for="item in priceTabList" :key="item">
|
|
<wd-tab :title="$t(item.title)" />
|
|
<wd-tab :title="$t(item.title)" />
|
|
</template>
|
|
</template>
|
|
</wd-tabs>
|
|
</wd-tabs>
|
|
<view class="grid grid-cols-2 gap-22rpx">
|
|
<view class="grid grid-cols-2 gap-22rpx">
|
|
- <product v-for="(item, index) in dataList" :key="index" width="100%" :height="340" :item="item" @item-click="toPage('/pages/productDetail/productDetail', { productId: item.productId })" />
|
|
|
|
|
|
+ <Product v-for="(item, index) in dataList" :key="index" width="100%" :height="340" :item="item" @item-click="toPage('/pages/productDetail/productDetail', { productId: item.productId })" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</z-paging>
|
|
</z-paging>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
-<style>
|
|
|
|
-page {
|
|
|
|
- background: #fff;
|
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
+:deep(.productList) {
|
|
|
|
+ .wd-tabs {
|
|
|
|
+ background: none;
|
|
|
|
+ .wd-tabs__nav {
|
|
|
|
+ background: none;
|
|
|
|
+ .wd-tabs__nav-item {
|
|
|
|
+ justify-content: flex-start;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|