Browse Source

第二次推送项目3

master
wanghongjun 2 years ago
parent
commit
e3665022f4
  1. 16
      app/home/config.php
  2. 140
      app/home/controller/Agency.php
  3. 426
      app/home/controller/Api.php
  4. 353
      app/home/controller/Base.php
  5. 608
      app/home/controller/Center.php
  6. 18
      app/home/controller/Error.php
  7. 142
      app/home/controller/Feedback.php
  8. 1735
      app/home/controller/Index.php
  9. 88
      app/home/controller/Lbcontetn.php
  10. 4184
      app/home/controller/Listn.php
  11. 632
      app/home/controller/Login.php
  12. 123
      app/home/controller/Mpdepc.php
  13. 1731
      app/home/controller/News.php
  14. 215
      app/home/controller/Oauth.php
  15. 256
      app/home/controller/Pviews.php
  16. 414
      app/home/controller/Register.php
  17. 58
      app/home/lang/en-us.php
  18. 58
      app/home/lang/zh-cn.php
  19. 15
      app/home/model/Bdapply.php
  20. 15
      app/home/model/Cultureapply.php
  21. 460
      app/home/taglib/Yf.php
  22. 99
      app/home/view/szwjs/agency/agylayout.html
  23. 20
      app/home/view/szwjs/agency/content.html
  24. 26
      app/home/view/szwjs/agency/detail.html
  25. 14
      app/home/view/szwjs/agency/index.html
  26. 27
      app/home/view/szwjs/agency/user.html
  27. 101
      app/home/view/szwjs/index/Public/Css/base.css
  28. 18
      app/home/view/szwjs/index/Public/Css/published.css
  29. BIN
      app/home/view/szwjs/index/Public/Img/bg.jpg
  30. BIN
      app/home/view/szwjs/index/Public/Img/bg2.jpg
  31. BIN
      app/home/view/szwjs/index/Public/Img/logo.png
  32. BIN
      app/home/view/szwjs/index/Public/Img/shuopai.jpg
  33. BIN
      app/home/view/szwjs/index/Public/Img/slogo.jpg
  34. BIN
      app/home/view/szwjs/index/Public/Img/slogo.png
  35. BIN
      app/home/view/szwjs/index/Public/Img/wang.jpg
  36. BIN
      app/home/view/szwjs/index/Public/Img/wang.png
  37. BIN
      app/home/view/szwjs/index/Public/Img/wangpai.png
  38. BIN
      app/home/view/szwjs/index/Public/Img/wangpai1030.png
  39. 343
      app/home/view/szwjs/index/Public/Js/base.js
  40. 8
      app/home/view/szwjs/index/Public/Js/jquery-ui-1.10.3.min.js
  41. 1426
      app/home/view/szwjs/index/Public/Js/jquery.fileupload.js
  42. 1129
      app/home/view/szwjs/index/Public/Js/jquery.form.js
  43. 530
      app/home/view/szwjs/index/Public/Js/jquery.ui.widget.js
  44. 4
      app/home/view/szwjs/index/Public/Js/jquery.validate.min.js
  45. 2
      app/home/view/szwjs/index/Public/Js/layer/layer.js
  46. BIN
      app/home/view/szwjs/index/Public/Js/layer/skin/default/icon-ext.png
  47. BIN
      app/home/view/szwjs/index/Public/Js/layer/skin/default/icon.png
  48. BIN
      app/home/view/szwjs/index/Public/Js/layer/skin/default/loading-0.gif
  49. BIN
      app/home/view/szwjs/index/Public/Js/layer/skin/default/loading-1.gif
  50. BIN
      app/home/view/szwjs/index/Public/Js/layer/skin/default/loading-2.gif
  51. 7
      app/home/view/szwjs/index/Public/Js/layer/skin/layer.css
  52. 63
      app/home/view/szwjs/user/active.html
  53. 40
      app/home/view/szwjs/user/actnotice.html
  54. 35
      app/home/view/szwjs/user/artverify.html
  55. 68
      app/home/view/szwjs/user/bang.html
  56. 62
      app/home/view/szwjs/user/capnotice.html
  57. 64
      app/home/view/szwjs/user/capnotice_r.html
  58. 90
      app/home/view/szwjs/user/center.html
  59. 172
      app/home/view/szwjs/user/cuapply.html
  60. 384
      app/home/view/szwjs/user/edit.html
  61. 104
      app/home/view/szwjs/user/forgot_pwd.html
  62. 88
      app/home/view/szwjs/user/jzdc.html
  63. 79
      app/home/view/szwjs/user/login.html
  64. 159
      app/home/view/szwjs/user/my.html
  65. 18
      app/home/view/szwjs/user/myact.html
  66. 169
      app/home/view/szwjs/user/mybbs.html
  67. 141
      app/home/view/szwjs/user/myorg.html
  68. 149
      app/home/view/szwjs/user/myscore.html
  69. 339
      app/home/view/szwjs/user/mytg.html
  70. 117
      app/home/view/szwjs/user/notice.html
  71. 158
      app/home/view/szwjs/user/notice0715.html
  72. 68
      app/home/view/szwjs/user/notice_r.html
  73. 88
      app/home/view/szwjs/user/pro.html
  74. 63
      app/home/view/szwjs/user/pwd_reset.html
  75. 167
      app/home/view/szwjs/user/register.html
  76. 52
      app/home/view/szwjs/user/userlayout.html
  77. 26
      app/home/view/szwjs/user/usernav.html

16
app/home/config.php

@ -0,0 +1,16 @@
<?php
// +----------------------------------------------------------------------
// | YFCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2016 http://www.rainfer.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: rainfer <81818832@qq.com>
// +----------------------------------------------------------------------
return [
'template' => [
// 预先加载的标签库
'taglib_pre_load' => 'app\\home\\taglib\\Yf',
],
'apiHost'=>'http://sc.szcaee.net:8092/',
'default_filter' => 'htmlspecialchars,RemoveXSS'
];

140
app/home/controller/Agency.php

@ -0,0 +1,140 @@
<?php
namespace app\home\controller;
use think\Db;
class Agency extends Base{
public function index(){
$kind=input("kind",1,'intval');
if(!in_array($kind,[1,2,3,4]))$kind=1;
$where=['kind'=>$kind,'status'=>1];
$keyword=input('keyword2','');
if($keyword){
$where['title']=array('like',[$keyword.'%','%'.$keyword.'%',$keyword],'OR');
}
$order='id desc';
if($kind==3)$order='id asc';
$list=Db::name('agency')->where($where)->order($order)->paginate(10,false,['query'=>get_query()]);
$show = $list->render();
$this->assign('list',$list);
$this->assign('page',$show);
$this->assign('kind',$kind);
$parent=['menu_name'=>'合作机构','menu_enname'=>'Cooperative Agency'];
$childs=[];
$childs[0]=['menu_name'=>'文化金融合作机构','menu_enname'=>'Service Organization','id'=>114];
$childs[1]=['menu_name'=>'古建资产管理合作机构','menu_enname'=>'Service Organization','id'=>115,'menu_address'=>url('agency/index',['kind'=>2])];
$childs[2]=['menu_name'=>'古建资产管理合作机构','menu_enname'=>'Service Organization','id'=>116];
$childs[3]=['menu_name'=>'艺术金融合作机构','menu_enname'=>'Service Organization','id'=>117];
$index=0;
if(in_array($kind,[2,4]))$index=$kind-1;
$cur=$childs[$index];
foreach ($childs as $key=>$current){
$parentid=$current['id'];
$menufield='id,menu_name,menu_enname,menu_content,menu_type,parentid,menu_address as jump,menu_target';
$sons=Db::name('menu')->field($menufield)->where(['parentid'=>$parentid,'menu_open'=>1])->order('listorder asc')->select();
$url=request()->url();
if(count($sons)){
foreach ($sons as $k=>$row){
if($row['jump']==$url){
$sons[$k]['active']=1;
$cur['menu_enname']=$row['menu_name'];
}
}
$childs[$key]['childs']=$sons;
}
}
unset($childs[2]);
$index=0;
if(in_array($kind,[2,4]))$index=$kind-1;
$childs[$index]['active']=1;
$this->assign('parent',$parent);
$this->assign('childs',$childs);
$this->assign('current',$cur);
$this->assign('keyword2',$keyword);
$this->assign('menu_id',$kind);
return $this->view->fetch('index');
}
public function user(){
$kind=input("kind",1,'intval');
if(!in_array($kind,[1,2,3,4]))$kind=1;
$where=['kind'=>$kind,'status'=>1];
$keyword=input('keyword2','');
if($keyword){
$where['username']=array('like',[$keyword.'%','%'.$keyword.'%',$keyword],'OR');
}
$list=Db::name('agency_user')->where($where)->order('id asc')->paginate(10,false,['query'=>get_query()]);
$show = $list->render();
$this->assign('list',$list);
$this->assign('page',$show);
$this->assign('kind',$kind);
$parent=['menu_name'=>'服务机构','menu_enname'=>'Service Organization'];
$childs=[];
$childs[0]=['menu_name'=>'文化产业专业推荐机构','menu_enname'=>'Service Organization','id'=>114];
$childs[1]=['menu_name'=>'文化产业专业服务机构','menu_enname'=>'Service Organization','id'=>115];
$childs[2]=['menu_name'=>'文化产业合作机构','menu_enname'=>'Service Organization','id'=>116];
$childs[3]=['menu_name'=>'艺术金融服务机构','menu_enname'=>'Service Organization','id'=>117];
$cur=$childs[$kind-1];
$parentid=$cur['id'];
$menufield='id,menu_name,menu_enname,menu_content,menu_type,parentid,menu_address as jump,menu_target';
$sons=Db::name('menu')->field($menufield)->where(['parentid'=>$parentid,'menu_open'=>1])->order('listorder asc')->select();
$url=request()->url();
if(count($sons)){
if($kind==1){
$sons[1]['active']=1;
$cur['menu_enname']=$sons[1]['menu_name'];
}
$childs[$kind-1]['childs']=$sons;
}
$childs[$kind-1]['active']=1;
$this->assign('parent',$parent);
$this->assign('childs',$childs);
$this->assign('current',$cur);
$this->assign('keyword2',$keyword);
$this->assign('menu_id',$kind);
return $this->view->fetch('user');
}
public function content(){
$kind=input("kind",1,'intval');
$id=input("id",'','intval');
if(!in_array($kind,[1,2,3,4]))$kind=1;
$list=Db::name('agency')->where(['kind'=>$kind,'id'=>$id,'status'=>1])->find();
$this->assign('list',$list);
$this->assign('kind',$kind);
$parent=['menu_name'=>'服务机构','menu_enname'=>'Service Organization'];
$childs=[];
$childs[0]=['menu_name'=>'文化产业专业推荐机构','menu_enname'=>'Service Organization','id'=>114];
$childs[1]=['menu_name'=>'文化产业专业服务机构','menu_enname'=>'Service Organization','id'=>115];
$childs[2]=['menu_name'=>'文化产业合作机构','menu_enname'=>'Service Organization','id'=>116];
$childs[3]=['menu_name'=>'艺术金融服务机构','menu_enname'=>'Service Organization','id'=>117];
foreach ($childs as $key=>$current){
$parentid=$current['id'];
$menufield='id,menu_name,menu_enname,menu_content,menu_type,parentid,menu_address as jump,menu_target';
$sons=Db::name('menu')->field($menufield)->where(['parentid'=>$parentid,'menu_open'=>1])->order('listorder asc')->select();
$url=request()->url();
if(count($sons)){
if($key==0)$sons[0]['active']=1;
$childs[$key]['childs']=$sons;
}
}
$childs[$kind-1]['active']=1;
$this->assign('parent',$parent);
$this->assign('childs',$childs);
$current=$childs[$kind-1];
$this->assign('current',$current);
$this->assign('keyword2','');
$this->assign('menu_id',$kind);
return $this->view->fetch('content');
}
}

426
app/home/controller/Api.php

@ -0,0 +1,426 @@
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/3/21
* Time: 9:28
*/
namespace app\home\controller;
use think\Db;
use think\Request;
use think\Cache;
class Api extends Base
{
/**
* 拍品预约
*/
public function subscription(){
$params=request()->param();
if(isset($params['type'])&&$params['type']==3){
$params['c_id']=$params['id'];
}
$query=$this->_checksub($params);
if($query)$this->success('提交成功');
else $this->error('提交失败');
}
public function wxShare(){
$appId='wxa0cb14dc087a5d99';
$appSecret='fe3853cbea525e10a9e704d1428fe357';
$link=input('link','');
$nonce=input('nonce','');
$jssdk=new \weixin\Jssdk($appId, $appSecret);
$signPackage = $jssdk->GetSignPackage($link,$nonce);
$title='望拍';
$img=SITE_PATH.'app/home/view/szwjs/index/Public/Img/wang.png';
if(strpos($link,'shuopai')!==false){
$title='朔拍';
$img=SITE_PATH.'app/home/view/szwjs/index/Public/Img/shuopai.jpg';
}
$share=array();
$share['title']=$title;
$share['desc']=$title;
$share['link']=$link;
$share['imgUrl']=$img;
echo json_encode(['share'=>$share,'signPackage'=>$signPackage]);
}
/**
* 古建资产管理展示接口
* @return string
*/
public function gjproducts(){
$kind=11;
$childs=[];
$parents=[];
$states=[];
$parents=config('building.parents');
$states=[1=>['name'=>'信息披露'],['name'=>'正式披露'],['name'=>'成交公示'],['name'=>'艺术资产转让']];
$page=input('page',1,'intval');
$verpage=input('verPage',10,'intval');
$cid=input('cid','','intval');
$state=input('state','','intval');
if($cid||$state){
$where=['c_status'=>1,'c_kind'=>$kind];
$parent='';
if($cid){
$where['c_parent']=array('like',[$cid.',%','%,'.$cid.'%',$cid],'OR');
$parent.=isset($parents[$cid])?$parents[$cid].'-':'';
}
if($state){
$where['c_state']=$state;
$stateslist=[1=>'预披露','正式披露','成交公示','艺术资产转让'];
$parent.=isset($stateslist[$state])?$stateslist[$state]:'';
}
$parent=rtrim($parent,'-');
$db=Db::name('finance')->where($where);
$order=['c_order'=>'desc','c_time'=>'desc'];
$products=$db->field('c_id,c_name,c_logo,c_code,c_gptime,c_count,c_content,c_price,c_gprice,c_tprice')->order($order)->paginate($verpage,false,['query'=>get_query()]);
$var_page=$products->listRows();
$tpage=$products->lastPage();
$total=$products->total();
$show = $products->render();
if($products){
$products=$products->toArray();
$products=$products['data'];
foreach ($products as $k=>$item){
if($item['c_logo']){
$products[$k]['c_logo']=url($item['c_logo'],'',false,true);
}
$products[$k]['c_count']=$item['c_count']?$item['c_count']:0;
$products[$k]['c_gptime']=$item['c_gptime']?date("Y-m-d",$item['c_gptime']):'';
}
}
return json_encode(['products'=>$products,'category'=>$parent,'page'=>intval($page),'total'=>$total,'totalPage'=>$tpage,'verPage'=>$var_page,'cid'=>intval($cid),'state'=>intval($state)]);
}else{
$list=[];
if(count($states)){
$where=['c_status'=>1,'c_kind'=>$kind];
foreach ($states as $id=>$item){
$where['c_state']=$id;
$db=Db::name('finance')->field('c_id,c_name,c_logo,c_code,c_gptime,c_count,c_content,c_price,c_gprice,c_tprice')->where($where);
$products=$db->order('c_order desc,c_time desc')->limit(5)->select();
foreach ($products as $k=>$item){
if($item['c_logo']){
$products[$k]['c_logo']=url($item['c_logo'],'',false,true);
}
$products[$k]['c_count']=$item['c_count']?$item['c_count']:0;
$products[$k]['c_gptime']=$item['c_gptime']?date("Y-m-d",$item['c_gptime']):'';
}
if(!count($products)){
unset($states[$id]);
continue;
}
$states[$id]['products']=$products;
}
}
foreach ($parents as $id=>$item){
$row=[];
$row['id']=$id;
$row['name']=$item;
$childrow=isset($childs[$id])?$childs[$id]:[];
$row['has']=count($childrow)?1:0;
if($kind==11){
$where=['c_status'=>1,'c_kind'=>$kind];
$where['c_parent']=array('like',[$id.',%','%,'.$id.'%',$id],'OR');
}
if(count($childrow)){
foreach ($childrow as $k=>$v){
$where['c_cid']=$k;
$check=Db::name('finance')->where($where)->count();
if($check==0)unset($childrow[$k]);
}
if(isset($where['c_cid']))unset($where['c_cid']);
}
$row['childs']=$childrow;
$db=Db::name('finance')->field('c_id,c_name,c_logo,c_code,c_gptime,c_count,c_content,c_price,c_gprice,c_tprice')->where($where)->order('c_order desc,c_time desc');
$products=$db->limit(10)->select();
foreach ($products as $k=>$item){
if($item['c_logo']){
$products[$k]['c_logo']=url($item['c_logo'],'',false,true);
}
$products[$k]['c_count']=$item['c_count']?$item['c_count']:0;
$products[$k]['c_gptime']=$item['c_gptime']?date("Y-m-d",$item['c_gptime']):'';
}
$row['products']=$products;
array_push($list,$row);
}
return json_encode(['states'=>$states,'list'=>$list]);
}
}
/**
* 古建资产管理展示接口
* @return string
*/
public function productdetail(){
$id=input('id',0,'intval');
$cid=input('cid',0,'intval');
$list=Db::name('finance')->field('c_id,c_name,c_logo,c_code,c_gptime,c_count,c_content,c_price,c_gprice,c_tprice,c_photos,c_parent,c_num,c_author,c_video,c_notice,c_size,c_class,c_year')->where(['c_status'=>1,'c_id'=>$id,'c_kind'=>11])->find();
if(!$list){
$list=['cid'=>'','category'=>'','c_id'=>'','c_name'=>'','c_logo'=>'','c_code'=>'','c_gptime'=>'','c_count'=>0,'c_content'=>'','c_price'=>'','c_gprice'=>'','c_tprice'=>'','c_photos'=>'','c_parent'=>'','c_num'=>'','c_author'=>'','c_video'=>'','c_notice'=>'','c_size'=>'','c_class'=>'','c_year'=>''];
}
$showtypes=config("building.parents");
$pic_list =isset($list['c_photos'])&&$list['c_photos']?array_filter(explode(",", $list['c_photos'])):[];
if(count($pic_list)&&is_array($pic_list)){
foreach ($pic_list as $k=>$item){
if($item)$pic_list[$k]=url($item,'',false,true);
}
}
$parent=isset($showtypes[$cid])?$showtypes[$cid]:'';
if(empty($cid)){
$parents=explode(',',$list['c_parent']);
if(count($parents)){
$cid=$parents[0];
$parent=isset($showtypes[$parents[0]])?$showtypes[$parents[0]]:'';
}
}
$list['c_count']=$list['c_count']?$list['c_count']:0;
$list['c_photos']=$pic_list;
$list['cid']=$cid;
$list['category']=$parent?$parent:'';
return json_encode($list);
}
/**
* 望拍产品
*/
public function products(){
$cid=input('cid',1,'intval');
$page=input('page',1,'intval');
$pagesize=input('pagesize',8,'intval');
$lists=Db::name('product')->where(['cid'=>$cid,'status'=>1])->order('sort asc,create_time desc')->paginate($pagesize,false,['cid'=>$cid,'page'=>$page]);
$category=Db::name('procategory')->where(['status'=>1,'id'=>$cid])->find();
$qid='';
if($category){
$qid=$category['pid'];
}
$quarter=Db::name('proquarter')->where(['status'=>1,'id'=>$qid])->find();
echo json_encode(['list'=>$lists,'category'=>$category,'quarter'=>$quarter]);
}
/**
* 产品详情
*/
public function product(){
$id=input('id','','intval');
$lists=Db::name('product')->where(['id'=>$id,'status'=>1])->find();
$cid='';
if($lists){
$cid=$lists['cid'];
}
$category=Db::name('procategory')->where(['status'=>1,'id'=>$cid])->find();
$qid='';
if($category){
$qid=$category['pid'];
}
$quarter=Db::name('proquarter')->where(['status'=>1,'id'=>$qid])->find();
echo json_encode(['product'=>$lists,'category'=>$category,'quarter'=>$quarter]);
}
/**
* 获取望拍场次属性
*/
public function quarter(){
$id=input('id','','intval');
if(empty($id)){
$content=Db::name('proquarter')->where(['status'=>1])->order('sort desc,id desc')->find();
}else{
$content=Db::name('proquarter')->where(['status'=>1,'id'=>$id])->find();
}
if($content){
$cates=Db::name('procategory')->where(['status'=>1,'pid'=>$id])->select();
$list=[];
if($cates){
$list=$cates;
}
$content['categorys']=$list;
}
echo json_encode($content);
}
/**
* 同步规则指引API
*/
public function ruleGuide()
{
$sign = input("sign");
$id = input("id");
$catid = input("catlogid");
$cid = input("cid");
$name = input("filename");
$fileallUrl = input("url");
$order = input("sort");
$createtime = input("createtime",time());
$param = array('id'=>$id,'catlogid'=>$catid,'cid'=>$cid,'filename'=>$name,'url'=>$fileallUrl);
try{
if(empty($sign)){
$return_data['result'] = "fail";
$return_data['msg'] = "数据签名不允许为空!";
}else if (empty($id)){
$return_data['result'] = "fail";
$return_data['msg'] = "ID不允许为空!";
}else if (empty($catid)){
$return_data['result'] = "fail";
$return_data['msg'] = "分类ID不允许为空!";
}else if (empty($cid)){
$return_data['result'] = "fail";
$return_data['msg'] = "次级分类ID不允许为空!";
}else if (empty($name)){
$return_data['result'] = "fail";
$return_data['msg'] = "文件名称不允许为空!";
}else if (empty($fileallUrl)){
$return_data['result'] = "fail";
$return_data['msg'] = "文件下载url不允许为空!";
}else if (empty($createtime)){
$return_data['result'] = "fail";
$return_data['msg'] = "创建时间不允许为空!";
}else if(getApiSign($param)!=$sign){
$return_data['result'] = "fail";
$return_data['msg'] = "没有访问权限!";
}else{
$d_data=array(
'd_name'=>$name,
'd_status'=>1,
'd_uid'=>'',
'd_time'=>$createtime,
'd_order'=>$order,
'd_url'=>$fileallUrl,
'd_cid'=>$cid,
'd_catlogid'=>$catid,
'd_sourceid'=>$id,
'd_count'=>0
);
$rule = Db::name('download')->where('d_sourceid',$id)->select();
if($rule){
$updateRst=Db::name('download')->where('d_sourceid',$id)->update($d_data);
if($updateRst){
$return_data['result'] = "success";
$return_data['msg'] = "数据同步成功!";
}else{
$return_data['result'] = "fail";
$return_data['msg'] = "更新失败!";
}
}else{
$insertRst=Db::name('download')->insert($d_data);
if($insertRst){
$return_data['result'] = "success";
$return_data['msg'] = "数据同步成功!";
}else{
$return_data['result'] = "fail";
$return_data['msg'] = "插入数据库失败!";
}
}
}
}catch (\Exception $exception){
$return_data['result'] = "fail";
$return_data['msg'] =$exception ->getMessage();
}
$return_data['data'] ="";
echo json_encode($return_data);die;
}
/**
* 同步文章API
*/
public function upArticle()
{
try{
$sign = input("sign");
$id = input("id");//ID
$catid = input("catlogid");//分类ID
$cid = input("cid");//次级分类ID
$title = input("title");//标题
$img = input("img");//缩略图
$desc = input("desc");//描述
$content = htmlspecialchars_decode(input("content"));//文章内容
$createtime = input("createtime",time());
$param = array('id'=>$id,'catlogid'=>$catid,'cid'=>$cid,'title'=>$title,'content'=>$content);
$return_data=[];
if(empty($sign)){
$return_data['result'] = "fail";
$return_data['msg'] = "数据签名不允许为空!";
}else if (empty($id)){
$return_data['result'] = "fail";
$return_data['msg'] = "ID不允许为空!";
}else if (empty($catid)){
$return_data['result'] = "fail";
$return_data['msg'] = "分类ID不允许为空!";
}else if (empty($cid)){
$return_data['result'] = "fail";
$return_data['msg'] = "次级分类ID不允许为空!";
}else if (empty($title)){
$return_data['result'] = "fail";
$return_data['msg'] = "文章标题不允许为空!";
}else if (empty($content)){
$return_data['result'] = "fail";
$return_data['msg'] = "文章内容不允许为空!";
}else if (getApiSign($param)!=$sign){
$return_data['result'] = "fail";
$return_data['msg'] = "没有访问权限!";
}else{
$sl_data=array(
'n_title'=>$title,
'n_cid'=>$cid,
'n_source'=>'掌柜文化金服',
'n_pics'=>'',//多图路径
'n_img'=>$img,//封面图片路径
'n_status'=>'1',
'n_desc'=>$desc,
'n_content'=>$content,
'n_uid'=>'',
'n_time'=>$createtime,
'n_order'=>'50',
'n_sourceid'=>$id
);
$table='sczcxy';//市场政策行研(1:挂牌信息2:融资快讯3:企业挂牌咨讯4:政策行研)
$cates=[];
$cates[5]='bsyw'; //新闻(1:本所动态2:市场动态3:政策动态4:合作媒体)
$cates[6]='bsyw'; //公告(1:文交所公告2:挂牌企业公告3:登记托管公告4:国有资产公告)
if(isset($cates[$catid]))$table=$cates[$catid];
$result= Db::name($table)->where('n_sourceid',$id)->where("n_cid",$cid)->select();
if($result){
//数据库没有该数据才添加
$return_data['result'] = "fail";
$return_data['msg'] = "数据已存在!";
}else{
$insertRst=Db::name($table)->insert($sl_data);
if($insertRst){
$return_data['result'] = "success";
$return_data['msg'] = "数据同步成功!";
}else{
$return_data['result'] = "fail";
$return_data['msg'] = "插入数据库失败!";
}
}
}
}catch (\Exception $exception){
$return_data['result'] = "fail";
$return_data['msg'] =$exception ->getMessage();
}
$return_data['data'] ="";
echo json_encode($return_data);die;
}
}

353
app/home/controller/Base.php

@ -0,0 +1,353 @@
<?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\home\controller;
use app\common\controller\Common;
use app\admin\model\Options;
use think\Db;
use think\captcha\Captcha;
use think\Validate;
use think\Cache;
use think\Request;
use think\Exception;
class Base extends Common
{
protected $view;
protected $user;
protected $yf_theme_path;
protected $site_options;
protected $curren_menu_id;
protected $menu_arr;
protected $menu_id;
protected function _initialize()
{
parent::_initialize();
$this->curren_menu_id=7;
//菜单
$this->menu_id=input('id',0,'intval');
if($this->menu_id){
$this->menu_arr=get_menu_parents($this->menu_id);
if($this->menu_arr){
$this->curren_menu_id=$this->menu_arr[0];
}
}
$this->assign('curren_menu_id',$this->curren_menu_id);
$this->assign('menu_arr',$this->menu_arr);
//主题
$site_options=Options::get_options('site_options',$this->lang);
$this->site_options=$site_options;
$site_options['site_tongji']=htmlspecialchars_decode($site_options['site_tongji']);
$site_options['site_copyright']=htmlspecialchars_decode($site_options['site_copyright']);
$is_mobile=0;
if(request()->isMobile()){
$theme=$site_options['site_tpl_m']?:$site_options['site_tpl'];
$is_mobile=1;
}else{
$theme=$site_options['site_tpl'];
}
$this->view=$this->view->config('view_path',APP_PATH.request()->module().'/view/'.$theme.'/');
$yf_theme_path=__ROOT__.'/app/home/view/'.$theme.'/';
$this->assign($site_options);
$this->assign('yf_theme_path',$yf_theme_path);
$address='';
$this->user=array();
$uid=session('hid');
if(empty($uid)){
//检测cookies
$cookie = cookie('yf_logged_user');//'id'.'时间'
$cookie = explode(".", jiemi($cookie));
$uid=empty($cookie[0])?0:$cookie[0];
if($uid && !empty($cookie[1])){
//判断是否存在此用户
$member=Db::name("member_list")->find($uid);
if($member && (time()-intval($cookie[1]))<config('cookie.expire')){
//更新字段
$data = array(
'last_login_time' => time(),
'last_login_ip' => request()->ip(),
);
Db::name("member_list")->where(array('member_list_id'=>$member["member_list_id"]))->update($data);
$member['last_login_time']=$data['last_login_time'];
$member['last_login_ip']=$data['last_login_ip'];
//设置session
session('hid',$member['member_list_id']);
session('user',$member);
}
}
}
$is_admin=false;
if(session('hid')){
$this->user=Db::name('member_list')->find(session('hid'));
if(!empty($this->user['member_list_province'])){
$rst=Db::name('region')->field('name')->find($this->user['member_list_province']);
$address.=$rst?$rst['name'].lang('province'):'';
}
if(!empty($this->user['member_list_city'])){
$rst=Db::name('region')->field('name')->find($this->user['member_list_city']);
$address.=$rst?$rst['name'].lang('city'):'';
}
if(!empty($this->user['member_list_town'])){
$rst=Db::name('region')->field('name')->find($this->user['member_list_town']);
$address.=$rst?$rst['name']:'';
}
//未读通知数
$notice_unread=Db::name('cult4notice')->alias('a')
//->join(config('database.prefix').'cult4apply b','b.apply_id=a.apply_id')
->where(['a.user_id'=>session('hid'),'is_read'=>0])
->count();
$this->assign('notice_unread',$notice_unread);
}
//友情链接
$links=get_links(2);
$this->assign("links",$links);
$this->user['address']=$address;
$this->assign("user",$this->user);
$this->assign("is_admin",$is_admin);
$this->assign("is_mobile",$is_mobile);
//同意协议
$agreesys=Options::get_options('agree_options',$this->lang);
$this->assign("agreesys",$agreesys);
//托管同意协议
$tg_agreesys1=Options::get_options('agree_options1',$this->lang);
$this->assign("agreesys1",$tg_agreesys1);
$tg_agreesys2=Options::get_options('agree_options2',$this->lang);
$this->assign("agreesys2",$tg_agreesys2);
$tg_agreesys3=Options::get_options('agree_options3',$this->lang);
$this->assign("agreesys3",$tg_agreesys3);
$tg_agreesys4=Options::get_options('agree_options4',$this->lang);
$this->assign("agreesys4",$tg_agreesys4);
$tg_agreesys5=Options::get_options('agree_options5',$this->lang);
$this->assign("agreesys5",$tg_agreesys5);
//托管同意协议
$tg_agreesys1=Options::get_options('tgagree_options1',$this->lang);
$this->assign("tg_agreesys1",$tg_agreesys1);
$tg_agreesys2=Options::get_options('tgagree_options2',$this->lang);
$this->assign("tg_agreesys2",$tg_agreesys2);
$tg_agreesys3=Options::get_options('tgagree_options3',$this->lang);
$this->assign("tg_agreesys3",$tg_agreesys3);
$tg_agreesys4=Options::get_options('tgagree_options4',$this->lang);
$this->assign("tg_agreesys4",$tg_agreesys4);
$tg_agreesys5=Options::get_options('tgagree_options5',$this->lang);
$this->assign("tg_agreesys5",$tg_agreesys5);
//托管同意协议
$org_agreesys= Db::name('org_temp')->where(['code'=>'orgagree_options'])->find();
$this->assign("org_agreesys",$org_agreesys);
$tg_agreesys8=Options::get_options('tgagree_options9',$this->lang);
$this->assign("tg_agreesys6",$tg_agreesys8);
//文化和旅游产业专项债券
$ca_agreesys1=Options::get_options('tgagree_options6',$this->lang);
$this->assign("tgagree_options6",$ca_agreesys1);
$ca_agreesys2=Options::get_options('tgagree_options7',$this->lang);
$this->assign("tgagree_options7",$ca_agreesys2);
//登录掌柜文化金服token
$this->assign("user_token",session('user_token'));
//浏览器检测
$broswer=getBroswer(true);
$this->assign('broswer', $broswer);
//dump($broswer);
$list= Db::name('activity')->where(['status'=>1,'start_date'=>['elt',time()],'end_date'=>['gt',time()]])->order('sort desc')->select();
$this->assign("curlist",$list);
$list= Db::name('activity')->where(['status'=>1,'end_date'=>['lt',time()]])->order('sort desc')->select();
$this->assign("paslist",$list);
}
/**
* 检查用户登录
*/
protected function check_login()
{
if(!session('hid')){
$this->redirect(url('home/Login/index'));
}
}
/**
* 检查操作频率
* @param int $t_check 距离最后一次操作的时长
*/
protected function check_last_action($t_check)
{
$action=MODULE_NAME."-".CONTROLLER_NAME."-".ACTION_NAME;
$time=time();
$action_s=session('last_action.action');
if(!empty($action_s) && $action=$action_s){
$t=$time-session('last_action.time');
if($t_check>$t){
$this->error(lang('frequent operation'));
}else{
session('last_action.time',$time);
}
}else{
session('last_action.action',$action);
session('last_action.time',$time);
}
}
/**
* 验证码
* @return \think\Response
*/
public function verify_msg(){
return $this->verify_build('msg');
}
public function check_verify(){
$key=input('key');
return $this->verify_build($key);
}
/**
* 多语言选择
*/
public function lang(){
if (!request()->isAjax()){
$this->error(lang('submission mode incorrect'));
}else{
$lang=input('lang_s');
switch ($lang) {
case 'cn':
cookie('think_var', 'zh-cn');
break;
case 'en':
cookie('think_var', 'en-us');
break;
//其它语言
default:
cookie('think_var', 'zh-cn');
}
Cache::clear();
$this->success(lang('success'),url('home/Index/index'));
}
}
/**
* 上传方法
*/
public function upload(Request $request){
// 获取表单上传文件
$key=$request->param('key');
if(!$key)return $this->error('參數錯誤');
$file = request()->file($key);
// 移动到框架应用根目录/uploads/ 目录下
try {
$uploadpath=config('upload_path');
$path=ROOT_PATH . config('upload_path');
$validate = config('upload_validate');
if($key=='allpicbtn'||$key=='mortgagebtn'||$key=='ownerbtn'){
$validate['size']=10485760;
}
$info = $file->validate($validate)->move($path);
}catch (Exception $e){
return $this->error('上传失败');
}
if($info){
$data=array();
$data['ext']=$info->getExtension();
$data['path']=$uploadpath.DS.$info->getSaveName();
$data['filename']=$info->getFilename();
return $this->success('上传成功','',$data);
}else{
return $this->error($file->getError());
}
}
/**
* 预约登记
* @param array $params
* @return number|string
*/
protected function _checksub($params=array()){
$username=isset($params['username'])?$params['username']:'';
$mobile=isset($params['mobile'])?$params['mobile']:'';
$email=isset($params['email'])?$params['email']:'';
$kind=isset($params['kind'])?$params['kind']:'';
$pid=isset($params['c_id'])?$params['c_id']:'';
$type=isset($params['type'])?$params['type']:1;
$price=isset($params['price'])?$params['price']:'';
$prepay=isset($params['prepay'])?intval($params['prepay']):'';
$remark=isset($params['remark'])?$params['remark']:'';
$creditcard=isset($params['creditcard'])?$params['creditcard']:'';
$num=isset($params['num'])?intval($params['num']):0;
$role=isset($params['role'])?intval($params['role']):1;
if(in_array($type,[1,2])){
$validate=new Validate([
'__token__' => 'require|token',
]);
$post=input("post.");
if (!$validate->check($post)) {
$this->error('令牌失败,请刷新页面重新提交',url('news/finance',['c_id'=>$pid,'kind'=>$kind]));
}
}
if($type==2){
if(empty($price))$this->error('请输入价格');
}
if(isset($params['c_id'])){
if(empty($pid))$this->error('请输入产品id');
}
if(isset($params['num'])){
if(empty($num))$this->error('请输入出席人数');
}
if(isset($params['prepay'])){
if(empty($prepay))$this->error('请选择是否愿意交纳保证金');
}
if(isset($params['creditcard'])){
if(empty($creditcard))$this->error('请输入身份证号码');
}
if(!preg_match('/^[\x7f-\xff]+$/', $username))$this->error("请输入中文姓名");
if(empty($mobile))$this->error('请输入联系电话');
if(!preg_match("/^1[34578]\d{9}$/", $mobile)){
$this->error('请输入正确手机号码');
}
if(isset($params['email'])&&$kind!=4){
if(empty($email))$this->error('请输入邮箱');
$check=filter_var($email,FILTER_VALIDATE_EMAIL);
if(!$check)$this->error('请输入正确的邮箱');
}
$data=array();
$data['username']=$username;
if($type==2){
$data['price']=$price;
}
$data['type']=$type;
if($kind)$data['kind']=$kind;
$data['mobile']=$mobile;
$data['email']=$email;
$data['created_time']=time();
$data['productid']=$pid;
$data['prepay']=$prepay;
$data['remark']=$remark;
$data['creditcard']=$creditcard;
$data['num']=$num;
$data['role']=$role;
$query=Db::name('subscription')->insert($data);
return $query;
}
}

