前端展示友情链接

feat/task1-c-wallet
devil_gong 2019-01-03 15:10:18 +08:00
parent 3ede56f9f7
commit 094afbdd77
3 changed files with 6 additions and 20 deletions

View File

@ -208,7 +208,7 @@ class Common extends Controller
$this->assign('common_shop_notice', MyC('common_shop_notice'));
// 友情链接
$link = LinkService::LinkShowList();
$link = LinkService::LinkList(['where'=>['is_enable'=>1]]);
$this->assign('link_list', $link['data']);
}

View File

@ -22,21 +22,6 @@ use app\service\GoodsService;
*/
class LinkService
{
/**
* 前端展示
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2018-09-29
* @desc description
* @param [array] $params [输入参数]
*/
public static function LinkShowList($params = [])
{
$data = Db::name('Link')->where(['is_enable'=>1])->order('sort asc')->select();
return DataReturn('处理成功', 0, $data);
}
/**
* 列表
* @author Devil
@ -48,7 +33,8 @@ class LinkService
*/
public static function LinkList($params = [])
{
$data = Db::name('Link')->order('sort asc')->select();
$where = empty($params['where']) ? [] : $params['where'];
$data = Db::name('Link')->where($where)->order('sort asc')->select();
return DataReturn('处理成功', 0, $data);
}

View File

@ -410,9 +410,9 @@
<?php } ?>
<div class="copyright">
<a title="官方网站" href="http://www.thinkphp.cn">ThinkPHP</a>
<span>V<?php echo \think\facade\App::version(); ?></span>
<span>{ -API }</span>
<a title="官方网站" href="http://www.shopxo.net">ShopXO</a>
<span><?php echo APPLICATION_VERSION; ?></span>
<span>{ B2C }</span>
</div>
<?php if(\think\facade\App::isDebug()) { ?>
<script>