Merge branch 'master' of https://gitea.f2b211.com/jsasg/orico-official-website
This commit is contained in:
@@ -104,7 +104,7 @@ class Product extends Common
|
|||||||
->onSale(true)
|
->onSale(true)
|
||||||
->onShelves(true)
|
->onShelves(true)
|
||||||
->append(['p' => $list[0]['id']])
|
->append(['p' => $list[0]['id']])
|
||||||
->order(['sort' => 'asc', 'id' => 'desc'])
|
->order(['sort' => 'asc', 'created_at' => 'desc', 'id' => 'desc'])
|
||||||
->limit(5)
|
->limit(5)
|
||||||
->buildSql();
|
->buildSql();
|
||||||
$query = \think\facade\Db::table("($sql) as a");
|
$query = \think\facade\Db::table("($sql) as a");
|
||||||
@@ -126,7 +126,7 @@ class Product extends Common
|
|||||||
->enabled(true)
|
->enabled(true)
|
||||||
->onSale(true)
|
->onSale(true)
|
||||||
->onShelves(true)
|
->onShelves(true)
|
||||||
->order(['sort' => 'asc', 'id' => 'desc'])
|
->order(['sort' => 'asc', 'created_at' => 'desc', 'id' => 'desc'])
|
||||||
->limit(5);
|
->limit(5);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -192,7 +192,7 @@ class Product extends Common
|
|||||||
->enabled(true)
|
->enabled(true)
|
||||||
->onSale(true)
|
->onSale(true)
|
||||||
->onShelves(true)
|
->onShelves(true)
|
||||||
->order(['sort' => 'asc', 'id' => 'desc'])
|
->order(['sort' => 'asc', 'created_at' => 'desc', 'id' => 'desc'])
|
||||||
->select();
|
->select();
|
||||||
if (!$products->isEmpty()) {
|
if (!$products->isEmpty()) {
|
||||||
// 获取sku信息
|
// 获取sku信息
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ return [
|
|||||||
// 产品 - 产品详情页
|
// 产品 - 产品详情页
|
||||||
'product/detail' => [
|
'product/detail' => [
|
||||||
'首页' => 'Home',
|
'首页' => 'Home',
|
||||||
|
'型号' => 'Product Model',
|
||||||
'产品详情' => 'Product Description',
|
'产品详情' => 'Product Description',
|
||||||
'相关产品' => 'Related Products',
|
'相关产品' => 'Related Products',
|
||||||
'发送查询' => 'Send Inquiry',
|
'发送查询' => 'Send Inquiry',
|
||||||
|
|||||||
@@ -66,6 +66,11 @@
|
|||||||
<p>{$product.short_name|default=''}</p>
|
<p>{$product.short_name|default=''}</p>
|
||||||
<div class="proTfg">
|
<div class="proTfg">
|
||||||
<ul class="swt-Table">
|
<ul class="swt-Table">
|
||||||
|
<li class="Table-Row">
|
||||||
|
<div class="ms3 Table-Cell">{:lang_i18n('型号')}</div>
|
||||||
|
<div class="ms2 Table-Cell"></div>
|
||||||
|
<div class="ms4 Table-Cell">{$product.spu}</div>
|
||||||
|
</li>
|
||||||
{volist name="product_params" id="pp"}
|
{volist name="product_params" id="pp"}
|
||||||
<li class="Table-Row">
|
<li class="Table-Row">
|
||||||
<div class="ms3 Table-Cell">{$pp.name}</div>
|
<div class="ms3 Table-Cell">{$pp.name}</div>
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
<header class="narsPage-head">
|
<header class="narsPage-head">
|
||||||
<div class="headcenter">
|
<div class="headcenter">
|
||||||
|
{eq name=":cookie('think_lang')" value="zh-cn"}
|
||||||
|
<a href="{:url('/index/topic/nas/index')}">
|
||||||
|
{else/}
|
||||||
<a>
|
<a>
|
||||||
|
{/eq}
|
||||||
<img class="logico" style="cursor:pointer;" src="__IMAGES__/logo_nas_{:cookie('think_lang')}.png" />
|
<img class="logico" style="cursor:pointer;" src="__IMAGES__/logo_nas_{:cookie('think_lang')}.png" />
|
||||||
</a>
|
</a>
|
||||||
{notempty name="header_navigation"}
|
{notempty name="header_navigation"}
|
||||||
|
|||||||
Reference in New Issue
Block a user