refactor: 修改路由命名
This commit is contained in:
@@ -15,9 +15,9 @@ Route::get('/', 'Index/index');
|
|||||||
// 产品相关路由
|
// 产品相关路由
|
||||||
Route::group('product', function() {
|
Route::group('product', function() {
|
||||||
// 产品分类页
|
// 产品分类页
|
||||||
Route::get('category/:id', 'Product/category')->name('product_category');
|
Route::get('category/:id', 'Product/category');
|
||||||
// 产品详情页
|
// 产品详情页
|
||||||
Route::get('detail/:id', 'Product/detail')->name('product_detail');
|
Route::get('detail/:id', 'Product/detail');
|
||||||
// 产品询盘
|
// 产品询盘
|
||||||
Route::post('inquiry', 'Product/inquiry');
|
Route::post('inquiry', 'Product/inquiry');
|
||||||
// 新品上市
|
// 新品上市
|
||||||
|
|||||||
@@ -18,13 +18,13 @@
|
|||||||
<h1 class="ori-pd-title">
|
<h1 class="ori-pd-title">
|
||||||
<span>{$vo.name}</span>
|
<span>{$vo.name}</span>
|
||||||
{eq name="vo.level" value="2"}
|
{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}
|
{/eq}
|
||||||
</h1>
|
</h1>
|
||||||
{notempty name="vo.products"}
|
{notempty name="vo.products"}
|
||||||
<div class="ori-pd-list">
|
<div class="ori-pd-list">
|
||||||
{volist name="vo.products" id="vp"}
|
{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>
|
<div>
|
||||||
{volist name="vp.sku" id="vs" key="vs_idx"}
|
{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}" />
|
<img src="{$vs.main_image}" id="sku_image_{$vs.id}" class="prdimg {eq name='vs_idx' value='1'}prdimg-show{/eq}" />
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<a class="pathname" href="/">首页</a>
|
<a class="pathname" href="/">首页</a>
|
||||||
{volist name="product_categorys" id="ca"}
|
{volist name="product_categorys" id="ca"}
|
||||||
<div class="arrow"></div>
|
<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}
|
{/volist}
|
||||||
</div>
|
</div>
|
||||||
<!-- 产品主图切换和参数详情-->
|
<!-- 产品主图切换和参数详情-->
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<p class="ftitle">{:lang('footer_navigation.product_categorys')}</p>
|
<p class="ftitle">{:lang('footer_navigation.product_categorys')}</p>
|
||||||
<ul>
|
<ul>
|
||||||
{volist name="header_categorys" id="vo"}
|
{volist name="header_categorys" id="vo"}
|
||||||
<li><a href="{:url('product_index', ['id' => $vo.id])}" class="fline">{$vo.name}</a></li>
|
<li><a href="{:url('product/category', ['id' => $vo.id])}" class="fline">{$vo.name}</a></li>
|
||||||
{/volist}
|
{/volist}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -33,11 +33,11 @@
|
|||||||
{volist name="vo.children" id="vc"}
|
{volist name="vo.children" id="vc"}
|
||||||
<dl class="nav_cyrightit">
|
<dl class="nav_cyrightit">
|
||||||
<dt>
|
<dt>
|
||||||
<a href="{:url('product_category', ['id' => $vc.id])}">{$vc.name}</a>
|
<a href="{:url('product/category', ['id' => $vc.id])}">{$vc.name}</a>
|
||||||
</dt>
|
</dt>
|
||||||
{volist name="vc.children" id="vcc"}
|
{volist name="vc.children" id="vcc"}
|
||||||
<dd>
|
<dd>
|
||||||
<a href="{:url('product_category', ['id' => $vcc.id])}">{$vcc.name}</a>
|
<a href="{:url('product/category', ['id' => $vcc.id])}">{$vcc.name}</a>
|
||||||
</dd>
|
</dd>
|
||||||
{/volist}
|
{/volist}
|
||||||
<dl>
|
<dl>
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
<div class="popmain">
|
<div class="popmain">
|
||||||
{volist name="header_hot_products" id="vo"}
|
{volist name="header_hot_products" id="vo"}
|
||||||
<div class="popitem">
|
<div class="popitem">
|
||||||
<a href="{:url('product_detail', ['id' => $vo.id])}"><img src="{$vo.cover_image}"
|
<a href="{:url('product/detail', ['id' => $vo.id])}"><img src="{$vo.cover_image}"
|
||||||
class="popimg" /></a>
|
class="popimg" /></a>
|
||||||
<div class="productName">{$vo.name}</div>
|
<div class="productName">{$vo.name}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user