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