refactor: 修改路由命名

This commit is contained in:
2025-04-27 16:55:12 +08:00
parent 74788dcf55
commit e277cd12a8
5 changed files with 9 additions and 9 deletions

View File

@@ -18,13 +18,13 @@
<h1 class="ori-pd-title">
<span>{$vo.name}</span>
{eq name="vo.level" value="2"}
<a href="{:url('product_category', ['id' => $vo.id])}">查看更多</a>
<a href="{:url('product/category', ['id' => $vo.id])}">查看更多</a>
{/eq}
</h1>
{notempty name="vo.products"}
<div class="ori-pd-list">
{volist name="vo.products" id="vp"}
<a class="oripditem" href="{:url('product_detail', ['id' => $vp.id])}">
<a class="oripditem" href="{:url('product/detail', ['id' => $vp.id])}">
<div>
{volist name="vp.sku" id="vs" key="vs_idx"}
<img src="{$vs.main_image}" id="sku_image_{$vs.id}" class="prdimg {eq name='vs_idx' value='1'}prdimg-show{/eq}" />

View File

@@ -22,7 +22,7 @@
<a class="pathname" href="/">首页</a>
{volist name="product_categorys" id="ca"}
<div class="arrow"></div>
<a class="pathname" href="{:url('product_category', ['id' => $ca.id])}">{$ca.name}</a>
<a class="pathname" href="{:url('product/category', ['id' => $ca.id])}">{$ca.name}</a>
{/volist}
</div>
<!-- 产品主图切换和参数详情-->