This commit is contained in:
2025-07-16 13:39:34 +08:00
6 changed files with 10 additions and 4 deletions

View File

@@ -183,7 +183,7 @@ class ReceiveProductSync
'desc' => '', 'desc' => '',
'video_img' => '', 'video_img' => '',
'video_url' => '', 'video_url' => '',
'is_sale' => 0, 'is_sale' => 1,
'is_new' => 0, 'is_new' => 0,
'is_hot' => 0, 'is_hot' => 0,
'is_show' => 0, 'is_show' => 0,

View File

@@ -171,7 +171,7 @@ class Product
// 更新产品参数 // 更新产品参数
if ($put['params'] != "") { if ($put['params'] != "") {
ProductParamsModel::productId($id)->delete(); ProductParamsModel::productId($id)->delete();
if (preg_match_all('/(\S+):(.[^\s]+)/', $put['params'], $match_result)) { if (preg_match_all('/(.+):(.+)/', $put['params'], $match_result)) {
$params = []; $params = [];
for ($i = 0; $i < count($match_result[0]); $i++) { for ($i = 0; $i < count($match_result[0]); $i++) {
$params[] = [ $params[] = [

View File

@@ -53,6 +53,7 @@ return [
'product/search' => [ 'product/search' => [
'搜索' => 'Search', '搜索' => 'Search',
'请搜索' => 'Please search...', '请搜索' => 'Please search...',
'暂无数据' => 'No data',
], ],
// 产品详情 // 产品详情
'product/detail' => [ 'product/detail' => [

View File

@@ -177,6 +177,11 @@ return [
'提交' => 'SUBMIT', '提交' => 'SUBMIT',
], ],
// 产品 - 搜索
'product/search' => [
'暂无数据' => 'No data',
],
// 产品 - 分类 // 产品 - 分类
'product/category' => [ 'product/category' => [
'查看全部' => 'View All', '查看全部' => 'View All',

View File

@@ -28,7 +28,7 @@
<!-- 分页 --> <!-- 分页 -->
<div>{$page|raw}</div> <div>{$page|raw}</div>
{else/} {else/}
<div style="text-align: center; padding: 10%;">暂无数据</div> <div style="text-align: center; padding: 10%;">{:lang_i18n('暂无数据')}</div>
{/notempty} {/notempty}
</div> </div>
</div> </div>

View File

@@ -35,7 +35,7 @@
</ul> </ul>
<div>{$page|raw}</div> <div>{$page|raw}</div>
{else/} {else/}
<div style="text-align: center; padding: 10%;">暂无数据</div> <div style="text-align: center; padding: 10%;">{:lang_i18n('暂无数据')}</div>
{/notempty} {/notempty}
</div> </div>
</div> </div>