Merge branch 'master' of https://gitea.f2b211.com/jsasg/orico-official-website
This commit is contained in:
@@ -18,7 +18,7 @@ class VideoValidate extends Validate
|
||||
'language_id' => 'require|integer',
|
||||
'category_id' => 'require|integer',
|
||||
'name' => 'require|max:64',
|
||||
'desc' => 'max:255',
|
||||
'desc' => 'max:512',
|
||||
'image' => 'max:125',
|
||||
'video' => 'max:125',
|
||||
'link' => 'url|max:125',
|
||||
@@ -44,7 +44,7 @@ class VideoValidate extends Validate
|
||||
'category_id.integer' => '分类参数类型错误',
|
||||
'name.require' => '名称不能为空',
|
||||
'name.max' => '名称不能超过64个字符',
|
||||
'desc.max' => '描述不能超过255个字符',
|
||||
'desc.max' => '描述不能超过512个字符',
|
||||
'image.max' => '图片不能超过125个字符',
|
||||
'video.max' => '视频不能超过125个字符',
|
||||
'link.url' => '链接格式错误',
|
||||
|
||||
@@ -60,27 +60,27 @@ class DataMigration extends Command
|
||||
// $this->migrateProductPurchaseLinks();
|
||||
|
||||
// 迁移文章
|
||||
$this->migrateArticle([
|
||||
16 => 7,
|
||||
31 => 9,
|
||||
32 => 8,
|
||||
// 68 => 10,
|
||||
// 69 => 11,
|
||||
// 70 => 12,
|
||||
// 71 => 13,
|
||||
// 72 => 14,
|
||||
// 73 => 15,
|
||||
// 74 => 16,
|
||||
// 75 => 17,
|
||||
// 78 => 19,
|
||||
// 79 => 20,
|
||||
// 80 => 21,
|
||||
// 81 => 22,
|
||||
// 82 => 23,
|
||||
// 83 => 24,
|
||||
// 84 => 25,
|
||||
// 85 => 26
|
||||
]);
|
||||
// $this->migrateArticle([
|
||||
// 16 => 7,
|
||||
// 31 => 9,
|
||||
// 32 => 8,
|
||||
// 68 => 10,
|
||||
// 69 => 11,
|
||||
// 70 => 12,
|
||||
// 71 => 13,
|
||||
// 72 => 14,
|
||||
// 73 => 15,
|
||||
// 74 => 16,
|
||||
// 75 => 17,
|
||||
// 78 => 19,
|
||||
// 79 => 20,
|
||||
// 80 => 21,
|
||||
// 81 => 22,
|
||||
// 82 => 23,
|
||||
// 83 => 24,
|
||||
// 84 => 25,
|
||||
// 85 => 26
|
||||
// ]);
|
||||
|
||||
// 迁移faq
|
||||
// $this->migrateFaq();
|
||||
|
||||
@@ -396,8 +396,11 @@ class Product extends Common
|
||||
->order(['sort' => 'asc', 'id' => 'desc'])
|
||||
->select()
|
||||
->hidden(['platform'])
|
||||
->bindAttr('platform', ['platform_name' => 'platform'])
|
||||
->bindAttr('platform', ['platform_name' => 'platform', 'platform_sort' => 'sort'])
|
||||
->toArray();
|
||||
// 根据购买链接平台排序
|
||||
$sort_by_arr = array_column($product_purchase_links, 'platform_sort');
|
||||
array_multisort($sort_by_arr, SORT_ASC, $product_purchase_links);
|
||||
|
||||
// 获取相关产品信息
|
||||
$related = ProductRelatedModel::with(['product' => function($query) {
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
</div>
|
||||
{eq name=":cookie('think_lang')" value="en-us"}
|
||||
{notempty name="basic_config['navigation_store_url']['value']"}
|
||||
<a class="storetopbt" href="{$basic_config['navigation_store_url']['value']}">
|
||||
<a class="storetopbt" href="{$basic_config['navigation_store_url']['value']}" target="_blank">
|
||||
<img src="__IMAGES__/shopico.png" class="storeImgico" />{:lang_i18n('店铺')}
|
||||
</a>
|
||||
{/notempty}
|
||||
@@ -115,7 +115,7 @@
|
||||
<div class="popmain">
|
||||
{volist name="header_hot_products" id="vo"}
|
||||
<div class="popitem">
|
||||
<a href="{:url('product/detail', ['id' => $vo.id])}"><img src="{$vo.cover_image}" class="popimg" /></a>
|
||||
<a href="{:url('product/detail', ['id' => $vo.id])}"><img src="{:thumb($vo.cover_image)}" class="popimg" /></a>
|
||||
<div class="productName">{$vo.name}</div>
|
||||
<div class="produc-dec">{$vo.short_name}</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user