From 4ae194f1007fa985973583aef5aa6623f1d73781 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 15 Sep 2020 11:12:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/controller/ShopGoods.php | 4 +-- app/data/view/config/slider.html | 10 +++--- app/data/view/news_item/select.html | 38 ++++++++++++++-------- app/data/view/shop_goods/index_search.html | 6 ++++ app/data/view/shop_goods/select.html | 37 +++++++++++++-------- 5 files changed, 61 insertions(+), 34 deletions(-) diff --git a/app/data/controller/ShopGoods.php b/app/data/controller/ShopGoods.php index 7b62770df..15de95a99 100644 --- a/app/data/controller/ShopGoods.php +++ b/app/data/controller/ShopGoods.php @@ -32,7 +32,7 @@ class ShopGoods extends Controller { $this->title = '商品数据管理'; $query = $this->_query($this->table); - $query->like('name,mark')->equal('status,cate'); + $query->like('code,name,mark')->equal('status,cate'); // 加载对应数据 $this->type = $this->request->get('type', 'index'); if ($this->type === 'index') $query->where(['deleted' => 0]); @@ -51,7 +51,7 @@ class ShopGoods extends Controller public function select() { $query = $this->_query($this->table); - $query->equal('status,cate')->like('name,mark'); + $query->equal('status,cate')->like('code,name,mark'); $query->where(['deleted' => 0])->order('sort desc,id desc')->page(); } diff --git a/app/data/view/config/slider.html b/app/data/view/config/slider.html index 90b12a1d5..6dd16b9ee 100644 --- a/app/data/view/config/slider.html +++ b/app/data/view/config/slider.html @@ -23,18 +23,18 @@ diff --git a/app/data/view/news_item/select.html b/app/data/view/news_item/select.html index 45df4394b..7c265ff6f 100644 --- a/app/data/view/news_item/select.html +++ b/app/data/view/news_item/select.html @@ -7,20 +7,20 @@ {notempty name='list'} - 文章标题 - 文章状态 - 创建时间 - + 文章标题 + 文章状态 + 创建时间 + {/notempty} - {foreach $list as $key=>$vo} - - {$vo.title|default=''} - {if $vo.status eq 0}已禁用{elseif $vo.status eq 1}使用中{/if} - {$vo.create_at|format_datetime} - 选择文章 + {foreach $list as $key => $vo} + + {$vo.title|default=''} + {if $vo.status eq 0}已禁用{elseif $vo.status eq 1}使用中{/if} + {$vo.create_at|format_datetime} + 选择文章 {/foreach} @@ -29,15 +29,27 @@ {/block} +{block name='style'} + +{/block} + {block name='script'} {/block} diff --git a/app/data/view/shop_goods/index_search.html b/app/data/view/shop_goods/index_search.html index 54963d868..3fefc1d54 100644 --- a/app/data/view/shop_goods/index_search.html +++ b/app/data/view/shop_goods/index_search.html @@ -1,6 +1,12 @@
条件搜索