实现魔方装修动态的更改地址链接

This commit is contained in:
77 2024-11-11 18:47:36 +08:00
parent 3f6d84a67b
commit 8907015c31

View File

@ -9,9 +9,7 @@
<!-- <view class="item" @click="sheep.$router.go('/pages/goods/sales', { <!-- <view class="item" @click="sheep.$router.go('/pages/goods/sales', {
activityType: 'recommendBest', activityType: 'recommendBest',
});"> --> });"> -->
<view class="item" @click="sheep.$router.go('/pages/index/page', { <view class="item" @click="sheep.$router.go(`${props.data.list[0].url}`);">
id: '19',
});">
<view class="nei"> <view class="nei">
<view class="l"> <view class="l">
<view class="t">今日推荐</view> <view class="t">今日推荐</view>
@ -34,9 +32,7 @@
<!-- <view class="item" @click="sheep.$router.go('/pages/goods/sales', { <!-- <view class="item" @click="sheep.$router.go('/pages/goods/sales', {
activityType: 'recommendHot', activityType: 'recommendHot',
});"> --> });"> -->
<view class="item" @click="sheep.$router.go('/pages/index/page', { <view class="item" @click="sheep.$router.go(`${props.data.list[1].url}`);">
id: '21',
});">
<view class="nei"> <view class="nei">
<view class="l"> <view class="l">
<view class="t">热门榜单</view> <view class="t">热门榜单</view>
@ -58,9 +54,7 @@
<!-- <view class="item" @click="sheep.$router.go('/pages/goods/sales', { <!-- <view class="item" @click="sheep.$router.go('/pages/goods/sales', {
activityType: 'recommendNew', activityType: 'recommendNew',
});"> --> });"> -->
<view class="item" @click="sheep.$router.go('/pages/index/page', { <view class="item" @click="sheep.$router.go(`${props.data.list[2].url}`);">
id: '22',
});">
<view class="nei"> <view class="nei">
<view class="l"> <view class="l">
<view class="t">首发新品</view> <view class="t">首发新品</view>
@ -82,9 +76,7 @@
<!-- <view class="item" @click="sheep.$router.go('/pages/goods/sales', { <!-- <view class="item" @click="sheep.$router.go('/pages/goods/sales', {
activityType: 'recommendGood', activityType: 'recommendGood',
});"> --> });"> -->
<view class="item" @click="sheep.$router.go('/pages/index/page', { <view class="item" @click="sheep.$router.go(`${props.data.list[3].url}`);">
id: '23',
});">
<view class="nei"> <view class="nei">
<view class="l"> <view class="l">
<view class="t">促销单品</view> <view class="t">促销单品</view>
@ -119,7 +111,15 @@
showMenuTools, showMenuTools,
closeMenuTools closeMenuTools
} from '@/sheep/hooks/useModal'; } from '@/sheep/hooks/useModal';
//
const props = defineProps({
data: {
type: Object,
default: {},
}
});
console.log("====++++=====",props.data)
const show = computed(() => sheep.$store('modal').menu); const show = computed(() => sheep.$store('modal').menu);
function onClick(item) { function onClick(item) {
@ -175,10 +175,12 @@
// margin-top: 10px; // margin-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
padding-top: 10px; padding-top: 10px;
&>.t { &>.t {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 10px; padding: 0 10px;
.left-font { .left-font {
color: rgba(252, 60, 62); color: rgba(252, 60, 62);
font-size: 17px; font-size: 17px;
@ -198,6 +200,7 @@
.new-list { .new-list {
// width: 100%; // width: 100%;
margin-right: 10px; margin-right: 10px;
.item { .item {
float: left; float: left;
width: 50%; width: 50%;