608
app/home/controller/Center.php

@ -0,0 +1,608 @@
<?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\home\controller;
use think\Db;
use think\Validate;
use Flc\Alidayu\Client;
use Flc\Alidayu\App;
use Flc\Alidayu\Requests\AlibabaAliqinFcSmsNumSend;
class Center extends Base{
protected $menus=[
1=>['title'=>'基本信息','jump'=>'home/Center/index.html'],
['title'=>'我的挂牌','jump'=>'home/Center/my.html'],
['title'=>'我的托管','jump'=>'home/Center/mytg.html'],
['title'=>'合作机构申请','jump'=>'home/Center/myorg.html'],
['title'=>'修改资料','jump'=>'home/Center/edit.html'],
['title'=>'系统通知','jump'=>'home/Center/notice.html'],
['title'=>'托管系统通知','jump'=>'home/Center/capnotice.html'],
['title'=>'我的申报','jump'=>'home/Center/cuapply.html'],
['title'=>'活动报名','jump'=>'home/Center/myact.html'],
['title'=>'活动通知','jump'=>'home/Center/actnotice.html'],
['title'=>'详细报告','jump'=>'home/Center/artverify.html'],
['title'=>'我的帖吧','jump'=>'home/Center/mybbs.html']
];
protected $prefix='';
protected $upload_path='';
protected function _initialize(){
parent::_initialize();
$this->prefix=config('database.prefix');
$this->upload_path=config('upload_path');
$user=session('user');
if(isset($user['member_list_groupid'])&&$user['member_list_groupid']==6){
array_push($this->menus, ['title'=>'待评分','jump'=>'home/Center/myscore']);
}
$this->assign('menus',$this->menus);
$this->check_login();
}
public function index(){
//判断是否激活
if(!$this->user['user_status']){
$current_user=$this->user;
$email = $current_user['member_list_email'];
$this->assign("email",$email);
$this->assign('current',['title'=>'账号激活']);
return $this->view->fetch('user:active');
}
$current=$this->menus[1];
$this->assign('current',$current);
$this->assign($this->user);
return $this->view->fetch('user:center');
}
//编辑用户资料
public function edit(){
$pid=$this->user['member_list_province'];
$cid=$this->user['member_list_city'];
$regions=Db::name('Region')->where('pid','in','1,'.$pid.','.$cid)->select ();
$province=[];
$city=[];
$town=[];
if(count($regions)){
foreach ($regions as $item){
switch ($item['pid']){
case 1:
array_push($province, $item);
break;
case $pid:
array_push($city, $item);
break;
case $cid:
array_push($town, $item);
break;
}
}
}
$this->assign('province',$province);
$this->assign('city',$city);
$this->assign('town',$town);
$this->assign($this->user);
$current=$this->menus[5];
$this->assign('current',$current);
return $this->view->fetch('user:edit');
}
public function runedit(){
if(request()->isPost()){
$post=input('post.');
$file = request()->file('member_list_headpic');
if($file->getInfo('size')>(10*1024*1024)){
$this->error('上传文件不能大于10M!');
}
if(!in_array(strtoupper(substr(strrchr($file->getInfo('name'), '.'), 1)),['PNG','JPG','GIF'])){
$this->error('上传文件类型错误!');
}
$validate = config('upload_validate');
if ($file) {
$info = $file->validate($validate)->rule('md5')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d'));
if ($info) {
$img_url = config('upload_path'). '/' . date('Y-m-d') . '/' . $info->getFilename();
$post['member_list_headpic']=$img_url;
}
}
$rst=Db::name('member_list')->where(array('member_list_id'=>$this->user['member_list_id']))->update($post);
if ($rst!==false) {
$this->user=Db::name('member_list')->find($this->user['member_list_id']);
session('user',$this->user);
$this->success(lang('save success'),url("home/Center/edit"));
} else {
$this->error(lang('save failed'));
}
}
}
//修改密码
public function runchangepwd(){
if (request()->isPost()) {
$old_password=input('old_password');
$password=input('password');
$repassword=input('repassword');
if(empty($old_password)){
$this->error(lang('old pwd empty'));
}
if(empty($password)){
$this->error(lang('new pwd empty'));
}
if($password!==$repassword){
$this->error(lang('pwd not same'));
}
$member=Db::name('member_list');
$user=$member->where(array('member_list_id'=>$this->user['member_list_id']))->find();
$member_list_salt=$user['member_list_salt'];
if(encrypt_password($old_password,$member_list_salt)===$user['member_list_pwd']){
if(encrypt_password($password,$member_list_salt)==$user['member_list_pwd']){
$this->error(lang('new pwd the same as old pwd'));
}else{
$data['member_list_pwd']=encrypt_password($password,$member_list_salt);
$data['member_list_id']=$this->user['member_list_id'];
$rst=$member->update($data);
if ($rst!==false) {
$this->success(lang('revise success'),url('home/Center/index'));
} else {
$this->error(lang('revise failed'));
}
}
}else{
$this->error(lang('old pwd not correct'));
}
}
}
public function avatar(){
$imgurl=input('imgurl');
//去'/'
$imgurl=str_replace('/','',$imgurl);
$rst=Db::name('member_list')->where(array('member_list_id'=>$this->user['member_list_id']))->update(array('member_list_headpic'=>$imgurl));
if($rst!==false){
session('user_avatar',$imgurl);
$this->user['member_list_headpic']=$imgurl;
$url='/data/upload/avatar/'.$imgurl;
//写入数据库
$data['uptime']=time();
$data['filesize']=filesize('./'.$url);
$data['path']=$url;
Db::name('plug_files')->insert($data);
$this->success (lang('avatar update success'),url('home/Center/index'));
}else{
$this->error (lang('avatar update failed'),url('home/Center/index'));
}
}
public function bang(){
$oauth_user_model=Db::name("OauthUser");
$oauths=$oauth_user_model->where(array("uid"=>$this->user['member_list_id']))->select();
$new_oauths=array();
foreach ($oauths as $oa){
$new_oauths[strtolower($oa['oauth_from'])]=$oa;
}
$this->assign("oauths",$new_oauths);
return $this->view->fetch('user:bang');
}
public function my(){
$lists=Db::name('cult4apply')->alias("a")
->join($this->prefix.'cult4baseinfo b','a.apply_id =b.apply_id')
->join($this->prefix.'cult4status c','a.status =c.status')
->where(['user_id'=>session('hid'),'b.new_flag'=>1])->order('a.apply_id desc')->paginate(config('paginate.list_rows'));
$show=$lists->render();
$apply_time =Db::name('cult4apply')->alias("a")
->join($this->prefix.'cult4baseinfo b','a.apply_id =b.apply_id')
->join($this->prefix.'cult4status c','a.status =c.status')
->where(['user_id'=>session('hid'),'b.new_flag'=>1])->where('a.status','neq','31')->order('a.apply_id desc')->find();
if(!empty($apply_time) && strtotime("+10 days",$apply_time['create_time'])>time()){
$this->assign('apply_time',date('Y-m-d H:i:s',strtotime("+10 days",$apply_time['create_time'])));
}
$this->assign('page',$show);
$this->assign("lists",$lists);
$current=$this->menus[2];
$this->assign('current',$current);
return $this->view->fetch('user:my');
}
public function myscore(){
$current=$this->menus[8];
$this->assign('current',$current);
return $this->view->fetch('user:myscore');
}
//发送短信验证码
public function sendsms(){
$account=input('account','');
$where['sms_type']='edittel';
$where['sms_tel']=$account;
$rst=Db::name('smslog')->where($where)->find();
if($rst){
if($rst['sms_time']>(time()-120)){
return json(['code'=>0,'msg'=>'已获取过,'.(time()-$rst['sms_time']).'后稍后再试']);
}
}
$rst_sms=false;
$error='未设置短信平台配置';
$code=random(6,'number');
if(config('alisms.on')){
$client = new Client(new App(config('alisms')));
$req = new AlibabaAliqinFcSmsNumSend;
$req->setRecNum($account)
->setSmsParam([
'number' => $code
])
->setSmsFreeSignName(config('alisms.signName'))
->setSmsTemplateCode(config('alisms.TemplateCode'));
$resp = $client->execute($req);
if($resp->result->success){
$rst_sms=true;
}else{
$error=$resp->sub_msg;
}
}elseif(config('ymsms.on')){
//$arr=send_sms($account,'【'.config('ymsms.signname').'】您好,您修改新手机号的验证码为'.$code.',验证码2分钟内有效!');
$arr=send_sms($account,'您好,您修改新手机号的验证码为'.$code.',验证码2分钟内有效!');
if($arr['code']==1){
$rst_sms=true;
}else{
$error=$arr['msg'];
}
}
if($rst_sms){
if($rst){
//更新
$rst['sms_time']=time();
$rst['sms_code']=$code;
$rst=Db::name('smslog')->update($rst);
if($rst!==false){
return json(['code'=>1]);
}else{
return json(['code'=>0,'msg'=>'获取失败,请重试']);
}
}else{
//插入数据库
$data=[
'sms_type'=>'edittel',
'sms_tel'=>$account,
'sms_time'=>time(),
'sms_code'=>$code
];
$rst=Db::name('smslog')->insert($data);
if($rst){
return json(['code'=>1]);
}else{
return json(['code'=>0,'msg'=>'获取失败,请重试']);
}
}
}else{
return json(['code'=>0,'msg'=>$error]);
}
}
public function changetel(){
$uid=session('hid');
$member_list_tel=input('member_list_tel');
$verify=input('verify','');
$where['sms_type']='edittel';
$where['sms_tel']=$member_list_tel;
$where['sms_time']=['>',time()-120];
$rst=Db::name('smslog')->where($where)->find();
if(!$rst || $rst['sms_code']!=$verify) $this->error(lang('verifiy incorrect'),url('home/Center/edit'));
$rule = [
['member_list_tel','require','手机号必须']
];
$validate = new Validate($rule);
$rst = $validate->check(array(
'member_list_tel'=>$member_list_tel
));
if(true !==$rst){
$error=is_array($validate->getError())?join('|',$validate->getError()):$validate->getError();
$this->error($error,url('home/Center/edit'));
}
$rst=Db::name('member_list')->where('member_list_id',$uid)->update(['member_list_tel'=>$member_list_tel]);
if($rst!==false){
$this->success ('修改成功',url('home/Center/edit'));
}else {
$this->error('修改失败',url('home/Center/edit'));
}
}
public function notice(){
//判断是否激活
if(!$this->user['user_status']){
$current_user=$this->user;
$email = $current_user['member_list_email'];
$this->assign("email",$email);
return $this->view->fetch('user:active');
}
$lists=Db::name('cult4notice')->alias('a')
->where(['a.user_id'=>session('hid')])
->order('a.create_time desc')
->field('a.*')
->paginate(config('paginate.list_rows'));
$show=$lists->render();
$this->assign('page',$show);
$this->assign("lists",$lists);
$current=$this->menus[6];
$this->assign('current',$current);
return $this->view->fetch('user:notice');
}
public function capnotice(){
$lists=Db::name('capitalnotice')->alias('a')
->where(['a.user_id'=>session('hid')])
->order('a.create_time desc')
->field('a.*')
->paginate(config('paginate.list_rows'));
$show=$lists->render();
$this->assign('page',$show);
$this->assign("lists",$lists);
$current=$this->menus[7];
$this->assign('current',$current);
return $this->view->fetch('user:capnotice');
}
public function actnotice(){
$lists=Db::name('activitynotice')->alias('a')
->where(['a.user_id'=>session('hid')])
->order('a.create_time desc')
->field('a.*')
->paginate(config('paginate.list_rows'));
$show=$lists->render();
$this->assign('page',$show);
$this->assign("lists",$lists);
$current=$this->menus[10];
$this->assign('current',$current);
return $this->view->fetch('user:actnotice');
}
public function capnotice_r(){
$notice_id=input('notice_id',0,'intval');
if(!$notice_id) $this->error('通知不存在',url('home/Center/capnotice'));
//设置为已读
Db::name('capitalnotice')->update(['notice_id'=>$notice_id,'is_read'=>1]);
}
public function actnotice_r(){
$notice_id=input('notice_id',0,'intval');
if(!$notice_id) $this->error('通知不存在',url('home/Center/actnotice'));
//设置为已读
Db::name('activitynotice')->update(['notice_id'=>$notice_id,'is_read'=>1]);
}
public function notice_r(){
$notice_id=input('notice_id',0,'intval');
if(!$notice_id) $this->error('通知不存在',url('home/Center/notice'));
$list=Db::name('cult4notice')->find($notice_id);
if(!$list) $this->error('通知不存在',url('home/Center/notice'));
if($list['create_type']==0){
$user_notice=Db::name('member_list')->field('member_list_nickname,member_list_username,member_list_headpic')->find($list['create_id']);
}else{
$user_notice=Db::name('admin')->field('admin_realname,admin_username,admin_avatar')->find($list['create_id']);
}
$this->assign("list",$list);
$this->assign("user_notice",$user_notice);
//设置为已读
Db::name('cult4notice')->update(['notice_id'=>$notice_id,'is_read'=>1]);
return $this->view->fetch('user:notice_r');
}
public function need_jzdc(){
$lists=Db::name('cult4apply')->alias("a")
->join($this->prefix.'cult4baseinfo b','a.apply_id =b.apply_id')
->join($this->prefix.'cult4status c','a.status =c.status')
->where(['b.new_flag'=>1,'a.status'=>2,'member_recmd'=>session('hid')])
->order('a.apply_id desc')->paginate(config('paginate.list_rows'));
$show=$lists->render();
$this->assign('page',$show);
$this->assign("lists",$lists);
return $this->view->fetch('user:jzdc');
}
public function need_pro(){
$lists=Db::name('cult4apply')->alias("a")
->join($this->prefix.'cult4baseinfo b','a.apply_id =b.apply_id')
->join($this->prefix.'cult4status c','a.status =c.status')
->join($this->prefix.'cult4proassign d','d.apply_id=a.apply_id')
->where(['b.new_flag'=>1,'a.status'=>15,'d.user_id'=>session('hid'),'d.del_flag'=>0])
->order('a.apply_id desc')->paginate(config('paginate.list_rows'));
$show=$lists->render();
$this->assign('page',$show);
$this->assign("lists",$lists);
return $this->view->fetch('user:pro');
}
public function mytg(){
$current=$this->menus[3];
$this->assign('current',$current);
return $this->view->fetch('user:mytg');
}
public function myorg(){
$lists=Db::name('org_apply')->alias("a")
->join($this->prefix.'org_status c','a.status =c.status')
->where(['a.uid'=>session('hid')])->order('a.id desc')->paginate(config('paginate.list_rows'));
$apply_time =Db::name('org_apply')->where('status','neq','10' )->where(['uid'=>session('hid')])->find();
if(!empty($apply_time) && strtotime("+10 days",$apply_time['create_time'])>time()){
$this->assign('apply_time',date('Y-m-d H:i:s',strtotime("+10 days",$apply_time['create_time'])));
}
$show=$lists->render();
$this->assign('page',$show);
$this->assign("lists",$lists);
$current=$this->menus[4];
$this->assign('current',$current);
return $this->view->fetch('user:myorg');
}
/**
*活动报名
*/
public function myact(){
$lists=Db::name('activityapply')->alias('a')
->join($this->prefix.'activity c','c.id =a.aid')
->where(['a.uid'=>session('hid')])
->order('a.create_time desc')
->field('c.title,c.id,a.create_time')
->group("a.aid")
->paginate(config('paginate.list_rows'));
$show=$lists->render();
$this->assign('page',$show);
$this->assign("lists",$lists);
$current=$this->menus[9];
$this->assign('current',$current);
return $this->view->fetch('user:myact');
}
/**
*活动报名
*/
public function mybbs(){
$lists=Db::name('bbslist')
->where(['mid'=>session('hid')])
->order('update_time desc,id desc')
->paginate(config('paginate.list_rows'));
$show=$lists->render();
$this->assign('page1',$show);
$this->assign("lists",$lists);
$lists=Db::name('bbslog')
->where(['mid'=>session('hid')])
->order('update_time desc,id desc')
->paginate(config('paginate.list_rows'));
$show=$lists->render();
$this->assign('page2',$show);
$this->assign("logs",$lists);
$current=$this->menus[12];
$this->assign('current',$current);
$uid=session('hid');
$where=['uid|rid'=>$uid,'status'=>1];
$list=db('bbsask')->where($where)->order('id desc')->paginate(config('paginate.list_rows'));
$show = $list->render();
if(count($list)){
$list=$list->toArray();
$data=$list['data'];
foreach ($data as $k=>$row){
$nickname='';
$poster='';
$sid=$row['rid'];
if($uid==$row['rid']){
$sid=$row['uid'];
}
$find=Db::name('member_list')->field('member_list_nickname,member_list_headpic')->where(['member_list_id'=>$sid])->find();
if($find){
$nickname=$find['member_list_nickname'];
$poster=$find['member_list_headpic'];
}
$data[$k]['nickname']=$nickname;
$data[$k]['poster']=$poster;
}
$list=$data;
}
$this->assign("list",$list);
$this->assign("page3",$show);
$this->assign("uid",$uid);
return $this->view->fetch('user:mybbs');
}
public function delcom(){
$mid=session("hid");
$id=input('id');
if(!$id){$this->error("缺少参数");}
$find=Db::name('bbslog')->where(['mid'=>$mid,'id'=>$id])->delete();
if(!$find){
$this->error('删除失败');
}else{
$this->success('删除成功');
}
}
public function savecom(){
$mid=session("hid");
$id=input('id');
$content=input("content");
if(!$id||!$content){$this->error("缺少参数");}
$find=Db::name('bbslog')->where(['mid'=>$mid,'id'=>$id])->update(['content'=>$content]);
if(!$find){
$this->error('更新失败');
}else{
$this->success('更新成功');
}
}
/**
* 我的申请
*/
public function cuapply(){
$lists=Db::name('cultureapply')->alias('a')
->where(['a.user_id'=>session('hid')])
->order('a.create_time desc')
->field('a.*')
->paginate(config('paginate.list_rows'));
$show=$lists->render();
if(count($lists)){
$lists=$lists->toArray();
$lists=$lists['data'];
foreach ($lists as $k=>$doc){
$doc['create_time']=date("Y-m-d",$doc['create_time']);
if($doc['company']==1)$doc['company']='中央政府部门所属机构';
if($doc['company']==2)$doc['company']='国有独资企业';
if($doc['company']==3)$doc['company']='国有控股企业';
if($doc['company']==4)$doc['company']='股份有限公司';
if($doc['company']==5)$doc['company']='股份有限公司';
if($doc['company']==6)$doc['company']='其他';
$legal=$doc['legal'];
try {
$legal=json_decode($legal,true);
} catch (Exception $e) {
}
if(!is_array($legal))$legal=[];
$doc['legal']=$legal;
$org=$doc['org'];
try {
$org=json_decode($org,true);
} catch (Exception $e) {
}
if(!is_array($org))$org=[];
$doc['org']=$org;
$cont=$doc['cont'];
try {
$cont=json_decode($cont,true);
} catch (Exception $e) {
}
if(!is_array($cont))$cont=[];
$doc['cont']=$cont;
$lists[$k]=$doc;
}
}
$this->assign('page',$show);
$this->assign("lists",$lists);
$current=$this->menus[8];
$this->assign('current',$current);
return $this->view->fetch('user:cuapply');
}
public function artverify(){
$lists=Db::name('artverify')->alias('a')
->where(['a.userid'=>session('hid')])
->order('a.create_time desc')
->field('a.*')
->paginate(config('paginate.list_rows'));
$show=$lists->render();
$this->assign('page',$show);
$this->assign("lists",$lists);
$current=$this->menus[11];
$this->assign('current',$current);
return $this->view->fetch('user:artverify');
}
}

18
app/home/controller/Error.php

@ -0,0 +1,18 @@
<?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\home\controller;
class Error extends Base
{
//空控制器
public function index()
{
$this->error(lang('operation not valid'));
}
}

142
app/home/controller/Feedback.php

@ -0,0 +1,142 @@
<?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\home\controller;
use think\Db;
use think\Validate;
use think\Request;
use think\captcha\Captcha;
class Feedback extends Base
{
public function submit(){
$rule = [
'name'=>'require',
'tel'=>'require',
'platform'=>'require',
'account'=>'require',
'org'=>'require',
'target'=>'require',
'target_relation'=>'require',
'information'=>'require',
'economy_problem'=>'require',
'intro'=>'require',
'attach'=>'require',
'__feedback__' =>'require|token:__feedback__'
];
$message = [
'name'=>'姓名不能为空',
'tel'=>'手机号不能为空',
'platform'=>'参与平台不能为空',
'account'=>'客户账号不能为空',
'org'=>'所属机构不能为空',
'target'=>'客户投诉主体不能为空',
'target_relation'=>'与投诉主体的关系不能为空',
'information'=>'基本情况反馈不能为空',
'economy_problem'=>'经济问题反馈不能为空',
'intro'=>'相关协议及签署文件情况介绍不能为空',
'attach'=>'对应证明附件不能为空',
'__feedback__.require'=>'令牌缺失'
];
$recharge=input('post.is_recharge', 0);
$money=input('post.recharge_money', 0);
$validate=new Validate($rule,$message);
$result=$validate->check(input());
$error='';
if($recharge != 0 && $recharge != 1)$error='账号是否入金';
if($recharge == 1) {
if(empty($money))$error='入金金额不能为空';
}
if(!$result)$error=$validate->getError();
if(!empty($error)){
request()->token();
echo json_encode(['code' => 500, 'msg' => '失败', 'data' => $error,'token'=>request()->token('__feedback__')], JSON_UNESCAPED_UNICODE);
return;
}
$data = array();
$data['name'] = input('post.name','');
$data['tel'] = input('post.tel','');
$data['platform'] = input('post.platform','');
$data['account'] = input('post.account','');
$data['is_recharge'] =$recharge;
$data['recharge_money'] =$money;
$data['org'] = input('post.org','');
$data['target'] = input('post.target','');
$data['target_relation'] = input('post.target_relation','');
$data['information'] = input('post.information','');
$data['economy_problem'] = input('post.economy_problem','');
$data['intro'] = input('post.intro','');
$data['attach'] = htmlspecialchars_decode(input('post.attach'));
$data['create_time'] = time();
$query=Db::name('feedback')->insert($data);
if($query){
$tels=config('complaint');
if(count($tels)){
foreach ($tels as $tel){
$weeks=[1=>'周一','周二','周三','周四','周五','周六','周日'];
$week=date("N");
$cur=$weeks[$week];
$msg='【深圳文化产权交易所】'.date("Y年m月d日").$cur.date("H:i").'系统官网后台收到一条客户投诉消息,请及时查看处理!';
send_sms($tel,$msg);
}
}
}
echo json_encode(['code' => 200, 'msg' => '成功', 'data' => ''], JSON_UNESCAPED_UNICODE);
}
public function review(){
$token=input('token');
$id=input('id');
if(md5('szwjs_'.$id)!=$token){
$this->error('无权限操作');
}
$doc = Db::name('feedback')->where(['id'=>$id])->find();
if(request()->isAjax()){
if($doc['score']){
$this->error("已经提交过反馈");
}
$score=input('score','','intval');
$query=Db::name('feedback')->where(['id'=>$id])->update(['score'=>$score]);
if($query){
$this->success("提交成功");
}else{
$this->error("提交失败");
}
}
$this->assign('doc',$doc);
$this->assign('token',$token);
return $this->view->fetch(':fbreview');
}
public function uploadimage(){
$file = request()->file('image');
if ($file) {
$path = '/data' . DS . 'upload' . DS . date('Y-m-d');
$validate = config('upload_validate');
$info = $file->validate($validate)->rule('md5')->move(ROOT_PATH . $path);
if ($info) {
$img_url = request()->domain() . $path . DS . $info->getFilename();
return json(['code' => 200, 'msg' => '成功', 'data' =>$img_url]);
} else {
echo json_encode(['code' => 500, 'msg' => '失败', 'data' => "上传文件失败"]);
return;
}
} else {
echo json_encode(['code' => 500, 'msg' => '失败', 'data' => "上传文件失败"]);
return;
}
}
}

1735
app/home/controller/Index.php

File diff suppressed because it is too large

88
app/home/controller/Lbcontetn.php

@ -0,0 +1,88 @@
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/3/29
* Time: 10:03
*/
namespace app\home\controller;
use think\Db;
/**
* Class Lbcontetn
* @package app\home\controller轮播搜索
*/
class Lbcontetn extends Base
{
public function lb_list(){
try{
$whole =input('name');
$sql='select * from wjs_zgwhjf_gg where gg_status=1 and (gg_id like \'%'.$whole.'%\' or gg_museumunt like \'%'.$whole.'%\' ) order by gg_time desc ';
$home_manager=Db::query($sql);//掌柜文化金服公馆-搜索
$sql='select * from wjs_zgwhjf_sc where sc_status=1 and (sc_product_code like \'%'.$whole.'%\' or sc_product_name like \'%'.$whole.'%\' ) order by sc_time desc ';
$home_shopping=Db::query($sql);//掌柜文化金服商城-搜索
$sql='select * from wjs_zgwhjf_yp where yp_status=1 and (yp_auction_code like \'%'.$whole.'%\' or yp_artist_name like \'%'.$whole.'%\' ) order by yp_time desc ';
$home_making=Db::query($sql);//掌柜文化金服艺拍-搜索
$sql='select * from wjs_zgwhjf_ysth where ysth_status=1 and (ysth_code like \'%'.$whole.'%\' or ysth_product_name like \'%'.$whole.'%\' ) order by ysth_time desc ';
$home_shooting=Db::query($sql); //掌柜文化金服艺术投行-搜索
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=49 and c_qyfzjd=51 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
or c_ssbk=1 and c_business_type=49 and c_qyfzjd=52 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\')
or c_ssbk=1 and c_business_type=49 and c_qyfzjd=53 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like\'%'.$whole.'%\')
or c_ssbk=1 and c_business_type=49 and c_qyfzjd=54 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc';
$home_data_noe=Db::query($sql);//文化产业板挂牌展示
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=50 and c_qyfzjd=51 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=52 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\')
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=53 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like\'%'.$whole.'%\')
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=54 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc';
$home_data_two=Db::query($sql);//文化产业挂牌交易
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=49 and c_qyfzjd=51 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=51 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc ';
$home_data_three=Db::query($sql);//文化产业板文化企业上市公会
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=49 and c_qyfzjd=52 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=52 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc ';
$home_data_four=Db::query($sql);//文化产业板天使板
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=49 and c_qyfzjd=53 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=53 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc ';
$home_data_five=Db::query($sql);//文化产业板养成板
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=49 and c_qyfzjd=54 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=54 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc';
$home_data_six=Db::query($sql);//文化产业板标准板
$sql='select * from wjs_gyxm where c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' ) order by c_time desc';
$gy_list=Db::query($sql);//国有项目数据
$volist =array();
$volist["home_manager"]=$home_manager; //掌柜文化金服公馆
$volist["home_shopping"]=$home_shopping; //掌柜文化金服商城
$volist["home_making"]=$home_making; //掌柜文化金服艺拍
$volist["home_shooting"]=$home_shooting; //掌柜文化金服艺术投行
$volist["home_data_noe"]=$home_data_noe; //文化产业板挂牌展示
$volist["home_data_two"]=$home_data_two; //文化产业板挂牌交易
$volist["home_data_three"]=$home_data_three; //文化产业板文化企业上市公会
$volist["home_data_four"]=$home_data_four; //文化产业板天使板
$volist["home_data_five"]=$home_data_five; //文化产业板养成板
$volist["home_data_six"]=$home_data_six; //文化产业板标准板
$volist["gy_list"]=$gy_list; //国有项目数据
return json(['code'=>1,'msg'=>'成功','list'=>$volist]);
}catch (\Exception $e){
return json(['code'=>0,'msg'=>'失败']);
}
}
}

4184
app/home/controller/Listn.php

File diff suppressed because it is too large

632
app/home/controller/Login.php

