@Fecmall #1楼 PC分类是采用的urlkey生成的连接
foreach ($data as $category) {
$categoryOne = [
'_id' => (string) $category[$categoryPrimaryKey],
'name' => Yii::$service->store->getStoreAttrVal($category['name'], 'name'),
'menu_custom' => Yii::$service->store->getStoreAttrVal($category['menu_custom'], 'menu_custom'),
'url' => Yii::$service->url->getUrl($category['url_key']),
];
$childMenu = $this->getCategoryMenuArr((string) $category[$categoryPrimaryKey]);
if ($childMenu) {
$categoryOne['childMenu'] = $childMenu;
}
$arr[] = $categoryOne;
}
fecroH5端现在点击分类加载不出商品列表