why.xingtongworld.com项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

97 lines
4.7 KiB

<?php
// +----------------------------------------------------------------------
// | YFCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2016 http://www.rainfer.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: rainfer <81818832@qq.com>
// +----------------------------------------------------------------------
namespace app\member\controller;
use think\Db;
class Index extends Base
{
private $brands=[
1=>['title'=>'深圳市文化金融服务中心','infor'=>'战略中心','txt'=>'深圳市文化金融服务中心(深圳文化产权交易所)是文化和旅游部产业发展司委托的文化和旅游产业专项债券及投资基金融资对接交流活动承接单位,在文化和旅游部产业发展司的支持下,联合各地文化和旅游厅(局)累计举办文化和旅游产业专项债券及投资基金融资对接交流活动16场次。深圳市文化金融服务中心(深圳文化产权交易所)积极为各地文化和旅游企业(项目)提供政策咨询与辅导、路演推介、资金对接等服务,累计服务文化和旅游企业上千家。'],
2=>['title'=>'文化艺术资产','infor'=>'版权管理托管中心','txt'=>''],
3=>['title'=>'招拍挂中心','infor'=>'描述文字','txt'=>''],
4=>['title'=>'文化艺术投行','infor'=>'描述文字','txt'=>''],
5=>['title'=>'文化艺术拍卖中心','infor'=>'描述文字','txt'=>''],
6=>['title'=>'文化产业要素交易中心','infor'=>'要素交易和投融资服务','txt'=>''],
7=>['title'=>'区域合作发展中心','infor'=>'开发合作区域','txt'=>''],
8=>['title'=>'古建资产管理中心','infor'=>'乡村振兴平台','txt'=>''],
9=>['title'=>'艺版平台珠宝交易中心','infor'=>'投融资综合服务','txt'=>''],
10=>['title'=>'文旅产业要素交易中心','infor'=>'文旅资产交易','txt'=>'']
];
public function index()
{
$banners=Db::name('link')->where(['lk_status'=>1,'lk_cid'=>19,'lk_type'=>14])->order('lk_order desc')->limit(5)->select();
$this->assign('banners',$banners);
$notices=Db::name('bsgg')->field('n_id,n_title')->where(['n_cid'=>1,'n_status'=>1])->order('n_top desc,n_order,n_time desc')->limit(5)->select();
$this->assign('notices',$notices);
$list=Db::name('finance')->field("c_code,c_id,c_name,c_infostime,c_infoetime,c_jump")->where(['c_kind'=>1,'c_status'=>1])->order('c_order desc,c_time desc')->limit(100)->select();
$this->assign('list',$list);
return $this->view->fetch();
}
public function brands(){
$brands=Db::name('news')->field('n_id,n_title,n_content,n_desc,n_img')->where(['n_kind'=>19,'n_status'=>1])->order('n_id asc')->select();
$this->assign('brands',$brands);
return $this->view->fetch();
}
public function gplist(){
$list=Db::name('finance')->field("c_code,c_id,c_name,c_infostime,c_infoetime,c_jump")->where(['c_kind'=>1,'c_status'=>1])->order('c_order desc,c_time desc')->paginate(10);
$this->assign('list',$list);
$show = $list->render();
$this->assign("show",$show);
return $this->view->fetch();
}
public function brand(){
$cid=input('cid');
$kind=input('kind');
$this->assign("kind",$kind);
$current=Db::name('news')->field('n_id,n_title,n_content,n_desc,n_img')->where(['n_kind'=>19,'n_id'=>$cid,'n_status'=>1])->find();
$this->assign('current',$current);
return $this->view->fetch();
}
public function notice(){
$id=input('id');
$current=Db::name('bsgg')->field('n_id,n_title,n_content')->where(['n_id'=>$id,'n_status'=>1])->find();
$this->assign('current',$current);
return $this->view->fetch();
}
public function search(){
$keyword=input('keyword','');
$page=input('page',1,'intval');
$this->assign('page',$page);
$this->assign('keyword',$keyword);
$where=['n_cid'=>1,'n_status'=>1];
$db=Db::name('bsgg')->where($where);
if($keyword){
$db->where('n_title|n_content','like','%'.$keyword.'%');
}
$query=$db->order('n_top desc,n_order,n_time desc');
$products=$query->paginate(20,false,['query'=>get_query(),'type'=>'bootstrap','var_page' =>'page']);
$show = $products->render();
$this->assign('products',$products);
$this->assign('show',$show);
return $this->view->fetch();
}
public function finance(){
$cid=input('c_id');
$list=Db::name("finance")->field("c_code,c_id,c_status,c_id,c_logo,c_content,c_name,c_jcname")->where(['c_status'=>1,'c_id'=>$cid])->find();
$this->assign("list",$list);
return $this->view->fetch();
}
}