@ -0,0 +1,632 @@
<?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\home\controller;
use think\Db;
use think\captcha\Captcha;
use think\Validate;
use Flc\Alidayu\Client;
use Flc\Alidayu\App;
use Flc\Alidayu\Requests\AlibabaAliqinFcSmsNumSend;
use afs\Request\V20180112\AuthenticateSigRequest;
use function EasyWeChat\Payment\get_client_ip;
class Login extends Base
{
public function index()
{
if(session('hid')){
if($this->user['user_status']){
$this->redirect(__ROOT__."/");
}else{
$current_user=$this->user;
$email = $current_user['member_list_email'];
$this->assign("email",$email);
return $this->view->fetch('user:active');
}
}else{
$this->redirect(__ROOT__."/");
}
}
//验证码
public function verify(){
if (session('hid')) {
$this->redirect(__ROOT__."/");
}
return $this->verify_build('hid');
}
/*
* 退出登录
*/
public function logout()
{
session('hid',null);
session('user',null);
session('api_token',null);
cookie('yf_logged_user',null);
$this->redirect(__ROOT__."/");
}
//登录验证
public function runlogin(){
$token=input('token','');
$ticket=input('ticket');
$randstr=input('randstr');
if(empty($ticket)||empty($randstr)){
$this->error('请先通过验证');
}
$secretKey = 'iK5c3HIfAPULVFyEDyXqvn0G8j4B2e0o';
$config=config('tccaptcha');
$config=$config['log'];
$params=[];
$params['Action']='DescribeCaptchaResult';
$params['Version']='2019-07-22';
$params['CaptchaType']=9;
$params['Ticket']=$ticket;
$params['UserIp']=request()->ip();
$params['Randstr']=$randstr;
$params['CaptchaAppId']=isset($config['appid'])?$config['appid']:'';
$params['AppSecretKey']=isset($config['appsecret'])?$config['appsecret']:'';
$params['SecretId']='AKIDA8pGJICmgL0Reg4Np9ETVHh4D6j7hgS0';
$params['Timestamp']=time();
$params['Nonce']=rand();
//$params['NeedGetCaptchaTime']=1;
$path="captcha.tencentcloudapi.com/";
ksort($params);
$signStr = "GET".$path."?";
foreach ($params as $key => $value ) {
$signStr =$signStr.$key."=".$value."&";
}
$signStr = substr($signStr,0,-1);
$signature = base64_encode(hash_hmac("sha1", $signStr, $secretKey, true));
$params['Signature']=$signature;
$url='https://'.$path.'?'.http_build_query($params);
$res=go_curl2($url,'get');
try {
$res=json_decode($res,true);
if($res['Response']['CaptchaCode']!=1){
$this->error('图片验证失败!');
}
} catch (\Exception $e) {
$this->error('图片验证失败!');
}
$member_list_username=input('member_list_username');
$member_list_pwd=input('member_list_pwd');
$logintype=input('logintype');
$remember=input('remember',0,'intval');
$rule = [
['member_list_username','require','{%username empty}'],
['member_list_pwd','require','{%pwd empty}'],
];
$validate = new Validate($rule);
$rst = $validate->check(array('member_list_username'=>$member_list_username,'member_list_pwd'=>$member_list_pwd));
if(true !==$rst){
$this->error(join('|',$validate->getError()));
}
$where=[];
if(strpos($member_list_username,"@")>0){//邮箱登陆
$where['member_list_email']=$member_list_username;
}else{
$where['member_list_username']=$member_list_username;
}
if($logintype==1){
$where['member_list_groupid']=['not in',[7,10]];
}else{
$where['member_list_groupid']=['in',[7,10]];
}
$member=Db::name("member_list")->where($where)->find();
if (!$member||encrypt_password($member_list_pwd,$member['member_list_salt'])!==$member['member_list_pwd']){
$this->error(lang('username or pwd incorrect'),'',['token'=>$token]);
}else{
if($member['member_list_open']==0){
$this->error(lang('user disabled'),'',['token'=>$token]);
}
//更新字段
$data = array(
'last_login_time' => time(),
'last_login_ip' => request()->ip(),
);
Db::name("member_list")->where(array('member_list_id'=>$member["member_list_id"]))->update($data);
session('hid',$member['member_list_id']);
session('user',$member);
if($remember && $member['user_status']){
//更新cookie
cookie('yf_logged_user', jiami("{$member['member_list_id']}.{$data['last_login_time']}"));
}
$this->success(lang('login success'),url('home/Login/check_active'));
}
}
public function runsmslog(){
$logintype=input('logintype');
$remember=input('remember',0,'intval');
$rule = [
'__slogin__' =>'require|token:__slogin__'
];
$message =[
'__slogin__.require'=>'令牌缺失'
];
$validate=new Validate($rule,$message);
$result=$validate->check(input());
$token=request()->token('__slogin__');
if(!$result){
$this->error($validate->getError(),'',['token'=>$token]);
}
$member_list_username=input('member_list_username');
$verify=input('verify','');
$where=[];
//手机
$where['sms_type']='smslog';
$where['sms_tel']=$member_list_username;
$where['sms_time']=['>',time()-300];
$rst=Db::name('smslog')->where($where)->find();
if(!$rst||$rst['sms_code']!=$verify) $this->error('验证码不正确','',['token'=>$token]);
$where=[];
$where['member_list_username']=$member_list_username;
if($logintype==1){
$where['member_list_groupid']=['not in',[7,10]];
}else{
$where['member_list_groupid']=['in',[7,10]];
}
$member=Db::name("member_list")->where($where)->find();
if (!$member){
$this->error(lang('username or pwd incorrect'),'',['token'=>$token]);
}else{
if($member['member_list_open']==0){
$this->error(lang('user disabled'),'',['token'=>$token]);
}
//更新字段
$data = array(
'last_login_time' => time(),
'last_login_ip' => request()->ip(),
);
Db::name("member_list")->where(array('member_list_id'=>$member["member_list_id"]))->update($data);
session('hid',$member['member_list_id']);
session('user',$member);
if($remember && $member['user_status']){
//更新cookie
cookie('yf_logged_user', jiami("{$member['member_list_id']}.{$data['last_login_time']}"));
}
$this->success(lang('login success'),url('home/Index/index'));
}
}
private function reg(){
return $this->view->fetch('public:reg');
}
private function log(){
return $this->view->fetch('public:log');
}
public function forgot_pwd()
{
return $this->view->fetch('user:forgot_pwd');
}
//验证码
public function verify_forgot()
{
if (session('hid')) {
$this->redirect(__ROOT__."/");
}
return $this->verify_build('forgot');
}
public function get_code(){
$verifyCode = input("verify");
$check = input("type");
if(empty($verifyCode)){
$this->error('图形验证码为空!');
}
//调用掌柜文化金服登录接口,不需要官网的验证码
$verify =new Captcha ();
if($check=='smslog'){
if (!$verify->check($verifyCode,'smslogin')) {
$this->error(lang('verifiy incorrect'));
}
}else{
if (!$verify->check($verifyCode, 'forgot')) {
$this->error(lang('verifiy incorrect'));
}
}
$account=input('account','');
$user=Db::name("member_list")->where('member_list_email|member_list_username|member_list_tel',$account)->find();
if($user){
if(stripos($account,'@')){
//邮箱
$code=random(6,'number');
$rst=Db::name("member_list")->where(array("member_list_id"=>$user['member_list_id']))->update(array("user_activation_key"=>$code));
if($rst){
$template = lang('emal text').
<<<hello
#code#
hello;
$content = str_replace(array('#code#','#username#'), array($code,$user['member_list_username']),$template);
$send_result=sendMail($account, $this->site_options['site_name'].' '.lang('pwd reset'), $content);
if($send_result['error']){
return json(['code'=>0,'msg'=>lang('send pwd reset email failed')]);
}else{
return json(['code'=>1]);
}
}else{
return json(['code'=>0,'msg'=>'获取失败,请重试']);
}
}else{
//手机
if($check=='smslog'){
$rst=Db::name('smslog')->where(['sms_type'=>'smslog','sms_tel'=>$account])->find();
}else{
$rst=Db::name('smslog')->where(['sms_type'=>'forgot','sms_tel'=>$account])->find();
}
if($rst){
if($rst['sms_time']>(time()-120)){
return json(['code'=>0,'msg'=>'已获取过,'.(time()-$rst['sms_time']).'后稍后再试']);
}
}
$rst_sms=false;
$error='未设置短信平台配置';
$code=random(6,'number');
$customid=random(16,'number');
$extcode=random(6,'number');
if(config('alisms.on')){
$client = new Client(new App(config('alisms')));
$req = new AlibabaAliqinFcSmsNumSend;
$req->setRecNum($account)
->setSmsParam([
'number' => $code
])
->setSmsFreeSignName(config('alisms.signName'))
->setSmsTemplateCode(config('alisms.TemplateCode'));//忘记密码短信模板
$resp = $client->execute($req);
if($resp->result->success){
$rst_sms=true;
}else{
$error=$resp->sub_msg;
}
}elseif(config('ymsms.on')){
//$arr=send_sms($account,'【'.config('ymsms.signname').'】您好,您的申请密码找回的验证码为'.$code.',验证码2分钟内有效!');
$msg='您好,您的申请密码找回的验证码为'.$code.',验证码5分钟内有效!';
if($check=='smslog'){
$msg='您好,您的短信登录验证码为'.$code.',验证码5分钟内有效!';
}
$arr=send_sms($account,$msg);
if($arr['code']==1){
$rst_sms=true;
}else{
$error=$arr['msg'];
}
}
if($rst_sms){
if($rst){
//更新
$rst['sms_time']=time();
$rst['sms_code']=$code;
$rst=Db::name('smslog')->update($rst);
if($rst!==false){
return json(['code'=>1]);
}else{
return json(['code'=>0,'msg'=>'获取失败,请重试']);
}
}else{
//插入数据库
$data=[
'sms_tel'=>$account,
'sms_time'=>time(),
'sms_code'=>$code,
'sms_customid'=>$customid,
'sms_extend'=>$extcode
];
if($check=='smslog'){
$data['sms_type']='smslog';
}else{
$data['sms_type']='forgot';
}
$rst=Db::name('smslog')->insert($data);
if($rst){
return json(['code'=>1]);
}else{
return json(['code'=>0,'msg'=>'获取失败,请重试']);
}
}
}else{
return json(['code'=>0,'msg'=>$error]);
}
}
}else{
return json(['code'=>0,'msg'=>'该邮箱或手机未注册过']);
}
}
public function runforgot_pwd()
{
if(request()->isPost()){
$logintype=input('logintype');
$rule = [
'__retri__' =>'require|token:__retri__'
];
$message =[
'__retri__.require'=>'令牌缺失'
];
$validate=new Validate($rule,$message);
$result=$validate->check(input());
$token=request()->token('__retri__');
if(!$result){
$this->error($validate->getError(),url('index/index'),['token'=>$token]);
}
$member_list_username=input('member_list_username');
$verify=input('verify','');
$where=[];
$where['member_list_email|member_list_username|member_list_tel']=$member_list_username;
if($logintype==1){
$where['member_list_groupid']=['not in',[7,10]];
}else{
$where['member_list_groupid']=['in',[7,10]];
}
$find_user=Db::name("member_list")->where($where)->find();
if($find_user){
$mid=$find_user['member_list_id'];
if(stripos($member_list_username,'@')){
$code=$find_user['user_activation_key'];
//邮箱
if($code==$verify){
$this->success('验证正确',url('index/index'),['token'=>$token,'member_list_id'=>$mid,'code'=>$code]);
}else{
$this->error('验证码不正确',url('index/index'),['token'=>$token]);
}
}else{
$code=$verify;
$where=[];
//手机
$where['sms_type']='forgot';
$where['sms_tel']=$member_list_username;
$where['sms_time']=['>',time()-300];
$rst=Db::name('smslog')->where($where)->find();
if(!$rst || $rst['sms_code']!=$verify) $this->error('验证码不正确',url('index/index'),['token'=>$token]);
$this->success('验证正确',url('index/index'),['token'=>$token,'member_list_id'=>$mid,'code'=>$code]);
}
}else {
$this->error(lang('member not exist'),url('index/index'),['token'=>$token]);
}
}
}
public function pwd_reset()
{
$type=input("type",1,'intval');
$member_list_id=input("member_list_id",0,'intval');
$code=input("code",'');
$find_user=Db::name('member_list')->find($member_list_id);
if($find_user){
if($type==1){
if(!$code || $find_user['user_activation_key']!=$code){
$this->error('激活验证码不正确',url('home/Index/index'));
}
}else{
$rst=Db::name('smslog')->where(['sms_type'=>'forgot','sms_code'=>$code,'sms_tel'=>$find_user['member_list_tel']])->find();
if(!$rst){
$this->error('激活验证码不正确',url('home/Index/index'));
}
}
$this->assign("code",$code);
$this->assign("member_list_id",$member_list_id);
$this->assign("type",$type);
return $this->view->fetch('user:pwd_reset');
}else{
$this->error('不存在此会员',url('home/Index/index'));
}
}
//验证码
public function verify_reset()
{
if (session('hid')) {
$this->redirect(__ROOT__."/");
}
return $this->verify_build('pwd_reset');
}
public function runpwd_reset()
{
if(request()->isPost()){
$rule = [
'__reset__' =>'require|token:__reset__'
];
$message =[
'__reset__.require'=>'令牌缺失'
];
$validate=new Validate($rule,$message);
$result=$validate->check(input());
$token=request()->token('__reset__');
if(!$result){
$this->error($validate->getError(),url('index/index'),['token'=>$token]);
}
$verify =new Captcha();
if (!$verify->check(input('verify'), 'pwd_reset')) {
$this->error(lang('verifiy incorrect'),url('index/index'),['token'=>$token]);
}
$rule = [
['password','require|length:5,20','{%pwd empty}|{%pwd length}'],
['repassword','require|confirm:password','{%repassword empty}|{%repassword incorrect}'],
];
$validate = new Validate($rule);
$rst= $validate->check(array('password'=>input('password'),'repassword'=>input('repassword')));
if(true !==$rst){
$error=is_array($validate->getError())?join('|',$validate->getError()):$validate->getError();
$this->error($error,url('index/index'),['token'=>$token]);
}else{
$password=input('password');
$code=input('code','');
$type=input('type');
$member_list_id=input('member_list_id');
$find_user=Db::name('member_list')->find($member_list_id);
if($find_user){
if($type==1){
if(!$code || $find_user['user_activation_key']!=$code){
$this->error('激活验证码不正确',url('index/index'),['token'=>$token]);
}
}else{
$rst=Db::name('smslog')->where(['sms_type'=>'forgot','sms_code'=>$code,'sms_tel'=>$find_user['member_list_tel']])->find();
if(!$rst){
$this->error('激活验证码不正确',url('index/index'),['token'=>$token]);
}
}
$member_list_salt=random(10);
$member_list_pwd=encrypt_password($password,$member_list_salt);
$result=Db::name("member_list")->where('member_list_id',$member_list_id)->update(array('first_pwd'=>'','member_list_pwd'=>$member_list_pwd,'user_activation_key'=>'','member_list_salt'=>$member_list_salt));
if($result){
$this->success(lang('pwd reset success'),url('index/index'),['token'=>$token]);
}else {
$this->error(lang('pwd reset failed'),url('index/index'),['token'=>$token]);
}
}else{
$this->error('不存在此会员',url('index/index'),['token'=>$token]);
}
}
}
}
public function check_active()
{
$this->check_login();
if($this->user['user_status']){
$this->redirect(__ROOT__."/");
}else{
$current_user=$this->user;
$email = $current_user['member_list_email'];
$this->assign("email",$email);
$mailurl=null;
if(stripos($email,'@163.com') or stripos($email,'@vip.163.com')) {
$mailurl = 'http://mail.163.com';
}elseif(stripos($email,'@163.net') or stripos($email,'@vip.tom.com')) {
$mailurl = 'http://www.163.net/';
}elseif(stripos($email,'@qq.com') or stripos($email,'@vip.qq.com') or stripos($email,'@foxmail.com')) {
$mailurl = 'http://mail.qq.com';
}elseif(stripos($email,'@126.com')) {
$mailurl = 'http://mail.126.com';
}elseif(stripos($email,'@yeah.net')) {
$mailurl = 'http://mail.yeah.net/';
}elseif(stripos($email,'@msn.com') or stripos($email,'@hotmail.com') or stripos($email,'@live.cn') or stripos($email,'@live.com')) {
$mailurl = 'http://hotmail.msn.com/';
}elseif(stripos($email,'@yahoo.cn') or stripos($email,'@yahoo.com.cn')) {
$mailurl = 'https://login.yahoo.com/config/mail?&.src=ym&.intl=cn';
}elseif(stripos($email,'@yahoo.com.tw')) {
$mailurl = 'https://login.yahoo.com/config/mail?&.src=ym&.intl=tw';
}elseif(stripos($email,'@sohu.com') or stripos($email,'@vip.sohu.com')) {
$mailurl = 'http://mail.sohu.com/';
}elseif(stripos($email,'@sina.com') or stripos($email,'@vip.sina.com') or stripos($email,'@sina.cn') or stripos($email,'@51uc.com') or stripos($email,'@2008.sina.com')) {
$mailurl = 'http://mail.sina.com.cn/';
}elseif(stripos($email,'@gmail.com')) {
$mailurl = 'http://gmail.google.com/';
}elseif(stripos($email,'@gmail.com')) {
$mailurl = 'http://mail.10086.cn/';
}elseif(stripos($email,'@gmail.com')) {
$mailurl = 'http://mail.10086.cn/';
}elseif(stripos($email,'@tom.com')) {
$mailurl = 'http://mail.tom.com/';
}elseif(stripos($email,'@188.com')) {
$mailurl = 'http://vip.188.com/';
}elseif(stripos($email,'@21cn.com') or stripos($email,'@vip.21cn.com') or stripos($email,'@21cn.net')) {
$mailurl = 'http://mail.21cn.com/';
}elseif(stripos($email,'@263.net')) {
$mailurl = 'https://www.263.net/';
}elseif(stripos($email,'@china.com')) {
$mailurl = 'http://mail.china.com/';
}
$this->assign("mailurl",$mailurl);
//判断是否激活
return $this->view->fetch('user:active');
}
}
//重发激活邮件
public function resend()
{
$this->check_login();
$current_user=$this->user;
if($current_user['user_status']==0){
if($current_user['member_list_email']){
$active_options=get_active_options();
$activekey=md5($current_user['member_list_id'].time().uniqid());//激活码
$result=Db::name('member_list')->where(array("member_list_id"=>$current_user['member_list_id']))->update(array("user_activation_key"=>$activekey));
if(!$result){
$this->error(lang('activation code generation failed'));
}
//生成激活链接
$url = url('home/Register/active',array("hash"=>$activekey), "", true);
$template = $active_options['email_tpl'];
$content = str_replace(array('http://#link#','#username#'), array($url,$current_user['member_list_username']),$template);
$send_result=sendMail($current_user['member_list_email'], $active_options['email_title'], $content);
if($send_result['error']){
return json(['code'=>0,'msg'=>lang('send active email failed')]);
}else{
return json(['code'=>1,'msg'=>lang('send active email success'),'url'=>url('home/Login/index')]);
}
}else{
return json(['code'=>0,'msg'=>lang('no registered email'),'url'=>url('home/Login/index')]);
}
}else{
return json(['code'=>0,'msg'=>lang('activated'),'url'=>url('home/Login/index')]);
}
}
protected function systemconfig(){
try{
$result = getSystemConfig();
if($result->result=='000000'){
$zgwhjf_config=[
'login_verity_code_enable'=>$result->data->security->login->verifyCode_enable,//登录是否开启验证码
'login_verity_code_type'=>$result->data->security->login->verifyCode_type,//登录验证类型(SMS:短信 IMAGE:图像验证码)
'code'=>1,'msg'=>'提交成功'
];
return json($zgwhjf_config);
}else{
}
}catch (\Exception $e){
return json(['code'=>'0','msg'=>'获取失败']);
}
return json(['code'=>'0','msg'=>'获取失败']);
}
/**
* 获取短信
*/
public function loginSms(){
try{
$phone = input("member_list_username");
$verify = input("verify");
if(empty($verify)){
$this->error('验证码为空!');
}
if(empty($phone)){
$this->error('手机号码为空!');
}
$apitoken = session("api_token");
sendSms($phone,$verify,$apitoken);
}catch (\Exception $e){
$this->error('获取失败');
}
$this->success('获取失败');
}
/**
* 检查当前是否已登录
*/
public function check_login(){
if(session('hid')){
return json(array('code'=>1));
}else{
return json(array('code'=>0));
}
}
}

123
app/home/controller/Mpdepc.php

@ -0,0 +1,123 @@
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/4/8
* Time: 15:29
*/
/**
* 常态路演-楼层其他分类
*/
namespace app\home\controller;
use think\Db;
class Mpdepc extends Base
{
/**
* 路演查询集合
*/
public function mpdepc_list(){
$lists=Db::name('lypt')->where(['status'=>1])->order('create_time desc')->paginate(6,false,['query'=>get_query()]);
$show = $lists->render();
$this->assign('page',$show);
$this->assign("lists",$lists);
return $this->view->fetch(':roadshow');
}
/**
* 国有资产查询集合
*/
public function gyxm_list(){
$count =input('count');
$lc_gyxm=Db::name('lc_gyxm')->where(['gyxm_status'=>1,'gyxm_id'=>$count])->order('gyxm_sort,gyxm_time desc')->find();
$this->assign("list",$lc_gyxm);
return $this->view->fetch(':detailesculture_gyxm');
}
/**
*楼层
*/
public function lc_list(){
$count =input('count');
$this->assign("lb",$count);
if($count==12){
$this->assign("name","艺投资");
}else if($count==13){
$this->assign("name","艺资管");
}else if($count==1){
$this->assign("name","国有业务");
}else if($count==2){
$this->assign("name","文化企业债");
}else if($count==3){
$this->assign("name","文化产业板");
}else if($count==4){
$this->assign("name","文化资产托管");
}else if($count==5){
$this->assign("name","股权类服务");
}else if($count==6){
$this->assign("name","非股权金融类服务");
}else if($count==7){
$this->assign("name","其他综合服务");
}else if($count==14){
$this->assign("name","专家库及咨询");
}else if($count==15){
$this->assign("name","无形资产评估及企业信用评级");
}else if($count==8){
$this->assign("name","挂牌");
}else if($count==9){
$this->assign("name","托管");
}else if($count==10){
$this->assign("name","交易");
}else{
$this->assign("name","摘牌");
}
$lc_list=Db::name('lc_whcyb')->where(['whcyb_status'=>1,'whcyb_type'=>$count])->order('whcyb_sort,whcyb_time desc')->find();
$this->assign("list",$lc_list);
return $this->view->fetch(':detailesculture');
}
/**
* 当前显示页
* @return string
*/
public function page(){
$count =input('count');
$this->assign("lb",$count);
$lc_list=Db::name('lc_whcyb')->where(['whcyb_status'=>1,'whcyb_type'=>$count])->order('whcyb_sort,whcyb_time desc')->find();
$name='';
if($lc_list){
$name=$lc_list['whcyb_name'];
}
$this->assign('name',$name);
$this->assign("list",$lc_list);
return $this->view->fetch(':detailesculture');
}
//耧播掌柜金服详情跳转
public function zgwh(){
$count =input('count');
$id =input('id');
$this->assign("count",$count);
if($count==1){
$gg_list=Db::name('zgwhjf_gg')->where(['gg_status'=>1,'gg_id'=>$id])->find();
$this->assign("list",$gg_list);
return $this->view->fetch(':cult_zgwh');
}else if($count==2){
$sc_list=Db::name('zgwhjf_sc')->where(['sc_status'=>1,'sc_id'=>$id])->find();
$this->assign("list",$sc_list);
return $this->view->fetch(':cult_zgwh');
}else if($count==3){
$yp_list=Db::name('zgwhjf_yp')->where(['yp_status'=>1,'yp_id'=>$id])->find();
$this->assign("list",$yp_list);
return $this->view->fetch(':cult_zgwh');
}else{
$zgwhjf_ysth=Db::name('zgwhjf_ysth')->where(['ysth_status'=>1,'ysth_id'=>$id])->find();
$this->assign("list",$zgwhjf_ysth);
return $this->view->fetch(':cult_zgwh');
}
}
}

1731
app/home/controller/News.php

File diff suppressed because it is too large

215
app/home/controller/Oauth.php

@ -0,0 +1,215 @@
<?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\home\controller;
use think\Db;
class Oauth extends Base
{
public function login($type = null,$redirect = null)
{
empty($type) && $this->error(lang('parameter error'));
if(!empty($redirect)){session('login_http_referer',$redirect);}
$sns = \thinksdk\ThinkOauth::getInstance($type);
if(request()->isMobile()){
$sns->setDisplay('mobile');
}
$this->redirect($sns->getRequestCodeURL());
}
public function callback($type = null, $code = null)
{
(empty($type)) && $this->error(lang('parameter error'));
if(empty($code)){
$this->redirect(__ROOT__."/");
}
$sns = \thinksdk\ThinkOauth::getInstance($type);
$extend = null;
if($type == 'tencent'){
$extend = array('openid' => input("openid"), 'openkey' => input("openkey"));
}
$ignore_stat = true; //验证stat 防刷
$token = $sns->getAccessToken($code , $extend);
//获取当前登录用户信息
if(is_array($token)){
$user_info = $sns->userinfo();
$oauth_bang_s=session('oauth_bang');
if($oauth_bang_s){
$this->_bang_handle($user_info, $type, $token);
}else{
$this->_login_handle($user_info, $type, $token);
}
}else{
$this->success(lang('login failed'),$this->_get_login_redirect());
}
}
public function bang($type="")
{
if(session('hid')){
empty($type) && $this->error(lang('parameter error'));
$sns = \thinksdk\ThinkOauth::getInstance($type);
session('oauth_bang',1);
$this->redirect($sns->getRequestCodeURL());
}else{
$this->error(lang('not logged'));
}
}
private function _get_login_redirect()
{
$login_http_referer_s=session('login_http_referer');
return empty($login_http_referer_s)?__ROOT__."/":$login_http_referer_s;
}
//绑定第三方账号
private function _bang_handle($user_info, $type, $token)
{
$current_uid=session('hid');
$type=strtolower($type);
$oauth_id=($type=='wechat' || $type=='weixin')?'unionid':'openid';
$find_oauth_user = Db::name('OauthUser')->where(array("oauth_from"=>$type,$oauth_id=>$token[$oauth_id]))->find();
$need_bang=true;
if($find_oauth_user){
if($find_oauth_user['uid']==$current_uid){
session('oauth_bang',null);
$this->error(lang('bound already'),url('home/Center/bang'));exit;
}else{
session('oauth_bang',null);
$this->error(lang('bound other account'),url('home/Center/bang'));exit;
}
}
if($need_bang){
if($current_uid){
//第三方用户表中创建数据
$new_oauth_user_data = array(
'oauth_from' => $type,
'name' => $user_info['name'],
'head_img' => $user_info['head'],
'create_time' =>time(),
'uid' => $current_uid,
'last_login_time' => time(),
'last_login_ip' => request()->ip(),
'login_times' => 1,
'user_status' => 1,
'access_token' => $token['access_token'],
'expires_date' => (int)(time()+$token['expires_in']),
$oauth_id => $token[$oauth_id],
);
$new_oauth_user_data['openid']=$user_info['openid'];
$new_oauth_user_id=Db::name('OauthUser')->insertGetId($new_oauth_user_data);
if($new_oauth_user_id){
session('oauth_bang',null);
$this->success(lang('bind success'),url('home/Center/bang'));
}else{
session('oauth_bang',null);
$this->error(lang('bind failed'),url('home/Center/bang'));
}
}else{
session('oauth_bang',null);
$this->error(lang('bind failed'),url('home/Center/bang'));
}
}
}
//登陆
private function _login_handle($user_info, $type, $token)
{
$type=strtolower($type);
$oauth_id=($type=='wechat' || $type=='weixin')?'unionid':'openid';
$find_oauth_user = Db::name('OauthUser')->where(array("oauth_from"=>$type,$oauth_id=>$token[$oauth_id]))->find();
$need_register=true;
if($find_oauth_user){
//更新第三方表
$data=array(
'last_login_time' => time(),
'last_login_ip' => request()->ip(),
'access_token' => $token['access_token'],
'expires_date' => (int)(time()+$token['expires_in']),
'name' => $user_info['name'],
'head_img' => $user_info['head'],
);
Db::name('OauthUser')->where(array("oauth_from"=>$type,$oauth_id=>$token[$oauth_id]))->update($data);
$find_user = Db::name("member_list")->where(array("member_list_id"=>$find_oauth_user['uid']))->find();
if($find_user){
$need_register=false;
if($find_user['member_list_open']==0){
$this->error(lang('user disabled'),$this->_get_login_redirect());
}
//更新字段
$data = array(
'last_login_time' => time(),
'last_login_ip' => request()->ip(),
);
Db::name("member_list")->where(array('member_list_id'=>$find_user["member_list_id"]))->update($data);
session('hid',$find_user['member_list_id']);
session('user',$find_user);
$this->redirect($this->_get_login_redirect());
}else{
$need_register=true;
}
}
if($need_register){
//本地用户中创建对应一条数据
$new_user_data = array(
'member_list_username' => $user_info['name'],
'member_list_nickname' => $user_info['name'],
'member_list_headpic' => $user_info['head'],
'member_list_addtime' => time(),
'member_list_groupid'=>1,
'member_list_sex'=>3,
'member_list_open'=>1,
'member_list_from'=>$type,
'last_login_time' => time(),
'last_login_ip' => request()->ip(),
'user_status'=>1,//第三方默认已激活
);
$users_model=Db::name("member_list");
$new_user_id = Db::name("member_list")->insertGetId($new_user_data);
$new_user_data=Db::name("member_list")->find($new_user_id);
if($new_user_id){
//第三方用户表中创建数据
$new_oauth_user_data = array(
'oauth_from' => $type,
'name' => $user_info['name'],
'head_img' => $user_info['head'],
'create_time' =>time(),
'uid' => $new_user_id,
'last_login_time' => time(),
'last_login_ip' => request()->ip(),
'login_times' => 1,
'user_status' => 1,
'access_token' => $token['access_token'],
'expires_date' => (int)(time()+$token['expires_in']),
$oauth_id => $token[$oauth_id],
);
$new_oauth_user_data['openid']=$user_info['openid'];
$new_oauth_user_id=Db::name("OauthUser")->insertGetId($new_oauth_user_data);
if($new_oauth_user_id){
session('hid',$new_user_id);
session('user',$new_user_data);
$this->redirect($this->_get_login_redirect());
}else{
$users_model->where(array("member_list_id"=>$new_user_id))->delete();
$this->error(lang('login failed'),$this->_get_login_redirect());
}
}else{
$this->error(lang('login failed'),$this->_get_login_redirect());
}
}
}
}

256
app/home/controller/Pviews.php

@ -0,0 +1,256 @@
<?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\home\controller;
use think\Db;
use think\Validate;
class Pviews extends Base
{
public function index(){
return $this->view->fetch(':pviews');
}
/**
* 详细页
* @return string
*/
public function html(){
$contentname=input('content','');
$this->assign("contentname",$contentname);
$tpath='static:' . $contentname;
$this->assign("tpath",$tpath);
return $this->view->fetch(':pviews');
}
/**
* 详细页
* @return string
*/
public function render(){
$contentname=input('content','');
$this->assign("contentname",$contentname);
$tpath='static:' . $contentname;
$tg_type=input('tg_type',1);
$tgid=input('id');
$uid=session('hid');
if($tgid){
$baseinfo=Db::name('capitalbaseinfo')->where(['apply_id'=>$tgid])->find();
$tg_type=$baseinfo['apply_type'];
$apply=Db::name('capitalapply')->where(['apply_id'=>$tgid,'user_id'=>$uid])->find();
if(!$apply){
$this->error("没权限查阅此项目");
}
$status=isset($apply['status'])?$apply['status']:'';
$showinfo=1;
if($tg_type==2&&in_array($status,[10,30,40])){
$showinfo=0;
}
if(in_array($tg_type,[3,4])&&in_array($status,[10])){
$showinfo=0;
}
$this->assign('showinfo',$showinfo);
}
if($contentname=='tgadd'){
$this->check_login();
if($tg_type==2){
$tpath.='2';
}
if($tg_type==3){
$tpath='static:gjadd';
}
if($tg_type==4){
$tpath='static:xcadd';
}
//挂牌需要上传的附件
$where=array();
$where['apply_id']=0;
$where['status']=0;
$where['isopen']=1;
$where['apply_type']=$tg_type;
if($tg_type==2)$where['mobile']=1;
$files=Db::name('capitaluptype')->where($where)->order('forder asc')->select();
$upfiles=Db::name('capital_upfiles')->where(['new_flag'=>1,'apply_id'=>$tgid,'flag'=>1])->select();
if(count($upfiles)){
foreach ($files as $k=>$row){
$files[$k]['flag']=0;
$files[$k]['path']='';
foreach ($upfiles as $jow){
if($row['ftype_id']==$jow['ftype_id']){
$files[$k]['flag']=1;
$files[$k]['path']=SITE_PATH.$jow['path'];
}
}
}
}
$this->assign('files', $files);
$products=Db::name('capitaldetail')->where(['apply_id'=>$tgid])->select();
if(count($products)){
foreach ($products as &$item){
$item['capital_date']=$item['capital_date']?date("Y-m-d",$item['capital_date']):'';
}
}
$this->assign('products', $products);
}
$this->assign("tpath",$tpath);
$this->assign("tg_type",$tg_type);
$this->assign("apply_id",$tgid);
$bcontnt = $this->view->fetch(':pviews_begin');
$contnt = $this->view->fetch($tpath);
$econtent = $this->view->fetch(':pviews_end');
return $bcontnt . $contnt . $econtent;
}
public function gjadd2(){
$tgid=input('apply_id','');
$this->assign('apply_id',$tgid);
$tg_type=input('tg_type',3);
$this->assign('tg_type',$tg_type);
return $this->view->fetch('static:gjadd2');
}
public function xcadd2(){
$tgid=input('apply_id','');
$this->assign('apply_id',$tgid);
$tg_type=input('tg_type',4);
$this->assign('tg_type',$tg_type);
return $this->view->fetch('static:xcadd2');
}
public function jointg3(){
$tgid=input('apply_id','');
$this->assign('apply_id',$tgid);
$tg_type=input('tg_type',2);
$this->assign('tg_type',$tg_type);
return $this->view->fetch('static:tgadd3');
}
/**
* 详细页
* @return string
*/
public function tginfo(){
$contentname='tgadd';
$this->assign("contentname",$contentname);
$tpath='static:' . $contentname;
$tg_type=input('tg_type',1);
$tgid=input('id');
$uid=session('hid');
if($tgid){
$baseinfo=Db::name('capitalbaseinfo')->where(['apply_id'=>$tgid])->find();
$this->assign('baseinfo',$baseinfo);
$tg_type=$baseinfo['apply_type'];
}
if($tg_type==2){
$tpath.='2';
}
if($tg_type==3){
$tpath='static:gjadd';
}
if($tg_type==4){
$tpath='static:xcadd';
}
$apply=Db::name('capitalapply')->where(['apply_id'=>$tgid,'user_id'=>$uid])->find();
if(!$apply){
$this->error("没权限查阅此项目");
}
$status=isset($apply['status'])?$apply['status']:'';
//挂牌需要上传的附件
$where=array();
$where['apply_id']=0;
$where['status']=0;
$where['isopen']=1;
$where['apply_type']=$tg_type;
if($tg_type==2)$where['mobile']=1;
$files=Db::name('capitaluptype')->where($where)->order('forder asc')->select();
$where=['new_flag'=>1,'apply_id'=>$tgid];
if($tg_type!=2||($tg_type==2&&!in_array($status,[10,30,40]))){
$where['flag']=1;
}
if(in_array($tg_type,[1,3,4])&&in_array($status,[10])){
if(isset($where['flag']))unset($where['flag']);
}
$upfiles=Db::name('capital_upfiles')->where($where)->select();
if(count($files)){
foreach ($files as $k=>$row){
$files[$k]['flag']=0;
$files[$k]['path']='';
$files[$k]['unique_code']='';
$files[$k]['fname']=$row['ftypedescr'];
$reload=0;
if($tg_type==2&&in_array($status,[10,30,40])){
$reload=1;
}
if(in_array($tg_type,[1,3,4])&&in_array($status,[10])){
$reload=1;
}
$files[$k]['reload']=$reload;
foreach ($upfiles as $jow){
if($row['ftype_id']==$jow['ftype_id']){
$flag=1;
if($tg_type==2&&in_array($status,[10,30,40]))$flag=$jow['flag'];
if(in_array($tg_type,[3,4])&&in_array($status,[10])){
$flag=$jow['flag'];
if($flag==1){
$files[$k]['reload']=0;
}
}
$files[$k]['flag']=$flag;
$files[$k]['unique_code']=$jow['unique_code'];
$files[$k]['fname']=$row['ftypedescr'];
$files[$k]['path']=SITE_PATH.str_replace('\\','/',$jow['path']);
}
}
}
}
//}
$this->assign('files', $files);
$products=Db::name('capitaldetail')->where(['apply_id'=>$tgid])->select();
if(count($products)){
foreach ($products as &$item){
$item['capital_date']=$item['capital_date']?date("Y-m-d",$item['capital_date']):'';
}
}
$this->assign('products', $products);
$this->assign("tg_type",$tg_type);
$this->assign("tpath",$tpath);
$showinfo=1;
if($tg_type==2&&in_array($status,[10,30,40])){
$showinfo=0;
}
if(in_array($tg_type,[3,4])&&in_array($status,[10])){
$showinfo=0;
}
$this->assign('showinfo',$showinfo);
$this->assign('apply_id',$tgid);
$this->assign('status',intval($status));
$bcontnt = $this->view->fetch(':pviews_begin');
$contnt = $this->view->fetch($tpath);
$econtent = $this->view->fetch(':pviews_end');
return $bcontnt . $contnt . $econtent;
}
}

