ZLW-PC\Administrator
7 years ago
13 changed files with 362 additions and 261 deletions
-
57app/Http/Controllers/Api/ArctypeController.php
-
12app/Http/Controllers/Api/ArticleController.php
-
124app/Http/Controllers/Weixin/IndexController.php
-
94app/Http/Model/Arctype.php
-
14app/Http/Model/Article.php
-
44lqycms.sql
-
8public/css/weixin/style.css
-
2resources/views/weixin/common/footer.blade.php
-
56resources/views/weixin/index/category.blade.php
-
61resources/views/weixin/index/detail.blade.php
-
6resources/views/weixin/index/index.blade.php
-
75resources/views/weixin/index/search.blade.php
-
70routes/web.php
@ -0,0 +1,57 @@ |
|||
<?php |
|||
namespace App\Http\Controllers\Api; |
|||
|
|||
use App\Http\Controllers\Api\CommonController; |
|||
use Illuminate\Http\Request; |
|||
use Log; |
|||
use App\Common\ReturnData; |
|||
|
|||
use App\Http\Model\Arctype; |
|||
|
|||
class ArctypeController extends CommonController |
|||
{ |
|||
public function __construct() |
|||
{ |
|||
parent::__construct(); |
|||
} |
|||
|
|||
public function arctypeList(Request $request) |
|||
{ |
|||
//参数
|
|||
$data['limit'] = $request->input('limit', 10); |
|||
$data['offset'] = $request->input('offset', 0); |
|||
if($request->input('pid', null) !== null){$data['pid'] = $request->input('pid');} |
|||
$data['is_show'] = Arctype::IS_SHOW; |
|||
|
|||
$res = Arctype::getList($data); |
|||
if($res == false) |
|||
{ |
|||
return ReturnData::create(ReturnData::SYSTEM_FAIL); |
|||
} |
|||
|
|||
foreach($res as $k=>$v) |
|||
{ |
|||
$res['list'][$k]->addtime = date('Y-m-d H:i',$v->addtime); |
|||
$res['list'][$k]->category_list_url = route('weixin_article_category',array('id'=>$v->id)); |
|||
} |
|||
|
|||
return ReturnData::create(ReturnData::SUCCESS,$res); |
|||
} |
|||
|
|||
public function arctypeDetail(Request $request) |
|||
{ |
|||
//参数
|
|||
$data['id'] = $request->input('id'); |
|||
$data['is_show'] = Arctype::IS_SHOW; |
|||
|
|||
$res = Arctype::getOne($data); |
|||
if($res === false) |
|||
{ |
|||
return ReturnData::create(ReturnData::SYSTEM_FAIL); |
|||
} |
|||
|
|||
$res->addtime = date('Y-m-d H:i',$res->addtime); |
|||
|
|||
return ReturnData::create(ReturnData::SUCCESS,$res); |
|||
} |
|||
} |
@ -1,31 +1,31 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|||
<title><?php if(empty($post["seotitle"])){echo $post["name"];}else{echo $post["seotitle"];} ?></title>
|
|||
<link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/style.css"><script src="/js/jquery.min.js"></script><script src="/js/bootstrap.min.js"></script></head><body> |
|||
|
|||
@include('home.common.header') |
|||
<div class="container"> |
|||
<div class="row row-offcanvas row-offcanvas-right"> |
|||
<div class="col-xs-12 col-sm-9"> |
|||
<div class="bread"><a href="/"><?php echo sysconfig('CMS_INDEXNAME'); ?></a> > <?php echo get_cat_path($post["id"]); ?></div>
|
|||
<h1 class="page-header"><?php echo $post["name"]; ?></h1>
|
|||
|
|||
<?php if(!empty($posts)){foreach($posts as $row){ ?><div class="list"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?>
|
|||
<strong class="tit"><a href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></strong><p><?php echo mb_strcut($row['description'],0,150,'UTF-8'); ?>..</p>
|
|||
<div class="info"><span class="fl"><?php $taglist=taglist($row['id']);if($taglist){foreach($taglist as $row){ ?><a href="<?php echo get_front_url(array("tagid"=>$row['id'],"type"=>'tags')); ?>"><?php echo $row['tag']; ?></a><?php }} ?><em><?php echo date("m-d H:i",$row['pubdate']); ?></em></span><span class="fr"><em><?php echo $row['click']; ?></em>人阅读</span></div><div class="cl"></div></div><?php }} ?><div id="lad2"><script>ljs2();</script></div>
|
|||
|
|||
<div class="pages"><ul><?php echo $pagenav; ?></ul><div class="cl"></div></div>
|
|||
|
|||
</div><!--/.col-xs-12.col-sm-9--> |
|||
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/> |
|||
<title><?php echo $post['name']; ?> - 微商城</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
|
|||
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet"> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script> |
|||
<meta name="keywords" content="<?php echo $post['keywords']; ?>"><meta name="description" content="<?php echo $post['description']; ?>"></head><body> |
|||
<div class="classreturn loginsignup"> |
|||
<div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div> |
|||
<div class="ds-in-bl tit center"><span><?php echo $post['name']; ?></span></div>
|
|||
<div class="ds-in-bl nav_menu"><a href="javascript:void(0);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/class1.png" alt="菜单"></a></div> |
|||
</div> |
|||
<div class="flool tpnavf cl"> |
|||
<div class="nav_list"> |
|||
<ul> |
|||
<a href="<?php echo route('weixin'); ?>"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/home_icon.png"><p>首页</p></li></a> |
|||
<a href="/Weixin/index.php?m=Store&a=index"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/brand_icon.png"><p>分类</p></li></a> |
|||
<a href="/Weixin/index.php?m=Cart&a=index"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/car_icon.png"><p>购物车</p></li></a> |
|||
<a href="/Weixin/index.php?m=User&a=index"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/center_icon.png"><p>个人中心</p></li></a></ul> |
|||
<div class="cl"></div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-xs-12 col-sm-3 sidebar-offcanvas" id="sidebar"> |
|||
<div class="panel panel-info"> |
|||
<div class="panel-heading">热门推荐</div> |
|||
<div class="list-group"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['id'],"orderby"=>'rand()'));if($posts){foreach($posts as $row){ ?>
|
|||
<a class="list-group-item" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><?php }} ?>
|
|||
</div> |
|||
<div class="arc_list"> |
|||
<ul class="arclist cl"> |
|||
<?php if($article_list){foreach($article_list as $k=>$v){ ?>
|
|||
<li><a href="<?php echo $v['article_detail_url']; ?>"><?php echo $v['title']; ?></a><p><?php echo $v['pubdate']; ?></p></li>
|
|||
<?php }} ?>
|
|||
</ul> |
|||
</div> |
|||
</div><!--/.sidebar-offcanvas--></div><!--/row--> |
|||
|
|||
</div><!-- /.container --> |
|||
@include('home.common.footer')</body></html> |
|||
@include('weixin.common.footer') |
|||
</body></html> |
@ -1,24 +1,43 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1"> |
|||
<title><?php echo $post["title"]; ?>_<?php echo sysconfig('CMS_WEBNAME'); ?></title>
|
|||
<link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/style.css"><script src="/js/jquery.min.js"></script><script src="/js/bootstrap.min.js"></script></head><body> |
|||
@include('home.common.header') |
|||
<div class="container"><div class="row row-offcanvas row-offcanvas-right"><div class="col-xs-12 col-sm-9"> |
|||
<div class="bread"><a href=""><?php echo sysconfig('CMS_INDEXNAME'); ?></a> > <?php echo get_cat_path($post["typeid"]); ?></div>
|
|||
<h1 class="page-header"><?php echo $post["title"]; ?></h1>
|
|||
<div class="content"><?php echo $post["body"]; ?>
|
|||
<div class="dinfo"><span class="addtime"><?php echo date("Y-m-d",$post["pubdate"]); ?></span>
|
|||
<br><br>下一篇:<?php if($pre){ ?><a href="<?php echo get_front_url(array("id"=>$pre['id'],"catid"=>$pre["typeid"],"type"=>'content')); ?>"><?php echo $pre["title"]; ?></a><?php }else{echo '没有了';} ?><div class="cl"></div></div>
|
|||
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/> |
|||
<title><?php echo $post['title']; ?> - 微商城</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
|
|||
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet"> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script> |
|||
<meta name="keywords" content="<?php echo $post['keywords']; ?>"><meta name="description" content="<?php echo $post['description']; ?>"></head><body> |
|||
<div class="classreturn loginsignup"> |
|||
<div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div> |
|||
<div class="ds-in-bl tit center"><span>微商城</span></div> |
|||
<div class="ds-in-bl nav_menu"><a href="javascript:void(0);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/class1.png" alt="菜单"></a></div> |
|||
</div> |
|||
<div class="flool tpnavf cl"> |
|||
<div class="nav_list"> |
|||
<ul> |
|||
<a href="<?php echo route('weixin'); ?>"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/home_icon.png"><p>首页</p></li></a> |
|||
<a href="/Weixin/index.php?m=Store&a=index"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/brand_icon.png"><p>分类</p></li></a> |
|||
<a href="/Weixin/index.php?m=Cart&a=index"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/car_icon.png"><p>购物车</p></li></a> |
|||
<a href="/Weixin/index.php?m=User&a=index"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/center_icon.png"><p>个人中心</p></li></a></ul> |
|||
<div class="cl"></div> |
|||
</div> |
|||
</div> |
|||
</div><!--/.col-xs-12.col-sm-9--> |
|||
|
|||
<div class="col-xs-12 col-sm-3 sidebar-offcanvas" id="sidebar"> |
|||
|
|||
<div class="panel panel-info"> |
|||
<div class="panel-heading">热门推荐</div> |
|||
<h1 class="arc_tit"><?php echo $post['title']; ?></h1>
|
|||
|
|||
<div class="list-group"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['typeid'],"expression"=>[['id', '<', $pre?$pre['id']:$post["id"]]]));if($posts){foreach($posts as $row){ ?>
|
|||
<a class="list-group-item" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><?php }} ?>
|
|||
</div> |
|||
</div> |
|||
</div><!--/.sidebar-offcanvas--></div><!--/row--></div><!-- /.container --> |
|||
@include('home.common.footer')</body></html> |
|||
<div class="arc_content box"> |
|||
<div class="ainfo"><?php echo $post['pubdate']; ?></div>
|
|||
<div> |
|||
查询新股配号主要有以下三点:</div> |
|||
<div> |
|||
</div> |
|||
<div> |
|||
1.到证券营业部进行查询。</div> |
|||
<div> |
|||
</div> |
|||
<div> |
|||
2.在申购日后的第三天投资者可通过网上进行新股配号的查询。</div> |
|||
<div> |
|||
</div> |
|||
<div> |
|||
3.客户还可以通过交易所的咨询电话进行查询:0755-2288800(深市),021-16893006(沪市)投资者所查到的配号是投资者在一个帐户上申购新股所得配号的起始号,其余配号依次顺延.</div> |
|||
<div class="arcnext cl">下: <a class="red" href="http://m.1104.org/cat60/id4051" rel="prev">网上申购新股如何操作</a></div></div> |
|||
|
|||
@include('weixin.common.footer') |
|||
</body></html> |
@ -1,26 +1,55 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|||
<title>搜索结果_<?php echo sysconfig('CMS_WEBNAME'); ?></title>
|
|||
<link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/style.css"><script src="/js/jquery.min.js"></script><script src="/js/bootstrap.min.js"></script></head><body> |
|||
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/> |
|||
<title>商城</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"> |
|||
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet"> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script><script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/layer-mobile.js"></script> |
|||
<meta name="keywords" content="关键词"><meta name="description" content="描述"></head><body> |
|||
<div class="classreturn loginsignup"> |
|||
<div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div> |
|||
<div class="ds-in-bl tit center"><span>搜索</span></div> |
|||
<div class="ds-in-bl nav_menu"><a href="javascript:void(0);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/class1.png" alt="菜单"></a></div> |
|||
</div> |
|||
<div class="flool tpnavf cl"> |
|||
<div class="nav_list"> |
|||
<ul> |
|||
<a href="index.html"><li><img src="images/weixin/home_icon.png"><p>首页</p></li></a> |
|||
<a href="/Weixin/index.php?m=Store&a=index"><li><img src="images/weixin/brand_icon.png"><p>分类</p></li></a> |
|||
<a href="/Weixin/index.php?m=Cart&a=index"><li><img src="images/weixin/car_icon.png"><p>购物车</p></li></a> |
|||
<a href="/Weixin/index.php?m=User&a=index"><li><img src="images/weixin/center_icon.png"><p>个人中心</p></li></a></ul> |
|||
<div class="cl"></div> |
|||
</div> |
|||
</div> |
|||
|
|||
@include('home.common.header') |
|||
<div class="container"> |
|||
<div class="row row-offcanvas row-offcanvas-right"> |
|||
<div class="col-xs-12 col-sm-9"> |
|||
<div class="bread"><a href="/"><?php echo sysconfig('CMS_INDEXNAME'); ?></a> > <?php echo '搜索结果'; ?></div>
|
|||
<h1 class="page-header">搜索结果</h1> |
|||
<div class="cl search_pl"> |
|||
<form method="get" action="<?php echo route('weixin_goods_list'); ?>" id="sourch_form"> |
|||
<input type="text" name="keyword" id="keyword" value="" placeholder="搜索商品"> |
|||
<a href="javascript:;" onclick="ajaxsecrch()"><img src="<?php echo env('APP_URL'); ?>/images/weixin/sea.png"></a> |
|||
</form> |
|||
<div class="cl"></div> |
|||
</div> |
|||
<script> |
|||
function ajaxsecrch(){ |
|||
if($.trim($('#keyword').val()) != ''){ |
|||
$("#sourch_form").submit(); |
|||
}else{ |
|||
layer.open({content:'请输入搜索关键字',time:2}); |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<?php if(!empty($posts)){foreach($posts as $row){ ?><div class="list"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?>
|
|||
<strong class="tit"><a href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></strong><p><?php echo mb_strcut($row['description'],0,150,'UTF-8'); ?>..</p>
|
|||
<div class="info"><span class="fl"><?php $taglist=taglist($row['id']);if($taglist){foreach($taglist as $row){ ?><a href="<?php echo get_front_url(array("tagid"=>$row['id'],"type"=>'tags')); ?>"><?php echo $row['tag']; ?></a><?php }} ?><em><?php echo date("m-d H:i",$row['pubdate']); ?></em></span><span class="fr"><em><?php echo $row['click']; ?></em>人阅读</span></div><div class="cl"></div></div><?php }} ?><div id="lad2"><script>ljs2();</script></div>
|
|||
</div><!--/.col-xs-12.col-sm-9--> |
|||
<div class="hot_keyword_box"> |
|||
<div class="tit_18 mt10 mb10"> |
|||
<span>热门搜索</span> |
|||
</div> |
|||
<div class="hot_keyword"> |
|||
<a href="/index.php/mobile/Goods/search/q/%E6%89%8B%E6%9C%BA.html" class="ht">手机</a> |
|||
<a href="/index.php/mobile/Goods/search/q/%E5%B0%8F%E7%B1%B3.html">小米</a> |
|||
<a href="/index.php/mobile/Goods/search/q/iphone.html">iphone</a> |
|||
<a href="/index.php/mobile/Goods/search/q/%E4%B8%89%E6%98%9F.html">三星</a> |
|||
<a href="/index.php/mobile/Goods/search/q/%E5%8D%8E%E4%B8%BA.html">华为</a> |
|||
<a href="/index.php/mobile/Goods/search/q/%E5%86%B0%E7%AE%B1.html">冰箱</a> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-xs-12 col-sm-3 sidebar-offcanvas" id="sidebar"><div class="panel panel-info"> |
|||
<div class="panel-heading">热门推荐</div> |
|||
<div class="list-group"><?php $posts=arclist(array("row"=>5,"orderby"=>'rand()'));if($posts){foreach($posts as $row){ ?>
|
|||
<a class="list-group-item" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><?php }} ?>
|
|||
</div> |
|||
</div></div><!--/.sidebar-offcanvas--></div><!--/row--> |
|||
|
|||
</div><!-- /.container --> |
|||
@include('home.common.footer')</body></html> |
|||
@include('weixin.common.footer') |
|||
</body></html> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue