|
@@ -36,9 +36,14 @@ const pieces = ref([
|
|
path: '/pages/material/recommend/index',
|
|
path: '/pages/material/recommend/index',
|
|
},
|
|
},
|
|
])
|
|
])
|
|
-const handleMenuItemClick = ({ path }) => {
|
|
|
|
|
|
+const handleMenuItemClick = ({ path }: any) => {
|
|
uni.navigateTo({ url: path })
|
|
uni.navigateTo({ url: path })
|
|
}
|
|
}
|
|
|
|
+const toDetail = () => {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/material/detail/index',
|
|
|
|
+ })
|
|
|
|
+}
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
run()
|
|
run()
|
|
})
|
|
})
|
|
@@ -94,11 +99,7 @@ onMounted(() => {
|
|
<SectionHeading title="自营品牌" custom-class="mx-3.5"></SectionHeading>
|
|
<SectionHeading title="自营品牌" custom-class="mx-3.5"></SectionHeading>
|
|
<div class="my-6 flex px-1.75">
|
|
<div class="my-6 flex px-1.75">
|
|
<template v-for="(it, i) in data" :key="i">
|
|
<template v-for="(it, i) in data" :key="i">
|
|
- <Card
|
|
|
|
- custom-class="mx-1.75"
|
|
|
|
- :style="{ width: 'calc(50vw - 96rpx)' }"
|
|
|
|
- @click="dealerPanelState = true"
|
|
|
|
- >
|
|
|
|
|
|
+ <Card custom-class="mx-1.75" :style="{ width: 'calc(50vw - 96rpx)' }" @click="toDetail">
|
|
<div class="flex flex-col items-center">
|
|
<div class="flex flex-col items-center">
|
|
<wd-img
|
|
<wd-img
|
|
width="78"
|
|
width="78"
|
|
@@ -116,7 +117,9 @@ onMounted(() => {
|
|
>
|
|
>
|
|
进口品牌 | 瓷砖
|
|
进口品牌 | 瓷砖
|
|
</div>
|
|
</div>
|
|
- <wd-button size="small" custom-class="my-4">联系商家</wd-button>
|
|
|
|
|
|
+ <wd-button size="small" custom-class="my-4" @click="dealerPanelState = true">
|
|
|
|
+ 联系商家
|
|
|
|
+ </wd-button>
|
|
<div class="text-black/30 text-xs font-normal font-['PingFang SC'] leading-[10.18px]">
|
|
<div class="text-black/30 text-xs font-normal font-['PingFang SC'] leading-[10.18px]">
|
|
{{ it.views }}次到店打卡
|
|
{{ it.views }}次到店打卡
|
|
</div>
|
|
</div>
|