414
app/home/controller/Register.php

@ -0,0 +1,414 @@
<?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\home\controller;
use think\Db;
use think\captcha\Captcha;
use think\Validate;
use Flc\Alidayu\Client;
use Flc\Alidayu\App;
use Flc\Alidayu\Requests\AlibabaAliqinFcSmsNumSend;
use afs\Request\V20180112\AuthenticateSigRequest;
use function EasyWeChat\Payment\get_client_ip;
class Register extends Base{
private function index(){
return $this->view->fetch('user:register');
}
/**
*
*/
public function runregister(){
if(request()->isPost()){
$rule = [
'__reg__' =>'require|token:__reg__'
];
$message =[
'__reg__.require'=>'令牌缺失'
];
$validate=new Validate($rule,$message);
$result=$validate->check(input());
$token=request()->token('__reg__');
if(!$result){
$this->error($validate->getError(),url('index/index'),['token'=>$token]);
}
$member_list_tel=input('member_list_tel','');
$member_list_email=input('member_list_email','');
$member_list_card=input('member_list_card','');
$password=input('password');
$repassword=input('repassword');
$verify=input('verify');
if(!$member_list_tel && !$member_list_email) $this->error('必须输入邮箱或手机号',url('index/index'),['token'=>$token]);
if(!$member_list_tel){
//邮箱注册
$verify_obj =new Captcha ();
if (!$verify_obj->check($verify, 'reg')) {
$this->error(lang('verifiy incorrect'));
}
$rule = [
['member_list_email','require|email','{%email empty}|{%email format incorrect}'],
['password','require|length:5,20','{%pwd empty}|{%pwd length}'],
//['member_list_nickname','require','昵称必须'],
['repassword','require|confirm:password','{%repassword empty}|{%repassword incorrect}']
];
$validate = new Validate($rule);
$rst = $validate->check(array(
'password'=>$password,
'repassword'=>$repassword,
//'member_list_nickname'=>$member_list_nickname,
'member_list_email'=>$member_list_email
));
if(true !==$rst){
$error=is_array($validate->getError())?join('|',$validate->getError()):$validate->getError();
$this->error($error,url('index/index'),['token'=>$token]);
}
//判断是否存在
$result = Db::name('member_list')->where('member_list_email',$member_list_email)->count();
if($result) $this->error($member_list_email.'邮箱已注册',url('index/index'),['token'=>$token]);
$member_list_salt=random(10);
$active_options=get_active_options();
$sl_data=array(
'member_list_username'=>$member_list_email,
'member_list_nickname'=>$member_list_email,
'member_list_salt' => $member_list_salt,
'member_list_pwd'=>encrypt_password($password,$member_list_salt),
'member_list_email'=>$member_list_email,
'member_list_tel'=>$member_list_tel,
'member_list_groupid'=>1,
'member_list_open'=>1,
'member_list_addtime'=>time(),
'user_status'=>empty($active_options['email_active'])?1:0,//需要激活,则为未激活状态,否则为激活状态
);
$rst=Db::name('member_list')->insertGetId($sl_data);
if($rst!==false){
if(!empty($active_options['email_active'])){
$activekey=md5($rst.time().uniqid());//激活码
$result=Db::name('member_list')->where(array("member_list_id"=>$rst))->update(array("user_activation_key"=>$activekey));
if(!$result){
$this->error(lang('activation code generation failed'),url('index/index'),['token'=>$token]);
}
//生成激活链接
$url = url('home/Register/active',array("hash"=>$activekey), "", true);
$template = $active_options['email_tpl'];
$content = str_replace(array('http://#link#','#username#'), array($url,$sl_data['member_list_nickname']),$template);
$send_result=sendMail($member_list_email, $active_options['email_title'], $content);
if($send_result['error']){
$this->error(lang('send active email failed'),url('index/index'),['token'=>$token]);
}else{
$this->success(lang('send active email success'),url('index/index'),['token'=>$token]);
}
}else{
//更新字段
$data = array(
'last_login_time' => time(),
'last_login_ip' => request()->ip(),
);
$sl_data['last_login_time']=$data['last_login_time'];
$sl_data['last_login_ip']=$data['last_login_ip'];
Db::name('member_list')->where(array('member_list_id'=>$rst))->update($data);
session('hid',$rst);
session('user',$sl_data);
$this->success(lang('register success'),url('index/index'),['token'=>$token]);
}
}else{
$this->error(lang('register failed'),url('index/index'),['token'=>$token]);
}
}else{
//手机注册
$where['sms_type']='reg';
$where['sms_tel']=$member_list_tel;
$where['sms_time']=['>',time()-600];
$rst=Db::name('smslog')->where($where)->find();
if(!$rst || $rst['sms_code']!=$verify) $this->error(lang('verifiy incorrect'),url('index/index'),['token'=>$token]);
$rule = [
['password','require|length:5,20','{%pwd empty}|{%pwd length}'],
['member_list_tel','require','手机号必须'],
//['member_list_nickname','require','昵称必须'],
['repassword','require|confirm:password','{%repassword empty}|{%repassword incorrect}']
];
$validate = new Validate($rule);
$rst = $validate->check(array(
'password'=>$password,
'repassword'=>$repassword,
'member_list_tel'=>$member_list_tel
));
if(true !==$rst){
$error=is_array($validate->getError())?join('|',$validate->getError()):$validate->getError();
$this->error($error,url('index/index'),['token'=>$token]);
}
//判断是否存在
$result = Db::name('member_list')->where(['member_list_tel'=>$member_list_tel,'member_list_groupid'=>['not in',[7,10]]])->count();
if($result) $this->error($member_list_tel.'手机已注册',url('index/index'),['token'=>$token]);
$member_list_salt=random(10);
$sl_data=array(
'member_list_username'=>$member_list_tel,
'member_list_nickname'=>$member_list_tel,
'member_list_salt' => $member_list_salt,
'member_list_tel'=>$member_list_tel,
'member_list_pwd'=>encrypt_password($password,$member_list_salt),
'member_list_email'=>$member_list_email,
'member_list_card'=>$member_list_card,
'member_list_groupid'=>1,
'member_list_open'=>1,
'member_list_addtime'=>time(),
'user_status'=>1
);
$rst=Db::name('member_list')->insertGetId($sl_data);
if($rst!==false){
//更新字段
$data = array(
'last_login_time' => time(),
'last_login_ip' => request()->ip(),
);
$sl_data['last_login_time']=$data['last_login_time'];
$sl_data['last_login_ip']=$data['last_login_ip'];
Db::name('member_list')->where(array('member_list_id'=>$rst))->update($data);
session('hid',$rst);
session('user',$sl_data);
$this->success(lang('register success'),url('index/index'),['token'=>$token]);
}else{
$this->error(lang('register failed'),url('index/index'),['token'=>$token]);
}
}
}
}
//激活
public function active(){
$hash=input('hash','');
if(empty($hash)){
$this->error(lang('pwd reset hash incorrect'));
}
$users_model=Db::name("member_list");
$find_user=$users_model->where(array("user_activation_key"=>$hash))->find();
if($find_user){
$result=$users_model->where(array("user_activation_key"=>$hash))->update(array("user_activation_key"=>"","user_status"=>1));
if($result){
$find_user['user_status']=1;
//更新字段
$data = array(
'last_login_time' => time(),
'last_login_ip' => request()->ip(),
);
$find_user['last_login_time']=$data['last_login_time'];
$find_user['last_login_ip']=$data['last_login_ip'];
$users_model->where(array('member_list_id'=>$find_user["member_list_id"]))->update($data);
session('hid',$find_user['member_list_id']);
session('user',$find_user);
$this->success(lang('active success'),url('home/Index/index'));
}else{
$this->error(lang('active failed'),url("home/Login/index"));
}
}else{
$this->error(lang('pwd reset hash incorrect'),url("home/Login/index"));
}
}
//上名片
protected function businessCard(){
$files = request()->file('');
if ($files) {
foreach ($files as $key=>$file) {
//处理file_one2,得到ftype_id
$ftype_id=intval(substr($key,8));
$validate = config('upload_validate');
$info = $file->validate($validate)->rule('md5')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d'));
if ($info) {
$img_url = config('upload_path'). '/' . date('Y-m-d') . '/' . $info->getFilename();
} else {
return json_encode(['code'=>0,'msg'=>$file->getError()]);
}
}
}
$fileparam = "/var/www/html/".$img_url;
if(!empty($fileparam)){
$result = ImgReconCard($fileparam);
if($result!=null){
$result['img_url']=$img_url;
$result['code']=1;
}
echo json_encode($result);
}
}
/** 注册完善资料
* @return string
*/
public function perfectMember(){
if(request()->isPost()){
$rule = [
'__perf__' =>'require|token:__perf__'
];
$message =[
'__perf__.require'=>'令牌缺失'
];
$validate=new Validate($rule,$message);
$result=$validate->check(input());
$token=request()->token('__perf__');
if(!$result){
$this->error($validate->getError(),url('index/index'),['token'=>$token]);
}
$member_list_nickname=input('member_list_nickname');
$member_list_company=input('member_list_company');
$member_list_address=input('member_list_address');
$member_list_id=session('hid');
if(empty($member_list_nickname)){
$this->error('姓名不能为空',url('index/index'),['token'=>$token]);
}
if(empty($member_list_company)){
$this->error('公司名称不能为空',url('index/index'),['token'=>$token]);
}
if(empty($member_list_address)){
$this->error('公司地址不能为空',url('index/index'),['token'=>$token]);
}
if(empty($member_list_address)){
$this->error('用户不存在',url('index/index'),['token'=>$token]);
}
$member_list = Db::name("member_list")->where("member_list_id",$member_list_id)->find();
if(empty($member_list)){
$this->error('没有登录',url('index/index'),['token'=>$token]);
}
$update=["member_list_nickname"=>$member_list_nickname,"member_list_company"=>$member_list_company,"member_list_address"=>$member_list_address];
$rst = Db::name("member_list")->where("member_list_id",$member_list_id)->update($update);
if($rst){
$this->success('保存成功',url('index/index'),['token'=>$token]);
}else{
$this->error('保存失败',url('index/index'),['token'=>$token]);
}
}else{
$this->error('错误提交方式',url('index/index'),['token'=>$token]);
}
}
/**
* 短信验证
* @return \think\response\Json
*/
public function sendRegisterSms(){
$phone = input("mobile",'');
$ticket=input('ticket');
$randstr=input('randstr');
if(empty($ticket)||empty($randstr)){
$this->error('请先通过验证');
}
if(empty($phone)){
$this->error('手机号码为空!');
}
$result = Db::name('member_list')->where(['member_list_tel'=>$phone,'member_list_groupid'=>['not in',[7,10]]])->count();
if($result) $this->error($phone.'手机已注册');
$where['sms_type']='reg';
$where['sms_tel']=$phone;
$rst=Db::name('smslog')->where($where)->order("sms_time desc")->find();
if($rst){
if($rst['sms_time']>(time()-600)){
return json(['code'=>0,'msg'=>'已获取过,'.(600-(time()-$rst['sms_time'])).'秒后稍后再试']);
}
}
$secretKey = 'iK5c3HIfAPULVFyEDyXqvn0G8j4B2e0o';
$config=config('tccaptcha');
$config=$config['reg'];
$params=[];
$params['Action']='DescribeCaptchaResult';
$params['Version']='2019-07-22';
$params['CaptchaType']=9;
$params['Ticket']=$ticket;
$params['UserIp']=request()->ip();
$params['Randstr']=$randstr;
$params['CaptchaAppId']=isset($config['appid'])?$config['appid']:'';
$params['AppSecretKey']=isset($config['appsecret'])?$config['appsecret']:'';
$params['SecretId']='AKIDA8pGJICmgL0Reg4Np9ETVHh4D6j7hgS0';
$params['Timestamp']=time();
$params['Nonce']=rand();
$path="captcha.tencentcloudapi.com/";
ksort($params);
$signStr = "GET".$path."?";
foreach ($params as $key => $value ) {
$signStr =$signStr.$key."=".$value."&";
}
$signStr = substr($signStr,0,-1);
$signature = base64_encode(hash_hmac("sha1", $signStr, $secretKey, true));
$params['Signature']=$signature;
$url='https://'.$path.'?'.http_build_query($params);
$res=go_curl2($url,'get');
try {
$res=json_decode($res,true);
if($res['Response']['CaptchaCode']!=1){
$this->error('图片验证失败!');
}
} catch (\Exception $e) {
$this->error('图片验证失败!');
}
$rst_sms=false;
$error='未设置短信平台配置';
$code=random(6,'number');
if(config('alisms.on')){
$client = new Client(new App(config('alisms')));
$req = new AlibabaAliqinFcSmsNumSend;
$req->setRecNum($phone)->setSmsParam(['number' => $code])->setSmsFreeSignName(config('alisms.signName'))->setSmsTemplateCode(config('alisms.TemplateCode'));
$resp = $client->execute($req);
if($resp->result->success){
$rst_sms=true;
}else{
$error=$resp->sub_msg;
}
}elseif(config('ymsms.on')){
$arr=send_sms($phone,'您好,您的注册验证码为'.$code.',验证码5分钟内有效!');
if($arr['code']==1){
$rst_sms=true;
}else{
$error=$arr['msg'];
}
}
if($rst_sms){
if($rst){
//更新
$rst['sms_time']=time();
$rst['sms_code']=$code;
$rst=Db::name('smslog')->update($rst);
if($rst==false){
return json(['code'=>0,'msg'=>'短信码获取失败,请重试']);
}
}else{
//插入数据库
$data=[
'sms_type'=>'reg',
'sms_tel'=>$phone,
'sms_time'=>time(),
'sms_code'=>$code
];
$rst=Db::name('smslog')->insert($data);
if(!$rst){
return json(['code'=>0,'msg'=>'短信码获取失败,请重试']);
}
}
}else{
return json(['code'=>0,'msg'=>$error]);
}
$this->success('短信码已发送至你手机');
}
public function refreshVerifyImg(){
try{
$url = getVerifyImg();
return json(['code'=>1,'msg'=>'','data'=>$url]);
}catch (\Exception $e){
$this->error($e->getMessage());
}
$this->success('获取成功');
}
}

58
app/home/lang/en-us.php

@ -0,0 +1,58 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// 语言包zh-cn文件
return [
'frequent operation'=>'Too frequent operation!',
'cancel collection success'=>'Cancel collection success!',
'cancel collection failed'=>'Cancel collection failed!',
'comment not open'=>'Comment not open!',
'comment success'=>'Comment success!',
'comment failed'=>'Comment failed!',
'member not exist'=>'This member does not exist!',
'message success'=>'Message success!',
'message failed'=>'Message failed!',
'keywords empty'=>'Keywords cannot be empty!',
'username empty'=>'Phone/email/username can not be empty!',
'user disabled'=>'This user has been disabled!',
'activation code generation failed'=>'Activation code generation failed!',
'email not the same as registered email'=>'Email is not the same as registered email!',
'emal text'=>'Hello,#username#<br>Please click or copy the link below for password reset:<br>',
'pwd reset'=>'Password reset',
'activated'=>'Your account has been activated, no need to activate again!',
'no registered email'=>'Your have not register email, can not activate your account!',
'send active email success'=>'The activation mail sent successfully, please check your email and activate!',
'send active email failed'=>'The activation mail sent failed, please try again later!',
'send pwd reset email success'=>'The password reset mail sent successfully, please check your email and reset!',
'send pwd reset email failed'=>'The password reset mail sent failed, please try again later!',
'pwd reset success'=>'Password reset success,please login again!',
'pwd reset failed'=>'Password reset failed!',
'pwd length'=>'Password length of 5, the largest 20 !',
'pwd reset hash empty'=>'Password reset hash can not be empty!',
'pwd reset hash incorrect'=>'Password reset hash incorrect!',
'username format incorrect'=>'Username contains "{:stripChar}" and other illegal characters!',
'username exists'=>'Username or email already exists!',
'register success'=>'Register success!',
'register failed'=>'Register failed!',
'active failed'=>'Active failed!',
'active success'=>'Active success!',
'bound already'=>'You have already bound this account!',
'bound other account'=>'This account has been bound by the other account!',
'bind success'=>'Bind success!',
'bind failed'=>'Bind failed!',
'get qq info failed'=>'Get qq info failed',
'get sina weibo info failed'=>'Get sina weibo info failed',
'favorite failed'=>'Favorite failed!',
'favorite success'=>'Favorite success!',
'favorited already'=>'Favorited already!',
'dolike success'=>'Dolike success!',
'dolike already'=>'Dolike already!',
];

58
app/home/lang/zh-cn.php

@ -0,0 +1,58 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// 语言包zh-cn文件
return [
'frequent operation'=>'操作太频繁,请喝杯咖啡后再试!',
'cancel collection success'=>'取消收藏成功!',
'cancel collection failed'=>'取消收藏失败!',
'comment not open'=>'未开启评论功能!',
'comment success'=>'评论成功!',
'comment failed'=>'评论失败!',
'member not exist'=>'用户不存在!',
'message success'=>'留言成功!',
'message failed'=>'留言失败!',
'keywords empty'=>'关键词不能为空!',
'username empty'=>'手机号/邮箱/用户名不能为空!',
'user disabled'=>'该用户已被禁用!',
'activation code generation failed'=>'激活码生成失败!',
'email not the same as registered email'=>'邮箱与注册邮箱不一致!',
'emal text'=>'#username#,您好!<br>请复制下面验证码进行密码重置(如果不是本人操作,请忽略本邮件):<br>',
'pwd reset'=>'密码重置',
'activated'=>'您的账号已经激活,无需再次激活!',
'no registered email'=>'您的账号未设置邮箱,无法激活!',
'send active email success'=>'激活邮件发送成功,请查收邮件并激活!',
'send active email failed'=>'激活邮件发送失败,请尝试登录后,手动发送激活邮件!',
'send pwd reset email failed'=>'密码重置邮件发送失败,请尝试登录后,手动发送密码重置邮件!',
'send pwd reset email success'=>'密码重置邮件发送成功,请查收邮件并点击连接重置!',
'pwd reset success'=>'密码重置成功,请登录!',
'pwd reset failed'=>'密码重置失败!',
'pwd length'=>'密码长度最小5位,最大20位!',
'pwd reset hash empty'=>'重设密码激活码不能空!',
'pwd reset hash incorrect'=>'重置码无效!',
'username format incorrect'=>'用户名中包含 {:stripChar} 等非法字符!',
'username exists'=>'用户名或者该邮箱已经存在!',
'register success'=>'会员注册成功!',
'register failed'=>'会员注册失败!',
'active failed'=>'会员激活失败!',
'active success'=>'会员激活成功!',
'bound already'=>'您之前已经绑定过此账号!',
'bound other account'=>'该帐号已被本站其他账号绑定!',
'bind success'=>'绑定成功!',
'bind failed'=>'绑定失败!',
'get qq info failed'=>'获取腾讯QQ用户信息失败',
'get sina weibo info failed'=>'获取新浪微博用户信息失败',
'favorite failed'=>'收藏失败!',
'favorite success'=>'收藏成功!',
'favorited already'=>'亲,您已收藏过啦!',
'dolike success'=>'点赞成功!',
'dolike already'=>'已点过赞了!',
];

15
app/home/model/Bdapply.php

@ -0,0 +1,15 @@
<?php
/**
* Created by ETEDU.
* User: Leo Chu
* Date: 2017/3/28 0028
* Time: 15:45
*/
namespace app\home\model;
use think\Model;
class Bdapply extends Model{
}

15
app/home/model/Cultureapply.php

@ -0,0 +1,15 @@
<?php
/**
* Created by ETEDU.
* User: Leo Chu
* Date: 2017/3/28 0028
* Time: 15:45
*/
namespace app\home\model;
use think\Model;
class Cultureapply extends Model{
}

460
app/home/taglib/Yf.php

@ -0,0 +1,460 @@
<?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\home\taglib;
use think\template\TagLib;
use think\Db;
class Yf extends Taglib
{
// 标签定义
protected $tags = [
// 标签定义: attr 属性列表 close 是否闭合(0 或者1 默认1) alias 标签别名 level 嵌套层次
'menu'=>['attr' => 'top_ul_id,top_ul_class,child_ul_class,child_li_class,firstchild_dropdown_class,haschild_a_class,haschild_span_class,nochild_a_class,showlevel', 'close' => 0],
'webuploader'=>['attr'=>'name,url,word,multiple,nums','close'=>0]
];
/**
* 返回前台menu
* @param $tag
* @return string
*/
public function tagMenu($tag)
{
$top_ul_id=isset($tag['top_ul_id']) ? $tag['top_ul_id'] : '';
$top_ul_class=isset($tag['top_ul_class']) ? $tag['top_ul_class'] : '';
$child_ul_class=isset($tag['child_ul_class']) ? $tag['child_ul_class'] : '';
$child_li_class=isset($tag['child_li_class']) ? $tag['child_li_class'] : '';
$firstchild_dropdown_class=isset($tag['firstchild_dropdown_class']) ? $tag['firstchild_dropdown_class'] : '';
$haschild_a_class=isset($tag['haschild_a_class']) ? $tag['haschild_a_class'] : '';
$haschild_span_class=isset($tag['haschild_span_class']) ? $tag['haschild_span_class'] : '';
$nochild_a_class=isset($tag['nochild_a_class']) ? $tag['nochild_a_class'] : '';
$showlevel=!empty($tag['showlevel']) ? intval($tag['showlevel']) : 6;
$childtpl='<a href=\'\$href\' target=\'\$menu_target\' class=\''.$nochild_a_class.'\'>\$menu_name</a>';
$parenttpl='<a href=\'\$href\' target=\'\$menu_target\' class=\''.$haschild_a_class.'\'>\$menu_name<span class=\''.$haschild_span_class.'\'></span></a>';
$parseStr = '<?php ';
$parseStr .='echo get_menu(0,"'.$top_ul_id.'","'.$childtpl.'","'.$parenttpl.'","'.$child_ul_class.'","'.$child_li_class.'","'.$top_ul_class.'","'.$showlevel.'","'.$firstchild_dropdown_class.'");';
$parseStr .="?>";
if (!empty($parseStr)) {
return $parseStr;
}
return '';
}
/**
* 上传标签
* @param string $tag
* url:上传的图片处理的控制器方法
* name:表单name
* word:提示文字
*/
public function tagWebuploader($tag){
$url=isset($tag['url'])?$tag['url']:url('home/Listn/upload');//上传后台地址
$name=isset($tag['name'])?$tag['name']:'file_name';
$nums=(isset($tag['nums']) && intval($tag['nums'])>0)?intval($tag['nums']):10;
$word=isset($tag['word'])?$tag['word']:'或将文件拖到这里';
$multiple=isset($tag['multiple'])?$tag['multiple']:'false';
$id_name='upload-'.uniqid();//避免重复
$str=<<<php
<div id="$id_name" class="xb-uploader">
<div class="queueList">
<div class="placeholder">
<div class="filePicker"></div>
<p>$word</p>
</div>
</div>
<div class="statusBar" style="display:none;">
<div class="progress">
<span class="text">0%</span>
<span class="percentage"></span>
</div>
<div class="info"></div>
<div class="btns">
<div class="webuploader-container filePicker2">
<div class="webuploader-pick">继续添加</div>
<div style="position: absolute; top: 0px; left: 0px; width: 1px; height: 1px; overflow: hidden;" id="rt_rt_1armv2159g1o1i9c2a313hadij6">
</div>
</div>
<div class="uploadBtn">开始上传</div>
</div>
</div>
</div>
<script>
jQuery(function() {
var \$wrap = \$("#$id_name"),
// 图片容器
\$queue = \$('<ul class="filelist"></ul>')
.appendTo( \$wrap.find('.queueList') ),
// 状态栏,包括进度和控制按钮
\$statusBar = \$wrap.find('.statusBar'),
// 文件总体选择信息。
\$info = \$statusBar.find('.info'),
// 上传按钮
\$upload = \$wrap.find('.uploadBtn'),
// 没选择文件之前的内容。
\$placeHolder = \$wrap.find('.placeholder'),
// 总体进度条
\$progress = \$statusBar.find('.progress').hide(),
// 添加的文件数量
fileCount = 0,
// 添加的文件总大小
fileSize = 0,
// 优化retina, 在retina下这个值是2
ratio = window.devicePixelRatio || 1,
// 缩略图大小
thumbnailWidth = 110 * ratio,
thumbnailHeight = 110 * ratio,
// 可能有pedding, ready, uploading, confirm, done.
state = 'pedding',
// 所有文件的进度信息,key为file id
percentages = {},
supportTransition = (function(){
var s = document.createElement('p').style,
r = 'transition' in s ||
'WebkitTransition' in s ||
'MozTransition' in s ||
'msTransition' in s ||
'OTransition' in s;
s = null;
return r;
})(),
thisSuccess,
// WebUploader实例
uploader;
if ( !WebUploader.Uploader.support() ) {
alert( 'Web Uploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器');
throw new Error( 'WebUploader does not support the browser you are using.' );
}
// 实例化
uploader = WebUploader.create({
pick: {
id: "#$id_name .filePicker",
label: '点击选择文件',
multiple : $multiple
},
dnd: "#$id_name .queueList",
paste: document.body,
// swf文件路径
swf: '__PUBLIC__/webuploader/Uploader.swf',
disableGlobalDnd: true,
chunked: true,
server: "$url",
fileNumLimit: $nums,
fileSizeLimit: 200 * 1024 * 1024, // 200 M
fileSingleSizeLimit: 50 * 1024 * 1024 // 50 M
});
// 添加“添加文件”的按钮,
uploader.addButton({
id: "#$id_name .filePicker2",
label: '继续添加'
});
// 当有文件添加进来时执行,负责view的创建
function addFile( file ) {
var \$li = \$( '<li id="' + file.id + '">' +
'<p class="title">' + file.name + '</p>' +
'<p class="imgWrap"></p>'+
'<p class="progress"><span></span></p>' +
'<input class="bjy-filename" type="hidden" name="{$name}[]">'+
'</li>' ),
\$btns = \$('<div class="file-panel">' +
'<span class="cancel">删除</span>' +
'<span class="rotateRight">向右旋转</span>' +
'<span class="rotateLeft">向左旋转</span></div>').appendTo( \$li ),
\$prgress = \$li.find('p.progress span'),
\$wrap = \$li.find( 'p.imgWrap' ),
\$info = \\$('<p class="error"></p>'),
showError = function( code ) {
switch( code ) {
case 'exceed_size':
text = '文件大小超出';
break;
case 'interrupt':
text = '上传暂停';
break;
default:
text = '上传失败,请重试';
break;
}
\$info.text( text ).appendTo( \$li );
};
if ( file.getStatus() === 'invalid' ) {
showError( file.statusText );
} else {
// @todo lazyload
\$wrap.text( '预览中' );
uploader.makeThumb( file, function( error, src ) {
if ( error ) {
\$wrap.text( '不能预览' );
return;
}
var img = \\$('<img src="'+src+'">');
\$wrap.empty().append( img );
}, thumbnailWidth, thumbnailHeight );
percentages[ file.id ] = [ file.size, 0 ];
file.rotation = 0;
}
file.on('statuschange', function( cur, prev ) {
if ( prev === 'progress' ) {
\$prgress.hide().width(0);
} else if ( prev === 'queued' ) {
\$li.off( 'mouseenter mouseleave' );
\$btns.remove();
}
// 成功
if ( cur === 'error' || cur === 'invalid' ) {
showError( file.statusText );
percentages[ file.id ][ 1 ] = 1;
} else if ( cur === 'interrupt' ) {
showError( 'interrupt' );
} else if ( cur === 'queued' ) {
percentages[ file.id ][ 1 ] = 0;
} else if ( cur === 'progress' ) {
\$info.remove();
\$prgress.css('display', 'block');
} else if ( cur === 'complete' ) {
\$li.append( '<span class="success"></span>' );
}
\$li.removeClass( 'state-' + prev ).addClass( 'state-' + cur );
});
\$li.on( 'mouseenter', function() {
\$btns.stop().animate({height: 30});
});
\$li.on( 'mouseleave', function() {
\$btns.stop().animate({height: 0});
});
\$btns.on( 'click', 'span', function() {
var index = \\$(this).index(),
deg;
switch ( index ) {
case 0:
uploader.removeFile( file );
return;
case 1:
file.rotation += 90;
break;
case 2:
file.rotation -= 90;
break;
}
if ( supportTransition ) {
deg = 'rotate(' + file.rotation + 'deg)';
\$wrap.css({
'-webkit-transform': deg,
'-mos-transform': deg,
'-o-transform': deg,
'transform': deg
});
} else {
\$wrap.css( 'filter', 'progid:DXImageTransform.Microsoft.BasicImage(rotation='+ (~~((file.rotation/90)%4 + 4)%4) +')');
// use jquery animate to rotation
// \\$({
// rotation: rotation
// }).animate({
// rotation: file.rotation
// }, {
// easing: 'linear',
// step: function( now ) {
// now = now * Math.PI / 180;
// var cos = Math.cos( now ),
// sin = Math.sin( now );
// \$wrap.css( 'filter', "progid:DXImageTransform.Microsoft.Matrix(M11=" + cos + ",M12=" + (-sin) + ",M21=" + sin + ",M22=" + cos + ",SizingMethod='auto expand')");
// }
// });
}
});
\$li.appendTo( \$queue );
}
// 负责view的销毁
function removeFile( file ) {
var \$li = \\$('#'+file.id);
delete percentages[ file.id ];
updateTotalProgress();
\$li.off().find('.file-panel').off().end().remove();
}
function updateTotalProgress() {
var loaded = 0,
total = 0,
spans = \$progress.children(),
percent;
\$.each( percentages, function( k, v ) {
total += v[ 0 ];
loaded += v[ 0 ] * v[ 1 ];
} );
percent = total ? loaded / total : 0;
spans.eq( 0 ).text( Math.round( percent * 100 ) + '%' );
spans.eq( 1 ).css( 'width', Math.round( percent * 100 ) + '%' );
updateStatus();
}
function updateStatus() {
var text = '', stats;
if ( state === 'ready' ) {
text = '选中' + fileCount + '个文件,共' +
WebUploader.formatSize( fileSize ) + '。';
} else if ( state === 'confirm' ) {
stats = uploader.getStats();
if ( stats.uploadFailNum ) {
text = '已成功上传' + stats.successNum+ '个文件,'+
stats.uploadFailNum + '个上传失败,<a class="retry" href="#">重新上传</a>失败文件或<a class="ignore" href="#">忽略</a>'
}
} else {
stats = uploader.getStats();
text = '共' + fileCount + '个(' +
WebUploader.formatSize( fileSize ) +
'),已上传' + stats.successNum + '个';
if ( stats.uploadFailNum ) {
text += ',失败' + stats.uploadFailNum + '个';
}
if (fileCount==stats.successNum && stats.successNum!=0) {
$('#$id_name .webuploader-element-invisible').remove();
}
}
\$info.html( text );
}
uploader.onUploadAccept=function(object ,ret){
if(ret.error_info){
fileError=ret.error_info;
return false;
}
}
uploader.onUploadSuccess=function(file ,response){
\$('#'+file.id +' .bjy-filename').val(response.name)
}
uploader.onUploadError=function(file){
alert(fileError);
}
function setState( val ) {
var file, stats;
if ( val === state ) {
return;
}
\$upload.removeClass( 'state-' + state );
\$upload.addClass( 'state-' + val );
state = val;
switch ( state ) {
case 'pedding':
\$placeHolder.removeClass( 'element-invisible' );
\$queue.parent().removeClass('filled');
\$queue.hide();
\$statusBar.addClass( 'element-invisible' );
uploader.refresh();
break;
case 'ready':
\$placeHolder.addClass( 'element-invisible' );
\$( "#$id_name .filePicker2" ).removeClass( 'element-invisible');
\$queue.parent().addClass('filled');
\$queue.show();
\$statusBar.removeClass('element-invisible');
uploader.refresh();
break;
case 'uploading':
\$( "#$id_name .filePicker2" ).addClass( 'element-invisible' );
\$progress.show();
\$upload.text( '暂停上传' );
break;
case 'paused':
\$progress.show();
\$upload.text( '继续上传' );
break;
case 'confirm':
\$progress.hide();
\$upload.text( '开始上传' ).addClass( 'disabled' );
stats = uploader.getStats();
if ( stats.successNum && !stats.uploadFailNum ) {
setState( 'finish' );
return;
}
break;
case 'finish':
stats = uploader.getStats();
if ( stats.successNum ) {
} else {
// 没有成功的图片,重设
state = 'done';
location.reload();
}
break;
}
updateStatus();
}
uploader.onUploadProgress = function( file, percentage ) {
var \$li = \$('#'+file.id),
\$percent = \$li.find('.progress span');
\$percent.css( 'width', percentage * 100 + '%' );
percentages[ file.id ][ 1 ] = percentage;
updateTotalProgress();
};
uploader.onFileQueued = function( file ) {
fileCount++;
fileSize += file.size;
if ( fileCount === 1 ) {
\$placeHolder.addClass( 'element-invisible' );
\$statusBar.show();
}
addFile( file );
setState( 'ready' );
updateTotalProgress();
};
uploader.onFileDequeued = function( file ) {
fileCount--;
fileSize -= file.size;
if ( !fileCount ) {
setState( 'pedding' );
}
removeFile( file );
updateTotalProgress();
};
uploader.on( 'all', function( type ) {
var stats;
switch( type ) {
case 'uploadFinished':
setState( 'confirm' );
break;
case 'startUpload':
setState( 'uploading' );
break;
case 'stopUpload':
setState( 'paused' );
break;
}
});
uploader.onError = function( code ) {
alert( 'Eroor: ' + code );
};
\$upload.on('click', function() {
if ( \\$(this).hasClass( 'disabled' ) ) {
return false;
}
if ( state === 'ready' ) {
uploader.upload();
} else if ( state === 'paused' ) {
uploader.upload();
} else if ( state === 'uploading' ) {
uploader.stop();
}
});
\$info.on( 'click', '.retry', function() {
uploader.retry();
} );
\$info.on( 'click', '.ignore', function() {
alert( 'todo' );
} );
\$upload.addClass( 'state-' + state );
updateTotalProgress();
});
</script>
php;
return $str;
}
}

