作者 v_bairong06

pc端功能整理

... ... @@ -13,7 +13,7 @@
<div class="control-group">
<label class="control-label">{:L('NAME')}</label>
<div class="controls">
<input type="text" name="name"><span class="form-required">*</span>
<input type="text" name="brand_name"><span class="form-required">*</span>
</div>
</div>
</fieldset>
... ...
... ... @@ -41,6 +41,16 @@
</td>
</tr>
<tr>
<th width="80">地区</th>
<td>
<select style="max-height: 100px;" name="region_id">
<volist name="region" id="vo">
<option value="{$vo.id}">{$vo.name}</option>
</volist>
</select>
</td>
</tr>
<tr>
<th>商品名称</th>
<td>
<input type="text" style="width:400px;" name="post[goods_name]" id="goods_name" required placeholder="请输入商品名称"/>
... ...
... ... @@ -42,6 +42,16 @@
</td>
</tr>
<tr>
<th width="80">地区</th>
<td>
<select style="max-height: 100px;" name="region_id">
<volist name="region" id="vo">
<option <if condition="$post['region_id'] eq $vo['id']">selected</if> value="{$vo.id}">{$vo.name}</option>
</volist>
</select>
</td>
</tr>
<tr>
<th>商品名称</th>
<td>
<input type="hidden" name="post[id]" value="{$post.id}">
... ...
... ... @@ -33,16 +33,20 @@
</div>
</div>
<if condition="$data['parent'] eq 0">
<!--<div class="control-group">-->
<!--<label class="control-label">logo图</label>-->
<!--<div style="margin-left:180px;">-->
<!--<input type="hidden" name="logo" id="logo" value="{$logo|default=''}">-->
<!--<a href="javascript:upload_one_image('图片上传','#thumb');">-->
<!--<img src="__TMPL__Public/assets/images/default-thumbnail.png" id="thumb-preview" width="150" style="cursor: hand"/>-->
<!--</a>-->
<!--<input type="button" class="btn btn-small" onclick="$('#thumb-preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb').val('');return false;" value="取消图片">-->
<!--</div>-->
<!--</div>-->
<div class="control-group">
<label class="control-label">pc广告图</label>
<div style="margin-left:180px;">
<input type="hidden" name="logo" id="logo" value="{$data.logo|default=''}">
<a href="javascript:upload_one_image('图片上传','#logo');">
<if condition="empty($data['logo'])">
<img src="__TMPL__Public/assets/images/default-thumbnail.png" id="logo-preview" width="150" style="cursor: hand"/>
<else />
<img src="{:sp_get_image_preview_url($data['logo'])}" id="logo-preview" width="150" style="cursor: hand"/>
</if>
</a>
<input type="button" class="btn btn-small" onclick="$('#logo-preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#logo').val('');return false;" value="取消图片">
</div>
</div>
</if>
</fieldset>
</div>
... ...
... ... @@ -260,6 +260,66 @@ class AppframeController extends Controller {
return $page;
}
/**
*
* @param number $totalSize 总数
* @param number $pageSize 总页数
* @param number $currentPage 当前页
* @param number $listRows 每页显示条数
* @param string $pageParam 分页参数
* @param string $pageLink 分页链接
* @param string $static 是否为静态链接
*/
protected function pages($totalSize = 1, $pageSize = 0, $currentPage = 1, $listRows = 6, $pageParam = '', $pageLink = '', $static = FALSE) {
if ($pageSize == 0) {
$pageSize = C("PAGE_LISTROWS");
}
if (empty($pageParam)) {
$pageParam = C("VAR_PAGE");
}
$page = new \Page($totalSize, $pageSize, $currentPage, $listRows, $pageParam, $pageLink, $static);
$page->setLinkWraper("");
if(sp_is_mobile()){
$page->SetPager('new', '{prev}&nbsp;{list}&nbsp;{next}', array("listlong" => "4", "prev" => "<", "next" => ">", "list" => "*", "disabledclass" => ""));
}else{
$page->SetPager('new', '{prev}&nbsp;{liststart}{list}{listend}&nbsp;{next}', array("listlong" => "10", "prev" => "<", "next" => ">", "list" => "*", "disabledclass" => ""));
}
return $page;
}
/**
*
* @param number $totalSize 总数
* @param number $pageSize 总页数
* @param number $currentPage 当前页
* @param number $listRows 每页显示条数
* @param string $pageParam 分页参数
* @param string $pageLink 分页链接
* @param string $static 是否为静态链接
*/
protected function page_goods($totalSize = 1, $pageSize = 0, $currentPage = 1, $listRows = 6, $pageParam = '', $pageLink = '', $static = FALSE) {
if ($pageSize == 0) {
$pageSize = C("PAGE_LISTROWS");
}
if (empty($pageParam)) {
$pageParam = C("VAR_PAGE");
}
$page = new \Page($totalSize, $pageSize, $currentPage, $listRows, $pageParam, $pageLink, $static);
$page->setLinkWraper("li");
if(sp_is_mobile()){
$page->SetPager('goods', '{prev}&nbsp;{list}&nbsp;{next}', array("listlong" => "4", "prev" => "<", "next" => ">", "list" => "*", "disabledclass" => ""));
}else{
$page->SetPager('goods', '{first}{prev}&nbsp;{liststart}{list}{listend}&nbsp;{next}{last}', array("listlong" => "10", "first" => "<<", "last" => ">>", "prev" => "<", "next" => ">", "list" => "*", "disabledclass" => ""));
}
return $page;
}
//空操作
public function _empty() {
$this->error('该页面不存在!');
... ...
... ... @@ -17,6 +17,7 @@ class GoodsModel extends CommonModel {
//array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间)
array('sort_id', 'number', '分类ID不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
array('brand_id', 'require', '品牌ID不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
array('region_id', 'require', '地区ID不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
array('goods_name', 'require', '商品名称不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
array('short_name', 'require', '商品简略标题不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
array('goods_price', 'require', '商品现价不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
... ...
... ... @@ -21,6 +21,7 @@ class AdminGoodsController extends AdminbaseController {
$this->goods_model = D("Common/Goods");
$this->product_model = D("Common/Product");
$this->goods_brand_model = D("Common/GoodsBrand");
$this->region();
}
// 后台商品管理列表
... ... @@ -48,6 +49,9 @@ class AdminGoodsController extends AdminbaseController {
if(empty($_POST['brand_id'])){
$this->error("请选择品牌!");
}
if(empty($_POST['region_id'])){
$this->error("请选择地区!");
}
if(!empty($_POST['photos_alt']) && !empty($_POST['photos_url'])){
foreach ($_POST['photos_url'] as $key=>$url){
$photourl = sp_asset_relative_url($url);
... ... @@ -58,6 +62,7 @@ class AdminGoodsController extends AdminbaseController {
$goods = I("post.post");
$goods['sort_id'] = $_POST['sort_id'];
$goods['brand_id'] = $_POST['brand_id'];
$goods['region_id'] = $_POST['region_id'];
$goods['thumb'] = sp_asset_relative_url($goods['thumb']);
$goods['image'] = json_encode($_POST['smeta']);
$goods['goods_content'] = htmlspecialchars_decode($goods['goods_content']);
... ... @@ -95,6 +100,9 @@ class AdminGoodsController extends AdminbaseController {
if(empty($_POST['brand_id'])){
$this->error("请选择品牌!");
}
if(empty($_POST['region_id'])){
$this->error("请选择地区!");
}
$id = intval($_POST['post']['id']);
if(!empty($_POST['photos_alt']) && !empty($_POST['photos_url'])){
... ... @@ -106,6 +114,7 @@ class AdminGoodsController extends AdminbaseController {
$goods = I("post.post");
$goods['sort_id'] = $_POST['sort_id'];
$goods['brand_id'] = $_POST['brand_id'];
$goods['region_id'] = $_POST['region_id'];
$goods['thumb'] = sp_asset_relative_url($goods['thumb']);
$goods['image'] = json_encode($_POST['smeta']);
$goods['goods_content'] = htmlspecialchars_decode($goods['goods_content']);
... ...
... ... @@ -47,23 +47,6 @@ class AdminProductController extends AdminbaseController {
public function edit(){
$id = I("get.id",0,'intval');
$data=$this->product_model->where(array("id" => $id))->find();
// $tree = new \Tree();
// $tree->icon = array('&nbsp;&nbsp;&nbsp;│ ', '&nbsp;&nbsp;&nbsp;├─ ', '&nbsp;&nbsp;&nbsp;└─ ');
// $tree->nbsp = '&nbsp;&nbsp;&nbsp;';
// $terms = $this->product_model->where(array("id" => array("NEQ",$id), "path"=>array("notlike","%-$id-%")))->order(array("path"=>"asc"))->select();
//
// $new_terms=array();
// foreach ($terms as $r) {
// $r['parentid']=$r['parent'];
// $r['selected']=$data['parent']==$r['id']?"selected":"";
// $new_terms[] = $r;
// }
//
// $tree->init($new_terms);
// $tree_tpl="<option value='\$id' \$selected>\$spacer\$name</option>";
// $tree=$tree->get_tree(0,$tree_tpl);
//
// $this->assign("terms_tree",$tree);
$this->assign("data",$data);
$this->display();
}
... ...
... ... @@ -12,9 +12,39 @@ use Common\Controller\HomebaseController;
class ExamController extends HomebaseController {
protected $exam_model;
function _initialize() {
parent::_initialize();
$this->exam_model = D("Common/Exam");
}
// 在线调查列表
public function index() {
$this->assign('list', M('Exam')->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->select());
$this->_lists();
$this->display();
}
/**
* 地方非遗列表处理方法,根据不同条件显示不同的列表
* @param array $where 查询条件
*/
private function _lists($where=array()){
$where['is_del'] = 0;
$this->exam_model
->where($where);
$count = $this->exam_model->count();
$page = $this->pages($count, 2);
$posts = $this->exam_model
->where($where)
->limit($page->firstRow , $page->listRows)
->order("ctime DESC")
->select();
$this->assign("page", $page->show('new'));
$this->assign("posts",$posts);
}
}
\ No newline at end of file
... ...
... ... @@ -51,11 +51,29 @@ class GoodsController extends HomebaseController {
// 商品列表页
public function goods_list() {
// 处理筛选内容
$search = I('get.');
$where = $this->goods_search($search);
if(I('get.id',0,'intval')) {
$ids = $this->product_model->getChildId(I('get.id'));
$goodsList = $this->goods_model->getGoodsList($ids);
$where['g.is_del'] = 0;
$where['g.sort_id'] = array('in',$ids);
$goodsList = $this->_lists($where,$search['sort']);
// 导航下面包屑内容处理
$product = $this->product_model->field(array('id','name'))->where(array('id'=>I('get.id')))->find();
$nav = '<a href='.U('goods_list',array('id'=>$product['id'])).'>'.$product['name'].'</a>';
$this->assign('goods_nav',$nav);
} elseif(I('get.cid',0,'intval')) {
$goodsList = $this->goods_model->getGoodsList(I('get.cid'));
$where['g.is_del'] = 0;
$where['g.sort_id'] = array('in',I('get.cid'));
$goodsList = $this->_lists($where,$search['sort']);
// 导航下面包屑内容处理
$product = $this->product_model->field(array('id,name,parent'))->where(array('id'=>I('get.cid')))->find();
$top_product = $this->product_model->field(array('id,name'))->where(array('id'=>$product['parent']))->find();
$nav = '<a href='.U('goods_list',array('id'=>$top_product['id'])).'>'.$top_product['name'].'</a> > '.
'<a href='.U('goods_list',array('cid'=>$product['id'])).'>'.$product['name'].'</a>';
$this->assign('goods_nav',$nav);
} else {
$this->error('参数错误');
}
... ... @@ -68,7 +86,95 @@ class GoodsController extends HomebaseController {
}
}
}
$this->assign('search',$search);
$this->assign('list', $goodsList);
// 筛选功能数组
$price_search = array('0-300','300-2000','2000-5000','5000-10000','10000-20000','20000');
$this->assign('price_search',$price_search);
$this->region();
$this->assign('brandList',$this->goods_brand_model->getList());
$this->display();
}
// 处理搜索条件
public function goods_search($search) {
unset($search['sort']);
if($search['region']) {
$where['region_id'] = $search['region'];
}
if($search['price']) {
$where['goods_price'] = array('between', explode('-', $search['price']));
if ($search['price'] == 20000) {
$where['goods_price'] = array('lt', $search['price']);
}
}
if($search['brand']) {
$where['brand_id'] = $search['brand'];
}
// 地区
$url['region_search'] = $search;
unset($url['region_search']['region']);
// 价格
$url['price_search'] = $search;
unset($url['price_search']['price']);
// 品牌
$url['brand_search'] = $search;
unset($url['brand_search']['brand']);
$this->assign('search_url',$url);
return $where;
}
/**
* 商品列表处理方法,根据不同条件显示不同的列表
* @param array $where 查询条件
*/
private function _lists($where=array(),$order = null){
$this->goods_model
->where($where);
// 排序处理
if($order) {
if($order == 'news') {
$order = array('g.ctime'=>'DESC');
}
if($order == 'price_up') {
$order = array('g.goods_price'=>'ASC');
}
if($order == 'price_down') {
$order = array('g.goods_price'=>'DESC');
}
if($order == 'buy') {
$order = array('g.istop'=>'DESC');
}
} else {
$order = array('ctime'=>'DESC');
}
$count = $this->goods_model->alias('g')
->join('__GOODS_BRAND__ as gb on g.brand_id = gb.id')
->join('__PRODUCT__ as p on g.sort_id = p.id')
->where($where)
->count();
$page = $this->page_goods($count, 20);
$posts = $this->goods_model->field(array('g.*,gb.brand_name,p.name'))->alias('g')
->join('__GOODS_BRAND__ as gb on g.brand_id = gb.id')
->join('__PRODUCT__ as p on g.sort_id = p.id')
->where($where)
->limit($page->firstRow , $page->listRows)
->order($order)
->select();
$this->assign("page", $page->show('goods'));
return $posts;
}
// 商品搜索页面
public function search() {
$keyword = $where['g.goods_name|g.short_name|gb.brand_name|p.name'] = I('get.keyword');
if(!$keyword) {
$this->error('查询失败');
}
$where['g.is_del'] = 0;
$this->_lists($where);
$this->display();
}
... ...
... ... @@ -29,26 +29,53 @@ use Common\Controller\HomebaseController;
* 首页
*/
class IndexController extends HomebaseController {
//首页 小夏是老猫除外最帅的男人了
public function index() {
// $upload = new \Think\Upload();
// $file=array('savepath'=>'','savename'=>'20171129172200.jpg','tmp_name'=>'./data/upload/20171129172200.jpg');
// $result=$upload->getUploader()->save($file);
//// unlink($targetName);
// var_dump($result);
$this->display(":index1");
protected $successor_model;
protected $chance_events_model;
protected $train_model;
protected $local_remains_model;
protected $goods_model;
protected $project_model;
protected $posts_model;
function _initialize() {
parent::_initialize();
$this->successor_model = D("Common/Successor");
$this->chance_events_model = D("Common/ChanceEvents");
$this->train_model = D("Common/Train");
$this->local_remains_model = D("Common/LocalRemains");
$this->goods_model = D("Common/Goods");
$this->project_model = D("Common/Project");
$this->posts_model = D("Common/Posts");
}
public function curl() {
$access_token = $this->access_token();
// access_token及openid获取用户基本信息
$userinfo_url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=".$access_token."&openid=".I('post.openid')."&lang=zh_CN";
$userInfo = json_decode(file_get_contents($userinfo_url),true);
$result_text1 = $this->customSend(I('post.openid'), 'text', array('content'=>I('post.text1')),$access_token);
if($result_text1['errcode'] == 0) {
$this->customSend(I('post.openid'), 'image', array('media_id'=>I('post.media')),$access_token);
}
//首页
public function index() {
// 传承人
$successorList = $this->successor_model->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->limit(6)->select();
$this->assign('successorList',$successorList);
// 活动赛事
$chanceEventsList = $this->chance_events_model->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->limit(3)->select();
$this->assign('chanceEventsList',$chanceEventsList);
// 体验培训
$trainList = $this->train_model->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->limit(5)->select();
$this->assign('trainList',$trainList);
// 地方非遗
$localRemainsList = $this->local_remains_model->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->limit(3)->select();
$this->assign('localRemainsList',$localRemainsList);
// 非遗项目
$projectList = $this->project_model->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->limit(5)->select();
$this->assign('projectList',$projectList);
// 研究院
$academeList = $this->posts_model->field('a.*')
->alias("a")
->join("__TERM_RELATIONSHIPS__ b ON a.id = b.object_id")
->where(array('b.term_id'=>array('in','4,5,6')))
->limit(3)
->order("a.post_date DESC")
->select();
$this->assign('academeList',$academeList);
$this->display(":index1");
}
}
... ...
... ... @@ -66,7 +66,7 @@ class LocalRemainsController extends HomebaseController {
$count = $this->local_remains_model->count();
$page = $this->page($count, 20);
$page = $this->pages($count, 2);
$posts = $this->local_remains_model
->where($where)
... ... @@ -77,7 +77,7 @@ class LocalRemainsController extends HomebaseController {
$sname[] = $v['sname'];
}
$this->assign('sname',$sname);
$this->assign("page", $page->show('Admin'));
$this->assign("page", $page->show('new'));
$this->assign("posts",$posts);
}
}
\ No newline at end of file
... ...
... ... @@ -119,14 +119,14 @@ class SuccessorController extends HomebaseController {
$count = $this->successor_model->count();
$page = $this->page($count, 20);
$page = $this->pages($count, 1);
$posts = $this->successor_model
->where($where)
->limit($page->firstRow , $page->listRows)
->order("ctime DESC")
->select();
$this->assign("page", $page->show('Admin'));
$this->assign("page", $page->show('new'));
$this->assign("posts",$posts);
}
}
\ No newline at end of file
... ...
... ... @@ -234,15 +234,15 @@ class Page {
$pStart = 1;
for ($i = $pStart; $i <= $pEnd; $i++) {
if ($i == $cfg ['pageindex']) {
$wraper= empty($this->linkwraper)?'':'<'.$this->linkwraper.' class="active '.$cfg ['currentclass'].'">';
$this->pList .=$wraper.'<span class="' . $cfg ['currentclass'] . '" >' . str_replace('*', $i, $cfg ['list']) . '</span> '.$this->linkwraper_after;
$wraper= empty($this->linkwraper)?'':'<'.$this->linkwraper.' class="active">';
$this->pList .=$wraper.'<a class="item cur">' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
} else {
//此处是为了照顾静态地址生成时,第一页不显示当前分页1,启用该方法,静态地址需要$this->PageLink传入的是array,并且包含两个 index,list。index是首页
//事例用法 new Page(50,5,2,6,"page",array("index"=>"http://www.a.com/192.html","list"=>"http://www.a.com/192-{page}.html",),true);
if ($this->Static && $i == 1) {
$this->pList .= $this->linkwraper_pre.'<a href="' . $this->PageLink['index'] . '"> ' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
$this->pList .= $this->linkwraper_pre.'<a class="item" href="' . $this->PageLink['index'] . '"> ' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
} else {
$this->pList .= $this->linkwraper_pre.'<a href="' . str_replace('*', $i, $cfg ['link']) . '"> ' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
$this->pList .= $this->linkwraper_pre.'<a class="item" href="' . str_replace('*', $i, $cfg ['link']) . '"> ' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
}
}
}
... ... @@ -250,9 +250,9 @@ class Page {
if ($cfg ['listsidelong'] < $pStart) {
for ($i = 1; $i <= $cfg ['listsidelong']; $i++) {
if ($this->Static && $i == 1) {
$this->pListStart .= $this->linkwraper_pre.'<a href="' . $this->PageLink['index'] . '">' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
$this->pListStart .= $this->linkwraper_pre.'<a class="item" href="' . $this->PageLink['index'] . '">' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
} else {
$this->pListStart .= $this->linkwraper_pre.'<a href="' . str_replace('*', $i, $cfg ['link']) . '">' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
$this->pListStart .= $this->linkwraper_pre.'<a class="item" href="' . str_replace('*', $i, $cfg ['link']) . '">' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
}
}
$this->pListStart .= ($cfg ['listsidelong'] + 1) == $pStart ? '' : $cfg ['more'] . ' ';
... ... @@ -260,9 +260,9 @@ class Page {
if ($cfg ['listsidelong'] >= $pStart && $pStart > 1) {
for ($i = 1; $i <= ($pStart - 1); $i++) {
if ($this->Static && $i == 1) {
$this->pListStart .= $this->linkwraper_pre.'<a href="' . $this->PageLink['index'] . '"> ' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
$this->pListStart .= $this->linkwraper_pre.'<a class="item" href="' . $this->PageLink['index'] . '"> ' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
} else {
$this->pListStart .= $this->linkwraper_pre.'<a href="' . str_replace('*', $i, $cfg ['link']) . '"> ' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
$this->pListStart .= $this->linkwraper_pre.'<a class="item" href="' . str_replace('*', $i, $cfg ['link']) . '"> ' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
}
}
}
... ... @@ -271,18 +271,18 @@ class Page {
$this->pListEnd = ' ' . $cfg ['more'] . $this->pListEnd;
for ($i = (($cfg ['pagecount'] - $cfg ['listsidelong']) + 1); $i <= $cfg ['pagecount']; $i++) {
if ($this->Static && $i == 1) {
$this->pListEnd .= $this->linkwraper_pre.'<a href="' . $this->PageLink['index'] . '">' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
$this->pListEnd .= $this->linkwraper_pre.'<a class="item" href="' . $this->PageLink['index'] . '">' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
} else {
$this->pListEnd .= $this->linkwraper_pre.'<a href="' . str_replace('*', $i, $cfg ['link']) . '"> ' . str_replace('*', $i, $cfg ['list']) . ' </a> '.$this->linkwraper_after;
$this->pListEnd .= $this->linkwraper_pre.'<a class="item" href="' . str_replace('*', $i, $cfg ['link']) . '"> ' . str_replace('*', $i, $cfg ['list']) . ' </a> '.$this->linkwraper_after;
}
}
} else {
if (($cfg ['pagecount'] - $cfg ['listsidelong']) <= $pEnd && $pEnd < $cfg ['pagecount']) {
for ($i = ($pEnd + 1); $i <= $cfg ['pagecount']; $i++) {
if ($this->Static && $i == 1) {
$this->pListEnd .= '<a href="' . $this->PageLink['index'] . '">' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
$this->pListEnd .= '<a class="item" href="' . $this->PageLink['index'] . '">' . str_replace('*', $i, $cfg ['list']) . '</a> '.$this->linkwraper_after;
} else {
$this->pListEnd .= $this->linkwraper_pre.'<a href="' . str_replace('*', $i, $cfg ['link']) . '"> ' . str_replace('*', $i, $cfg ['list']) . ' </a> '.$this->linkwraper_after;
$this->pListEnd .= $this->linkwraper_pre.'<a class="item" href="' . str_replace('*', $i, $cfg ['link']) . '"> ' . str_replace('*', $i, $cfg ['list']) . ' </a> '.$this->linkwraper_after;
}
}
}
... ... @@ -291,20 +291,26 @@ class Page {
//上一页 首页
if ($cfg ['pageindex'] > 1) {
if ($this->Static) {
$this->pFirst = $this->linkwraper_pre.'<a href="' . $this->PageLink['index'] . '">' . $cfg ['first'] . '</a> '.$this->linkwraper_after; //首页
$wraper= empty($this->linkwraper)?$this->linkwraper_pre:'<'.$this->linkwraper.' class="p-index">';
$this->pFirst = $wraper.'<a class="item" href="' . $this->PageLink['index'] . '">' . $cfg ['first'] . '</a> '.$this->linkwraper_after; //首页
} else {
$this->pFirst = $this->linkwraper_pre.'<a href="' . str_replace('*', 1, $cfg ['link']) . '">' . $cfg ['first'] . '</a> '.$this->linkwraper_after; //首页
$wraper= empty($this->linkwraper)?$this->linkwraper_pre:'<'.$this->linkwraper.' class="p-index">';
$this->pFirst = $wraper.'<a class="item" href="' . str_replace('*', 1, $cfg ['link']) . '">' . $cfg ['first'] . '</a> '.$this->linkwraper_after; //首页
}
if ($this->Static && ($cfg ['pageindex'] - 1) == 1) {
$this->pPrev = $this->linkwraper_pre.'<a href="' . $this->PageLink['index'] . '">' . $cfg ['prev'] . '</a> '.$this->linkwraper_after; //上一页
$wraper= empty($this->linkwraper)?$this->linkwraper_pre:'<'.$this->linkwraper.' class="p-prev">';
$this->pPrev = $wraper.'<a class="prev" href="' . $this->PageLink['index'] . '">' . $cfg ['prev'] . '</a> '.$this->linkwraper_after; //上一页
} else {
$this->pPrev = $this->linkwraper_pre.'<a href="' . str_replace('*', $cfg ['pageindex'] - 1, $cfg ['link']) . '">' . $cfg ['prev'] . '</a> '.$this->linkwraper_after;
$wraper= empty($this->linkwraper)?$this->linkwraper_pre:'<'.$this->linkwraper.' class="p-prev">';
$this->pPrev = $wraper.'<a class="prev" href="' . str_replace('*', $cfg ['pageindex'] - 1, $cfg ['link']) . '">' . $cfg ['prev'] . '</a> '.$this->linkwraper_after;
}
}
//下一页,尾页
if ($cfg ['pageindex'] < $cfg ['pagecount']) {
$this->pLast = $this->linkwraper_pre.'<a href="' . str_replace('*', $cfg ['pagecount'], $cfg ['link']) . '">' . $cfg ['last'] . '</a> '.$this->linkwraper_after;
$this->pNext = $this->linkwraper_pre.'<a href="' . str_replace('*', $cfg ['pageindex'] + 1, $cfg ['link']) . '">' . $cfg ['next'] . '</a> '.$this->linkwraper_after;
$wraper_next= empty($this->linkwraper)?$this->linkwraper_pre:'<'.$this->linkwraper.' class="p-next">';
$wraper_end= empty($this->linkwraper)?$this->linkwraper_pre:'<'.$this->linkwraper.' class="p-end">';
$this->pLast = $wraper_next.'<a class="next" href="' . str_replace('*', $cfg ['pagecount'], $cfg ['link']) . '">' . $cfg ['last'] . '</a> '.$this->linkwraper_after;
$this->pNext = $wraper_end.'<a class="next" href="' . str_replace('*', $cfg ['pageindex'] + 1, $cfg ['link']) . '">' . $cfg ['next'] . '</a> '.$this->linkwraper_after;
}
//快捷跳转方式
... ...
... ... @@ -29,7 +29,7 @@
<div class="main">
<div class="research-list">
<ul>
<volist name="list" id="vo">
<volist name="posts" id="vo">
<li>
<a href="{$vo.url}" target="_blank" class="res-box">
<div class="res-title">{$vo.name}</div>
... ... @@ -41,18 +41,7 @@
</div>
<div class="page-wrap">
<div class="page-box">
<a href="" class="prev"></a>
<a href="" class="item cur">1</a>
<a href="" class="item">2</a>
<a href="" class="item">3</a>
<a href="" class="item">4</a>
<a href="" class="item">5</a>
<a href="" class="item">6</a>
<a href="" class="item">7</a>
<a href="" class="item">8</a>
<span class="i-more">...</span>
<a href="" class="item">100</a>
<a href="" class="next"></a>
{$page}
</div>
</div>
</div>
... ...
... ... @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>shop-list</title>
<title>商品列表</title>
<link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/shop.css" rel="stylesheet" type="text/css" />
... ... @@ -14,7 +14,7 @@
<!---container-->
<div class="s-container">
<div class="breadcrumb">
<a href="" class="home">首页</a> > <a href="">家居陈设</a> > <a href="">家具家居</a>
<a href="" class="home">首页</a> > {$goods_nav}
</div>
<div class="shop-main">
<div class="main">
... ... @@ -23,24 +23,10 @@
<div class="filter-hd">区域:</div>
<div class="filter-bd">
<ul class="filter-value">
<li><a href="">北京</a></li>
<li class="active"><a href="">天津</a></li>
<li><a href="">河北</a></li>
<li><a href="">山西</a></li>
<li><a href="">内蒙古</a></li>
<li><a href="">黑龙江</a></li>
<li><a href="">吉林</a></li>
<li><a href="">辽宁</a></li>
<li><a href="">上海</a></li>
<li><a href="">江苏</a></li>
<li><a href="">浙江</a></li>
<li><a href="">安徽</a></li>
<li><a href="">江西</a></li>
<li><a href="">福建</a></li>
<li><a href="">山东</a></li>
<li><a href="">台湾</a></li>
<li><a href="">河南</a></li>
<li><a href="">湖北</a></li>
<volist name="region" id="vo">
<php>$search_url['region_search']['region'] = $vo['id'];</php>
<li class="<eq name='search.region' value='$vo[id]'>active</eq>"><a href="{:U('goods_list',$search_url['region_search'])}">{$vo.name}</a></li>
</volist>
</ul>
</div>
</div>
... ... @@ -48,12 +34,10 @@
<div class="filter-hd">价格:</div>
<div class="filter-bd">
<ul class="filter-value">
<li><a href="">0-300元</a></li>
<li class="active"><a href="">300-2000元</a></li>
<li><a href="">2000-5000元 </a></li>
<li><a href="">5000-10000元</a></li>
<li><a href="">10000-20000元</a></li>
<li><a href="">20000元以上</a></li>
<volist name="price_search" id="vo">
<php>$search_url['price_search']['price'] = $vo;</php>
<li class="<eq name='search.price' value='$vo'>active</eq>"><a href="{:U('goods_list',$search_url['price_search'])}">{$vo}元<eq name="vo" value="20000">以上</eq></a></li>
</volist>
</ul>
</div>
</div>
... ... @@ -61,22 +45,10 @@
<div class="filter-hd">品牌:</div>
<div class="filter-bd">
<ul class="filter-value">
<li><a href="">铜师傅</a></li>
<li><a href="">RYSING/匠心坊</a></li>
<li class="active"><a href="">吉善缘</a></li>
<li><a href="">初见</a></li>
<li><a href="">佐森</a></li>
<li><a href="">三春三夏</a></li>
<li><a href="">床荟萃家居</a></li>
<li><a href="">艺流家居</a></li>
<li><a href="">初晨</a></li>
<li><a href="">风水阁</a></li>
<li><a href="">木色撩人</a></li>
<li><a href="">良日</a></li>
<li><a href="">铜欣祥</a></li>
<li><a href="">微饰界</a></li>
<li><a href="">依香兰</a></li>
<li><a href="">聚善缘</a></li>
<volist name="brandList" id="vo">
<php>$search_url['brand_search']['brand'] = $vo['id'];</php>
<li class="<eq name='search.brand' value='$vo[id]'>active</eq>"><a href="{:U('goods_list',$search_url['brand_search'])}">{$vo.brand_name}</a></li>
</volist>
</ul>
</div>
</div>
... ... @@ -88,14 +60,18 @@
<div class="hd">综合排序</div>
<div class="bd">
<ul class="zh-filter-item">
<li><a href="">最新</a></li>
<php>$search['sort'] = 'news';</php>
<li><a href="{:U('goods_list',$search)}">最新</a></li>
<li>价格
<div class="zh-arr">
<a href="" class="p-arr-up"></a>
<a href="" class="p-arr-down"></a>
<php>$search['sort'] = 'price_up';</php>
<a href="{:U('goods_list',$search)}" class="p-arr-up"></a>
<php>$search['sort'] = 'price_down';</php>
<a href="{:U('goods_list',$search)}" class="p-arr-down"></a>
</div>
</li>
<li><a href="">人气</a></li>
<php>$search['sort'] = 'buy';</php>
<li><a href="{:U('goods_list',$search)}">人气</a></li>
</ul>
</div>
</div>
... ... @@ -133,23 +109,30 @@
</div>
<!--分页-->
<div class="list-page">
<ul class="page-box">
<li class="p-index"><a href=""><<</a></li>
<li class="p-prev"><a href=""><</a></li>
<li><a href="">1</a></li>
<li><a href="">2</a></li>
<li class="active"><a href="">3</a></li>
<li><a href="">4</a></li>
<li><a href="">5</a></li>
<li><a href="">6</a></li>
<li><a href="">7</a></li>
<li><a href="">8</a></li>
<li><a href="">9</a></li>
<li><a href="">10</a></li>
<li class="p-next"><a href="">></a></li>
<li class="p-end"><a href="">>></a></li>
</ul>
<notempty name="page">
<ul class="page-box">
{$page}
</ul>
</notempty>
</div>
<!--<div class="list-page">-->
<!--<ul class="page-box">-->
<!--<li class="p-index"><a href=""><<</a></li>-->
<!--<li class="p-prev"><a href=""><</a></li>-->
<!--<li><a href="">1</a></li>-->
<!--<li><a href="">2</a></li>-->
<!--<li class="active"><a href="">3</a></li>-->
<!--<li><a href="">4</a></li>-->
<!--<li><a href="">5</a></li>-->
<!--<li><a href="">6</a></li>-->
<!--<li><a href="">7</a></li>-->
<!--<li><a href="">8</a></li>-->
<!--<li><a href="">9</a></li>-->
<!--<li><a href="">10</a></li>-->
<!--<li class="p-next"><a href="">></a></li>-->
<!--<li class="p-end"><a href="">>></a></li>-->
<!--</ul>-->
<!--</div>-->
</div>
</div>
</div>
... ...
... ... @@ -48,7 +48,7 @@
</div>
</div>
<div class="content_banner">
<img src="__TMPL__Public/assets/images/bg03@2x.png"/>
<img src="{:sp_get_image_preview_url($vo['logo'])}"/>
</div>
<div class="content_list">
<volist name="vo.recommend" id="recommend">
... ...
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>商品列表</title>
<link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/shop.css" rel="stylesheet" type="text/css" />
</head>
<body>
<tc_include file="Public:header"/>
<tc_include file="Public:nav"/>
<!---container-->
<div class="s-container">
<div class="breadcrumb">
<a href="" class="home">首页</a> > 搜索商品
</div>
<div class="shop-main">
<div class="main">
<div class="shop-list">
<ul class="clearfix">
<volist name="list" id="vo">
<li data-id="{$vo.id}">
<div class="coll-box">
<a href="{:U('Goods/detail',array('id'=>$vo['id']))}" class="coll-pic scale">
<img src="{:sp_get_asset_upload_path($vo['thumb'])}" alt="" />
</a>
<div class="coll-intro">
<div class="coll-tit"><a href="">{$vo.goods_name}</a></div>
<div class="coll-price">
<span class="normal-price">¥{$vo.price}</span>
<span class="h-price">¥{$vo.goods_price}</span>
</div>
<div class="coll-des">{$vo.short_name}</div>
<div class="coll-action">
<a href="###" class="btn-addcart">加入购物车</a>
<eq name="vo.is_favorite" value="1">
<a href="javascript:;" class="btn-care active"><span>已收藏</span></a>
<else/>
<a href="javascript:;" class="btn-care"><span>收藏</span></a>
</eq>
</div>
</div>
</div>
</li>
</volist>
</ul>
</div>
<!--分页-->
<div class="list-page">
<notempty name="page">
<ul class="page-box">
{$page}
</ul>
</notempty>
</div>
<!--<div class="list-page">-->
<!--<ul class="page-box">-->
<!--<li class="p-index"><a href=""><<</a></li>-->
<!--<li class="p-prev"><a href=""><</a></li>-->
<!--<li><a href="">1</a></li>-->
<!--<li><a href="">2</a></li>-->
<!--<li class="active"><a href="">3</a></li>-->
<!--<li><a href="">4</a></li>-->
<!--<li><a href="">5</a></li>-->
<!--<li><a href="">6</a></li>-->
<!--<li><a href="">7</a></li>-->
<!--<li><a href="">8</a></li>-->
<!--<li><a href="">9</a></li>-->
<!--<li><a href="">10</a></li>-->
<!--<li class="p-next"><a href="">></a></li>-->
<!--<li class="p-end"><a href="">>></a></li>-->
<!--</ul>-->
<!--</div>-->
</div>
</div>
</div>
<tc_include file="Public:footer"/>
<!-- js -->
<script>
var param = {
do_favorite:"{:U('User/Favorite/do_favorite')}",
};
</script>
<script src="__TMPL__Public/assets/js/jquery.min.js"></script>
<script src="__TMPL__Public/assets/js/shop.js"></script>
<tc_include file="Portal/Goods:script"/>
<tc_include file="Public:script"/>
</body>
</html>
... ...
... ... @@ -167,16 +167,7 @@
</ul>
<div class="page-wrap">
<div class="page-box">
<a href="" class="prev"></a>
<a href="" class="item cur">1</a>
<a href="" class="item">2</a>
<a href="" class="item">3</a>
<a href="" class="item">4</a>
<a href="" class="item">5</a>
<a href="" class="item">6</a>
<a href="" class="item">7</a>
<a href="" class="item">8</a>
<a href="" class="next"></a>
{$page}
</div>
</div>
</div>
... ...
... ... @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>3传承人详情</title>
<title>传承人详情</title>
<link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/style.css" rel="stylesheet" type="text/css" />
... ...
... ... @@ -133,16 +133,7 @@
<!--pages-->
<div class="page-wrap">
<div class="page-box">
<a href="" class="prev"></a>
<a href="" class="item cur">1</a>
<a href="" class="item">2</a>
<a href="" class="item">3</a>
<a href="" class="item">4</a>
<a href="" class="item">5</a>
<a href="" class="item">6</a>
<a href="" class="item">7</a>
<a href="" class="item">8</a>
<a href="" class="next"></a>
{$page}
</div>
</div>
</div>
... ...
... ... @@ -60,135 +60,38 @@
<div class="main">
<div class="inheritor">
<div class="bd">
<div class="inheritor-item">
<div class="inher-pic">
<a href="" class="scale"><img src="__TMPL__Public/assets/images/index/jiangzaihong.jpg"/></a>
</div>
<div class="inher-text">
<div class="inher-name">
<span>江再红</span><img src="__TMPL__Public/assets/images/yin.png" alt="" />
</div>
<div class="inher-desc">
<p>江再红,女、汉族、国家级非物质文化遗产</p>
<p>湘绣代表性传承人、 中国工艺美术大师</p>
<p>长沙市非物质文化遗产保护协会会长</p>
<p>自从事湘绣以来,江老师将自己的艺术天赋</p>
<p>创作灵感和情感世界与湘绣艺术融为一体</p>
<p>技艺日益娴熟,艺境不断升华。继承和创新</p>
<p>了湘绣独特针法“毛针”。其代表作</p>
<p>《雄狮》《天伦之乐》《晨雾荷花》</p>
<p>《狮啸雄风》创下了这一传统针法施绣狮虎</p>
<p>题材 “连中四元”的业界佳话。江再红老师</p>
<p>凭借其高超的技艺多次代表国家参加世界</p>
<p>各地的文化艺术展览,并屡获奖项。</p>
</div>
</div>
</div>
<div class="inheritor-item">
<div class="inher-pic">
<a href="" class="scale"><img src="__TMPL__Public/assets/images/index/jiangzaihong.jpg"/></a>
</div>
<div class="inher-text">
<div class="inher-name">
<span>江再红</span><img src="__TMPL__Public/assets/images/yin.png" alt="" />
</div>
<div class="inher-desc">
<p>江再红,女、汉族、国家级非物质文化遗产</p>
<p>湘绣代表性传承人、 中国工艺美术大师</p>
<p>长沙市非物质文化遗产保护协会会长</p>
<p>自从事湘绣以来,江老师将自己的艺术天赋</p>
<p>创作灵感和情感世界与湘绣艺术融为一体</p>
<p>技艺日益娴熟,艺境不断升华。继承和创新</p>
<p>了湘绣独特针法“毛针”。其代表作</p>
<p>《雄狮》《天伦之乐》《晨雾荷花》</p>
<p>《狮啸雄风》创下了这一传统针法施绣狮虎</p>
<p>题材 “连中四元”的业界佳话。江再红老师</p>
<p>凭借其高超的技艺多次代表国家参加世界</p>
<p>各地的文化艺术展览,并屡获奖项。</p>
</div>
</div>
</div>
<div class="inheritor-item">
<div class="inher-pic">
<a href="" class="scale"><img src="__TMPL__Public/assets/images/index/jiangzaihong.jpg"/></a>
</div>
<div class="inher-text">
<div class="inher-name">
<span>江再红</span><img src="__TMPL__Public/assets/images/yin.png" alt="" />
</div>
<div class="inher-desc">
<p>江再红,女、汉族、国家级非物质文化遗产</p>
<p>湘绣代表性传承人、 中国工艺美术大师</p>
<p>长沙市非物质文化遗产保护协会会长</p>
<p>自从事湘绣以来,江老师将自己的艺术天赋</p>
<p>创作灵感和情感世界与湘绣艺术融为一体</p>
<p>技艺日益娴熟,艺境不断升华。继承和创新</p>
<p>了湘绣独特针法“毛针”。其代表作</p>
<p>《雄狮》《天伦之乐》《晨雾荷花》</p>
<p>《狮啸雄风》创下了这一传统针法施绣狮虎</p>
<p>题材 “连中四元”的业界佳话。江再红老师</p>
<p>凭借其高超的技艺多次代表国家参加世界</p>
<p>各地的文化艺术展览,并屡获奖项。</p>
</div>
</div>
</div>
<div class="inheritor-item">
<div class="inher-pic">
<a href="" class="scale"><img src="__TMPL__Public/assets/images/index/jiangzaihong.jpg"/></a>
</div>
<div class="inher-text">
<div class="inher-name">
<span>江再红</span><img src="__TMPL__Public/assets/images/yin.png" alt="" />
<volist name="successorList" id="vo">
<div class="inheritor-item">
<div class="inher-pic">
<a href="" class="scale"><img src="{:sp_get_image_preview_url($vo['thumb'])}"/></a>
</div>
<div class="inher-desc">
<p>江再红,女、汉族、国家级非物质文化遗产</p>
<p>湘绣代表性传承人、 中国工艺美术大师</p>
<p>长沙市非物质文化遗产保护协会会长</p>
<p>自从事湘绣以来,江老师将自己的艺术天赋</p>
<p>创作灵感和情感世界与湘绣艺术融为一体</p>
<p>技艺日益娴熟,艺境不断升华。继承和创新</p>
<p>了湘绣独特针法“毛针”。其代表作</p>
<p>《雄狮》《天伦之乐》《晨雾荷花》</p>
<p>《狮啸雄风》创下了这一传统针法施绣狮虎</p>
<p>题材 “连中四元”的业界佳话。江再红老师</p>
<p>凭借其高超的技艺多次代表国家参加世界</p>
<p>各地的文化艺术展览,并屡获奖项。</p>
<div class="inher-text">
<div class="inher-name">
<span>{$vo.name}</span><img src="__TMPL__Public/assets/images/yin.png" alt="" />
</div>
<div class="inher-desc">
<p>江再红,女、汉族、国家级非物质文化遗产</p>
<p>湘绣代表性传承人、 中国工艺美术大师</p>
<p>长沙市非物质文化遗产保护协会会长</p>
<p>自从事湘绣以来,江老师将自己的艺术天赋</p>
<p>创作灵感和情感世界与湘绣艺术融为一体</p>
<p>技艺日益娴熟,艺境不断升华。继承和创新</p>
<p>了湘绣独特针法“毛针”。其代表作</p>
<p>《雄狮》《天伦之乐》《晨雾荷花》</p>
<p>《狮啸雄风》创下了这一传统针法施绣狮虎</p>
<p>题材 “连中四元”的业界佳话。江再红老师</p>
<p>凭借其高超的技艺多次代表国家参加世界</p>
<p>各地的文化艺术展览,并屡获奖项。</p>
</div>
</div>
</div>
</div>
<div class="inheritor-item">
<div class="inher-pic">
<a href="" class="scale"><img src="__TMPL__Public/assets/images/index/jiangzaihong.jpg"/></a>
</div>
<div class="inher-text">
<div class="inher-name">
<span>江再红</span><img src="__TMPL__Public/assets/images/yin.png" alt="" />
</div>
<div class="inher-desc">
<p>江再红,女、汉族、国家级非物质文化遗产</p>
<p>湘绣代表性传承人、 中国工艺美术大师</p>
<p>长沙市非物质文化遗产保护协会会长</p>
<p>自从事湘绣以来,江老师将自己的艺术天赋</p>
<p>创作灵感和情感世界与湘绣艺术融为一体</p>
<p>技艺日益娴熟,艺境不断升华。继承和创新</p>
<p>了湘绣独特针法“毛针”。其代表作</p>
<p>《雄狮》《天伦之乐》《晨雾荷花》</p>
<p>《狮啸雄风》创下了这一传统针法施绣狮虎</p>
<p>题材 “连中四元”的业界佳话。江再红老师</p>
<p>凭借其高超的技艺多次代表国家参加世界</p>
<p>各地的文化艺术展览,并屡获奖项。</p>
</div>
</div>
</div>
</volist>
</div>
<div class="hd">
<ul>
<li class="on"><span>江再红</span></li>
<li><span>江再红</span></li>
<li><span>江再红</span></li>
<li><span>江再红</span></li>
<li><span>江再红</span></li>
<li><span>江再红</span></li>
<volist name="successorList" id="vo" key="key">
<li class="<eq name='key' value='1'>on</eq>"><span>{$vo.name}</span></li>
</volist>
</ul>
</div>
</div>
... ... @@ -197,7 +100,7 @@
<!--活动赛事-->
<div class="index-section">
<div class="box-header">
<img src="__TMPL__Public/assets/images/index_title2.png"/> <a href="" class="box-more"><span>更多</span></a>
<img src="__TMPL__Public/assets/images/index_title2.png"/> <a href="{:U('Portal/ChanceEvents/index')}" class="box-more"><span>更多</span></a>
</div>
<div class="main">
<div class="media-box">
... ... @@ -211,121 +114,45 @@
</div>
</div>
<ul class="media-list">
<li>
<div class="media-time">
<div class="day">04</div>
<div class="year-month">2017.12</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="">它是中国杂技的完美诠释</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
</div>
</li>
<li>
<div class="media-time">
<div class="day">04</div>
<div class="year-month">2017.12</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="">它是中国杂技的完美诠释</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
</div>
</li>
<li>
<div class="media-time">
<div class="day">04</div>
<div class="year-month">2017.12</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="">它是中国杂技的完美诠释</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
</div>
</li>
<volist name="chanceEventsList" id="vo">
<li>
<div class="media-time">
<div class="day">{:date('d',$vo['ctime'])}</div>
<div class="year-month">{:date('Y-m',$vo['ctime'])}</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="{:U('Portal/ChanceEvents/detail',array('id'=>$vo['id']))}">{$vo.name}</a></div>
<div class="list-desc">{$vo.description}</div>
</div>
</li>
</volist>
</ul>
</div>
</div>
<!--体验培训-->
<div class="index-section ty-section">
<div class="box-header">
<span class="box-tit">体验培训</span> <a href="" class="box-more"><span>更多</span></a>
<span class="box-tit">体验培训</span> <a href="{:U('Portal/Train/work')}" class="box-more"><span>更多</span></a>
</div>
<div class="main">
<ul class="train-list">
<li>
<a href="" class="train-box">
<div class="train-pic">
<img src="__TMPL__Public/assets/images/index/peixun1.png"/>
<div class="train-more">
<div class="so"></div>
<p>查看详情</p>
</div>
</div>
<div class="train-text">
<div class="train-tit">汉绣培训</div>
<div class="train-intro">陶艺,广泛讲是中国传统古老文化与现代艺术结合的艺术形式</div>
</div>
</a>
</li>
<li>
<a href="" class="train-box">
<div class="train-pic">
<img src="__TMPL__Public/assets/images/index/peixun1.png"/>
<div class="train-more">
<div class="so"></div>
<p>查看详情</p>
</div>
</div>
<div class="train-text">
<div class="train-tit">汉绣培训</div>
<div class="train-intro">陶艺,广泛讲是中国传统古老文化与现代艺术结合的艺术形式</div>
</div>
</a>
</li>
<li>
<a href="" class="train-box">
<div class="train-pic">
<img src="__TMPL__Public/assets/images/index/peixun2.png"/>
<div class="train-more">
<div class="so"></div>
<p>查看详情</p>
</div>
</div>
<div class="train-text">
<div class="train-tit">汉绣培训</div>
<div class="train-intro">陶艺,广泛讲是中国传统古老文化与现代艺术结合的艺术形式</div>
</div>
</a>
</li>
<li>
<a href="" class="train-box">
<div class="train-pic">
<img src="__TMPL__Public/assets/images/index/peixun1.png"/>
<div class="train-more">
<div class="so"></div>
<p>查看详情</p>
<volist name="trainList" id="vo">
<li>
<a href="{:U('Portal/Train/detail',array('id'=>$vo['id']))}" class="train-box">
<div class="train-pic">
<img src="{:sp_get_image_preview_url($vo['thumb'])}"/>
<div class="train-more">
<div class="so"></div>
<p>查看详情</p>
</div>
</div>
</div>
<div class="train-text">
<div class="train-tit">汉绣培训</div>
<div class="train-intro">陶艺,广泛讲是中国传统古老文化与现代艺术结合的艺术形式</div>
</div>
</a>
</li>
<li>
<a href="" class="train-box">
<div class="train-pic">
<img src="__TMPL__Public/assets/images/index/peixun1.png"/>
<div class="train-more">
<div class="so"></div>
<p>查看详情</p>
<div class="train-text">
<div class="train-tit">{$vo.name}</div>
<div class="train-intro">陶艺,广泛讲是中国传统古老文化与现代艺术结合的艺术形式</div>
</div>
</div>
<div class="train-text">
<div class="train-tit">汉绣培训</div>
<div class="train-intro">陶艺,广泛讲是中国传统古老文化与现代艺术结合的艺术形式</div>
</div>
</a>
</li>
</a>
</li>
</volist>
</ul>
</div>
</div>
... ... @@ -383,36 +210,18 @@
</div>
</div>
<ul class="media-list">
<li>
<div class="media-time">
<div class="day">04</div>
<div class="year-month">2017.12</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="">它是中国杂技的完美诠释</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
</div>
</li>
<li>
<div class="media-time">
<div class="day">04</div>
<div class="year-month">2017.12</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="">它是中国杂技的完美诠释</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
</div>
</li>
<li>
<div class="media-time">
<div class="day">04</div>
<div class="year-month">2017.12</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="">它是中国杂技的完美诠释</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
</div>
</li>
<volist name="localRemainsList" id="vo">
<li>
<div class="media-time">
<div class="day">{:date('d',$vo['ctime'])}</div>
<div class="year-month">{:date('Y.m',$vo['ctime'])}</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="{:U('Portal/LocalRemains/index')}">{$vo.name}</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
</div>
</li>
</volist>
</ul>
</div>
</div>
... ... @@ -468,134 +277,46 @@
<!--非遗项目-->
<div class="index-section fy-section">
<div class="box-header">
<img src="__TMPL__Public/assets/images/index_title4.png"/> <a href="" class="box-more"><span>更多</span></a>
<img src="__TMPL__Public/assets/images/index_title4.png"/> <a href="{:U('Portal/Project/index')}" class="box-more"><span>更多</span></a>
</div>
<div class="main">
<div class="project-main">
<div class="bd">
<a href="#" class="project-box">
<div class="project-intro">
<div class="ject-tit">昆曲</div>
<div class="ject-desc">
<p>昆曲是明朝中叶至清代中叶戏曲中</p>
<p>的声腔剧种,很多剧种都是在昆剧基础上</p>
<p>发展起来的,被称为“百戏之祖,百戏之师</p>
<p>有 “中国戏曲之母”的雅称。即时</p>
<p>无锡昆曲社对昆曲起到了繁荣推广的作用</p>
<p>昆剧是中国戏曲史上具有最完整表演体系</p>
<p>的剧种,它的基础深厚,遗产丰富</p>
<p>是中国传统文化艺术高度发展的成果</p>
<p>在中国文学史、戏曲史、音乐史、舞蹈史上</p>
<p>占有重要的地位。昆曲的表演,也有它独特</p>
<p>的体系、风格,它最大的特点是抒情性强</p>
<p>动作细腻,歌唱与舞蹈的身段结合得巧妙</p>
<p>而和谐。在语言上,该剧种原先分南曲</p>
<p>和北曲:南昆以苏州白话为主,北昆以</p>
<p>大都韵白和京白为主</p>
<volist name="projectList" id="vo">
<a href="#" class="project-box">
<div class="project-intro">
<div class="ject-tit">{$vo.name}</div>
<div class="ject-desc">
<p>昆曲是明朝中叶至清代中叶戏曲中</p>
<p>的声腔剧种,很多剧种都是在昆剧基础上</p>
<p>发展起来的,被称为“百戏之祖,百戏之师</p>
<p>有 “中国戏曲之母”的雅称。即时</p>
<p>无锡昆曲社对昆曲起到了繁荣推广的作用</p>
<p>昆剧是中国戏曲史上具有最完整表演体系</p>
<p>的剧种,它的基础深厚,遗产丰富</p>
<p>是中国传统文化艺术高度发展的成果</p>
<p>在中国文学史、戏曲史、音乐史、舞蹈史上</p>
<p>占有重要的地位。昆曲的表演,也有它独特</p>
<p>的体系、风格,它最大的特点是抒情性强</p>
<p>动作细腻,歌唱与舞蹈的身段结合得巧妙</p>
<p>而和谐。在语言上,该剧种原先分南曲</p>
<p>和北曲:南昆以苏州白话为主,北昆以</p>
<p>大都韵白和京白为主</p>
</div>
</div>
</div>
<div class="ject-pic"><img src="__TMPL__Public/assets/images/index/kunqu.jpg"/></div>
</a>
<a href="#" class="project-box">
<div class="project-intro">
<div class="ject-tit">昆曲</div>
<div class="ject-desc">
<p>昆曲是明朝中叶至清代中叶戏曲中</p>
<p>的声腔剧种,很多剧种都是在昆剧基础上</p>
<p>发展起来的,被称为“百戏之祖,百戏之师</p>
<p>有 “中国戏曲之母”的雅称。即时</p>
<p>无锡昆曲社对昆曲起到了繁荣推广的作用</p>
<p>昆剧是中国戏曲史上具有最完整表演体系</p>
<p>的剧种,它的基础深厚,遗产丰富</p>
<p>是中国传统文化艺术高度发展的成果</p>
<p>在中国文学史、戏曲史、音乐史、舞蹈史上</p>
<p>占有重要的地位。昆曲的表演,也有它独特</p>
<p>的体系、风格,它最大的特点是抒情性强</p>
<p>动作细腻,歌唱与舞蹈的身段结合得巧妙</p>
<p>而和谐。在语言上,该剧种原先分南曲</p>
<p>和北曲:南昆以苏州白话为主,北昆以</p>
<p>大都韵白和京白为主</p>
</div>
</div>
<div class="ject-pic"><img src="__TMPL__Public/assets/images/index/kunqu.jpg"/></div>
</a>
<a href="#" class="project-box">
<div class="project-intro">
<div class="ject-tit">昆曲</div>
<div class="ject-desc">
<p>昆曲是明朝中叶至清代中叶戏曲中</p>
<p>的声腔剧种,很多剧种都是在昆剧基础上</p>
<p>发展起来的,被称为“百戏之祖,百戏之师</p>
<p>有 “中国戏曲之母”的雅称。即时</p>
<p>无锡昆曲社对昆曲起到了繁荣推广的作用</p>
<p>昆剧是中国戏曲史上具有最完整表演体系</p>
<p>的剧种,它的基础深厚,遗产丰富</p>
<p>是中国传统文化艺术高度发展的成果</p>
<p>在中国文学史、戏曲史、音乐史、舞蹈史上</p>
<p>占有重要的地位。昆曲的表演,也有它独特</p>
<p>的体系、风格,它最大的特点是抒情性强</p>
<p>动作细腻,歌唱与舞蹈的身段结合得巧妙</p>
<p>而和谐。在语言上,该剧种原先分南曲</p>
<p>和北曲:南昆以苏州白话为主,北昆以</p>
<p>大都韵白和京白为主</p>
</div>
</div>
<div class="ject-pic"><img src="__TMPL__Public/assets/images/index/kunqu.jpg"/></div>
</a>
<a href="#" class="project-box">
<div class="project-intro">
<div class="ject-tit">昆曲</div>
<div class="ject-desc">
<p>昆曲是明朝中叶至清代中叶戏曲中</p>
<p>的声腔剧种,很多剧种都是在昆剧基础上</p>
<p>发展起来的,被称为“百戏之祖,百戏之师</p>
<p>有 “中国戏曲之母”的雅称。即时</p>
<p>无锡昆曲社对昆曲起到了繁荣推广的作用</p>
<p>昆剧是中国戏曲史上具有最完整表演体系</p>
<p>的剧种,它的基础深厚,遗产丰富</p>
<p>是中国传统文化艺术高度发展的成果</p>
<p>在中国文学史、戏曲史、音乐史、舞蹈史上</p>
<p>占有重要的地位。昆曲的表演,也有它独特</p>
<p>的体系、风格,它最大的特点是抒情性强</p>
<p>动作细腻,歌唱与舞蹈的身段结合得巧妙</p>
<p>而和谐。在语言上,该剧种原先分南曲</p>
<p>和北曲:南昆以苏州白话为主,北昆以</p>
<p>大都韵白和京白为主</p>
</div>
</div>
<div class="ject-pic"><img src="__TMPL__Public/assets/images/index/kunqu.jpg"/></div>
</a>
<a href="#" class="project-box">
<div class="project-intro">
<div class="ject-tit">昆曲</div>
<div class="ject-desc">
<p>昆曲是明朝中叶至清代中叶戏曲中</p>
<p>的声腔剧种,很多剧种都是在昆剧基础上</p>
<p>发展起来的,被称为“百戏之祖,百戏之师</p>
<p>有 “中国戏曲之母”的雅称。即时</p>
<p>无锡昆曲社对昆曲起到了繁荣推广的作用</p>
<p>昆剧是中国戏曲史上具有最完整表演体系</p>
<p>的剧种,它的基础深厚,遗产丰富</p>
<p>是中国传统文化艺术高度发展的成果</p>
<p>在中国文学史、戏曲史、音乐史、舞蹈史上</p>
<p>占有重要的地位。昆曲的表演,也有它独特</p>
<p>的体系、风格,它最大的特点是抒情性强</p>
<p>动作细腻,歌唱与舞蹈的身段结合得巧妙</p>
<p>而和谐。在语言上,该剧种原先分南曲</p>
<p>和北曲:南昆以苏州白话为主,北昆以</p>
<p>大都韵白和京白为主</p>
</div>
</div>
<div class="ject-pic"><img src="__TMPL__Public/assets/images/index/kunqu.jpg"/></div>
</a>
<div class="ject-pic"><img src="{:sp_get_image_preview_url($vo['thumb'])}"/></div>
</a>
</volist>
</div>
<div class="hd">
<ul>
<li class="on"><span></span></li>
<li><span></span></li>
<li><span></span></li>
<li><span></span></li>
<li><span></span></li>
<volist name="projectList" id="vo" key="key">
<eq name="key" value="1"><li class="on"><span></span></li></eq>
<eq name="key" value="2"><li><span></span></li></eq>
<eq name="key" value="3"><li><span></span></li></eq>
<eq name="key" value="4"><li><span></span></li></eq>
<eq name="key" value="5"><li><span></span></li></eq>
</volist>
</ul>
</div>
</div>
... ... @@ -618,36 +339,18 @@
</div>
</div>
<ul class="media-list">
<li>
<div class="media-time">
<div class="day">04</div>
<div class="year-month">2017.12</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="">它是中国杂技的完美诠释</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
</div>
</li>
<li>
<div class="media-time">
<div class="day">04</div>
<div class="year-month">2017.12</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="">它是中国杂技的完美诠释</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
</div>
</li>
<li>
<div class="media-time">
<div class="day">04</div>
<div class="year-month">2017.12</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="">它是中国杂技的完美诠释</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
</div>
</li>
<volist name="academeList" id="vo">
<li>
<div class="media-time">
<div class="day">{:date('d',$vo['ctime'])}</div>
<div class="year-month">{:date('Y.m',$vo['ctime'])}</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="{:U('Portal/Academe/detail',array('id'=>$vo['id']))}">{$vo.post_title}</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
</div>
</li>
</volist>
</ul>
</div>
</div>
... ...
... ... @@ -9,4 +9,4 @@
</div>
<div class="copyright">非遗文化传播有限公司版权所有COPYRIGHT2015 网站备案号:津ICP备12007083号-4</div>
</div>
</div>
\ No newline at end of file
</div>
... ...
... ... @@ -31,7 +31,7 @@
<div class="logo"><img src="__TMPL__Public/assets/images/logo.jpg"/></div>
<div class="h-search">
<div class="h-search-box">
<input type="text" class="h-input" placeholder="非遗文创"/>
<input type="text" name="keyword" class="h-input" placeholder="非遗文创"/>
<input type="button" class="h-button" autocomplete="off" value="" />
</div>
<div class="h-keywords">
... ...
<script>
// 获取用户登陆,右上角内容、购物车数量显示变化
$.post("{:U('User/Index/is_login')}",{},function(data){
console.log(data);
if(data.status==1){
... ... @@ -15,4 +16,13 @@
$(".toplinks ul.offline").show();
}
});
// 搜索功能查询
$('.h-button').click(function(){
var keyword = $('input[name=keyword]').val();
if(!keyword) {
alert('请输入查询内容');
} else {
location.href = "{:U('Portal/Goods/search')}"+'/keyword/'+keyword;
}
});
</script>
\ No newline at end of file
... ...