feat: pc端新增专题功能

This commit is contained in:
RyanRan
2024-05-09 18:38:22 +08:00
parent 0c6703f04d
commit c16b37c8bc
10 changed files with 158 additions and 57 deletions

View File

@@ -237,13 +237,15 @@ export function formatDate(date, fmt) {
// 楼层装修,选择链接处理跳转方式
export function formatLinkType (item) {
const types = ['goods', 'category', 'shops', 'marketing', 'pages', 'other'] // 所有跳转的分类 依次为 商品、分类、店铺、活动、页面、其他
const types = ['goods', 'category', 'shops', 'marketing', 'pages', 'other','special'] // 所有跳转的分类 依次为 商品、分类、店铺、活动、页面、其他
let url = '';
switch (item.___type) {
case 'goods':
url = `/goodsDetail?skuId=${item.id}&goodsId=${item.goodsId}`;
break;
case 'special':
url = `/topic?id=${item.id}`
break;
case 'category':
url = `/goodsList?categoryId=${item.allId}`;
break;