99
app/home/view/szwjs/agency/agylayout.html

@ -0,0 +1,99 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>{$menu.menu_seo_title|default=$site_seo_title} {$site_name}</title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="detailsbg">
<div class="contenter">
{include file="public:nav" /}
<!--banner开始-->
<div class="detailsbanner"></div>
<!--banner结束-->
<!--body开始-->
<div class="content modeub bodymb">
<!--mode left开始-->
<div class="modeleft ">
<div class="modelefttop modeub modever modeac modepc">
<div class="lefttutitle">{$parent.menu_name}</div>
<div class="leften">{$parent.menu_enname}</div>
</div>
<div class="modeleftmenu">
{foreach name="childs" id="vo"}
<div class=" modepc {if condition="isset($vo['childs']) and count($vo['childs']) neq 0"}subNav{/if} leftmenu modeub modeac {if condition="$menu_id eq $vo['id'] or (isset($vo['active']) and $vo['active'])"}modeleftmenuactive{/if} button bubble-right " onmouseout="removeMenuStyle_whsb(this)" onmousemove="addMenuStyle_whsb(this)">
<div class="modef1 jiesh" {if condition="isset($vo['menu_address']) and $vo['menu_address']"} {if condition="$vo['menu_address'] neq '#'"}onclick="javascript:window.location.href='{$vo.menu_address}'"{/if} {elseif condition="!isset($vo['childs'])" /}onclick="javascript:window.location.href='{:url(\'agency/index\',[\'kind\'=>$vo['id']])}'"{/if}>{$vo.menu_name}</div>
<div class="icon-huiseweixuanzhong iconfont modekuai"></div>
</div>
{if condition="isset($vo['childs']) and count($vo['childs']) neq 0"}
<div class="samlltitve navContent" style="{if condition="(isset($vo['active']) and $vo['active'])"}display:block;{/if}">
{volist name="vo['childs']" id="jo"}
<div class="zhidutitle {if condition="($menu_id eq $jo.id) or (isset($jo['active']) and $jo['active'])"}modeleftmenuactive{/if}" onclick="javascript:window.location.href='{$jo.jump}'" onmouseout="removeMenuStyle_b_whsb(this)" onmousemove="addMenuStyle_whsb(this)">{$jo.menu_name}</div>
{/volist}
</div>
{/if}
{/foreach}
</div>
</div>
<!--mode left结束-->
<!--mode right开始-->
<div class="modef1 moderight">
<div class="moderighttag modeub modeac">
<div class="tagtitle">{$current.menu_name}</div>
{if condition="isset($current['menu_enname']) and $current['menu_enname']"}
<div class="tagline">/</div>
<div class="tagtitleen">{$current.menu_enname}</div>
{/if}
</div>
{if condition="isset($current['menu_content']) and $current['menu_content']"}<div class="righttagdes modeub">{$current.menu_content}</div>{/if}
{__CONTENT__}
</div>
<!--mode right结束-->
</div>
<!--body结束-->
</div>
{include file="public:footer"/}
<script>
$(function() {
$(".subNav").click(function() {
$(this).next(".navContent").slideToggle(300).siblings(".navContent").slideUp(500);
})
})
function addMenuStyle_whsb(t){
$(t).addClass("modeleftmenuactive");
}
function removeMenuStyle_whsb(t){
if($(t).siblings(".modeleftmenuactive").length==1){
$(t).removeClass("modeleftmenuactive");
}
}
function removeMenuStyle_b_whsb(t){
if($(t).parent().prev().attr("class").indexOf("modeleftmenuactive")>=0){
if($(t).siblings(".modeleftmenuactive").length==1){
$(t).removeClass("modeleftmenuactive");
}
}else{
if($(t).siblings(".modeleftmenuactive").length==0){
$(t).removeClass("modeleftmenuactive");
}
}
}
</script>
</body>
</html>

20
app/home/view/szwjs/agency/content.html

@ -0,0 +1,20 @@
{layout name="agency/agylayout" /}
<style>
.member{display:inline-block;vertical-align:top;width:49.2%;}
.member:nth-child(odd){margin-right:1%;}
.member .txt{display:inline-block;vertical-align:top;width:54.2%;}
.member .pic{display:inline-block;vertical-align:top;width:44.2%;}
.member{margin-bottom:15px;}
.member .txt{line-height:1.3em;padding-right:5px;}
.member .name{margin-bottom:15px;font-size:1.1em;}
.member .info{font-size:0.8em;}
.detailsdes td{padding:0px 4px;}
</style>
<div class="content">
<div class="detailstitle modeub modeac modepc" style="border-bottom:1px solid rgba(244,242,245,1);padding-bottom:10px;margin-bottom:20px;">{$list.title}</div>
<div class="detailsdes">
{$list.infor|htmlspecialchars_decode}
</div>
</div>

26
app/home/view/szwjs/agency/detail.html

@ -0,0 +1,26 @@
{layout name="agency/agylayout" /}
<style>
.member{display:inline-block;vertical-align:top;width:49.2%;}
.member:nth-child(odd){margin-right:1%;}
.member .txt{display:inline-block;vertical-align:top;width:54.2%;}
.member .pic{display:inline-block;vertical-align:top;width:44.2%;}
.member{margin-bottom:15px;}
.member .txt{line-height:1.3em;padding-right:5px;}
.member .name{margin-bottom:15px;font-size:1.1em;}
.member .info{font-size:0.8em;}
.detailsdes td{padding:0px 4px;}
</style>
<div class="content">
<div class="detailstitle modeub modeac modepc" style="border-bottom:1px solid rgba(244,242,245,1);padding-bottom:10px;margin-bottom:20px;">{$list.username}</div>
{if condition="file_exists('.'.$list['avatar'])"}
<br/>
<div class="pic text-center"><img src="{:SITE_PATH}{$list.avatar}" style="max-width:320px;"/></div>
{/if}
{if condition="$list.infor"}
<br/>
<div class="detailsdes text-center">
{$list.infor|htmlspecialchars_decode}
</div>
{/if}
</div>

14
app/home/view/szwjs/agency/index.html

@ -0,0 +1,14 @@
{layout name="agency/agylayout" /}
<div class="recruitlist">
{volist name="list" id="vo"}
<a {if condition="$vo['href']"} href="{$vo.href}" target="__blank"{else} href="{:url('agency/content',['id'=>$vo.id,'kind'=>$kind])}"{/if} class="state_6_item">
<div class="modeub modeac recruitcon" onmouseover="addnews3Class(this)" onmouseout="removenews3Class(this)" style="color: #1d1d1d">
<div class="nor adleftimg norimg"></div>
<div class="recruitlisttitle modef1">{$vo.title}</div>
<div class="recruitlisttime">{$vo.create_date|date='Y·m·d',###}</div>
</div>
</a>
{/volist}
</div>
<div class="col-xs-12 text-center list-page" align="center">{$page}</div>

27
app/home/view/szwjs/agency/user.html

@ -0,0 +1,27 @@
{layout name="agency/agylayout" /}
<style>
.member{display:inline-block;vertical-align:top;width:48.7%;}
.member:nth-child(odd){margin-right:2%;}
.member .txt{display:inline-block;vertical-align:top;width:54.2%;}
.member .pic{display:inline-block;vertical-align:top;width:44.2%;}
.member{margin-bottom:20px;}
.member .txt{line-height:1.3em;padding-right:5px;}
.member .name{margin-bottom:15px;font-size:1.1em;}
.member .info{font-size:0.8em;}
.detailsdes td{padding:0px 4px;}
</style>
<div class="detailsdes">
{volist name="list" id="vo"}
<div class="member">
<div class="txt">
<div class="name">{$vo.username}</div>
<div class="info">{if condition="$vo.infor"}{$vo.infor|htmlspecialchars_decode}{/if}</div>
</div>
<div class="pic">
{if condition="file_exists('.'.$vo['avatar'])"}<img src="{:SITE_PATH}{$vo.avatar}" />{/if}
</div>
</div>
{/volist}
</div>
<div class="col-xs-12 text-center list-page" align="center">{$page}</div>

101
app/home/view/szwjs/index/Public/Css/base.css

@ -0,0 +1,101 @@
label.error{margin-bottom:0px;}
.gd-input-container .gd-input-icon{top:10px;}
.entry-container-inner form .field-attachment-field input[type=file]{height:100%;z-index:1;cursor:pointer;}
.entry-container {
background-image: url(../Img/bg.jpg);
background-position: top center;
background-attachment: fixed;
background-size: cover;
background-repeat: no-repeat;
}
@media screen and (min-width: 769px) and (max-width: 1440px) {
.entry-container {
background-image: url(../Img/bg2.jpg);
}
}
@media screen and (max-width: 480px) {
.entry-container {
background-image: none;
}
.entry-container::after {
content: '';
display: block;
background-position: center top;
background-size: cover;background-repeat: no-repeat;
position: fixed;
height: 100vh;
width: 100vw;
top: 0;
left: 0;
z-index: -1;
}
}
.entry-container > .entry-container-inner .center {
max-width: 700px;
}
.entry-container form {
background-color: #FFF;
max-width: 700px;
border-width: 0;
border-color: rgba(255, 255, 255, 0);
}
.entry-container form > .form-header .banner {
background-color: rgb(232, 40, 64);
font-size: 1.143em;
color: rgb(255, 255, 255);
}
.entry-container form .form-header {
border-width: 0;
}
.entry-container form .field.submit-field {
border-width: 0;
margin-top: 0;
}
.entry-container form > .form-header .form-title {
font-size: 1.429em;
font-weight: normal;
color: rgb(34, 34, 34);
}
.entry-container form .form-txt {
font-size: 1.2em;
padding: 10px 30px 10px;
font-weight: normal;
color: rgb(34, 34, 34);
}
.entry-container {
padding-top: 15px;
padding-bottom: 15px;
}
.entry-container-inner form .field .choice-description{margin-top:2px;margin-left:20px;}
.entry-container form .field .field-label {
font-size: 1.000em;
font-weight: bold;
color: rgb(34, 34, 34);
}
.entry-container .choices label,
.entry-container .likert thead th,
.entry-container .matrix thead th,
.entry-container .table-field thead th,
.entry-container .goods-items .name {
font-size: 0.867em;
font-weight: bold;
}
.entry-container .submit-field {
text-align: center;
}
.entry-container .gd-btn {
background-color: rgb(40, 117, 232);
font-size: 1.000em;
color: rgb(255, 255, 255);
border-width: 0;
border-color: rgb(255, 255, 255);
}

18
app/home/view/szwjs/index/Public/Css/published.css

File diff suppressed because one or more lines are too long

BIN
app/home/view/szwjs/index/Public/Img/bg.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
app/home/view/szwjs/index/Public/Img/bg2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
app/home/view/szwjs/index/Public/Img/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
app/home/view/szwjs/index/Public/Img/shuopai.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
app/home/view/szwjs/index/Public/Img/slogo.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
app/home/view/szwjs/index/Public/Img/slogo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
app/home/view/szwjs/index/Public/Img/wang.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
app/home/view/szwjs/index/Public/Img/wang.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

BIN
app/home/view/szwjs/index/Public/Img/wangpai.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

BIN
app/home/view/szwjs/index/Public/Img/wangpai1030.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

343
app/home/view/szwjs/index/Public/Js/base.js

@ -0,0 +1,343 @@
var tool={
isInclude:function(name){
var js= /js$/i.test(name);
var es=document.getElementsByTagName(js?'script':'link');
for(var i=0;i<es.length;i++)
if(es[i][js?'src':'href'].indexOf(name)!=-1)return true;
return false;
},
uploadFile:function(uploadurl,btn,input,callback){
//插件jquery.fileupload.js
jQuery(btn).fileupload({
url: uploadurl,
dataType: 'json',
done: function (e, data) {
var file=data.result;
console.log("============done===============");
console.log(file);
if(file['code']==0){
tool.msg(file['msg']);
}else{
var pic=file['data']['path'];
console.log(input);
jQuery(input).val(pic);
if(typeof callback=='function'){
callback(input,pic);
}
}
},
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
console.log("============progressall===============");
console.log(progress);
tool.showProcess(input,progress);
}
}).bind('fileuploadadd',function(e,data){
var file=data['files'][0];
var url = null;
console.log(data);
if (window.createObjectURL != undefined) {
url = window.createObjectURL(file);
} else if (window.URL != undefined) {
url = window.URL.createObjectURL(file);
} else if (window.webkitURL != undefined) {
url = window.webkitURL.createObjectURL(file);
}
console.log("============fileuploadadd===============");
console.log(url);
//if(/.(gif|jpg|jpeg|png|gif|jpg|png)$/.test(url)){
tool.showPic(input,url);
//}
}).prop('disabled', !$.support.fileInput).parent().addClass($.support.fileInput ? undefined : 'disabled');
},
showPic:function(obj,pic){
if(typeof obj=='undefined'||typeof pic=='undefined')return false;
var obj=jQuery(obj);
var parent=obj.parent("div");
var check=parent.find(".showPic img");
if(check.length){
check.attr('src',pic);
}else{
var html='<p></p><span class="label showPic"><img src="'+pic+'" class="img-thumbnail" style="max-width:100px !important;"></span>';
parent.append(html);
}
},
showProcess:function(obj,progress){
if(typeof obj=='undefined'||typeof progress=='undefined')return false;
var obj=jQuery(obj);
var parent=obj.parent("div");
var child=parent.find(".showProcessTxt");
if(child.length){
// child.find(".progress-bar").css({width:progress+'%'});
parent.find(".showProcessTxt").html(progress+'%');
}else{
//parent.append('<div class="progress xs progress-striped active showProcess" style="width:140px;display: inline-block;margin-bottom:0px;"><div class="progress-bar progress-bar-primary " style="width:'+progress+'%"></div></div>');
parent.append('<span class="showProcessTxt badge bg-light-blue">'+progress+'%</span>');
}
},
dynamicLoadJs:function(url, callback) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
if(typeof(callback)=='function'){
script.onload = script.onreadystatechange = function () {
if (!this.readyState || this.readyState === "loaded" || this.readyState === "complete"){
callback();
script.onload = script.onreadystatechange = null;
}
};
}
document.body.appendChild(script);
},
dynamicLoadCss:function(url,callback) {
var head = document.getElementsByTagName('head')[0];
var link = document.createElement('link');
link.type='text/css';
link.rel = 'stylesheet';
link.href = url;
head.appendChild(link);
callback();
},
loadScript:function(urls, callback) {
var self=this;
urls=urls.split(",");
if(urls.length){
var len=urls.length;
var index=1;
urls.forEach(function(url){
if(!self.isInclude(url)){
var isJs=/js$/i.test(url);
if(isJs){
self.dynamicLoadJs(url,function(){
if(len==index)callback();
index++;
});
}else{
self.dynamicLoadCss(url,function(){
if(len==index)callback();
index++;
});
}
}else{
index++;
}
});
}
},
delCookie:function(name)
{
var exp = new Date();
exp.setTime(exp.getTime() - 1);
var cval=tools.getCookie(name);
if(cval!=null)
document.cookie= name + "="+cval+";expires="+exp.toGMTString();
},
setCookie:function(name,value)
{
var Days = 30;
var exp = new Date();
exp.setTime(exp.getTime() + Days*24*60*60*1000);
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
},
getCookie:function(name)
{
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
if(arr=document.cookie.match(reg))
return unescape(arr[2]);
else
return null;
},
tooltip:function(el,msg){
if(typeof more=='undefined')more=true;
if(typeof direction=='undefined')direction=3;
layer.tips(msg,el, {
tipsMore:more,
time: 6000,
tips: [direction,'#e50112']
});
},
tipError:function(errorMap,errorList){
console.log(errorList);
if(errorList.length){
errorList.forEach(function(item){
console.log($(item['element']));
tool.tooltip(item['element'],item['message']);
});
}
},
slick:function(obj,option){
var allOption=$.extend({
autoplay:true,
autoplaySpeed:1000,
swipe: false,
arrows:false,
dots:false,
fade:true,
speed:500,
pauseOnHover:false,
slidesToShow:1,
slidesToScroll:1
},option||{});
jQuery(obj).slick(allOption);
},
date:function(startobj,date_format,endDate){
console.log(endDate);
if(typeof date_format=='undefined')date_format='yyyy-mm-dd';
var params={
autoclose: 1,
todayHighlight: 1,
startView: 2,
minView: 2,
forceParse: 0,
format:date_format
};
if(typeof endDate!='undefined')params.endDate=endDate;
console.log(params);
$(startobj).datetimepicker(params);
},
dateTodate:function(startobj,endobj,date_format,istime,min,max){
if(typeof date_format=='undefined')date_format='DD/MM/YYYY';
if(typeof istime=='undefined')istime=true;
if(typeof min=='undefined')min=false;
if(typeof max=='undefined')max='2099-06-16 23:59:59';
var start = {
elem:startobj,
format:date_format,
min: min, //设定最小日期为当前日期
max: max, //最大日期
istime:istime,
istoday: false,
choose: function(datas){
end.min = datas; //开始日选好后,重置结束日的最小日期
end.start = datas //将结束日的初始值设定为开始日
}
};
var end = {
elem:endobj,
format:date_format,
min:min, //设定最小日期为当前日期
max:max, //最大日期
istime:istime,
istoday: false,
choose: function(datas){
start.max = datas; //结束日选好后,重置开始日的最大日期
}
};
laydate(start);
laydate(end);
},
loading:function(msg){
if(typeof msg=='undefined'||msg=='')msg='';
layer.msg('加載中', {icon: 16});
},
closeloading:function(){
setTimeout(function(){
layer.closeAll('loading');
}, 2000);
},
showResponse:function (data){
tool.msg(data.msg,3000,0.2,function(){
if(data.code==0&&data.url){
window.location.href=data.url;
}
if(data.code==1){
window.location.href=data.url;
}
});
},
msg:function(msg,time,shade,callback){
if(typeof msg=='undefined')return false;
if(typeof time=='undefined'||time=='')time=3000;
if(typeof shade=='undefined')shade=0;
layer.msg(msg, {
time:time //2秒关闭(如果不配置,默认是3秒)
,shade:shade
}, function(){
//do something
if(typeof callback!='undefined')callback();
});
},
delItem:function(msg,url,title){
if(typeof title=='undefined')title='刪除提示';
tool.confirm(msg,title,0.2,function(index){
$.get(url,function(data){
layer.close(index);
tool.msg(data.info,3000,0.2,function(){
if(data.status==1){
window.location.href=data.url;
}
});
});
});
},
confirm:function(msg,title,shade,callback){
if(typeof msg=='undefined')return false;
if(typeof shade=='undefined')shade=0.2;
if(typeof title=='undefined')title='提示';
layer.confirm(msg, {shade:shade, title:title}, function(index){
//do something
if(typeof callback!='undefined')callback();
layer.close(index);
});
},
commonForm:function(form,rules,messages,showErrors,submitHandler,success){
if(typeof form=='undefined')return false;
if(typeof showErrors=='undefined'||showErrors=='')showErrors=false;
if(typeof success!='function')success=tool.showResponse;
jQuery(form).validate({
debug:false,
onfocusout:false,
onkeyup:false,
onclick:false,
rules:rules,
messages:messages,
showErrors:showErrors,
submitHandler:function(form){
if(typeof submitHandler=='function'){
submitHandler();
}
var options={
success:success
};
jQuery(form).ajaxSubmit(options);
}
});
},
popup:function(title,url,area,callback,option){
var callbackInvoke=false;
var fn = function(result){
callbackInvoke=true;
callback(result);
layer.close(index);
}
var o = $.extend({
content:url,
type:2,
area:area,
title:title,
shadeClose: true,
shade: 0.8,
success:function(){
var iframe = $('#layui-layer-iframe'+index)[0];
iframe.contentWindow.callbackSelector = fn;
$(iframe).on('load',function(){
iframe.contentWindow.callbackSelector = fn;
});
},
end:function(){
if(!callbackInvoke) callback();
}},option||{});
console.log(o);
if(!o.area) o.area = ['800px','500px'];
var index = layer.open(o);
}
};

8
app/home/view/szwjs/index/Public/Js/jquery-ui-1.10.3.min.js

File diff suppressed because one or more lines are too long

1426
app/home/view/szwjs/index/Public/Js/jquery.fileupload.js

File diff suppressed because it is too large

1129
app/home/view/szwjs/index/Public/Js/jquery.form.js

File diff suppressed because it is too large

530
app/home/view/szwjs/index/Public/Js/jquery.ui.widget.js

@ -0,0 +1,530 @@
/*!
* jQuery UI Widget 1.10.4+amd
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/jQuery.widget/
*/
(function (factory) {
if (typeof define === "function" && define.amd) {
// Register as an anonymous AMD module:
define(["jquery"], factory);
} else {
// Browser globals:
factory(jQuery);
}
}(function( $, undefined ) {
var uuid = 0,
slice = Array.prototype.slice,
_cleanData = $.cleanData;
$.cleanData = function( elems ) {
for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
try {
$( elem ).triggerHandler( "remove" );
// http://bugs.jquery.com/ticket/8235
} catch( e ) {}
}
_cleanData( elems );
};
$.widget = function( name, base, prototype ) {
var fullName, existingConstructor, constructor, basePrototype,
// proxiedPrototype allows the provided prototype to remain unmodified
// so that it can be used as a mixin for multiple widgets (#8876)
proxiedPrototype = {},
namespace = name.split( "." )[ 0 ];
name = name.split( "." )[ 1 ];
fullName = namespace + "-" + name;
if ( !prototype ) {
prototype = base;
base = $.Widget;
}
// create selector for plugin
$.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
return !!$.data( elem, fullName );
};
$[ namespace ] = $[ namespace ] || {};
existingConstructor = $[ namespace ][ name ];
constructor = $[ namespace ][ name ] = function( options, element ) {
// allow instantiation without "new" keyword
if ( !this._createWidget ) {
return new constructor( options, element );
}
// allow instantiation without initializing for simple inheritance
// must use "new" keyword (the code above always passes args)
if ( arguments.length ) {
this._createWidget( options, element );
}
};
// extend with the existing constructor to carry over any static properties
$.extend( constructor, existingConstructor, {
version: prototype.version,
// copy the object used to create the prototype in case we need to
// redefine the widget later
_proto: $.extend( {}, prototype ),
// track widgets that inherit from this widget in case this widget is
// redefined after a widget inherits from it
_childConstructors: []
});
basePrototype = new base();
// we need to make the options hash a property directly on the new instance
// otherwise we'll modify the options hash on the prototype that we're
// inheriting from
basePrototype.options = $.widget.extend( {}, basePrototype.options );
$.each( prototype, function( prop, value ) {
if ( !$.isFunction( value ) ) {
proxiedPrototype[ prop ] = value;
return;
}
proxiedPrototype[ prop ] = (function() {
var _super = function() {
return base.prototype[ prop ].apply( this, arguments );
},
_superApply = function( args ) {
return base.prototype[ prop ].apply( this, args );
};
return function() {
var __super = this._super,
__superApply = this._superApply,
returnValue;
this._super = _super;
this._superApply = _superApply;
returnValue = value.apply( this, arguments );
this._super = __super;
this._superApply = __superApply;
return returnValue;
};
})();
});
constructor.prototype = $.widget.extend( basePrototype, {
// TODO: remove support for widgetEventPrefix
// always use the name + a colon as the prefix, e.g., draggable:start
// don't prefix for widgets that aren't DOM-based
widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name
}, proxiedPrototype, {
constructor: constructor,
namespace: namespace,
widgetName: name,
widgetFullName: fullName
});
// If this widget is being redefined then we need to find all widgets that
// are inheriting from it and redefine all of them so that they inherit from
// the new version of this widget. We're essentially trying to replace one
// level in the prototype chain.
if ( existingConstructor ) {
$.each( existingConstructor._childConstructors, function( i, child ) {
var childPrototype = child.prototype;
// redefine the child widget using the same prototype that was
// originally used, but inherit from the new version of the base
$.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto );
});
// remove the list of existing child constructors from the old constructor
// so the old child constructors can be garbage collected
delete existingConstructor._childConstructors;
} else {
base._childConstructors.push( constructor );
}
$.widget.bridge( name, constructor );
};
$.widget.extend = function( target ) {
var input = slice.call( arguments, 1 ),
inputIndex = 0,
inputLength = input.length,
key,
value;
for ( ; inputIndex < inputLength; inputIndex++ ) {
for ( key in input[ inputIndex ] ) {
value = input[ inputIndex ][ key ];
if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
// Clone objects
if ( $.isPlainObject( value ) ) {
target[ key ] = $.isPlainObject( target[ key ] ) ?
$.widget.extend( {}, target[ key ], value ) :
// Don't extend strings, arrays, etc. with objects
$.widget.extend( {}, value );
// Copy everything else by reference
} else {
target[ key ] = value;
}
}
}
}
return target;
};
$.widget.bridge = function( name, object ) {
var fullName = object.prototype.widgetFullName || name;
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
args = slice.call( arguments, 1 ),
returnValue = this;
// allow multiple hashes to be passed on init
options = !isMethodCall && args.length ?
$.widget.extend.apply( null, [ options ].concat(args) ) :
options;
if ( isMethodCall ) {
this.each(function() {
var methodValue,
instance = $.data( this, fullName );
if ( !instance ) {
return $.error( "cannot call methods on " + name + " prior to initialization; " +
"attempted to call method '" + options + "'" );
}
if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) {
return $.error( "no such method '" + options + "' for " + name + " widget instance" );
}
methodValue = instance[ options ].apply( instance, args );
if ( methodValue !== instance && methodValue !== undefined ) {
returnValue = methodValue && methodValue.jquery ?
returnValue.pushStack( methodValue.get() ) :
methodValue;
return false;
}
});
} else {
this.each(function() {
var instance = $.data( this, fullName );
if ( instance ) {
instance.option( options || {} )._init();
} else {
$.data( this, fullName, new object( options, this ) );
}
});
}
return returnValue;
};
};
$.Widget = function( /* options, element */ ) {};
$.Widget._childConstructors = [];
$.Widget.prototype = {
widgetName: "widget",
widgetEventPrefix: "",
defaultElement: "<div>",
options: {
disabled: false,
// callbacks
create: null
},
_createWidget: function( options, element ) {
element = $( element || this.defaultElement || this )[ 0 ];
this.element = $( element );
this.uuid = uuid++;
this.eventNamespace = "." + this.widgetName + this.uuid;
this.options = $.widget.extend( {},
this.options,
this._getCreateOptions(),
options );
this.bindings = $();
this.hoverable = $();
this.focusable = $();
if ( element !== this ) {
$.data( element, this.widgetFullName, this );
this._on( true, this.element, {
remove: function( event ) {
if ( event.target === element ) {
this.destroy();
}
}
});
this.document = $( element.style ?
// element within the document
element.ownerDocument :
// element is window or document
element.document || element );
this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
}
this._create();
this._trigger( "create", null, this._getCreateEventData() );
this._init();
},
_getCreateOptions: $.noop,
_getCreateEventData: $.noop,
_create: $.noop,
_init: $.noop,
destroy: function() {
this._destroy();
// we can probably remove the unbind calls in 2.0
// all event bindings should go through this._on()
this.element
.unbind( this.eventNamespace )
// 1.9 BC for #7810
// TODO remove dual storage
.removeData( this.widgetName )
.removeData( this.widgetFullName )
// support: jquery <1.6.3
// http://bugs.jquery.com/ticket/9413
.removeData( $.camelCase( this.widgetFullName ) );
this.widget()
.unbind( this.eventNamespace )
.removeAttr( "aria-disabled" )
.removeClass(
this.widgetFullName + "-disabled " +
"ui-state-disabled" );
// clean up events and states
this.bindings.unbind( this.eventNamespace );
this.hoverable.removeClass( "ui-state-hover" );
this.focusable.removeClass( "ui-state-focus" );
},
_destroy: $.noop,
widget: function() {
return this.element;
},
option: function( key, value ) {
var options = key,
parts,
curOption,
i;
if ( arguments.length === 0 ) {
// don't return a reference to the internal hash
return $.widget.extend( {}, this.options );
}
if ( typeof key === "string" ) {
// handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
options = {};
parts = key.split( "." );
key = parts.shift();
if ( parts.length ) {
curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
for ( i = 0; i < parts.length - 1; i++ ) {
curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
curOption = curOption[ parts[ i ] ];
}
key = parts.pop();
if ( arguments.length === 1 ) {
return curOption[ key ] === undefined ? null : curOption[ key ];
}
curOption[ key ] = value;
} else {
if ( arguments.length === 1 ) {
return this.options[ key ] === undefined ? null : this.options[ key ];
}
options[ key ] = value;
}
}
this._setOptions( options );
return this;
},
_setOptions: function( options ) {
var key;
for ( key in options ) {
this._setOption( key, options[ key ] );
}
return this;
},
_setOption: function( key, value ) {
this.options[ key ] = value;
if ( key === "disabled" ) {
this.widget()
.toggleClass( this.widgetFullName + "-disabled ui-state-disabled", !!value )
.attr( "aria-disabled", value );
this.hoverable.removeClass( "ui-state-hover" );
this.focusable.removeClass( "ui-state-focus" );
}
return this;
},
enable: function() {
return this._setOption( "disabled", false );
},
disable: function() {
return this._setOption( "disabled", true );
},
_on: function( suppressDisabledCheck, element, handlers ) {
var delegateElement,
instance = this;
// no suppressDisabledCheck flag, shuffle arguments
if ( typeof suppressDisabledCheck !== "boolean" ) {
handlers = element;
element = suppressDisabledCheck;
suppressDisabledCheck = false;
}
// no element argument, shuffle and use this.element
if ( !handlers ) {
handlers = element;
element = this.element;
delegateElement = this.widget();
} else {
// accept selectors, DOM elements
element = delegateElement = $( element );
this.bindings = this.bindings.add( element );
}
$.each( handlers, function( event, handler ) {
function handlerProxy() {
// allow widgets to customize the disabled handling
// - disabled as an array instead of boolean
// - disabled class as method for disabling individual parts
if ( !suppressDisabledCheck &&
( instance.options.disabled === true ||
$( this ).hasClass( "ui-state-disabled" ) ) ) {
return;
}
return ( typeof handler === "string" ? instance[ handler ] : handler )
.apply( instance, arguments );
}
// copy the guid so direct unbinding works
if ( typeof handler !== "string" ) {
handlerProxy.guid = handler.guid =
handler.guid || handlerProxy.guid || $.guid++;
}
var match = event.match( /^(\w+)\s*(.*)$/ ),
eventName = match[1] + instance.eventNamespace,
selector = match[2];
if ( selector ) {
delegateElement.delegate( selector, eventName, handlerProxy );
} else {
element.bind( eventName, handlerProxy );
}
});
},
_off: function( element, eventName ) {
eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) + this.eventNamespace;
element.unbind( eventName ).undelegate( eventName );
},
_delay: function( handler, delay ) {
function handlerProxy() {
return ( typeof handler === "string" ? instance[ handler ] : handler )
.apply( instance, arguments );
}
var instance = this;
return setTimeout( handlerProxy, delay || 0 );
},
_hoverable: function( element ) {
this.hoverable = this.hoverable.add( element );
this._on( element, {
mouseenter: function( event ) {
$( event.currentTarget ).addClass( "ui-state-hover" );
},
mouseleave: function( event ) {
$( event.currentTarget ).removeClass( "ui-state-hover" );
}
});
},
_focusable: function( element ) {
this.focusable = this.focusable.add( element );
this._on( element, {
focusin: function( event ) {
$( event.currentTarget ).addClass( "ui-state-focus" );
},
focusout: function( event ) {
$( event.currentTarget ).removeClass( "ui-state-focus" );
}
});
},
_trigger: function( type, event, data ) {
var prop, orig,
callback = this.options[ type ];
data = data || {};
event = $.Event( event );
event.type = ( type === this.widgetEventPrefix ?
type :
this.widgetEventPrefix + type ).toLowerCase();
// the original event may come from any element
// so we need to reset the target on the new event
event.target = this.element[ 0 ];
// copy original event properties over to the new event
orig = event.originalEvent;
if ( orig ) {
for ( prop in orig ) {
if ( !( prop in event ) ) {
event[ prop ] = orig[ prop ];
}
}
}
this.element.trigger( event, data );
return !( $.isFunction( callback ) &&
callback.apply( this.element[0], [ event ].concat( data ) ) === false ||
event.isDefaultPrevented() );
}
};
$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
$.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
if ( typeof options === "string" ) {
options = { effect: options };
}
var hasOptions,
effectName = !options ?
method :
options === true || typeof options === "number" ?
defaultEffect :
options.effect || defaultEffect;
options = options || {};
if ( typeof options === "number" ) {
options = { duration: options };
}
hasOptions = !$.isEmptyObject( options );
options.complete = callback;
if ( options.delay ) {
element.delay( options.delay );
}
if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
element[ method ]( options );
} else if ( effectName !== method && element[ effectName ] ) {
element[ effectName ]( options.duration, options.easing, callback );
} else {
element.queue(function( next ) {
$( this )[ method ]();
if ( callback ) {
callback.call( element[ 0 ] );
}
next();
});
}
};
});
}));

