|
@@ -41,20 +41,28 @@ const pieces = ref([
|
|
|
path: '/pages/material/mini-class/index',
|
|
|
},
|
|
|
{
|
|
|
- title: '积分计算机',
|
|
|
- desc: '积分小帮手',
|
|
|
- icon: calculator,
|
|
|
- gridItemClass: 'col-start-2 row-start-1',
|
|
|
- path: '/pages/material/calculator/index',
|
|
|
- },
|
|
|
- {
|
|
|
title: '推荐材料商',
|
|
|
- desc: '我们将优先洽谈大家推荐的材料商',
|
|
|
+ desc: '优选推荐商',
|
|
|
icon: materialDealers,
|
|
|
- gridItemClass: 'col-start-1 col-end-3 row-start-2',
|
|
|
- isMore: true,
|
|
|
+ gridItemClass: 'col-start-2 row-start-1',
|
|
|
path: '/pages/material/recommend/index',
|
|
|
+ isMore: false,
|
|
|
},
|
|
|
+ // {
|
|
|
+ // title: '积分计算机',
|
|
|
+ // desc: '积分小帮手',
|
|
|
+ // icon: calculator,
|
|
|
+ // gridItemClass: 'col-start-2 row-start-1',
|
|
|
+ // path: '/pages/material/calculator/index',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: '推荐材料商',
|
|
|
+ // desc: '我们将优先洽谈大家推荐的材料商',
|
|
|
+ // icon: materialDealers,
|
|
|
+ // gridItemClass: 'col-start-1 col-end-3 row-start-2',
|
|
|
+ // isMore: true,
|
|
|
+ // path: '/pages/material/recommend/index',
|
|
|
+ // },
|
|
|
])
|
|
|
const current = ref<number>(0)
|
|
|
const swiperList = computed(() => banners.value.map((it) => it.bannerImgUrl))
|
|
@@ -124,7 +132,7 @@ onMounted(async () => {
|
|
|
></wd-swiper> -->
|
|
|
<Banner :mode="BannerMode.Material" aspect="1.26/1"></Banner>
|
|
|
</view>
|
|
|
- <view class="bg-[#f6f6f6] relative bottom-4 rounded-t-2xl py-1">
|
|
|
+ <view class="bg-[#f5f5f5] relative bottom-4 rounded-t-2xl py-1">
|
|
|
<div class="my-6 grid grid-cols-2 grid-gap-3.5 mx-3.5">
|
|
|
<template v-for="it of pieces" :key="it.title">
|
|
|
<div :class="it.gridItemClass" @click="handleMenuItemClick(it)">
|
|
@@ -157,23 +165,17 @@ onMounted(async () => {
|
|
|
</template>
|
|
|
</div>
|
|
|
|
|
|
- <template
|
|
|
- v-for="({ brandLevelName, pointsRate, materialsList }, i) in materialDealerData"
|
|
|
- :key="i"
|
|
|
- >
|
|
|
- <SectionHeading
|
|
|
+ <template v-for="({ brandLevelName, materialsList }, i) in materialDealerData" :key="i">
|
|
|
+ <!-- <SectionHeading
|
|
|
:title="brandLevelName"
|
|
|
- :subtitle="`积分兑换比例 ${pointsRate}%`"
|
|
|
+ :subtitle="`积分兑换比例${pointsRate}%`"
|
|
|
custom-class="mx-3.5"
|
|
|
- ></SectionHeading>
|
|
|
- <div class="my-6 px-3.5 overflow-x-auto whitespace-nowrap space-x-3.5">
|
|
|
+ ></SectionHeading> -->
|
|
|
+ <SectionHeading :title="brandLevelName" custom-class="mx-3.5"></SectionHeading>
|
|
|
+ <div class="my-6 px-3.5 grid grid-cols-2 gap-x-2.5 gap-y-4">
|
|
|
<template v-for="(it, index) in materialsList" :key="index">
|
|
|
- <div
|
|
|
- class="inline-block"
|
|
|
- :style="{ width: 'calc(50% - 14rpx)' }"
|
|
|
- @click="toDetail(it.id)"
|
|
|
- >
|
|
|
- <Card>
|
|
|
+ <div class="" @click="toDetail(it.id)">
|
|
|
+ <Card class="h-full">
|
|
|
<div class="flex flex-col items-center">
|
|
|
<wd-img
|
|
|
width="78"
|