|
@@ -10,7 +10,9 @@ import SectionHeading from '@/components/section-heading.vue'
|
|
|
import ClassItem from '../components/class-item.vue'
|
|
|
import ElegantInfoCard from '../components/elegant-info-card.vue'
|
|
|
import { agent as test } from '@designer-hub/merchant/src/core/libs/svgs'
|
|
|
+import { useRouter } from '../../../core/utils/router'
|
|
|
|
|
|
+const router = useRouter()
|
|
|
const current = ref<number>(0)
|
|
|
|
|
|
const swiperList = ref([
|
|
@@ -21,9 +23,24 @@ const swiperList = ref([
|
|
|
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/meng.jpg',
|
|
|
])
|
|
|
const menus = ref([
|
|
|
- { title: '微信代运营', icon: wechat, class: 'col-start-1 row-start-1 row-end-3 items-start!' },
|
|
|
- { title: '设计奖项', icon: award, class: 'col-start-2 row-start-1' },
|
|
|
- { title: '案例拍摄', icon: camera, class: 'col-start-2 row-start-2' },
|
|
|
+ {
|
|
|
+ title: '微信代运营',
|
|
|
+ icon: wechat,
|
|
|
+ class: 'col-start-1 row-start-1 row-end-3 items-start!',
|
|
|
+ path: '/pages/home/spread/wx-agent-operation/index',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '设计奖项',
|
|
|
+ icon: award,
|
|
|
+ class: 'col-start-2 row-start-1',
|
|
|
+ path: '/pages/home/spread/design-awards/index',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '案例拍摄',
|
|
|
+ icon: camera,
|
|
|
+ class: 'col-start-2 row-start-2',
|
|
|
+ path: '/pages/home/spread/case-shooting/index',
|
|
|
+ },
|
|
|
])
|
|
|
function handleClick(e) {
|
|
|
console.log(e)
|
|
@@ -46,7 +63,7 @@ function onChange(e) {
|
|
|
|
|
|
<view class="my-6 grid gap-2.5 grid-cols-2">
|
|
|
<template v-for="it of menus" :key="it.title">
|
|
|
- <div :class="it.class">
|
|
|
+ <div :class="it.class" @click="router.push(it.path)">
|
|
|
<card :custom-class="['w-full h-full flex justify-between items-center']">
|
|
|
<div
|
|
|
class="my-3.5 text-black/40 text-base font-normal font-['PingFang SC'] leading-[10.18px]"
|
|
@@ -72,7 +89,9 @@ function onChange(e) {
|
|
|
"
|
|
|
></info-card>
|
|
|
<section-heading title="最新资讯"></section-heading>
|
|
|
- <ElegantInfoCard></ElegantInfoCard>
|
|
|
+ <div class="my-6">
|
|
|
+ <ElegantInfoCard></ElegantInfoCard>
|
|
|
+ </div>
|
|
|
<ElegantInfoCard></ElegantInfoCard>
|
|
|
</view>
|
|
|
</template>
|