4
app/home/view/szwjs/index/Public/Js/jquery.validate.min.js

File diff suppressed because one or more lines are too long

2
app/home/view/szwjs/index/Public/Js/layer/layer.js

File diff suppressed because one or more lines are too long

BIN
app/home/view/szwjs/index/Public/Js/layer/skin/default/icon-ext.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
app/home/view/szwjs/index/Public/Js/layer/skin/default/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
app/home/view/szwjs/index/Public/Js/layer/skin/default/loading-0.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

BIN
app/home/view/szwjs/index/Public/Js/layer/skin/default/loading-1.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

BIN
app/home/view/szwjs/index/Public/Js/layer/skin/default/loading-2.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

7
app/home/view/szwjs/index/Public/Js/layer/skin/layer.css

File diff suppressed because one or more lines are too long

63
app/home/view/szwjs/user/active.html

@ -0,0 +1,63 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>账号激活 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="body-white">
<div class="wrap">
{include file="public:nav" /}
<div id="main-cmf">
<div class="content">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-10 col-lg-offset-4 col-md-offset-4 col-sm-offset-3 col-xs-offset-1 animate_afr">
<h2 class="text-center" style="margin: 10% 0;">您的账号还未激活!</h2>
<div class="text-center" style="margin: 10% 0;">
<span class="profile-picture" style="width: 50%">
<img id="avatar" class="editable img-responsive editable-click editable-empty" alt="注册用户" src="__PUBLIC__/img/avatar.png">
</span>
<div class="space-4"></div>
<h5>{$email}</h5>
<h5>{:lang('resend active email')} <a href="{:url('home/Login/resend')}" style="color: red" class="rst-btn">重新发送</a></h5>
{if(!empty($mailurl))}
<a href="{$mailurl}" target="_blank">
<button class="btn btn-danger btn-xlg">
<i class="ace-icon fa fa-bolt bigger-110"></i>
立即激活
<i class="ace-icon fa fa-arrow-right icon-on-right"></i>
</button>
</a>
{/if}
</div>
</div>
</div>
</div>
</div>
</div>
{include file="public:footer"/}
</div>
{include file="public:scripts"/}
<script>
$(function () {
$('body').on('click','.rst-btn',function () {
var $url = this.href;
$.get($url, function (data) {
if (data.code == 1) {
layer.alert(data.msg, {icon: 6});
} else {
layer.alert(data.msg, {icon: 5});
}
}, "json");
return false;
});
});
</script>
</body>
</html>

40
app/home/view/szwjs/user/actnotice.html

@ -0,0 +1,40 @@
{layout name="user/userlayout" /}
{foreach name="lists" item="vo"}
<div class="inform">
<div class="informslist {if condition='$vo.is_read eq 0'}not_read_email{/if}" data-id="{$vo.notice_id}" style="cursor: pointer">
<div class="modeub modeac">
<div class="emailicon logobackimg {if condition='$vo.is_read eq 1'}emailiconactive{/if}"></div>
<div class="modef1 informslisttitle">{$vo.notice_title}</div>
<div class="informslistime">{$vo.create_time|date='Y·m·d',###}</div>
</div>
<div class="modeub statustop ">
<div class="iconfont icon-jiantou2 butg modeub modepc"></div>
<div class="modef1 iconstatus"></div>
</div>
</div>
<div class="emaildes" style="display: none;margin-bottom: 30px;">
{$vo.notice}
</div>
</div>
{/foreach}
<div class="list-page" align="center">{$page}</div>
<script>
$(function(){
$(".informslist").click(function(){
$(this).find(".emailicon").addClass("emailiconactive");
$(this).next(".emaildes").slideToggle(300);
$(this).find(".iconfont").toggleClass("icon-jiantou2 icon-jiantou2-copy")
if($(this).attr("class").indexOf("not_read_email")>0){
$.ajax({
type: "POST",
url: '{:url(\'home/Center/actnotice_r\')}',
data: {"notice_id":$(this).attr("data-id")},
async: false,
success: function (data) {
}
})
}
});
});
</script>

35
app/home/view/szwjs/user/artverify.html

@ -0,0 +1,35 @@
{layout name="user/userlayout" /}
<table width="100%" style="text-align:center;color:rgba(128,128,128,1);font-size:16px;line-height:22px;">
<thead>
<tr >
<th style="border-bottom:1px solid rgba(244,242,245,1);padding:10px 0px;">#</th>
<th style="border-bottom:1px solid rgba(244,242,245,1);">名称</th>
<th style="border-bottom:1px solid rgba(244,242,245,1);">日期</th>
<th style="border-bottom:1px solid rgba(244,242,245,1);">权属人</th>
<th style="border-bottom:1px solid rgba(244,242,245,1);">查看详情</th>
</tr>
</thead>
<tbody>
{foreach name="lists" item="vo"}
<tr>
<td style="border-bottom:1px solid rgba(244,242,245,1);padding:14px 0px;">{$key+1}</td>
<td style="border-bottom:1px solid rgba(244,242,245,1);">{$vo.name}</td>
<td style="border-bottom:1px solid rgba(244,242,245,1);">{$vo.gp_date?date("Y-m-d",$vo['gp_date']):''}</td>
<td style="border-bottom:1px solid rgba(244,242,245,1);">{$vo.ower}</td>
<td style="border-bottom:1px solid rgba(244,242,245,1);">
<div class="buttonright modeub buttonright2" style="margin:0px auto;width:100px" {if condition="$vo['reporturl']"}onclick="window.open('{:SITE_PATH}{$vo.reporturl|urldecode}')"{/if}>
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc">查看</div>
<div class="rightbutton2"></div>
</div>
</td>
</tr>
{/foreach}
</tbody>
<tfoot>
<tr>
<td colspan="5">{$page}</td>
</tr>
</tfoot>
</table>

68
app/home/view/szwjs/user/bang.html

@ -0,0 +1,68 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>{:lang('bind account')} {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="body-white">
<div class="wrap">
{include file="public:nav" /}
<div id="main-cmf">
<div class="breadcrumb-wrapper">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<h2 class="title">{:lang('personal center')}</h2>
</div>
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<div class="breadcrumbs pull-right">
<ul>
<li>{:lang('current location')}:</li>
<li><a href="__ROOT__/">{:lang('home')}</a></li>
<li><a href="{:url('home/Center/index')}">{:lang('personal center')}</a></li>
<li>{:lang('bind account')}</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
{include file="public:usernav"/}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
<div class="col-xs-12 h2_title">
<h2>绑定账号</h2>
</div>
<div id="center-content" style="padding:20px">
<div class="row">
{if condition="!empty($oauths['qq'])"}
<button class="btn btn-primary red-btn" style="margin:0 20px;"> {:lang('bound qq')}</button>
{else/}
<a class="btn btn-primary red-btn" href="{:url('home/Oauth/bang',array('type'=>'qq'))}" style="margin:0 20px;"> {:lang('bind new qq')}</a>
{/if}
{if condition="!empty($oauths['sina'])"}
<button class="btn red-btn"> {:lang('bound sina weibo')}</button>
{else/}
<a class="btn btn-primary red-btn" href="{:url('home/Oauth/bang',array('type'=>'sina'))}"> {:lang('bind new sina weibo')}</a>
{/if}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{include file="public:footer"/}
</div>
{include file="public:scripts"/}
</body>
</html>

62
app/home/view/szwjs/user/capnotice.html

@ -0,0 +1,62 @@
{layout name="user/userlayout" /}
{foreach name="lists" item="vo"}
<div class="inform">
<div class="informslist {if condition='$vo.is_read eq 0'}not_read_email{/if}" data-id="{$vo.notice_id}" style="cursor: pointer">
<div class="modeub modeac">
<div class="emailicon logobackimg {if condition='$vo.is_read eq 1'}emailiconactive{/if}"></div>
<div class="modef1 informslisttitle">{$vo.notice_title}</div>
<div class="informslistime">{$vo.create_time|date='Y·m·d',###}</div>
</div>
<div class="modeub statustop ">
<div class="iconfont icon-jiantou2 butg modeub modepc"></div>
<div class="modef1 iconstatus"></div>
</div>
</div>
<div class="emaildes" style="display: none;margin-bottom: 30px;">
{$vo.notice}
</div>
</div>
{/foreach}
<div class="list-page" align="center">{$page}</div>
<script type="text/javascript">
$(function(){
$(".editcheck").each(function(){
$(this).click(function(event){
event.preventDefault();
var jump=$(this).attr('href');
$.ajax({type:"POST",
url:jump,
async: false,
success:function (data) {
if (data.code == 1) {
window.location.href = data.url;
}else{
layer.alert(data.msg, {icon: 5}, function (index) {
layer.close(index);
});
}
}
})
});
});
$(".informslist").click(function(event){
event.preventDefault();
event.stopPropagation();
$(this).find(".emailicon").addClass("emailiconactive");
$(this).next(".emaildes").slideToggle(300);
$(this).find(".iconfont").toggleClass("icon-jiantou2 icon-jiantou2-copy")
if($(this).attr("class").indexOf("not_read_email")>0){
$.ajax({
type: "POST",
url: '{:url(\'home/Center/capnotice_r\')}',
data: {"notice_id":$(this).attr("data-id")},
async: false,
success: function (data) {
}
})
}
})
});
</script>

64
app/home/view/szwjs/user/capnotice_r.html

@ -0,0 +1,64 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>系统通知 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="body-white">
<div class="contenter">
{include file="public:nav" /}
<div id="main-cmf">
<div class="breadcrumb-wrapper">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<h2 class="title">{:lang('personal center')}</h2>
</div>
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<div class="breadcrumbs pull-right">
<ul>
<li>{:lang('current location')}:</li>
<li><a href="__ROOT__/">{:lang('home')}</a></li>
<li><a href="{:url('home/Center/index')}">{:lang('personal center')}</a></li>
<li>系统通知</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="detailsbanner"></div>
<div class="content">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
{include file="public:usernav"/}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
<div id="center-content">
<div class="col-xs-12 h2_title">
<h2>系统通知</h2>
</div>
<div class="notice-item">
<div class="notify-content">
<div class="notice-title" style="padding-bottom: 10px;">{$list.notice_title}</div>
<div>{$list.notice}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{include file="public:footer"/}
{include file="public:scripts"/}
</body>
</html>

90
app/home/view/szwjs/user/center.html

@ -0,0 +1,90 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>个人中心 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
<!--加载Css-->
{switch name="lang"}
{case value="zh-cn"}{load href="__PUBLIC__/shearphoto/css/ShearPhoto_f_zh-cn.css" /}{/case}
{case value="en-us"}{load href="__PUBLIC__/shearphoto/css/ShearPhoto_f_en-us.css" /}{/case}
{default /}{load href="__PUBLIC__/shearphoto/css/ShearPhoto_f_zh-cn.css" /}
{/switch}
</head>
<body class="detailsbg">
<div class="contenter">
{include file="public:nav" /}
<!--banner开始-->
<div class="detailsbanner"></div>
<!--banner结束-->
<!--body开始-->
<div class="content modeub bodymb">
<!--mode left开始-->
<!-- 控制个人中心选中菜单的样式 -->
<div style="display: none;">{$menu_type=1}</div>
{include file="public:usernav"/}
<!--mode left结束-->
<!--mode right开始-->
<div class="modef1 moderight">
<div class="basictop">
<div class="moderighttag modeub modeac">
<div class="linecolor"></div>
<div class="basictitle">基本信息</div>
</div>
<div class="basiccon">
<div class="modeub modeac basicborder">
<div class="modef1">
<div class="basicconicon modeub modeac modepc">
<img src="{$member_list_headpic|get_imgurl=1}" style="border-radius: 110px;width:120px;height: 120px;"/>
</div>
</div>
<div class="basicright modeub modever modepe modeae">
<div class="basicname modeub modeac modepc" style="cursor: pointer" onclick="javascript:window.location.href='{:url(\'home/Center/edit\')}'">修改基本信息</div>
<div class="logintime">最后一次登录时间:{$last_login_time|date="Y-m-d",###}</div>
</div>
</div>
<div class="modeub modever">
<div class="modeub nicktop">
<div class="nickleft">{:lang('nickname')}:</div>
<div class="nicktitle">{$member_list_nickname|default=$member_list_username}</div>
</div>
<div class="modeub nicktop">
<div class="nickleft">{:lang('sex')}:</div>
<div class="nicktitle">{php}
$sexs=array("1"=>lang('ProMonkey'),"2"=>lang('ProMM'),"3"=>lang('secrecy'));
{/php}
{$sexs[$member_list_sex]}
</div>
</div>
<div class="modeub nicktop">
<div class="nickleft">{:lang('phone')}:</div>
<div class="nicktitle">{$member_list_tel|default=""}</div>
</div>
<div class="modeub nicktop">
<div class="nickleft">{:lang('personal website')}:</div>
<div class="nicktitle">{$user_url|default=""}</div>
</div>
<div class="modeub nicktop">
<div class="nickleft">{:lang('signature')}:</div>
<div class="nicktitle">{$signature|default=""}</div>
</div>
<div class="modeub nicktop">
<div class="nickleft">{:lang('address')}:</div>
<div class="nicktitle">{$address|default=""}</div>
</div>
</div>
</div>
</div>
</div>
<!--mode right结束-->
</div>
<!--body结束-->
{include file="public:footer"/}
</div>
{include file="public:scripts"/}
</body>
</html>

172
app/home/view/szwjs/user/cuapply.html

@ -0,0 +1,172 @@
{layout name="user/userlayout" /}
{foreach name="lists" item="vo"}
<div class="informslist" style="cursor: pointer">
<div class="modeub modeac">
<div class="modef1">&nbsp;{$vo.id}</div>
<div class="modef1 informslisttitle">{$vo.orgname}</div>
<div class="informslistime">{$vo.create_time}</div>
</div>
<div class="modeub statustop ">
<div class="iconfont icon-jiantou2 butg modeub modepc"></div>
<div class="modef1 iconstatus"></div>
</div>
</div>
<div class="emaildes" style="display: none;margin:20px 0px;">
<table class="tvmtab" style="width:100%;line-height:1.4em;">
<tr>
<td class="ttitle">企业名称:</td>
<td>&nbsp;{$vo.orgname}</td>
<td class="ttitle">主营业务:</td>
<td>&nbsp;{$vo.major}</td>
</tr>
<tr>
<td class="ttitle">行政区域:</td>
<td>&nbsp;{$vo.address}</td>
<td class="ttitle">企业类型:</td>
<td>&nbsp;{$vo.company}</td>
</tr>
<tr>
<td class="ttitle">营业执照:</td>
<td>&nbsp;{$vo.buscode}</td>
<td class="ttitle">成立时间:</td>
<td>&nbsp;{$vo.established}</td>
</tr>
<tr>
<td class="ttitle">注册资本(万元人民币):</td>
<td>&nbsp;{$vo.regcapital}</td>
<td class="ttitle">净资产(万元人民币):</td>
<td>&nbsp;{$vo.netassets}</td>
</tr>
<tr>
<td class="ttitle">注册地址:</td>
<td>&nbsp;{$vo.regaddr}</td>
<td class="ttitle">邮政编码:</td>
<td style="padding:5px;">&nbsp;{$vo.poscode}</td>
</tr>
<tr>
<td class="ttitle">募集资金用途:</td>
<td style="padding:5px;">&nbsp;{$vo.raisedfunds}</td>
<td class="ttitle">平均3年营业收入:</td>
<td style="padding:5px;">&nbsp;{$vo.3yearin}</td>
</tr>
<tr>
<td class="ttitle">平均3年净利润:</td>
<td style="padding:5px;">&nbsp;{$vo.3yearasset}</td>
</tr>
<tr>
<td colspan="4" style="padding:5px;text-align:center;">&nbsp;法定代表人</td>
</tr>
<?php $legal=$vo['legal'];?>
<tr>
<td class="ttitle">姓名:</td>
<td style="padding:5px;">&nbsp;{$legal?$legal.name:''}</td>
<td class="ttitle">性别:</td>
<td style="padding:5px;">&nbsp;{$legal?($legal.sex==1?'男':'女'):''}</td>
</tr>
<tr>
<td class="ttitle">年龄:</td>
<td style="padding:5px;">&nbsp;{$legal?$legal.age:''}</td>
<td class="ttitle">学历:</td>
<td style="padding:5px;">&nbsp;{$legal?$legal.degree:''}</td>
</tr>
<tr>
<td class="ttitle">职位:</td>
<td style="padding:5px;">&nbsp;{$legal?$legal.job:''}</td>
<td class="ttitle">办公电话:</td>
<td style="padding:5px;">&nbsp;{$legal?$legal.tel:''}</td>
</tr>
<tr>
<td class="ttitle">手机:</td>
<td style="padding:5px;">&nbsp;{$legal?$legal.mobile:''}</td>
<td class="ttitle">电子邮件:</td>
<td style="padding:5px;">&nbsp;{$legal?$legal.email:''}</td>
</tr>
<tr>
<td colspan="4" style="padding:5px;text-align:center;">&nbsp;企业负责人</td>
</tr>
<?php $org=$vo['org'];?>
<tr>
<td class="ttitle">姓名:</td>
<td style="padding:5px;">&nbsp;{$org?$org.name:''}</td>
<td class="ttitle">性别:</td>
<td style="padding:5px;">&nbsp;{$org?($org.sex==1?'男':'女'):''}</td>
</tr>
<tr>
<td class="ttitle">年龄:</td>
<td style="padding:5px;">&nbsp;{$org?$org.age:''}</td>
<td class="ttitle">学历:</td>
<td style="padding:5px;">&nbsp;{$org?$org.degree:''}</td>
</tr>
<tr>
<td class="ttitle">职位:</td>
<td style="padding:5px;">&nbsp;{$org?$org.job:''}</td>
<td class="ttitle">办公电话:</td>
<td style="padding:5px;">&nbsp;{$org?$org.tel:''}</td>
</tr>
<tr>
<td class="ttitle">手机:</td>
<td style="padding:5px;">&nbsp;{$org?$org.mobile:''}</td>
<td class="ttitle">电子邮件:</td>
<td style="padding:5px;">&nbsp;{$org?$org.email:''}</td>
</tr>
<tr>
<td colspan="4" style="padding:5px;text-align:center;">&nbsp;联系人</td>
</tr>
<?php $cont=$vo['cont'];?>
<tr>
<td class="ttitle">姓名:</td>
<td style="padding:5px;">&nbsp;{$cont?$cont.name:''}</td>
<td class="ttitle">性别:</td>
<td style="padding:5px;">&nbsp;{$cont?($cont.sex==1?'男':'女'):''}</td>
</tr>
<tr>
<td class="ttitle">年龄:</td>
<td style="padding:5px;">&nbsp;{$cont?$cont.age:''}</td>
<td class="ttitle">学历:</td>
<td style="padding:5px;">&nbsp;{$cont?$cont.degree:''}</td>
</tr>
<tr>
<td class="ttitle">职位:</td>
<td style="padding:5px;">&nbsp;{$cont?$cont.job:''}</td>
<td class="ttitle">办公电话:</td>
<td style="padding:5px;">&nbsp;{$cont?$cont.tel:''}</td>
</tr>
<tr>
<td class="ttitle">手机:</td>
<td style="padding:5px;">&nbsp;{$cont?$cont.mobile:''}</td>
<td class="ttitle">电子邮件:</td>
<td style="padding:5px;">&nbsp;{$cont?$cont.email:''}</td>
</tr>
<tr>
<td colspan="4" style="padding:5px;text-align:center;">&nbsp;</td>
</tr>
<tr>
<td class="ttitle">企业概要:</td>
<td colspan="3" style="padding:5px;">&nbsp;{$vo.description}</td>
</tr>
<tr>
<td class="ttitle">员工总数:</td>
<td colspan="3" style="padding:5px;">&nbsp;{$vo.comnum}</td>
</tr>
<tr>
<td class="ttitle">已发债情况:</td>
<td colspan="3" style="padding:5px;">&nbsp;{$vo.mortgage}</td>
</tr>
</table>
</div>
{/foreach}
<div class="list-page" align="center">{$page}</div>
<script type="text/javascript">
$(function(){
$(".informslist").click(function(){
$(this).find(".emailicon").addClass("emailiconactive");
$(this).next(".emaildes").slideToggle(300);
$(this).find(".iconfont").toggleClass("icon-jiantou2 icon-jiantou2-copy")
})
});
</script>

384
app/home/view/szwjs/user/edit.html

@ -0,0 +1,384 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>{:lang('modify information')} {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="detailsbg">
<div class="contenter">
{include file="public:nav" /}
<!--banner开始-->
<div class="detailsbanner"></div>
<!--banner结束-->
<!--body开始-->
<div class="content modeub bodymb">
<!--mode left开始-->
<!-- 控制个人中心选中菜单的样式 -->
<div style="display: none;">{$menu_type=5}</div>
{include file="public:usernav"/}
<!--mode left结束-->
<!--mode right开始-->
<div class="modef1 moderight">
<div class="basictop">
<div class="moderighttag modeub modeac">
<div class="linecolor"></div>
<div class="basictitle">{:lang('modify information')}</div>
</div>
<form id="runedit" action="{:url('home/Center/runedit')}" method="post">
<div class="modifytag">
<div class="modeub">
<div class="modifyleft modifyleftactive modifymr" onclick="formchange(this)">基本信息</div>
<div class="modifyleft modifymr" onclick="formchange(this)">修改密码</div>
<div class="modifyleft modifymr" onclick="formchange(this)">修改手机码</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle modeub modeac modepc">头像</div>
<div id="logo_img" class="logobackimg basicconicon modeub modeac modepc companyheader">
<img id="logo_img2" src="{$member_list_headpic|get_imgurl=1}" style="border-radius:110px;width:108px;height: 108px;">
</div>
<div class="headeright">
<div class="headerightdes">jpg、png、gif 格式图片 100*100px</div>
<div class="headerightbun modeub modeac modepc">替 换 头 像
<input type="file" name="member_list_headpic" id="member_list_headpic" class="upfileter" style="left: 0px;" accept="image/gif,image/png,image/jpeg">
</div>
</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle modeub modeac modepc">{:lang('nickname')}</div>
<div class="headerightinput modeub">
<div class="inputleft logobackimg"></div>
<div class="modef1 inputcenter modeub modeac">
<input type="text" id="input-user_nicename" placeholder="{:lang('nickname')}" name="member_list_nickname" class="centerinput" value="{$member_list_nickname|default=$member_list_username}">
</div>
<div class="inputright logobackimg"></div>
</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle modeub modeac modepc">{:lang('sex')}</div>
<div class="headerightinput modeub">
<div class="inputleft logobackimg"></div>
<div class="modef1 inputcenter modeub modeac">
{php}
$sexs=array("1"=>lang('ProMonkey'),"2"=>lang('ProMM'),"3"=>lang('secrecy'));
{/php}
<div class="selectbg modeub modeac">
<select id="input-sex" name="member_list_sex">
{foreach name="sexs" item="vo"}
{php}$sexselected=$key==$member_list_sex?"selected":"";{/php}
<option value="{$key}" {$sexselected}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
<div class="inputright logobackimg"></div>
</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle modeub modeac modepc">{:lang('personal website')}</div>
<div class="headerightinput modeub">
<div class="inputleft logobackimg"></div>
<div class="modef1 inputcenter modeub modeac">
<input type="text" name="user_url" placeholder="http://www.szcaee.cn" class="centerinput" value="{$user_url}">
</div>
<div class="inputright logobackimg"></div>
</div>
</div>
<div class="modifyheader modeub ">
<div class="headertitle modeub modeac modepc">{:lang('signature')}</div>
<div class="headertextarea modeub">
<div class="textarealeft logobackimg"></div>
<div class="modef1 textareacenter modeub modeac">
<textarea id="input-signature" placeholder="{:lang('signature')}" class="form-control" name="signature">{$signature}</textarea>
</div>
<div class="textarearight logobackimg"></div>
</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle modeub modeac modepc">{:lang('province')}</div>
<div class="headerightinput modeub">
<div class="inputleft logobackimg"></div>
<div class="modef1 inputcenter modeub modeac">
<div class="selectbg modeub modeac">
<select name="member_list_province" class="form-control" id="province" onChange="loadRegion('province',2,'city','{:url('admin/Ajax/getRegion')}');">
<option value="0">{:lang('province')}</option>
{volist name="province" id="vo"}
<option value="{$vo.id}" {if condition="$member_list_province eq $vo['id']"}selected{/if}>{$vo.name}</option>
{/volist}
</select>
</div>
</div>
<div class="inputright logobackimg"></div>
</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle">
<div class="shititle">{:lang('city')}</div>
</div>
<div class="headerightinput modeub">
<div class="inputleft logobackimg"></div>
<div class="modef1 inputcenter modeub modeac">
<div class="selectbg modeub modeac">
<select name="member_list_city" class="form-control" id="city" onchange="loadRegion('city',3,'town','{:url('admin/Ajax/getRegion')}');">
<option value="0">{:lang('city')}</option>
{foreach name="city" item="v"}
<option {if condition="$member_list_city eq $v['id']"}selected{/if} value="{$v.id}">{$v.name}</option>
{/foreach}
</select>
</div>
</div>
<div class="inputright logobackimg"></div>
</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle">
<div class="shititle">{:lang('town')}</div>
</div>
<div class="headerightinput modeub">
<div class="inputleft logobackimg"></div>
<div class="modef1 inputcenter modeub modeac">
<div class="selectbg modeub modeac">
<select name="member_list_town" class="form-control" id="town">
<option value="0">{:lang('town')}</option>
{volist name="town" id="vy"}
<option {if condition="$member_list_town eq $vy['id']"}selected{/if} value="{$vy.id}">{$vy.name}</option>
{/volist}
</select>
</div>
</div>
<div class="inputright logobackimg"></div>
</div>
</div>
</div>
<div class="buttontip modeub modeac modepc">
<div class="buttonright modeub">
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc submit_btn2">{:lang('save')}</div>
<div class="rightbutton2"></div>
</div>
</div>
</form>
<form style="display: none" id="runchangepwd" action="{:url('home/Center/runchangepwd')}" method="post">
<div class="modifytag">
<div class="modeub">
<div class="modifyleft modifymr" onclick="formchange(this)">基本信息</div>
<div class="modifyleft modifyleftactive modifymr" onclick="formchange(this)">修改密码</div>
<div class="modifyleft modifymr" onclick="formchange(this)">修改手机码</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle modeub modeac modepc">原始密码</div>
<div class="headerightinput modeub">
<div class="inputleft logobackimg"></div>
<div class="modef1 inputcenter modeub modeac">
<input type="password" autocomplete="off" maxlength="20" class="centerinput" id="input-old_password" placeholder="原始密码(5-20位)" name="old_password">
</div>
<div class="inputright logobackimg"></div>
</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle modeub modeac modepc">新密码</div>
<div class="headerightinput modeub">
<div class="inputleft logobackimg"></div>
<div class="modef1 inputcenter modeub modeac">
<input type="password" autocomplete="off" maxlength="20" class="centerinput" id="input-password" placeholder="新密码(5-20位)" name="password">
</div>
<div class="inputright logobackimg"></div>
</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle modeub modeac modepc">重复密码</div>
<div class="headerightinput modeub">
<div class="inputleft logobackimg"></div>
<div class="modef1 inputcenter modeub modeac">
<input type="password" autocomplete="off" maxlength="20" class="centerinput" id="input-repassword" placeholder="重复密码(5-20位)" name="repassword">
</div>
<div class="inputright logobackimg"></div>
</div>
</div>
</div>
<div class="buttontip modeub modeac modepc">
<div class="buttonright modeub">
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc submit_btn">{:lang('save')}</div>
<div class="rightbutton2"></div>
</div>
</div>
</form>
<form style="display: none" id="changetel" action="{:url('home/Center/changetel')}" method="post">
<div class="modifytag">
<div class="modeub">
<div class="modifyleft modifymr" onclick="formchange(this)">基本信息</div>
<div class="modifyleft modifymr" onclick="formchange(this)">修改密码</div>
<div class="modifyleft modifyleftactive modifymr" onclick="formchange(this)">修改手机码</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle modeub modeac modepc">新手机号</div>
<div class="headerightinput modeub">
<div class="inputleft logobackimg"></div>
<div class="modef1 inputcenter modeub modeac">
<input type="number" maxlength="11" pattern="^1[3-9]\d{9}$" name="member_list_tel" placeholder="手机号" class="centerinput" required>
</div>
<div class="inputright logobackimg"></div>
</div>
</div>
<div class="modifyheader modeub modeac">
<div class="headertitle modeub modeac modepc">验证码</div>
<div class="headerightinput modeub">
<div class="inputleft logobackimg"></div>
<div class="modef1 inputcenter modeub modeac">
<input type="text" class="centerinput" placeholder="6位验证码(120s有效)" id="verify-m" style="height:40px;" name="verify" required>
<div class="fillecode modeub modeac modepc" style="position: inherit;right: 100px;cursor: pointer">获取验证码</div>
</div>
<div class="inputright logobackimg"></div>
</div>
</div>
</div>
<div class="buttontip modeub modeac modepc">
<div class="buttonright modeub">
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc submit_btn">{:lang('save')}</div>
<div class="rightbutton2"></div>
</div>
</div>
</form>
</div>
</div>
<!--mode right结束-->
</div>
<!--body结束-->
{include file="public:footer"/}
</div>
</body>
<script type="text/javascript" src="__PUBLIC__/others/region.js"></script>
<script type="text/javascript">
function formchange(t) {
$(t).parents("form").hide();
$(t).parents("form").parent().find("form").eq($(t).parent().children().index(t)).show();
}
$(function() {
$(".modifyleft").css("box-sizing","content-box");
$(".submit_btn").on('click', function (e) {
$.ajax({
type: "POST",
url: $(this).parents("form:first").attr("action"),
data: $(this).parents("form:first").serialize(),
async: false,
success: function (data) {
if (data.code == 1) {
layer.alert(data.msg, {icon: 6}, function (index) {
layer.close(index);
window.location.href = data.url;
});
} else {
layer.alert(data.msg, {icon: 5}, function (index) {
layer.close(index);
});
}
}
})
});
$(".submit_btn2").click(function(){
var formData = new FormData($("#runedit")[0]);
$.ajax({type:"POST",
url:$("#runedit").attr("action"),
data:formData,
contentType: false,
processData: false,
mimeType:"multipart/form-data",
async: false,
success:function (data) {
data = JSON.parse(data)
if (data.code == 1) {
layer.alert(data.msg, {icon: 6}, function (index) {
layer.close(index);
window.location.href = data.url;
});
}else{
layer.alert(data.msg, {icon: 5}, function (index) {
layer.close(index);
});
}
}
})
});
$('#changetel .fillecode').click(function(){
var account = $("#changetel input[name='member_list_tel']"),obj=$(this);
if(!account.val()){
account.focus();return false;
}else if(!(/^1[3456789]\d{9}$/.test(account.val()))){
return false;
}
var url="{:url('home/Center/sendsms')}";
$.ajax({
type:"POST",
url:url,
dataType:"json",
data:{account:account.val()},
beforeSend:function()
{
obj.attr("disabled","disabled");
},
success:function(data)
{
if(data.code==1){
var numts=60;
obj.html("再获取:"+numts);
var codets=setInterval(function(){
numts--;
obj.html("再获取:"+numts);
if(numts==0)
{
obj.html("获取验证码");
clearInterval(codets);
obj.removeAttr("disabled");
}
},1000);
}else{
obj.removeAttr("disabled");
}
}
});
});
var old_img='{$member_list_headpic|get_imgurl=1}';
$("#member_list_headpic").change(function (e) {
var fileObj = e.currentTarget.files[0];
if(fileObj.type !='image/jpeg'&& fileObj.type !='image/gif'&& fileObj.type !='image/png'){
layer.msg("请选择正确的图片类型", {icon: 5,time:3000});
$(this).val('');
$('#logo_img2').attr('src',old_img);
return false;
}
if(fileObj.size>(10*1024*1024)){
layer.msg("请选择小于10M的图片", {icon: 5,time:3000});
$(this).val('');
$('#logo_img2').attr('src',old_img);
return false;
}
var reader = new FileReader();
//使用该对象读取file文件
reader.readAsDataURL(fileObj);
//读取文件成功后执行的方法函数
reader.onload=function(e) {
// 读取成功后返回的一个参数e,整个的一个进度事件
console.log(e);
// 选择所要显示图片的img,要赋值给img的src就是e中target下result里面的base64编码格式的地址
$('#logo_img2').attr('src',e.target.result);
}
});
})
</script>
</html>

104
app/home/view/szwjs/user/forgot_pwd.html

@ -0,0 +1,104 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>忘记密码 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="body-white">
<div class="wrap">
{include file="public:nav" /}
<div id="main-cmf">
<div class="content">
<div class="container">
<div class="row login">
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-10 col-lg-offset-4 col-md-offset-4 col-sm-offset-3 col-xs-offset-1 animate_afr login_wrap">
<h2 class="text-center"><i class="fa fa-question-circle" ></i> 忘记密码</h2>
<form id="login" class="form-light verify-ajax-form" action="{:url('home/Login/runforgot_pwd')}" method="post">
<div>
<input type="text" id="input_username" name="member_list_username" placeholder="手机号/邮箱" class="form-control h28" required>
</div>
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
<input type="text" maxlength="6" class="form-control" placeholder="6位验证码" id="verify-m" style="height:40px;" name="verify" required>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 nopadding-left">
<span class="btn btn-primary red-btn verify-code">获取验证码</span>
</div>
</div>
<div>
<button class="btn btn-primary col-lg-12 col-md-12 col-sm-12 col-xs-12 login-sumit">下一步</button>
</div>
<div class="register-forget">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<a href="{:url('home/Login/index')}">立即登录</a>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<a href="{:url('home/Register/index')}">注册账号</a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
{include file="public:footer"/}
{include file="public:scripts"/}
<script>
$('.verify-code').click(function(){
var account = $("input[name='member_list_username']"),obj=$(this);
if(!account.val()){
account.focus();return false;
}else if(!account.val().match(/^(((13[0-9]{1})|(15[0-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/)){
if(!account.val().match(/\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/)){
layer.alert('非邮箱或手机格式', {icon: 5}, function (index) {
layer.close(index);
account.val('').focus();
});
return false;
}
}
var url="{:url('home/Login/get_code')}";
$.ajax({
type:"POST",
url:url,
dataType:"json",
data:{account:account.val()},
beforeSend:function()
{
obj.attr("disabled","disabled");
},
success:function(data)
{
if(data.code==1){
var numts=60;
obj.html("再获取:"+numts);
var codets=setInterval(function(){
numts--;
obj.html("再获取:"+numts);
if(numts==0)
{
obj.html("获取验证码");
clearInterval(codets);
obj.removeAttr("disabled");
}
},1000);
}else{
layer.msg(data.msg,{icon: 5});
obj.removeAttr("disabled");
}
}
});
});
</script>
</body>
</html>

88
app/home/view/szwjs/user/jzdc.html

@ -0,0 +1,88 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>尽职调查 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="body-white">
<div class="wrap">
{include file="public:nav" /}
<div id="main-cmf">
<div class="breadcrumb-wrapper">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<h2 class="title">{:lang('personal center')}</h2>
</div>
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<div class="breadcrumbs pull-right">
<ul>
<li>{:lang('current location')}:</li>
<li><a href="__ROOT__/">{:lang('home')}</a></li>
<li><a href="{:url('home/Center/index')}">{:lang('personal center')}</a></li>
<li>尽职调查</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
{include file="public:usernav"/}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
<div id="center-content">
<div class="col-xs-12 h2_title">
<h2>尽职调查</h2>
</div>
<div class="row">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th>登记挂牌类型</th>
<th>登记挂牌名称</th>
<th>登记挂牌状态</th>
<th>待操作</th>
</tr>
</thead>
<tbody>
{foreach name="lists" item="vo" key="k"}
<tr>
<td>{$k+1}</td>
{switch name="vo.apply_type"}
{case value="2"}<td>{if condition="$vo['k_type'] eq 1"}项目挂牌{else/}非国有类{/if}</td><td>{$vo.p_name}</td>{/case}
{case value="3"}<td>{if condition="$vo['k_type'] eq 1"}人才挂牌{else/}其他{/if}</td><td>{$vo.t_apply_username}</td>{/case}
{default /}<td>{if condition="$vo['k_type'] eq 1"}企业挂牌{else/}国有类{/if}</td><td>{$vo.c_name}</td>
{/switch}
<td>{$vo.descr}</td>
<td>
<a class="editcheck btn btn-danger" href="{:url('home/Listn/gp_jtcheck',['apply_id'=>$vo.apply_id])}">尽职调查</a>
</td>
</tr>
{/foreach}
<tr>
<td colspan="12" align="right">{$page}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{include file="public:footer"/}
{include file="public:scripts"/}
</body>
</html>

79
app/home/view/szwjs/user/login.html

@ -0,0 +1,79 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>登录 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="detailsbg">
<div class="contenter">
{include file="public:nav" /}
<div id="" style="width: 450px;margin: 0px auto">
<div class="modeub logintop">
<div class="modef1 logintitle">{:lang('user login')}</div>
<div class="registerpage register_user" data-animation="fade" style="cursor: pointer">{:lang('register immediately')} ></div>
</div>
<form id="login_form">
<div class="modeub loginpagemb">
<div class="modef1 numberbody modeub">
<div class="numberlefticon"></div>
<div class="modeub numbercentericon modeac logininput">
<div class="loginname iconfont icon-icon-user"></div>
<div class=" modeub modeac">
<input type="text" name="member_list_username" placeholder="{:lang('username or email')}" class="numberinputwh numberinputwh2 numberinputwh3 numberinputwh4">
</div>
</div>
<div class="numberrighticon"></div>
</div>
</div>
<div class="modeub loginpagemb">
<div class="modef1 numberbody modeub">
<div class="numberlefticon"></div>
<div class="modeub numbercentericon modeac logininput">
<div class="loginname iconfont icon-dingdangdaisuo"></div>
<div class=" modeub modeac">
<input type="password" name="member_list_pwd" placeholder="{:lang('pwd')}(5-20位)" class="numberinputwh numberinputwh2 numberinputwh3 numberinputwh4">
</div>
</div>
<div class="numberrighticon"></div>
</div>
</div>
<div class="modeub loginpagemb">
<div class="modef1 numberbody modeub">
<div class="numberlefticon"></div>
<div class="modeub numbercentericon modeac logininput">
<div class=" modeub modeac">
<input type="text" name="verify" placeholder="请输入验证码" class="numberinputwh numberinputwh2 numberinputwh3 numberinputwh4" style=" width: 145px;">
</div>
<div class="authcode">
<img class="verify_img" id="verify_img" src="{:url('home/Login/verify')}" onClick="this.src='{:url('home/Login/verify')}'+'?'+Math.random()" style="cursor: pointer;width:100%;border: 1px solid #d5d5d5;height:40px;border-radius: 3px;" title="{:lang('click to get')}">
</div>
</div>
<div class="numberrighticon"></div>
</div>
</div>
<div class="modeub loginpagemt">
<div class="modef1 modeac">
<label for="remember" class="radio rememberpassword">
<span class="radio-bg"></span>
<input type="checkbox" name="remember" id="remember" value="1">{:lang('remember')}
<span class="radio-on"></span>
</label>
</div>
<div class="forgetpassword" data-animation="fade">{:lang('forget password')}</div>
</div>
<div class="loginbutton modeub modeac modepc" style="cursor: pointer">{:lang('ok')}</div>
</form>
</div>
</div>
{include file="public:footer"/}
</body>
</html>

159
app/home/view/szwjs/user/my.html

@ -0,0 +1,159 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>我的挂牌{$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="detailsbg">
<div class="contenter">
{include file="public:nav" /}
<div class="detailsbanner"></div>
<!--banner结束-->
<!--body开始-->
<div class="content modeub bodymb">
<!-- 控制个人中心选中菜单的样式 -->
<div style="display: none;">{$menu_type=2}</div>
{include file="public:usernav" /}
<!--mode right开始-->
<div class="modef1 moderight">
<div class="basictop">
<div class="moderighttag modeub modeac">
<div class="linecolor"></div>
<div class="basictitle modef1">我的产权托管</div>
{notempty name="apply_time"}
<div>申请倒计时:</div>
<div class="" style="margin-right: 20px;">
<div class="yomibox" data="{$apply_time}"></div>
</div>
{/notempty}
</div>
<div class="basiccon">
<div class="modeub listborder">
<div class="listleftright modeub modef1">
<div class=" listnumber">#</div>
<div class=" liststyle">挂牌类型</div>
<div class="modef1">挂牌名称</div>
<div class="liststu modeub modepc">挂牌状态</div>
<div class="listbutton modeub modepc">待操作</div>
</div>
</div>
<div class="modeub listborder">
<div class="listleftright modeub modef1" style="text-align:left;">
{foreach name="lists" item="vo" key="k"}
<div style="width:100%;display:inline-block;margin-bottom:10px;">
<div class=" listnumber" style="display:inline-block;">{$k+1}</div>
{switch name="vo.apply_type"}
{case value="2"}<div class=" liststyle" style="display:inline-block;text-align:center;">{if condition="$vo['k_type'] eq 1"}项目挂牌{else/}非国有类{/if}</div><div class="modef1 listedtitle" style="display:inline-block;text-align:center;">{$vo.p_name}</div>{/case}
{case value="3"}<div class=" liststyle" style="display:inline-block;text-align:center;">{if condition="$vo['k_type'] eq 1"}人才挂牌{else/}其他{/if}</div><div class="modef1 listedtitle" style="display:inline-block;text-align:center;">{$vo.t_apply_username}</div>{/case}
{case value="4"}<div class=" liststyle" style="display:inline-block;text-align:center;">招拍挂平台</div><div class="modef1 listedtitle" style="display:inline-block;text-align:center;">{$vo.c_name}</div>{/case}
{case value="5"}<div class=" liststyle" style="display:inline-block;text-align:center;">策略联盟挂牌</div><div class="modef1 listedtitle" style="display:inline-block;text-align:center;">{$vo.p_com_name}</div>{/case}
{default /}<div class=" liststyle" style="display:inline-block;text-align:center;">{if condition="$vo['k_type'] eq 1"}企业挂牌{else/}国有类{/if}</div><div class="modef1 listedtitle" style="display:inline-block;text-align:center;">{$vo.c_name}</div>
{/switch}
<div class="liststu listedstatus modeub modepc" style="display:inline-block !important;text-align:center;">{$vo.descr}</div>
<div class=" modeub modepc listbutton" style="display:inline-block !important;text-align:center;width:300px;">
<div class="buttonright modeub buttonright2" style="margin:0px auto;width:100px">
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc">
{in name="vo.status" value="3,33,7,10,40,26,44,49,52"}
<a class=" btn btn-danger" style="color: cornsilk;" href="{:url('home/Listn/gp_editcheck',['apply_id'=>$vo['apply_id']])}">修改信息</a>
{/in}
{if condition="!in_array($vo['apply_type'],[4,6])"}
{in name="vo.status" value="9"}
{empty name="vo.payment_url"}
<a class=" btn btn-danger" style="color: cornsilk;" href="{:url('home/Listn/tsjfzm',['apply_id'=>$vo.apply_id])}">上传缴费证明</a>
{/empty}
{/in}
{in name="vo.status" value="9"}
{notempty name="vo.payment_url"}
<a class=" btn btn-danger" style="color: cornsilk;" href="#">缴费证明已传</a>
{/notempty}
{/in}
{else}
{in name="vo.status" value="9"}
{empty name="vo.pay_img"}
<a class=" btn btn-danger" style="color: cornsilk;" href="{:url('home/Listn/tsjfzm',['apply_id'=>$vo.apply_id])}">上传缴费证明</a>
{/empty}
{/in}
{in name="vo.status" value="9"}
{notempty name="vo.pay_img"}
<a class=" btn btn-danger" style="color: cornsilk;" href="#">缴费证明已传</a>
{/notempty}
{/in}
{/if}
{in name="vo.status" value="14"}
<a class=" btn btn-danger" style="color: cornsilk;" href="{:url('home/Listn/ts_insert',['apply_id'=>$vo.apply_id])}">选择号码</a>
{/in}
{in name="vo.status" value="48"}
{notempty name="vo.pay_img"}
<a class=" btn btn-danger" style="color: cornsilk;" href="#">缴费证明已上传</a>
{/notempty}
{/in}
{in name="vo.status" value="48"}
{empty name="vo.pay_img"}
<a class=" btn btn-danger" style="color: cornsilk;" href="{:url('home/Listn/tsjfzm',['apply_id'=>$vo.apply_id])}">上传缴费证明</a>
{/empty}
{/in}
{in name="vo.status" value="32,35,37,38,41,42,43,45,50,53"}
<a class="editcheck btn btn-danger" style="color: cornsilk;" href="javascript:void(0);" onclick="to_edit('{:url('home/Listn/gp_upcheck',['apply_id'=>$vo['apply_id']])}')">补充资料</a>
{/in}
{in name="vo.status" value="18"}
{/in}
{notin name="vo.status" value="3,33,7,10,40,18,26,44,49,32,35,37,38,41,42,43,45,50,52,53,48,14,9"}
{/notin}
</div>
<div class="rightbutton2"></div>
</div>
</div>
</div>
{/foreach}
<tbody>
<tr>
<td colspan="12" align="right">{$page}</td>
</tr>
</tbody>
</div>
</div>
</div>
</div>
<div class="pagecon">
<div id='d2'></div>
</div>
</div>
<!--mode right结束-->
</div>
<script type="text/javascript">
function to_edit(url){
$.ajax({type:"POST",
url:url,
async: false,
success:function (data) {
if (data.code == 1) {
window.location.href = data.url;
}else{
layer.alert(data.msg, {icon: 5}, function (index) {
layer.close(index);
});
}
}
})
}
</script>
{include file="public:footer"/}
</body>
</html>

18
app/home/view/szwjs/user/myact.html

@ -0,0 +1,18 @@
{layout name="user/userlayout" /}
<div class="modeub listborder">
<div class="listleftright modeub modef1">
<div class="listnumber">#</div>
<div class="listbutton">活动名称</div>
<div class="listbutton">申请时间</div>
</div>
</div>
{foreach name="lists" item="vo" key="k"}
<div class="modeub listborder">
<div class="listleftright modeub modef1" onmouseover="addlisted(this)" onmouseout="removelisted(this)">
<div class=" listnumber">{$k+1}</div>
<div class=" listbutton" style="margin-bottom:0px;">{$vo.title}</div>
<div class=" listbutton" style="margin-bottom:0px;">{$vo.create_time|date='Y-m-d',###}</div>
</div>
</div>
{/foreach}
<div class="list-page" align="center">{$page}</div>

169
app/home/view/szwjs/user/mybbs.html

@ -0,0 +1,169 @@
{layout name="user/userlayout" /}
<style>
.modifytag{padding:0px;}
</style>
<form>
<div class="modifytag">
<div class="modeub">
<div class="modifyleft modifyleftactive modifymr" onclick="formchange(this)">我的帖子</div>
<div class="modifyleft modifymr" onclick="formchange(this)">我的回复</div>
<div class="modifyleft modifymr" onclick="formchange(this)">我的私信</div>
</div>
<div class="modifyheader modeac">
<div class="modeub listborder">
<div class="listleftright modeub modef1">
<div class="listnumber">#</div>
<div class="listbutton">帖子名称</div>
<div class="listbutton" style="width:252px;">创建时间</div>
<div class="listbutton" style="width:162px;">操作</div>
</div>
</div>
{foreach name="lists" item="vo" key="k"}
<div class="modeub listborder">
<div class="listleftright modeub modef1">
<div class=" listnumber">{$k+1}</div>
<div class=" listbutton" style="margin-bottom:0px;" onclick="window.location.href='{:url('bbs/index/detail',['id'=>$vo.id])}'">{$vo.name}</div>
<div class=" listbutton" style="margin-bottom:0px;width:252px;">{$vo.create_time|date='Y-m-d',###}</div>
<div class=" listbutton" style="width:162px;">
<div class="buttonright modeub buttonright2">
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc">
<a style="font-size:11px;color:#FFFFFF;line-height:22px;" href="{:url('bbs/index/article',['id'=>$vo['id']])}">编辑</a>
</div>
<div class="rightbutton2"></div>
</div>
</div>
</div>
</div>
{/foreach}
<div class="list-page" align="center">{$page1}</div>
</div>
</div>
</form>
<form style="display:none;">
<div class="modifytag">
<div class="modeub">
<div class="modifyleft modifymr" onclick="formchange(this)">我的帖子</div>
<div class="modifyleft modifyleftactive modifymr" onclick="formchange(this)">我的回复</div>
<div class="modifyleft modifymr" onclick="formchange(this)">我的消息</div>
</div>
<div class="modifyheader modeac">
<div class="modeub listborder">
<div class="listleftright modeub modef1">
<div class="listnumber">#</div>
<div class="listbutton">帖子名称</div>
<div class="listbutton" style="width:162px;">创建时间</div>
<div class="listbutton" style="width:242px;">操作</div>
</div>
</div>
{foreach name="logs" item="vo" key="k"}
<div class="modeub listborder comitem" data-id="{$vo.id}">
<div class="listleftright modeub modef1" style="line-height:40px;">
<div class=" listnumber">{$k+1}</div>
<div class=" listbutton txt" style="margin-bottom:0px;line-height:1.4rem;">{$vo.content|RemoveXSS|htmlspecialchars_decode}</div>
<div class=" listbutton" style="margin-bottom:0px;width:162px;">{$vo.create_time|date='Y-m-d',###}</div>
<div class="listbutton modeub modepc" style="width:242px;padding-top:5px;" >
<div class="buttonright modeub buttonright2">
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc editcom">
<a style="font-size:11px;color:#FFFFFF;line-height:22px;" href="javascript:void(0);" >编辑</a>
</div>
<div class="rightbutton2"></div>
</div>
<div class="buttonright modeub buttonright2" >
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc delcom">
<a style="font-size:11px;color:#FFFFFF;line-height:22px;" href="{:url('delcom',['id'=>$vo['id']])}">删除</a>
</div>
<div class="rightbutton2"></div>
</div>
</div>
</div>
</div>
{/foreach}
<div class="list-page" align="center">{$page2}</div>
</div>
</div>
</form>
<form style="display:none;">
<div class="modifytag">
<div class="modeub">
<div class="modifyleft modifymr" onclick="formchange(this)">我的帖子</div>
<div class="modifyleft modifymr" onclick="formchange(this)">我的回复</div>
<div class="modifyleft modifyleftactive modifymr" onclick="formchange(this)">我的消息</div>
</div>
<div class="modifyheader modeac">
<div class="modeub listborder">
<div class="listleftright modeub modef1">
<div class="listnumber">头像</div>
<div class="listbutton">用户</div>
<div class="listbutton" style="width:242px;">操作</div>
</div>
</div>
{volist name="list" id="vo"}
<div class="modeub listborder " >
<div class="listleftright modeub modef1" style="line-height:40px;" >
<div class=" listnumber"><img src="{$vo.poster|get_imgurl=1}" οnerrοr="javascript:this.src='{$yf_theme_path}public/img/user.png';" style="max-width:40px;"/></div>
<div class=" listbutton txt" style="margin-bottom:0px;">{$vo.nickname}</div>
<div class="listbutton modeub modepc" style="width:242px;padding-top:5px;" >
<div class="buttonright modeub buttonright2">
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc editcom">
<a style="font-size:11px;color:#FFFFFF;line-height:22px;" {if condition="$vo['uid'] eq $uid"}href="{:url('bbs/index/chatroom',['uid'=>$vo['rid']])}"{else}href="{:url('bbs/index/chatroom',['uid'=>$vo['uid'],'type'=>'replay'])}"{/if} >查看</a>
</div>
<div class="rightbutton2"></div>
</div>
</div>
</div>
</div>
{/volist}
<div class="list-page" align="center">{$page3}</div>
</div>
</div>
</form>
<script type="text/javascript">
$(function(){
$(".modifyleft").css("box-sizing","content-box");
$(".delcom").click(function(event){
event.preventDefault();
var url=$(this).find('a').attr("href");
var parent=$(this).parents(".comitem");
layer.confirm('确定要删除该留言吗?',{btn: ['确定', '取消'],title:"提示"}, function(){
$.get(url,function(res){
layer.msg(res.msg);
if(res.code){
parent.remove();
}
});
});
});
$(".editcom").click(function(){
var parent=$(this).parents(".comitem");
var obj=parent.find(".txt");
var txt=obj.html();
var html='<div class="modeub modepc" style="width:300px;"><div class=" modeub" style="width:260px"><div class="inputleft logobackimg"></div><div class="modef1 inputcenter modeub modeac" >';
html+='<textarea class="form-control" rows="1" style="line-height:20px;color:rgba(128,128,128,1);height: 40px;width: 100%;border: none;margin-top: 1px;">'+txt+'</textarea>';
html+='</div><div class="inputright logobackimg"></div></div>';
html+='<div class="buttonright modeub" style="padding-top:5px;"><div class="leftbutton2"></div><div class="modef1 centerbutton2 modeub modeac modepc submit_btn2">更新</div><div class="rightbutton2"></div></div></div>';
obj.html(html);
});
$("body").on('click','.comitem .submit_btn2',function(){
var parent=$(this).parents(".comitem");
var obj=parent.find("textarea");
var box=parent.find(".txt");
var txt=obj.val();
var id=parent.data('id');
var url="{:url('savecom')}";
$.post(url,{id:id,content:txt},function(res){
layer.msg(res.msg);
if(res.code){
box.html(txt);
}
});
});
});
function formchange(t) {
$(t).parents("form").hide();
$(t).parents("form").parent().find("form").eq($(t).parent().children().index(t)).show();
}
</script>

141
app/home/view/szwjs/user/myorg.html

@ -0,0 +1,141 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>我的合作机构 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="detailsbg">
<div class="contenter">
{include file="public:nav" /}
<!--banner开始-->
<div class="detailsbanner"></div>
<!--banner结束-->
<!--body开始-->
<div class="content modeub bodymb">
<!--mode left开始-->
<!-- 控制个人中心选中菜单的样式 -->
<div style="display: none;">{$menu_type=4}</div>
{include file="public:usernav"/}
<!--mode left结束-->
<!--mode right开始-->
<div class="modef1 moderight">
<div class="basictop">
<div class="moderighttag modeub modeac">
<div class="linecolor"></div>
<div class="basictitle modef1">我的合作机构</div>
{notempty name="apply_time"}
<div>申请倒计时:</div>
<div class="" style="margin-right: 20px;">
<div class="yomibox" data="{$apply_time}"></div>
</div>
{/notempty}
</div>
<div class="basiccon">
<div class="modeub listborder">
<div class="listleftright modeub modef1">
<div class=" listnumber">#</div>
<div class=" liststyle">机构类别</div>
<div class="modef1">机构名称</div>
<div class="modef1">申请时间</div>
<div class="liststu modeub modepc">申请状态</div>
<div class="listbutton modeub modepc">待操作</div>
</div>
</div>
{foreach name="lists" item="vo" key="k"}
<div class="modeub listborder">
<div class="listleftright modeub modef1" onmouseover="addlisted(this)" onmouseout="removelisted(this)">
<div class=" listnumber">{$k+1}</div>
<div class=" liststyle">
{if condition="$vo.org_type eq 'whjrfwzx'"/}文化金服服务中心
{elseif condition="$vo.org_type eq 'zbzq'"/}专板(专区)
{elseif condition="$vo.org_type eq 'ssyyzx'"/}省(市)运营中心
{elseif condition="$vo.org_type eq 'tjjg'"/}推荐机构
{elseif condition="$vo.org_type eq 'zcfwjg'"/}驻场服务机构{/if}
</div>
<div class=" liststyle">
{if condition="$vo.org_name eq 1"/}省级文化金服服务中心
{elseif condition="$vo.org_name eq 2"/}市级文化金融服务中心
{elseif condition="$vo.org_name eq 3"/}(行业)专板
{elseif condition="$vo.org_name eq 4"/}(行业)专区
{elseif condition="$vo.org_name eq 5"/}省级运营中心
{elseif condition="$vo.org_name eq 6"/}市级运营中心
{elseif condition="$vo.org_name eq 7"/}推荐机构
{elseif condition="$vo.org_name eq 8"/}驻场服务机构全国
{elseif condition="$vo.org_name eq 9"/}驻场服务机构区域{/if}
</div>
<div class="modef1 listedtitle">{$vo.create_time|date='Y-m-d',###}</div>
<div class="liststu listedstatus modeub modepc">{$vo.descr}</div>
<div class="listbutton modeub modepc">
<div class="buttonright modeub buttonright2">
{in name="vo.status" value="12,13,14"}
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc" onclick="to_edit({$vo.id})">
修改信息
</div>
<div class="rightbutton2"></div>
{/in}
{in name="vo.status" value="4"}
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc" onclick="to_edit({$vo.id})">
上传资料
</div>
<div class="rightbutton2"></div>
{/in}
{in name="vo.status" value="2,11"}
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc" onclick="to_edit({$vo.id})">
上传缴费凭证
</div>
<div class="rightbutton2"></div>
{/in}
{in name="vo.status" value="8"}
<div class="leftbutton2"></div>
<div class="modef1 centerbutton2 modeub modeac modepc" onclick="to_edit({$vo.id})">
上传企业信息
</div>
<div class="rightbutton2"></div>
{/in}
{notin name="vo.status" value="2,4,8,11,12,13,14"}
{/notin}
</div>
</div>
</div>
</div>
{/foreach}
</div>
</div>
<div class="list-page" align="center">{$page}</div>
</div>
<!--mode right结束-->
</div>
</div>
{include file="public:footer"/}
{include file="public:scripts"/}
<script type="text/javascript">
function to_edit(id){
$.ajax({type:"POST",
url:'{:url(\'home/Listn/org_upcheck\')}',
data:{"id":id},
async: false,
success:function (data) {
if (data.code == 1) {
window.location.href = data.url;
}else{
layer.alert(data.msg, {icon: 5}, function (index) {
layer.close(index);
});
}
}
})
}
</script>
</body>
</html>

149
app/home/view/szwjs/user/myscore.html

@ -0,0 +1,149 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>我的托管 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="detailsbg">
<div class="contenter">
{include file="public:nav" /}
<!--banner开始-->
<div class="detailsbanner"></div>
<!--banner结束-->
<!--body开始-->
<div class="content modeub bodymb">
<!--mode left开始-->
<!-- 控制个人中心选中菜单的样式 -->
<div style="display: none;">{$menu_type=3}</div>
{include file="public:usernav"/}
<!--mode left结束-->
<!--mode right开始-->
<div class="modef1 moderight">
<div class="basictop">
<div class="moderighttag modeub modeac">
<div class="linecolor"></div>
<div class="basictitle modef1">我的托管</div>
{notempty name="apply_time"}
<div>申请倒计时:</div>
<div class="" style="margin-right: 20px;">
<div class="yomibox" data="{$apply_time}"></div>
</div>
{/notempty}
</div>
<div class="basiccon">
<div class="modeub listborder">
<div class="listleftright modeub modef1">
<div class=" listnumber">#</div>
<div class=" liststyle">托管类型</div>
<div class="modef1">申请时间</div>
<div class="liststu modeub modepc">申请状态</div>
<div class="liststu modeub modepc">评分状态</div>
<div class="liststu modeub modepc">待操作</div>
</div>
</div>
<div id="databody">
<center>正在加载...</center>
</div>
</div>
</div>
</div>
<!--mode right结束-->
</div>
</div>
{include file="public:footer"/}
{include file="public:scripts"/}
<script type="text/javascript">
$(function(){
$("#databody").on("click",".editcheck", function(event){
event.preventDefault();
var $url=this.href;
$(this).prop("disabled",true);
$.get($url, function(data){
if(data.code==1){
window.location.href=data.url;
} else {
layer.alert(data.msg, {icon: 5}, function(index){
layer.close(index);
window.location.href=data.url;
});
}
$(this).prop("disabled",false);
}, "json");
});
});
//http://dev-hsx.hdsj.tvm.cn/api/capital/getList
function getList(){
$.ajax({type:"get",
url:'/api/capital/getList?apply_type=2',
data:{},
success:function (data) {
if(data && typeof(data)=="string"){
data=JSON.parse(data);
}
var databodyobj=$("#databody");
databodyobj.empty();
if(data.data && data.data.data){
var list=data.data.data;
//console.log('--list-=-',list);
var listsize=list==null?0:list.length;
for(var i=0;i<listsize;i++){
//`apply_type` tinyint(2) unsigned NOT NULL COMMENT '申请类型 1 文化 2艺术品',
var onelist=list[i];
var apply_id=onelist.apply_id;
var apply_type=onelist.apply_type;
var apply_status=onelist.apply_status;
var status=onelist.status;
var status_name=onelist.status_name;
var statusdesc="";
var score=onelist.score;
var scorestr="未评分";
if(score>0)scorestr="已评分";
if(apply_status==0){
statusdesc="待审核";
}else if(apply_status==1){
statusdesc="审核通过";
}else if(apply_status==2){
statusdesc="审核不通过";
}
var descstr1=(status_name||statusdesc);
if(apply_status==1 || apply_status==2){
if(onelist.advice){
descstr1='<div>'+descstr1+'<div style="font-size:12px;color:#808080">'+onelist.advice+'</div></div>';
}
}
var datestr=onelist.create_date;
var html='<div class="modeub listborder">'
+'<div class="listleftright modeub modef1" onmouseover="addlisted(this)" onmouseout="removelisted(this)">'
+'<div class=" listnumber">'+(i+1)+'</div>'
+'<div class=" liststyle">'+(apply_type==1?'文化资产':apply_type==2?'艺术资产':apply_type==3?'古建资产':'')+'</div>'
+'<div class="modef1 listedtitle">'+datestr+'</div>'
+'<div class="liststu listedstatus modeub modepc">'+descstr1+'<span id="pro'+apply_id+'"></span></div>'
+'<div class="liststu listedstatus modeub modepc">'+scorestr+'</div>'
+'<div class="liststu modeub modepc">';
if(status==40){
html+='<div class="buttonright modeub buttonright2"><div class="leftbutton2"></div><div class="modef1 centerbutton2 modeub modeac modepc"><a style="font-size:11px;color:#FFFFFF;line-height:22px;" class="editcheck" href="{:url("listn/tg_procheck")}?apply_id='+apply_id+'">专家评审</a></div><div class="rightbutton2"></div></div>';
}
html+='</div>'
+'</div>'
+'</div>';
databodyobj.append(html);
}
}
}
})
}
getList();
</script>
</body>
</html>

339
app/home/view/szwjs/user/mytg.html

@ -0,0 +1,339 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>我的托管 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="detailsbg">
<div class="contenter">
{include file="public:nav" /}
<!--banner开始-->
<div class="detailsbanner"></div>
<!--banner结束-->
<!--body开始-->
<div class="content modeub bodymb">
<!--mode left开始-->
<!-- 控制个人中心选中菜单的样式 -->
<div style="display: none;">{$menu_type=3}</div>
{include file="public:usernav"/}
<!--mode left结束-->
<!--mode right开始-->
<div class="modef1 moderight">
<div class="basictop">
<div class="moderighttag modeub modeac">
<div class="linecolor"></div>
<div class="basictitle modef1">我的托管</div>
{notempty name="apply_time"}
<div>申请倒计时:</div>
<div class="" style="margin-right: 20px;">
<div class="yomibox" data="{$apply_time}"></div>
</div>
{/notempty}
</div>
<div class="basiccon">
<div class="modeub listborder">
<div class="listleftright modeub modef1">
<div class=" listnumber">#</div>
<div class=" liststyle">托管类型</div>
<div class="modef1">申请时间</div>
<div class="liststu modeub modepc">申请状态</div>
<div class="listbutton modeub modepc">待操作</div>
</div>
</div>
<div id="databody">
<center>正在加载...</center>
</div>
</div>
</div>
</div>
<!--mode right结束-->
</div>
</div>
{include file="public:footer"/}
{include file="public:scripts"/}
<script type="text/javascript">
function to_deit(tg_id){
$.ajax({type:"POST",
url:'{:url(\'home/Listn/tg_upcheck\')}',
data:{"tg_id":tg_id},
async: false,
success:function (data) {
if (data.code == 1) {
window.location.href = data.url;
}else{
layer.alert(data.msg, {icon: 5}, function (index) {
layer.close(index);
});
}
}
})
}
//http://dev-hsx.hdsj.tvm.cn/api/capital/getList
function getList(){
$.ajax({type:"get",
url:'/api/capital/getList',
data:{},
success:function (data) {
if(data && typeof(data)=="string"){
data=JSON.parse(data);
}
//console.log('--data-=-',data);
var databodyobj=$("#databody");
databodyobj.empty();
if(data.data && data.data.data){
var list=data.data.data;
//console.log('--list-=-',list);
var listsize=list==null?0:list.length;
for(var i=0;i<listsize;i++){
//`apply_type` tinyint(2) unsigned NOT NULL COMMENT '申请类型 1 文化 2艺术品',
var onelist=list[i];
var apply_id=onelist.apply_id;
var apply_type=onelist.apply_type;
var apply_status=onelist.apply_status;
var status=onelist.status;
var contract=onelist.contract;
var contract_status=onelist.contract_status;
var status_name=onelist.status_name;
var signurl=onelist.signurl;
var verifyurl=onelist.verifyurl;
var viewpdf=onelist.viewpdf;
var downpdf=onelist.downpdf;
var statusdesc="";
if(apply_status==0){
statusdesc="待审核";
}else if(apply_status==1){
statusdesc="审核通过";
}else if(apply_status==2){
statusdesc="审核不通过";
}
var descstr1=(status_name||statusdesc);
if(apply_status==1 || apply_status==2){
if(onelist.advice){
descstr1='<div>'+descstr1+'<div style="font-size:12px;color:#808080">'+onelist.advice+'</div></div>';
}
}
var datestr=onelist.create_date;
var html='<div class="modeub listborder">'
+'<div class="listleftright modeub modef1" onmouseover="addlisted(this)" onmouseout="removelisted(this)">'
+'<div class=" listnumber">'+(i+1)+'</div>'
+'<div class=" liststyle">'+(apply_type==1?'文化资产':apply_type==2?'艺术资产':apply_type==3?'古建资产':apply_type==4?'乡村振兴':'')+'</div>'
+'<div class="modef1">'+datestr+'</div>'
+'<div class="liststu listedstatus modeub modepc">'+descstr1+'<span id="pro'+apply_id+'"></span></div>'
+'<div class="listbutton modeub modepc">';
if(status==10 && apply_status==2||status==20 && apply_status==2){
}else{
html+='<div class="buttonright modeub buttonright2"><div class="leftbutton2"></div><div class="modef1 centerbutton2 modeub modeac modepc"><a style="font-size:11px;color:#FFFFFF;line-height:22px;" href="{:url("Pviews/tginfo")}?id='+apply_id+'">项目信息</a></div><div class="rightbutton2"></div></div>';
}
if(signurl){
html+='<div class="buttonright modeub buttonright2"><div class="leftbutton2"></div><div class="modef1 centerbutton2 modeub modeac modepc"><a style="font-size:11px;color:#FFFFFF;line-height:22px;" href="'+signurl+'" target="__blank">线上签约</a></div><div class="rightbutton2"></div></div>';
}
if(verifyurl){
html+='<div class="buttonright modeub buttonright2"><div class="leftbutton2"></div><div class="modef1 centerbutton2 modeub modeac modepc"><a style="font-size:11px;color:#FFFFFF;line-height:22px;" href="'+verifyurl+'" target="__blank">实名认证</a></div><div class="rightbutton2"></div></div>';
}
if(downpdf){
html+='<div class="buttonright modeub buttonright2"><div class="leftbutton2"></div><div class="modef1 centerbutton2 modeub modeac modepc"><a style="font-size:11px;color:#FFFFFF;line-height:22px;" href="'+downpdf+'" target="__blank">下载合约</a></div><div class="rightbutton2"></div></div>';
}
//apply_status
var advice=onelist.advice;
if(contract){
html+='<div class="buttonright modeub buttonright2"><div class="leftbutton2"></div>'
+'<div class="modef1 centerbutton2 modeub modeac modepc">'
+'<a style="font-size:11px;color:#FFFFFF;line-height:22px;" target="__blank" href="{:SITE_PATH}'+contract+'">服务协议</a>'
+'</div>'
+'<div class="rightbutton2"></div></div>';
if(contract_status==1){
html+='<div class="buttonright modeub buttonright2"><div class="leftbutton2"></div>'
+'<div class="modef1 centerbutton2 modeub modeac modepc">'
+'上传协议'
+'<input style="left:0px;top:0px;" accept="pdf" onchange="to_contract(this,'+apply_id+')" type="file" class="upfileter file_name">'
+'</div>'
+'<div class="rightbutton2"></div></div>';
}
}
if(status==60 && apply_status==0){
html+='<div class="buttonright modeub buttonright2">';
if(apply_type==3){
html+='<div class="leftbutton2"></div>'
+'<div onclick="show_deit1(this,'+apply_id+')" class="modef1 centerbutton2 modeub modeac modepc">'
+'缴费通知'
+'</div>'
+'<div class="rightbutton2"></div>';
}else{
html+='<div class="leftbutton2"></div>'
+'<div class="modef1 centerbutton2 modeub modeac modepc">'
+'上传缴费凭证'
+'<input style="left:0px;top:0px;" accept="image/jpeg" onchange="to_deit1(this,'+apply_id+')" type="file" class="upfileter file_name">'
+'</div>'
+'<div class="rightbutton2"></div></div>';
}
}else if(status==10 && apply_status==2){
html+='<div class="buttonright modeub buttonright2"><div class="leftbutton2"></div>'
+'<div class="modef1 centerbutton2 modeub modeac modepc">'
+'<a style="font-size:11px;color:#FFFFFF;line-height:22px;" href="/home/pviews/render/content/tgadd.html?id='+apply_id+'">补交材料</a>'
+'</div>'
+'<div class="rightbutton2"></div></div>';
}
html+='</div>'
+'</div>'
+'</div>';
databodyobj.append(html);
}
}
$(".advice").each(function(){
$(this).click(function(event){
event.preventDefault();
var msg=$(this).data("msg");
if(typeof msg!="undefined"){
layer.alert(msg, {icon: 6}, function (index) {
layer.close(index);
});
}
});
});
}
})
}
getList();
function to_contract(fileobj,apply_id){
if(fileobj.length==0)return;
var fname = fileobj.files[0].name;
var filetype = fname.substring(fname.lastIndexOf(".")+1).toUpperCase();
if(filetype!="PDF"){
alert("请上传服务协议!");
return;
}
var proobj=$("#pro"+apply_id);
function processcallback(result){
proobj.text(result.percent);
}
function successcallback(result){
var msg="上传服务协议失败!";
var icon=5;
if(result && result.data){
msg="上传服务协议成功!";
icon=6;
}
layer.msg(msg, {icon:icon});
if(result && result.data){
setTimeout(function(){
window.location.reload();
},2000);
}
proobj.empty();
}
var urlstr="/api/capital/setContract";
uploadfile(apply_id,fileobj,processcallback,successcallback,urlstr)
}
function show_deit1(){
try{
event.stopPropagation();
}catch(ex){}
$('#infodiv1').reveal($(this).data());
}
function gotoinfo(apply_id){
window.location.href='/home/pviews/render/content/tgadd.html?id='+apply_id+'&t='+(new Date().getTime());
}
function to_deit1(fileobj,apply_id){
try{
event.stopPropagation();
}catch(ex){}
if(fileobj.length==0)return;
var fname = fileobj.files[0].name;
var filetype = fname.substring(fname.lastIndexOf(".")+1).toUpperCase();
if(filetype=="JPG" || filetype=="PNG" || filetype=="JPEG"){
}else{
alert("请选择图片上传!");
return;
}
var proobj=$("#pro"+apply_id);
function processcallback(result){
proobj.text(result.percent);
}
function successcallback(result){
var msg="上传缴费凭证失败!";
if(result && result.data){
msg="上传缴费凭证成功!";
}
layer.alert(msg, {icon: 6}, function (index) {
layer.close(index);
});
proobj.empty();
}
var urlstr="/api/capital/setPayImg";
uploadfile(apply_id,fileobj,processcallback,successcallback,urlstr)
}
function uploadfile(apply_id,fileobj,processcallback,successcallback,urlstr){
var xhr = new XMLHttpRequest();
xhr.upload.onprogress = function(_upevent){
if (_upevent.lengthComputable) {
var oksize=_upevent.loaded;
var percentComplete =oksize / _upevent.total;
var bfbint=parseInt(percentComplete*100);
var bfbstr=bfbint+"%";
console.log({"percent":bfbstr,"loaded":_upevent.loaded,"total":_upevent.total});
processcallback({"percent":bfbstr,"loaded":_upevent.loaded,"total":_upevent.total});
}
};
var fileobjs=fileobj.files;
onefileobj=fileobjs[0];
xhr.open("POST",urlstr,true);
var formdata = new FormData();
formdata.append("apply_id",apply_id);
formdata.append("file",onefileobj);
xhr.onload = function(res) {
if(this.status==200){
var _responseText=this.responseText;
var attachjson=JSON.parse(_responseText);
console.log('attachjson',attachjson);
successcallback(attachjson);
}else{
successcallback();
console.error('res',res);
}
};
xhr.send(formdata);
}
</script>
<div id="infodiv1" class="reveal-modal" style="padding-top: 15px;">
<div class="modeub" style="margin-bottom: 20px;">
<!--
<div class="modef1 logintitle modeub modeac">
<div class="linkorangewh logobackimg orangelink"></div>
<div class="registered">文交所账户信息</div>
<div class="linkorangewh logobackimg orangelink"></div>
</div>
-->
<div class="cardregisterpage" style="margin-top:40px;">
<div style="font-size:14px">请在三个工作日内一次性支付托管服务费用</div>
<div style="font-size:12px">深圳文化产权交易所收款账户及开户银行: </div>
<div style="font-size:12px">开户名:深圳文化产权交易所有限公司 </div>
<div style="font-size:12px">开户银行:平安银行深圳南头支行 </div>
<div style="font-size:12px">开户账号:11015844492008</div>
</div>
</div>
<a class="close-reveal-modal" style="top: 14px !important;">&times;</a>
</div>
</body>
</html>

117
app/home/view/szwjs/user/notice.html

@ -0,0 +1,117 @@
{layout name="user/userlayout" /}
{foreach name="lists" item="vo"}
<div class="informslist {if condition='$vo.is_read eq 0'}not_read_email{/if}" data-id="{$vo.notice_id}" style="cursor: pointer">
<div class="modeub modeac">
<div class="emailicon logobackimg {if condition='$vo.is_read eq 1'}emailiconactive{/if}"></div>
<div class="modef1 informslisttitle">{$vo.notice_title}</div>
<div class="informslistime">{$vo.create_time|date='Y·m·d',###}</div>
</div>
<div class="modeub statustop ">
<div class="iconfont icon-jiantou2 butg modeub modepc"></div>
<div class="modef1 iconstatus"></div>
</div>
</div>
<div class="emaildes" style="display: none;margin-bottom: 30px;">
{$vo.notice}
</div>
{/foreach}
<div class="list-page" align="center">{$page}</div>
<script src="__PUBLIC__/jqprint/jquery.jqprint-0.3.js"></script>
<script src="__PUBLIC__/jqprint/jspdf.debug.js"></script>
<script src="__PUBLIC__/jqprint/html2canvas.js"></script>
<script type="text/javascript">
$(".downPDF").css({
'background-image':'url(/public/img/stamp.png)',
'background-position-x':'-320px',
'background-position-y':'250px',
'background-color':'#fff',
'padding':'20px',
'background-repeat':'no-repeat'
});
var userAgent = navigator.userAgent;
//判断是否Firefox浏览器
if (userAgent.indexOf("Firefox") > -1) {
$(".pb_temp .pb_areaname span").css({"margin-top":"-45px","padding-right":"60px"});
$(".pb_temp .pb_code").css({"margin-top":"-8px"});
$(".pb_temp .pb_code span").css({"margin-left":"48%"});
$(".pb_temp .pb_name").css({"margin-top":"-3px"});
$(".pb_temp .pb_name span").css({"margin-left":"36%"});
$(".downPDF_btn").css("cursor","pointer");
}else{
$(".pb_temp .pb_areaname span").css({"margin-top":"-30px","padding-right":"60px"});
$(".pb_temp .pb_code").css({"margin-top":"-8px"});
$(".pb_temp .pb_code span").css({"margin-left":"48%"});
$(".pb_temp .pb_name").css({"margin-top":"0px"});
$(".pb_temp .pb_name span").css({"margin-left":"36%"});
$(".downPDF_btn").css("cursor","pointer");
}
$(function(){
$(".downPDF_btn").on("click",function(){
var obj = $(this).prev()[0];
var pdfname = $(this).parent(".emaildes").prev().find(".informslisttitle").text();
html2canvas(obj,{
onrendered: function(canvas) {
//通过html2canvas将html渲染成canvas,然后获取图片数据
var imgData = canvas.toDataURL('image/jpeg');
//初始化pdf,设置相应格式
var doc = new jsPDF("p", "mm", "a4");
//这里设置的是a4纸张尺寸
doc.addImage(imgData, 'JPEG', 0, 0,(canvas.width/4), (canvas.height/4));
//输出保存命名为content的pdf
doc.save(pdfname+'.pdf');
}
});
});
$(".informslist").click(function(){
$(this).find(".emailicon").addClass("emailiconactive");
$(this).next(".emaildes").slideToggle(300);
$(this).find(".iconfont").toggleClass("icon-jiantou2 icon-jiantou2-copy")
if($(this).attr("class").indexOf("not_read_email")>0){
$.ajax({
type: "POST",
url: '{:url(\'home/Center/notice_r\')}',
data: {"notice_id":$(this).attr("data-id")},
async: false,
success: function (data) {
}
})
}
})
});
function to_tgdeit(tg_id){
$.ajax({type:"POST",
url:'{:url(\'home/Listn/tg_upcheck\')}',
data:{"tg_id":tg_id},
async: false,
success:function (data) {
if (data.code == 1) {
window.location.href = data.url;
}else{
layer.alert(data.msg, {icon: 5}, function (index) {
layer.close(index);
});
}
}
})
}
function to_edit(id){
$.ajax({type:"POST",
url:'{:url(\'home/Listn/org_upcheck\')}',
data:{"id":id},
async: false,
success:function (data) {
if (data.code == 1) {
window.location.href = data.url;
}else{
layer.alert(data.msg, {icon: 5}, function (index) {
layer.close(index);
});
}
}
})
}
</script>

158
app/home/view/szwjs/user/notice0715.html

@ -0,0 +1,158 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>系统通知 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="detailsbg">
<div class="contenter">
{include file="public:nav" /}
<!--banner开始-->
<div class="detailsbanner"></div>
<!--banner结束-->
<!--body开始-->
<div class="content modeub bodymb">
<!--mode left开始-->
<!-- 控制个人中心选中菜单的样式 -->
<div style="display: none;">{$menu_type=6}</div>
{include file="public:usernav"/}
<!--mode left结束-->
<!--mode right开始-->
<div class="modef1 moderight">
<div class="basictop">
<div class="moderighttag modeub modeac">
<div class="linecolor"></div>
<div class="basictitle">系统通知</div>
</div>
<div class="basiccon">
{foreach name="lists" item="vo"}
<div class="informslist {if condition='$vo.is_read eq 0'}not_read_email{/if}" data-id="{$vo.notice_id}" style="cursor: pointer">
<div class="modeub modeac">
<div class="emailicon logobackimg {if condition='$vo.is_read eq 1'}emailiconactive{/if}"></div>
<div class="modef1 informslisttitle">{$vo.notice_title}</div>
<div class="informslistime">{$vo.create_time|date='Y·m·d',###}</div>
</div>
<div class="modeub statustop ">
<div class="iconfont icon-jiantou2 butg modeub modepc"></div>
<div class="modef1 iconstatus"></div>
</div>
</div>
<div class="emaildes" style="display: none;margin-bottom: 30px;">
{$vo.notice}
</div>
{/foreach}
</div>
</div>
<div class="list-page" align="center">{$page}</div>
</div>
<!--mode right结束-->
</div>
<!--body结束-->
{include file="public:footer"/}
</div>
<script src="__PUBLIC__/jqprint/jquery.jqprint-0.3.js"></script>
<script src="__PUBLIC__/jqprint/jspdf.debug.js"></script>
<script src="__PUBLIC__/jqprint/html2canvas.js"></script>
<script type="text/javascript">
$(".downPDF").css({
'background-image':'url(/public/img/stamp.png)',
'background-position-x':'-320px',
'background-position-y':'250px',
'background-color':'#fff',
'padding':'20px',
'background-repeat':'no-repeat'
});
var userAgent = navigator.userAgent;
//判断是否Firefox浏览器
if (userAgent.indexOf("Firefox") > -1) {
$(".pb_temp .pb_areaname span").css({"margin-top":"-45px","padding-right":"60px"});
$(".pb_temp .pb_code").css({"margin-top":"-8px"});
$(".pb_temp .pb_code span").css({"margin-left":"48%"});
$(".pb_temp .pb_name").css({"margin-top":"-3px"});
$(".pb_temp .pb_name span").css({"margin-left":"36%"});
$(".downPDF_btn").css("cursor","pointer");
}else{
$(".pb_temp .pb_areaname span").css({"margin-top":"-30px","padding-right":"60px"});
$(".pb_temp .pb_code").css({"margin-top":"-8px"});
$(".pb_temp .pb_code span").css({"margin-left":"48%"});
$(".pb_temp .pb_name").css({"margin-top":"0px"});
$(".pb_temp .pb_name span").css({"margin-left":"36%"});
$(".downPDF_btn").css("cursor","pointer");
}
$(function(){
$(".downPDF_btn").on("click",function(){
var obj = $(this).prev()[0];
var pdfname = $(this).parent(".emaildes").prev().find(".informslisttitle").text();
html2canvas(obj,{
onrendered: function(canvas) {
//通过html2canvas将html渲染成canvas,然后获取图片数据
var imgData = canvas.toDataURL('image/jpeg');
//初始化pdf,设置相应格式
var doc = new jsPDF("p", "mm", "a4");
//这里设置的是a4纸张尺寸
doc.addImage(imgData, 'JPEG', 0, 0,(canvas.width/4), (canvas.height/4));
//输出保存命名为content的pdf
doc.save(pdfname+'.pdf');
}
});
});
$(".informslist").click(function(){
$(this).find(".emailicon").addClass("emailiconactive");
$(this).next(".emaildes").slideToggle(300);
$(this).find(".iconfont").toggleClass("icon-jiantou2 icon-jiantou2-copy")
if($(this).attr("class").indexOf("not_read_email")>0){
$.ajax({
type: "POST",
url: '{:url(\'home/Center/notice_r\')}',
data: {"notice_id":$(this).attr("data-id")},
async: false,
success: function (data) {
}
})
}
})
});
function to_tgdeit(tg_id){
$.ajax({type:"POST",
url:'{:url(\'home/Listn/tg_upcheck\')}',
data:{"tg_id":tg_id},
async: false,
success:function (data) {
if (data.code == 1) {
window.location.href = data.url;
}else{
layer.alert(data.msg, {icon: 5}, function (index) {
layer.close(index);
});
}
}
})
}
function to_edit(id){
$.ajax({type:"POST",
url:'{:url(\'home/Listn/org_upcheck\')}',
data:{"id":id},
async: false,
success:function (data) {
if (data.code == 1) {
window.location.href = data.url;
}else{
layer.alert(data.msg, {icon: 5}, function (index) {
layer.close(index);
});
}
}
})
}
</script>
</body>
</html>

68
app/home/view/szwjs/user/notice_r.html

@ -0,0 +1,68 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>系统通知 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="body-white">
<div class="wrap">
{include file="public:nav" /}
<div id="main-cmf">
<div class="breadcrumb-wrapper">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<h2 class="title">{:lang('personal center')}</h2>
</div>
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<div class="breadcrumbs pull-right">
<ul>
<li>{:lang('current location')}:</li>
<li><a href="__ROOT__/">{:lang('home')}</a></li>
<li><a href="{:url('home/Center/index')}">{:lang('personal center')}</a></li>
<li>系统通知</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
{include file="public:usernav"/}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
<div id="center-content">
<div class="col-xs-12 h2_title">
<h2>系统通知</h2>
</div>
<div class="notice-item">
<div class="notify-content">
<div class="notice-title" style="padding-bottom: 10px;">{$list.notice_title}</div>
<div>{$list.notice}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{include file="public:footer"/}
{include file="public:scripts"/}
</body>
<script src="__PUBLIC__/jqprint/jquery.jqprint-0.3.js" type="text/javascript"></script>
<script>
function downPDF(){
$("#downPDF").jqprint();
}
</script>
</html>

88
app/home/view/szwjs/user/pro.html

@ -0,0 +1,88 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>专家评审 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="body-white">
<div class="wrap">
{include file="public:nav" /}
<div id="main-cmf">
<div class="breadcrumb-wrapper">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<h2 class="title">{:lang('personal center')}</h2>
</div>
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<div class="breadcrumbs pull-right">
<ul>
<li>{:lang('current location')}:</li>
<li><a href="__ROOT__/">{:lang('home')}</a></li>
<li><a href="{:url('home/Center/index')}">{:lang('personal center')}</a></li>
<li>专家评审</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
{include file="public:usernav"/}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
<div id="center-content">
<div class="col-xs-12 h2_title">
<h2>专家评审</h2>
</div>
<div class="row">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th>登记挂牌类型</th>
<th>登记挂牌名称</th>
<th>登记挂牌状态</th>
<th>待操作</th>
</tr>
</thead>
<tbody>
{foreach name="lists" item="vo" key="k"}
<tr>
<td>{$k+1}</td>
{switch name="vo.apply_type"}
{case value="2"}<td>{if condition="$vo['k_type'] eq 1"}项目挂牌{else/}非国有类{/if}</td><td>{$vo.p_name}</td>{/case}
{case value="3"}<td>{if condition="$vo['k_type'] eq 1"}人才挂牌{else/}其他{/if}</td><td>{$vo.t_apply_username}</td>{/case}
{default /}<td>{if condition="$vo['k_type'] eq 1"}企业挂牌{else/}国有类{/if}</td><td>{$vo.c_name}</td>
{/switch}
<td>{$vo.descr}</td>
<td>
<a class="editcheck btn btn-danger" href="{:url('home/Listn/gp_procheck',['apply_id'=>$vo.apply_id])}">专家评审</a>
</td>
</tr>
{/foreach}
<tr>
<td colspan="12" align="right">{$page}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{include file="public:footer"/}
{include file="public:scripts"/}
</body>
</html>

63
app/home/view/szwjs/user/pwd_reset.html

@ -0,0 +1,63 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>密码重置 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="body-white">
<div class="wrap">
{include file="public:nav" /}
<div id="main-cmf">
<div class="content">
<div class="container">
<div class="row login">
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-10 col-lg-offset-4 col-md-offset-4 col-sm-offset-3 col-xs-offset-1 animate_afr login_wrap">
<h2 class="text-center"><i class="fa fa-question-circle" ></i> 密码重置</h2>
<form id="login" class="form-light verify-ajax-form" action="{:url('home/Login/runpwd_reset')}" method="post">
<input type="hidden" name="code" value="{$code}">
<input type="hidden" name="member_list_id" value="{$member_list_id}">
<input type="hidden" name="type" value="{$type}">
<div>
<input type="password" maxlength="20" id="input_password" name="password" class="form-control h28" placeholder="密码(5-20位)" required>
</div>
<div>
<input type="password" maxlength="20" id="input_repassword" name="repassword" class="form-control h28" placeholder="重复密码(5-20位)" required>
</div>
<div class="row">
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
<input type="text" class="form-control h28" maxlength="5" placeholder="" id="verify" style="height:40px;" name="verify" required>
</div>
<div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
<img class="verify_img" id="verify_img" src="{:url('home/Login/verify_reset')}" onClick="this.src='{:url('home/Login/verify_reset')}'+'?'+Math.random()" style="cursor: pointer;width:100%;border: 1px solid #d5d5d5;height:40px;" title="点击获取">
</div>
</div>
<div>
<button class="btn btn-primary col-lg-12 col-md-12 col-sm-12 col-xs-12 login-sumit">确定</button>
</div>
<div class="register-forget">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<a href="{:url('home/Login/index')}">立即登录</a>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<a href="{:url('home/Register/index')}">注册账号</a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
{include file="public:footer"/}
{include file="public:scripts"/}
</body>
</html>

167
app/home/view/szwjs/user/register.html

@ -0,0 +1,167 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>注册 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="body-white">
{include file="public:nav" /}
<div class="wrap">
<link href="__PUBLIC__/ppy/css/fileinput.css" media="all" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/ppy/js/fileinput.js" type="text/javascript"></script>
<script src="__PUBLIC__/ppy/js/fileinput_locale_zh.js" type="text/javascript"></script>
<div id="main-cmf">
<div class="content">
<div class="container">
<div class="row register">
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-10 col-lg-offset-4 col-md-offset-4 col-sm-offset-3 col-xs-offset-1 animate_afr register_wrap">
<h2 class="text-center"><i class="fa fa-user"></i> 用户注册</h2>
<div class="widget tabs">
<div id="horizontal-tabs">
<ul class="tabs">
<!--<li id="tab1" class="current">邮箱注册</li>-->
<li id="tab1" style="width:100%;">手机注册</li>
</ul>
<div class="contents">
<!--<div class="tabscontent" id="content1" style="display: block;">
<form class="form-light verify-ajax-form" id="reg" action="{:url('home/Register/runregister')}" method="post">
<div>
<input style="display:none;" type="text" maxlength="16" name="member_list_nickname" placeholder="昵称" class="form-control h28">
</div>
<div>
<input type="text" name="member_list_email" placeholder="邮箱" class="form-control h28" required>
</div>
<div>
<input type="password" maxlength="20" name="password" placeholder="密码(5-20位)" class="form-control h28" required>
</div>
<div>
<input type="password" maxlength="20" name="repassword" placeholder="重复密码(5-20位)" class="form-control h28" required>
</div>
<div class="row">
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
<input type="text" maxlength="5" class="form-control" placeholder="" id="verify" style="height:40px;" name="verify" required>
</div>
<div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
<img class="verify_img" id="verify_img" src="{:url('home/Register/verify')}" onClick="this.src='{:url('home/Register/verify')}'+'?'+Math.random()" style="cursor: pointer;width:100%;border: 1px solid #d5d5d5;height:40px;border-radius: 3px;" title="点击获取">
</div>
</div>
<div>
<button class="btn btn-primary col-lg-12 col-md-12 col-sm-12 col-xs-12 register-sumit" type="submit" data-wait="1500">确定注册</button></div>
<div class="register-forget">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
已有账号? <a href="{:url('home/Login/index')}">点击登录</a>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<a href="{:url('home/Login/index')}">第三方登录注册</a>
</div>
</div>
</div>
</form>
</div>-->
<div class="tabscontent" id="content1">
<form class="form-horizontal ajax-form-file2" name="form0" method="post" action="{:url('home/Register/businessCard')}">
<input name="file_one" id="file_one" type="file" class="file h28 isjpg" data-show-preview="false" data-show-upload="false" data-show-caption="true" data-allowed-file-extensions='["JPG"]'>
<button class="btn btn-primary col-lg-12 col-md-12 col-sm-12 col-xs-12 register-sumit" type="submit" data-wait="1500">上传</button>
</form>
<form class="form-light verify-ajax-form" id="reg" action="{:url('home/Register/runregister')}" method="post">
<div>
<input style="display:none;" type="text" maxlength="16" name="member_list_nickname" placeholder="昵称" class="form-control h28">
</div>
<div>
<input type="number" maxlength="11" pattern="^1[3-9]\d{9}$" name="member_list_tel" placeholder="手机号" class="form-control h28" required>
</div>
<div>
<input type="password" maxlength="20" name="password" placeholder="密码(5-20位)" class="form-control h28" required>
</div>
<div>
<input type="password" maxlength="20" name="repassword" placeholder="重复密码(5-20位)" class="form-control h28" required>
</div>
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
<input type="text" class="form-control h28" placeholder="6位验证码(120s有效)" id="verify-m" style="height:40px;" name="verify" required>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 nopadding-left">
<span class="btn btn-primary red-btn verify-code">获取验证码</span>
</div>
</div>
<div>
<button class="btn btn-primary col-lg-12 col-md-12 col-sm-12 col-xs-12 register-sumit" type="submit" data-wait="1500">确定注册</button>
</div>
<div class="register-forget">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
已有账号? <a href="{:url('home/Login/index')}">点击登录</a>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<a href="{:url('home/Login/index')}">第三方登录注册</a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{include file="public:footer"/}
{include file="public:scripts"/}
<script>
$('.verify-code').click(function(){
var account = $("input[name='member_list_tel']"),obj=$(this);
if(!account.val()){
account.focus();return false;
}else if(!(/^1[3456789]\d{9}$/.test(account.val()))){
layer.alert('手机号格式不正确', {icon: 5}, function (index) {
layer.close(index);
account.val('').focus();
});
return false;
}
var url="{:url('home/Register/sendsms')}";
$.ajax({
type:"POST",
url:url,
dataType:"json",
data:{account:account.val()},
beforeSend:function()
{
obj.attr("disabled","disabled");
},
success:function(data)
{
if(data.code==1){
var numts=120;
obj.html("再获取:"+numts);
var codets=setInterval(function(){
numts--;
obj.html("再获取:"+numts);
if(numts==0)
{
obj.html("获取验证码");
clearInterval(codets);
obj.removeAttr("disabled");
}
},1000);
}else{
layer.msg(data.msg,{icon: 5});
obj.removeAttr("disabled");
}
}
});
});
</script>
</body>
</html>

52
app/home/view/szwjs/user/userlayout.html

@ -0,0 +1,52 @@
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>{$current.title} {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
{switch name="lang"}
{case value="zh-cn"}{load href="__PUBLIC__/shearphoto/css/ShearPhoto_f_zh-cn.css" /}{/case}
{case value="en-us"}{load href="__PUBLIC__/shearphoto/css/ShearPhoto_f_en-us.css" /}{/case}
{default /}{load href="__PUBLIC__/shearphoto/css/ShearPhoto_f_zh-cn.css" /}
{/switch}
<script type="text/javascript" src="{$yf_theme_path}public/js/widget/count.js"></script>
</head>
<body class="detailsbg">
<div class="contenter">
{include file="public:nav" /}
<div class="detailsbanner"></div>
<!--banner结束-->
<!--body开始-->
<div class="content modeub bodymb">
<!-- 控制个人中心选中菜单的样式 -->
{include file="user/usernav" /}
<!--mode right开始-->
<div class="modef1 moderight">
<div class="basictop">
<div class="moderighttag modeub modeac">
<div class="linecolor"></div>
<div class="basictitle modef1">{$current.title}</div>
{notempty name="apply_time"}
<div>申请倒计时:</div>
<div class="" style="margin-right: 20px;">
<div class="yomibox" data="{$apply_time}"></div>
</div>
{/notempty}
</div>
<div class="basiccon">
{__CONTENT__}
</div>
</div>
<div class="pagecon">
<div id='d2'></div>
</div>
</div>
<!--mode right结束-->
</div>
{include file="public:footer"/}
</body>
</html>

26
app/home/view/szwjs/user/usernav.html

@ -0,0 +1,26 @@
<div class="modeleft ">
<div class="modelefttop modeub modever modeac modepc">
<div class="lefttutitle">个人中心</div>
<div class="leften">Ersonal Center</div>
</div>
<div class="modeleftmenu center_menu">
{foreach name="menus" id="vo" key="key"}
<div class="leftmenu modeub modeac modepc button bubble-right {if condition="strpos($vo['jump'],'/'.strtolower(ACTION_NAME).'.html')"}modeleftmenuactive{/if}">
<div class="modef1 jiesh" onclick="javascript:window.location.href='{:url($vo.jump,'',false)}'">{$vo.title}{if condition="$key eq 6"}(<span style="color: red;">{$notice_unread}</span>){/if}</div>
<div class="icon-huiseweixuanzhong iconfont modekuai"></div>
</div>
{/foreach}
</div>
</div>
<script type="text/javascript">
$(function(){
$(".center_menu .leftmenu").mouseout(function(){
if($(this).siblings('.modeleftmenuactive').length==1){
$(this).removeClass("modeleftmenuactive");
}
});
$(".center_menu .leftmenu").mousemove(function(){
$(this).addClass("modeleftmenuactive");
})
});
</script>
Loading…
Cancel
Save