@ -0,0 +1,49 @@ |
|||
{layout name="layout" /} |
|||
<div class="sec-bread"> |
|||
<div class="content"> |
|||
<ul class="bread-crumb"> |
|||
<li><a href="{:url('home/index/index')}">首页</a></li> |
|||
<li><a href="{:url('index/index')}">{$type}</a></li> |
|||
<li class="active"><a href="{:url('index/project_detail',['id'=>$id])}">{$detail.name}</a></li> |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
<div class="sec-detail"> |
|||
<div class="content"> |
|||
<div class="detail"> |
|||
<div class="detail-head clearfix"> |
|||
<div class="media"> |
|||
<div class="img-wrapper"> |
|||
{if condition="$detail['logo']"} |
|||
<img src="{$detail.logo}" alt="{$detail.name}"> |
|||
{else} |
|||
<img src="{$yf_theme_path}assets/img/default.png" alt=""> |
|||
{/if} |
|||
</div> |
|||
</div> |
|||
<div class="media-content"> |
|||
<div class="content-content"> |
|||
<h2 class="title">{$detail.name}</h2> |
|||
<div class="tags"> |
|||
{if condition="isset($detail['industry']['name'])"}<a href="#">{$detail.industry.name}</a>{/if} |
|||
{if condition="isset($detail['investment']['name'])"}<a href="#">{$detail.investment.name}</a>{/if} |
|||
{if condition="isset($detail['region']['name'])"}<a href="#">{$detail.region.name}</a>{/if} |
|||
</div> |
|||
<div class="jifen">信誉积分:<span>{$detail.reputation}</span></div> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="detail-content"> |
|||
<div class="cats-title"><span>项目介绍</span></div> |
|||
<div class="detail-info">{$detail.project_introduction}</div> |
|||
<div class="cats-title"><span>商业模式</span></div> |
|||
<div class="detail-info">{$detail.major_product_introduction}</div> |
|||
<div class="cats-title"><span>核心团队</span></div> |
|||
<div class="detail-info">{$detail.core_team_introduction}</div> |
|||
<div class="cats-title"><span>公司股权融资经历</span></div> |
|||
<div class="detail-info">{$detail.financing_introduction}</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
@ -0,0 +1,307 @@ |
|||
{layout name="layout" /} |
|||
<style> |
|||
#propage{padding: 15px 20px;text-align: left;color: #ccc;text-align:center;} |
|||
#propage a{display: inline-block;color:#666;display: inline-block;line-height:1.4em;padding:6px 12px;border: 1px solid #ddd; margin: 0 2px;border-radius: 4px;vertical-align: middle;} |
|||
#propage a:hover{text-decoration: none;border: 1px solid #d43f3a;} |
|||
#propage span.current{display: inline-block;line-height:1.4em;padding:6px 12px;margin: 0 2px;color: #fff;background-color:#d43f3a; border: 1px solid #d43f3a;border-radius: 4px;vertical-align: middle;} |
|||
#propage span.disabled{ display: inline-block;line-height:1.4em;padding:6px 12px;margin: 0 2px; color: #bfbfbf;background: #f2f2f2;border: 1px solid #bfbfbf;border-radius: 4px;vertical-align: middle;} |
|||
</style> |
|||
<div class="projectWraper" > |
|||
<div class="retrieve-wrapper"> |
|||
<div class="content"> |
|||
{if condition="count($profilters)"} |
|||
{foreach name="profilters" item="vo"} |
|||
<input type="hidden" id="{$vo.key}" value="" /> |
|||
<div id="{$vo.key}" class="ret-item ret-select"> |
|||
<div class="left">{$vo.title}:</div> |
|||
<div class="right"> |
|||
<a href="javascript:void(0);" data-id="" class="subitem active">不限</a> |
|||
{if condition="count($vo['filters'])"} |
|||
{foreach name="vo['filters']" item="jo"} |
|||
<a href="javascript:void(0);" data-id="{$jo.id}" class="subitem">{$jo.name}</a> |
|||
{/foreach} |
|||
{/if} |
|||
<div class="more" style="display: block;"><i class="icon-arrows-down"></i></div> |
|||
</div> |
|||
</div> |
|||
{/foreach} |
|||
{/if} |
|||
</div> |
|||
</div> |
|||
<div class="paixu-wrapper"> |
|||
<div class="content"> |
|||
<div class="paixu clearfix"> |
|||
<div class="paixu-item paixu-select px-update active up" data-val=""> |
|||
<div class="word">更新</div> |
|||
<div class="arrow"><i class="icon-arrows-down"></i></div> |
|||
</div> |
|||
<div class="paixu-item paixu-select px-jifen" data-val="reputation"> |
|||
<div class="word">按照信用积分排序</div> |
|||
<div class="arrow"><i class="icon-arrows-down"></i></div> |
|||
</div> |
|||
<input type="hidden" id="prosort" value="" /> |
|||
<div class="paixu-item px-search"> |
|||
<div class="search-wrapper"> |
|||
<form id="seaForm" class="search-form" onsubmit="return false;"> |
|||
<i class="icon-search"></i> |
|||
{:token('__cult__')} |
|||
<input class="search-input" type="text" placeholder="搜索"> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="project-wrapper"> |
|||
<div class="content"> |
|||
<div class="project clearfix"> |
|||
|
|||
</div> |
|||
<div class="col-xs-12 text-center list-page" align="center"> |
|||
<ul id="propage" class="pagination"> |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<script type="text/javascript" src="{$yf_theme_path}public/js/jquery.page.js"></script> |
|||
<script> |
|||
//项目分类 |
|||
$(function(){ |
|||
// 检索收缩箭头 |
|||
$(".ret-select .more").click(function(event) { |
|||
event.preventDefault(); |
|||
var has=$(this).hasClass('open'); |
|||
var parent=$(this).parents('.ret-item'); |
|||
console.log(has); |
|||
if(has===true){ |
|||
$(this).removeClass('open'); |
|||
parent.animate({'max-height':'26px'},500); |
|||
}else{ |
|||
$(this).addClass('open'); |
|||
parent.animate({'max-height':'200px'},500); |
|||
} |
|||
}) |
|||
|
|||
$(".ret-item").each(function () { |
|||
let $this = $(this) |
|||
let $right = $this.find('.right') |
|||
let $more = $this.find('.more') |
|||
let height = $right.height() |
|||
console.log(height); |
|||
if (height > 26) { |
|||
$more.show(); |
|||
$more.trigger('click'); |
|||
} |
|||
}) |
|||
$("body").on('click','.subitem',function(){ |
|||
var parent=$(this).parents('.ret-select'); |
|||
var id=parent.attr('id'); |
|||
var val=$(this).data('id'); |
|||
var last=$("#"+id).val(); |
|||
$("#"+id).val(val); |
|||
if(last!=val){ |
|||
parent.find('.active').removeClass('active'); |
|||
$(this).addClass('active'); |
|||
fillProject(1,1); |
|||
} |
|||
}); |
|||
var prolist=[]; |
|||
var userscore="{$userscore}"; |
|||
var profile={$profile}; |
|||
//检查积分 |
|||
$("body").on('click','.project-item',function(){ |
|||
event.preventDefault(); |
|||
var index=$(this).index(); |
|||
if(userscore==''){ |
|||
layer.msg('请先登录'); |
|||
setTimeout(function(){ |
|||
window.location.href="{:url('culture/common/login')}"; |
|||
},2000); |
|||
return false; |
|||
} |
|||
if(profile==false){ |
|||
layer.msg('您的资料未完善,无法查看项目信息,请先完善资料'); |
|||
return false; |
|||
} |
|||
layer.load(1, {shade: [0.1,'#fff']}); |
|||
userscore=parseInt(userscore); |
|||
if(typeof prolist[index]!='undefined'){ |
|||
var current=prolist[index]; |
|||
console.log(current); |
|||
var id=current.id; |
|||
var score=current.reputation; |
|||
var url="{:url('checkScore')}"; |
|||
var jump="__URL__/detail/id/"+id+".html"; |
|||
if(score>userscore){ |
|||
layer.closeAll(); |
|||
layer.msg('你的信誉积分不足,请补全认证资料增加信誉积分才可以查看'); |
|||
return false; |
|||
}else{ |
|||
window.location.href=jump; |
|||
} |
|||
} |
|||
}); |
|||
|
|||
layer.load(1, {shade: [0.1,'#fff']}); |
|||
function projects(list){ |
|||
var html=''; |
|||
console.log(list); |
|||
prolist=list; |
|||
list.forEach(function(item){ |
|||
html+='<div class="project-item clearfix">'; |
|||
html+='<div class="project-media">'; |
|||
var jump="javascript:void(0);"; |
|||
html+='<div class="top-padding"></div>'; |
|||
html+='<div class="img-box">'; |
|||
html+='<img src="'+item['logo']+'" onerror="this.src=\'{$yf_theme_path}assets/img/default.png\'">'; |
|||
html+='</div></div>'; |
|||
html+='<div class="project-content"><h2 class="project-title">'+item['name']+'</h2>'; |
|||
|
|||
html+='<div class="cats">'+item['subname']+'</div>'; |
|||
html+='<div class="project-info">'+item['major_product_introduction']+'</div>'; |
|||
html+='<div class="jifen"> 信誉积分:<span>'+item['reputation']+'</span></div>'; |
|||
html+='<div class="project-foot"><div class="project-time">'+item['date']+'</div></div></div></div>'; |
|||
|
|||
}); |
|||
return html; |
|||
} |
|||
function propage(meta){ |
|||
var per_page=meta['per_page']; |
|||
var total=parseInt(meta['total']); |
|||
var current_page=parseInt(meta['current_page']); |
|||
var pages=Math.ceil(total/per_page); |
|||
console.log(pages); |
|||
|
|||
var total=parseInt(meta['total']); |
|||
var html='<div id="retpage" class="ret-item"><div class="left">已选条件:</div><div class="right">'; |
|||
html+='<div class="num-wrapper">共<span class="num">'+total+'</span>个机构满足条件</div></div></div>'; |
|||
$("#retpage").remove(); |
|||
$(".retrieve-wrapper .content").append(html); |
|||
var lastpage=parseInt(meta['last_page']); |
|||
$("#propage").remove(); |
|||
$(".list-page").append('<ul id="propage" class="pagination"></ul>'); |
|||
$("#propage").createPage({ |
|||
pageCount:lastpage, |
|||
current:current_page, |
|||
backFn:function(p){ |
|||
console.log("page:"+p); |
|||
fillProject(p,0); |
|||
} |
|||
}); |
|||
return html; |
|||
} |
|||
|
|||
var prourl="{:url('ajaxprojects')}"; |
|||
function fillProject(curpage,showpage){ |
|||
layer.load(1, {shade: [0.1,'#fff']}); |
|||
var keyword=$(".search-input").val(); |
|||
var sort=$("#prosort").val(); |
|||
var region=$("#region").val(); |
|||
var investment=$("#investment").val(); |
|||
var industry=$("#industry").val(); |
|||
|
|||
var query="page="+curpage; |
|||
if(keyword){ |
|||
query+="&keyword="+keyword; |
|||
} |
|||
if(sort){ |
|||
query+="&sort="+sort; |
|||
} |
|||
if(industry){ |
|||
query+="&industry_id="+industry; |
|||
} |
|||
if(investment){ |
|||
query+="&investment_id="+investment; |
|||
} |
|||
if(region){ |
|||
query+="®ion_id="+region; |
|||
} |
|||
|
|||
var url=prourl+"?"+query; |
|||
$(this).attr('disabled',true); |
|||
console.log(url); |
|||
$.get(url,function(res){ |
|||
$(this).attr('disabled',false); |
|||
res=JSON.parse(res); |
|||
layer.closeAll(); |
|||
|
|||
$("input[name='__cult__']").val(res.token); |
|||
console.log("token",res.token); |
|||
if(typeof res =='object'){ |
|||
var data=res.projects; |
|||
data=JSON.parse(data); |
|||
if(typeof data =='object'&&typeof data['data']!='undefined'){ |
|||
var meta=data['meta']; |
|||
var list=data['data']; |
|||
if(showpage){ |
|||
$("#propage").html(""); |
|||
propage(meta); |
|||
} |
|||
var html=projects(list); |
|||
$(".project").html(html); |
|||
} |
|||
} |
|||
}); |
|||
} |
|||
var curpage=1; |
|||
function searchProject(){ |
|||
var keyword=$(".search-input").val(); |
|||
if(typeof keyword=='undefined'||keyword==null||keyword==''){ |
|||
layer.msg('请输入搜索关键字'); |
|||
return false; |
|||
} |
|||
fillProject(1,1); |
|||
} |
|||
$(".icon-search").click(function(event){ |
|||
event.preventDefault(); |
|||
searchProject(); |
|||
}) |
|||
$("#seaForm .search-input").keyup(function(event){ |
|||
event.preventDefault(); |
|||
event.stopPropagation(); |
|||
if(event.keyCode ==13){ |
|||
searchProject(); |
|||
} |
|||
return false; |
|||
}) |
|||
|
|||
$(".paixu-select").each(function(){ |
|||
$(this).click(function(){ |
|||
var has=$(this).hasClass('active'); |
|||
if(!has){ |
|||
$(".paixu-item").removeClass('active').removeClass('up'); |
|||
$(this).addClass('active').addClass('up'); |
|||
var key=$(this).data('val'); |
|||
$("#prosort").val(key); |
|||
fillProject(1,0); |
|||
} |
|||
}); |
|||
}); |
|||
//项目列表 |
|||
$.get(prourl,function(res){ |
|||
res=JSON.parse(res); |
|||
layer.closeAll(); |
|||
|
|||
$("input[name='__cult__']").val(res.token); |
|||
console.log("token",res.token); |
|||
if(typeof res =='object'){ |
|||
var data=res.projects; |
|||
data=JSON.parse(data); |
|||
console.log(data); |
|||
if(typeof data =='object'&&typeof data['data']!='undefined'){ |
|||
|
|||
var meta=data['meta']; |
|||
var list=data['data']; |
|||
var html=projects(list); |
|||
$(".project").html(html); |
|||
|
|||
var html=propage(meta); |
|||
//$("#propage").html(html); |
|||
$(".projectWraper").show(); |
|||
} |
|||
} |
|||
}); |
|||
|
|||
}); |
|||
</script> |
|||
@ -0,0 +1,180 @@ |
|||
{layout name="layout" /} |
|||
<style> |
|||
.user-detail .error{padding-left:5px;color:red;} |
|||
.user-detail input[type=file]{ |
|||
position: absolute; |
|||
top: 1px; |
|||
left: 1px; |
|||
margin: 0; |
|||
height:100%; |
|||
width: 90%; |
|||
opacity: 0; |
|||
filter: alpha(opacity=0); |
|||
z-index:1; |
|||
cursor: pointer |
|||
} |
|||
.user-detail input[type=text],.user-detail textarea,.user-detail select{ |
|||
width:200px; |
|||
height:2em; |
|||
line-height:2em; |
|||
vertical-align: top; |
|||
padding: 0 6px; |
|||
margin-bottom: 10px; |
|||
font-size: 1em; |
|||
font-weight: normal; |
|||
color: #505050; |
|||
background: #FFF; |
|||
border: 1px solid #C3C9D0; |
|||
border-radius: 2px; |
|||
-webkit-tap-highlight-color: transparent; |
|||
} |
|||
.user-detail input[type=checkbox]{vertical-align:middle} |
|||
.user-detail textarea{height:4em;overflow:auto;width:220px;} |
|||
.user-detail span.special{vertical-align: middle} |
|||
</style> |
|||
<div class="sec-user clearfix"> |
|||
<div class="content"> |
|||
<div class="user-detail"> |
|||
<form method="post" id="postForm" action="{:url('individual')}"> |
|||
<div class="head clearfix"> |
|||
<div class="left lowercase"> |
|||
<p><span>联 系人</span><span>:<input type="text" id="contact_name" name="contact_name" value="{$detail.contact_name}" /></span></p> |
|||
<p><span>联系手机号</span><span>:<input type="text" id="contact_phone" name="contact_phone" value="{$detail.contact_phone}" /></span></p> |
|||
<p><span>地区</span><span> <input type="hidden" id="region_id" name="region_id" value="{$detail.region_id}" /> |
|||
<select id="province" name="province" style="width:98px;"> |
|||
<option value="">请选择省份</option> |
|||
{foreach name="regions" id="vo"} |
|||
<option value="{$vo.id}" {if condition="$vo['id'] eq $detail['province']"}selected='selected'{/if}>{$vo.name}</option> |
|||
{/foreach} |
|||
</select> |
|||
<select id="city" name="city" style="width:98px;"> |
|||
<option value="">请选择城市</option> |
|||
</select> |
|||
</span></p> |
|||
<p><span>地 址</span><span>:<input type="text" id="address" name="address" value="{$detail.address}" /></span></p> |
|||
<p><span>行业</span><span>:<select id="industry_id" name="industry_id"> |
|||
<option value="">请选择</option> |
|||
{foreach name="industries" id="vo"} |
|||
<option value="{$vo.id}" {if condition="$vo['id'] eq $detail['industry_id']"}selected='selected'{/if}>{$vo.name}</option> |
|||
{/foreach} |
|||
</select></span></p> |
|||
<p><span>任职机构</span><span>:<input type="text" id="company" name="company" value="{$detail.company}" /></span></p> |
|||
<p><span>职 位</span><span>:<input type="text" id="position" name="position" value="{$detail.position}" /></span></p> |
|||
<p><span>公司邮箱</span><span>:<input type="text" id="email" name="email" value="{$detail.email}" /></span></p> |
|||
<p><span>投资阶段</span><span style="overflow:visiable auto;height:auto;vertical-align:top;" class="special"> |
|||
{foreach name="stages" id="vo" key="key"}<input type="checkbox" id="investment_stage_id{$key}" {if condition="is_array($detail['investment_stage_id']) and in_array($vo['id'],$detail['investment_stage_id']) "}checked='checked'{/if} name="investment_stage_id[]" value="{$vo.id}" />{$vo.name} {/foreach} |
|||
</span></p> |
|||
</div> |
|||
<div class="right lowercase"> |
|||
<p style="height:auto;"><span>关注行业</span><span style="overflow:visiable auto;height:auto;" class="special"> |
|||
{foreach name="industries" id="vo" key="key"}<input type="checkbox" id="interested_industry_ids{$key}" name="interested_industry_ids[]" {if condition="is_array($detail['interested_industry_ids']) and in_array($vo['id'],$detail['interested_industry_ids']) "}checked='checked'{/if} value="{$vo.id}" />{$vo.name} {/foreach}</span></p> |
|||
<p style="height:auto;"><span>投资关注:</span><span style="overflow:visiable auto;height:auto;" class="special"><textarea id="investment_concerns" name="investment_concerns">{$detail.investment_concerns}</textarea></span></p> |
|||
<p style="height:auto;"><span>已投项目:</span><span style="overflow:visiable auto;height:auto;" class="special"><textarea id="invested_projects" name="invested_projects">{$detail.invested_projects}</textarea></span></p> |
|||
<p style="height:auto;"><span>投资重点 :</span><span style="overflow:visiable auto;height:auto;" class="special"><textarea id="investment_point" name="investment_point">{$detail.investment_point}</textarea></span></p> |
|||
</div> |
|||
|
|||
</div> |
|||
<div class="foot"> |
|||
<a href="javascript:void(0);" onclick="$('#postForm').submit()" class="btn-xiugai">保存</a> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<div class="user-caidan"> |
|||
{include file="public:userinfo" /} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<script src="{$yf_theme_path}/public/js/jquery.form.js"></script> |
|||
<script src="{$yf_theme_path}/public/js/jquery.validate.min.js"></script> |
|||
<script src="{$yf_theme_path}/public/js/base.js"></script> |
|||
<script> |
|||
$(function(){ |
|||
// 手机号码验证 |
|||
jQuery.validator.addMethod("isMobile", function(value, element) { |
|||
var length = value.length; |
|||
return this.optional(element) || (length == 11 && /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/.test(value)); |
|||
}, "请正确填写您的手机号码。"); |
|||
// 身份证号码验证 |
|||
jQuery.validator.addMethod("isIdCardNo", function(value, element) { |
|||
//var idCard = /^(\d{6})()?(\d{4})(\d{2})(\d{2})(\d{3})(\w)$/; |
|||
return this.optional(element) || isIdCardNo(value); |
|||
}, "请输入正确的身份证号码。"); |
|||
var regions={$regions|json_encode}; |
|||
var city="{$detail.city}"; |
|||
if(city!="")city=parseInt(city); |
|||
$("#province").change(function(){ |
|||
var val=$("#province").val(); |
|||
$("#region_id").val(""); |
|||
var html='<option value="">请选择城市</option>'; |
|||
$("#city").html(html); |
|||
var index=$("#province").get(0).selectedIndex; |
|||
if(index>0){ |
|||
index=index-1; |
|||
if(typeof regions[index]!='undefined'){ |
|||
var current=regions[index]; |
|||
console.log(current); |
|||
var subregions=current['subregions']; |
|||
console.log(subregions); |
|||
if(subregions.length){ |
|||
subregions.forEach(function(item){ |
|||
if(city!=""&&item['id']==city){ |
|||
html+='<option value="'+item['id']+'" selected="selected">'+item['name']+'</option>'; |
|||
}else{ |
|||
html+='<option value="'+item['id']+'">'+item['name']+'</option>'; |
|||
} |
|||
}); |
|||
$("#city").html(html); |
|||
} |
|||
} |
|||
} |
|||
}); |
|||
$("#city").change(function(){ |
|||
var val=$("#city").val(); |
|||
$("#region_id").val(val); |
|||
}); |
|||
{if condition="$detail['province'] and $detail['city']"} |
|||
$("#province").trigger("change"); |
|||
$("#region_id").val("{$detail.city}"); |
|||
{/if} |
|||
|
|||
var rules={ |
|||
"contact_name":"required", |
|||
"contact_phone":{ |
|||
"required":true, |
|||
"isMobile":true |
|||
}, |
|||
"city":"required", |
|||
"address":"required", |
|||
"industry_id":"required", |
|||
"company":"required", |
|||
"position":"required", |
|||
"email":{ |
|||
"required":true, |
|||
"email":true |
|||
}, |
|||
"investment_stage_id":"required", |
|||
"interested_industry_ids":"required", |
|||
}; |
|||
var messages={ |
|||
"contact_name":"联系人必填", |
|||
"contact_phone":{ |
|||
"required":"手机号码必填", |
|||
"isMobile":"正确填写手机" |
|||
}, |
|||
"province":"省份必选", |
|||
"city":"城市必选", |
|||
"address":"地址必填", |
|||
"industry_id":"行业必选", |
|||
"company":"任职机构必填", |
|||
"position":"职位必填", |
|||
"email":{ |
|||
"required":"邮箱必填", |
|||
"email":"正确邮箱地址" |
|||
}, |
|||
"investment_stage_id":"投资阶段必选", |
|||
"interested_industry_ids":"关注行业必选", |
|||
}; |
|||
tool.commonForm("#postForm",rules,messages); |
|||
}); |
|||
</script> |
|||
@ -0,0 +1,183 @@ |
|||
{layout name="layout" /} |
|||
<style> |
|||
.user-detail .error{padding-left:5px;color:red;} |
|||
.user-detail input[type=file]{ |
|||
position: absolute; |
|||
top: 1px; |
|||
left: 1px; |
|||
margin: 0; |
|||
height:100%; |
|||
width: 90%; |
|||
opacity: 0; |
|||
filter: alpha(opacity=0); |
|||
z-index:1; |
|||
cursor: pointer |
|||
} |
|||
.user-detail input[type=text],.user-detail textarea,.user-detail select{ |
|||
width:200px; |
|||
height:2em; |
|||
line-height:2em; |
|||
vertical-align: top; |
|||
padding: 0 6px; |
|||
margin-bottom: 10px; |
|||
font-size: 1em; |
|||
font-weight: normal; |
|||
color: #505050; |
|||
background: #FFF; |
|||
border: 1px solid #C3C9D0; |
|||
border-radius: 2px; |
|||
-webkit-tap-highlight-color: transparent; |
|||
} |
|||
.user-detail input[type=checkbox]{vertical-align:middle} |
|||
.user-detail textarea{height:4em;overflow:auto;width:220px;} |
|||
.user-detail span.special{vertical-align: middle} |
|||
</style> |
|||
<div class="sec-user clearfix"> |
|||
<div class="content"> |
|||
<div class="user-detail"> |
|||
<form method="post" id="postForm" action="{:url('institutional')}"> |
|||
<div class="head clearfix"> |
|||
<div class="left lowercase"> |
|||
<p><span>联 系人</span><span>:<input type="text" id="contact_name" name="contact_name" value="{$detail.contact_name}" /></span></p> |
|||
<p><span>联系手机号</span><span>:<input type="text" id="contact_phone" name="contact_phone" value="{$detail.contact_phone}" /></span></p> |
|||
<p><span>任职机构</span><span>:<input type="text" id="company" name="company" value="{$detail.company}" /></span></p> |
|||
<p><span>用户姓名</span><span>:<input type="text" id="name" name="name" value="{$detail.name}" /></span></p> |
|||
<p><span>地区</span><span> |
|||
<input type="hidden" id="region_id" name="region_id" value="{$detail.region_id}" /> |
|||
<select id="province" name="province" style="width:98px;"> |
|||
<option value="">请选择省份</option> |
|||
{foreach name="regions" id="vo"} |
|||
<option value="{$vo.id}" {if condition="$vo['id'] eq $detail['province']"}selected='selected'{/if}>{$vo.name}</option> |
|||
{/foreach} |
|||
</select> |
|||
<select id="city" name="city" style="width:98px;"> |
|||
<option value="">请选择城市</option> |
|||
</select> |
|||
</span></p> |
|||
<p><span>机构总部</span><span>:<input type="text" id="address" name="address" value="{$detail.address}" /></span></p> |
|||
<p><span>注册日期</span><span>:<input type="text" id="establish_date" data-widget='dateTime' name="establish_date" value="{$detail.establish_date}" /></span></p> |
|||
<p><span>注册资本</span><span>:<input type="text" id="registration_capital" name="registration_capital" value="{$detail.registration_capital}" placeholder="单位万元" /></span></p> |
|||
<p><span>管理规模</span><span>:<input type="text" id="company_size" name="company_size" value="{$detail.company_size}" placeholder="单位万元" /></span></p> |
|||
<p><span>公司网站</span><span>:<input type="text" id="company_website" name="company_website" value="{$detail.company_websitel}" /></span></p> |
|||
</div> |
|||
<div class="right lowercase"> |
|||
<p><span>法人代表</span><span>:<input type="text" id="legal_representative" name="legal_representative" value="{$detail.legal_representative}" /></span></p> |
|||
<p><span>投资阶段</span><span style="overflow:visiable auto;height:auto;vertical-align:top;" class="special"> |
|||
{foreach name="stages" id="vo" key="key"}<input type="checkbox" id="investment_stage_id{$key}" {if condition="is_array($detail['investment_stage_id']) and in_array($vo['id'],$detail['investment_stage_id']) "}checked='checked'{/if} name="investment_stage_id[]" value="{$vo.id}" />{$vo.name} {/foreach} |
|||
</span></p> |
|||
<p style="height:auto;"><span>关注行业</span><span style="overflow:visiable auto;height:auto;" class="special"> |
|||
{foreach name="industries" id="vo" key="key"}<input type="checkbox" id="interested_industry_ids{$key}" name="interested_industry_ids[]" {if condition="is_array($detail['interested_industry_ids']) and in_array($vo['id'],$detail['interested_industry_ids']) "}checked='checked'{/if} value="{$vo.id}" />{$vo.name} {/foreach}</span></p> |
|||
<p style="height:auto;"><span>投资关注:</span><span style="overflow:visiable auto;height:auto;" class="special"><textarea id="investment_concerns" name="investment_concerns">{$detail.investment_concerns}</textarea></span></p> |
|||
<p style="height:auto;"><span>已投项目:</span><span style="overflow:visiable auto;height:auto;" class="special"><textarea id="invested_projects" name="invested_projects">{$detail.invested_projects}</textarea></span></p> |
|||
<p style="height:auto;"><span>投资重点 :</span><span style="overflow:visiable auto;height:auto;" class="special"><textarea id="investment_point" name="investment_point">{$detail.investment_point}</textarea></span></p> |
|||
</div> |
|||
|
|||
</div> |
|||
<div class="foot"> |
|||
<a href="javascript:void(0);" onclick="$('#postForm').submit()" class="btn-xiugai">保存</a> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<div class="user-caidan"> |
|||
{include file="public:userinfo" /} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<script src="{$yf_theme_path}/public/js/jquery.form.js"></script> |
|||
<script src="{$yf_theme_path}/public/js/jquery.validate.min.js"></script> |
|||
<script src="{$yf_theme_path}/public/js/common.js"></script> |
|||
<script src="{$yf_theme_path}/public/js/base.js"></script> |
|||
<script> |
|||
$(function(){ |
|||
// 手机号码验证 |
|||
jQuery.validator.addMethod("isMobile", function(value, element) { |
|||
var length = value.length; |
|||
return this.optional(element) || (length == 11 && /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/.test(value)); |
|||
}, "请正确填写您的手机号码。"); |
|||
// 身份证号码验证 |
|||
jQuery.validator.addMethod("isIdCardNo", function(value, element) { |
|||
//var idCard = /^(\d{6})()?(\d{4})(\d{2})(\d{2})(\d{3})(\w)$/; |
|||
return this.optional(element) || isIdCardNo(value); |
|||
}, "请输入正确的身份证号码。"); |
|||
var regions={$regions|json_encode}; |
|||
var city="{$detail.city}"; |
|||
if(city!="")city=parseInt(city); |
|||
$("#province").change(function(){ |
|||
$("#region_id").val(""); |
|||
var html='<option value="">请选择城市</option>'; |
|||
$("#city").html(html); |
|||
var val=$("#province").val(); |
|||
var index=$("#province").get(0).selectedIndex; |
|||
if(index>0){ |
|||
index=index-1; |
|||
if(typeof regions[index]!='undefined'){ |
|||
var current=regions[index]; |
|||
console.log(current); |
|||
var subregions=current['subregions']; |
|||
console.log(subregions); |
|||
var html='<option value="">请选择城市</option>'; |
|||
if(subregions.length){ |
|||
subregions.forEach(function(item){ |
|||
if(city!=""&&item['id']==city){ |
|||
html+='<option value="'+item['id']+'" selected="selected">'+item['name']+'</option>'; |
|||
}else{ |
|||
html+='<option value="'+item['id']+'">'+item['name']+'</option>'; |
|||
} |
|||
}); |
|||
$("#city").html(html); |
|||
} |
|||
} |
|||
} |
|||
}); |
|||
$("#city").change(function(){ |
|||
var val=$("#city").val(); |
|||
$("#region_id").val(val); |
|||
}); |
|||
{if condition="$detail['province'] and $detail['city']"} |
|||
$("#province").trigger("change"); |
|||
$("#region_id").val("{$detail.city}"); |
|||
{/if} |
|||
var rules={ |
|||
"contact_name":"required", |
|||
"contact_phone":{ |
|||
"required":true, |
|||
"isMobile":true |
|||
}, |
|||
"company":"required", |
|||
"name":"required", |
|||
"city":"required", |
|||
"address":"required", |
|||
"establish_date":"required", |
|||
"registration_capital":"required", |
|||
"company_size":"required", |
|||
"company_website":"required", |
|||
"legal_representative":"required", |
|||
"registration_capital":"required", |
|||
"industry_id":"required", |
|||
"investment_stage_id":"required", |
|||
"interested_industry_ids":"required", |
|||
}; |
|||
var messages={ |
|||
"contact_name":"联系人必填", |
|||
"contact_phone":{ |
|||
"required":"手机号码必填", |
|||
"isMobile":"请正确填写手机" |
|||
}, |
|||
"company":"任职机构必填", |
|||
"name":"用户姓名必填", |
|||
"province":"省份必选", |
|||
"city":"城市必选", |
|||
"address":"机构总部必填", |
|||
"establish_date":"注册日期必填", |
|||
"registration_capital":"注册资本必填", |
|||
"company_size":"公司人数必填", |
|||
"company_website":"公司网站必填", |
|||
"legal_representative":"法人代表必填", |
|||
"industry_id":"行业必选", |
|||
"investment_stage_id":"投资阶段必选", |
|||
"interested_industry_ids":"关注行业必选", |
|||
}; |
|||
tool.commonForm("#postForm",rules,messages); |
|||
}); |
|||
</script> |
|||
@ -0,0 +1,10 @@ |
|||
{layout name="layout" /} |
|||
<div class="page-wrapper" > |
|||
<div class="content" style="padding:20px 40px;"> |
|||
<div class="content-wraper" style="line-height:1.8em;"> |
|||
{if condition="isset($page['content'])"} |
|||
{$page.content} |
|||
{/if} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
@ -0,0 +1,108 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<title>{$site_seo_title} {$site_name}</title> |
|||
<meta name="keywords" content="{$site_seo_keywords}" /> |
|||
<meta name="description" content="{$site_seo_description}"> |
|||
{include file="public:head" /} |
|||
</head> |
|||
<body> |
|||
<div class="contenter"> |
|||
{include file="home/view@public:nav" /} |
|||
<!--menu结束--> |
|||
{if condition="!in_array(ACTION_NAME,['detail','login']) and !in_array(CONTROLLER_NAME,['User'])"} |
|||
<!--banner开始--> |
|||
<div class="banner"> |
|||
<div id="bannerswiper" class="swiper-container"> |
|||
<div class="swiper-wrapper"> |
|||
{foreach name="home_slides" item="vo"} |
|||
<div class="swiper-slide" onclick="img('{$vo.lk_url}')"> |
|||
<div class="bannerimg"><img class="img-responsive" src="{$vo.lk_pic|get_imgurl}" title="{$vo.lk_name}" ></div> |
|||
</div> |
|||
{/foreach} |
|||
</div> |
|||
<div class="swiper-pagination"></div> |
|||
</div> |
|||
</div> |
|||
|
|||
<!--banner结束--> |
|||
<script> |
|||
$(function(){ |
|||
/*******banner滚动********/ |
|||
var swiper = new Swiper('#bannerswiper', { |
|||
paginationClickable: true, |
|||
centeredSlides: true, |
|||
autoplay: 4000, |
|||
autoplayDisableOnInteraction : false, |
|||
loop:true, |
|||
pagination:'.swiper-pagination' |
|||
}); |
|||
}); |
|||
</script> |
|||
{else} |
|||
<div class="detailsbanner"></div> |
|||
{/if} |
|||
<div class="xcx-menu-wrapper"> |
|||
<div class="content clearfix"> |
|||
<div class="xcx-menu-item"> |
|||
<div class="info"> |
|||
<div class="top">中心简介</div> |
|||
<div class="down">Introduction</div> |
|||
</div> |
|||
<div class="media"><img src="{$yf_theme_path}assets/img/xiangmu.png" alt=""></div> |
|||
<a href="{:url('culture/index/index')}" class="href-abs"></a> |
|||
</div> |
|||
<div class="xcx-menu-item"> |
|||
<div class="info"> |
|||
<div class="top">文化金融政策</div> |
|||
<div class="down">policy</div> |
|||
</div> |
|||
<div class="media"><img src="{$yf_theme_path}assets/img/xiangmu.png" alt=""></div> |
|||
<a href="{:url('culture/policy/index')}" class="href-abs"></a> |
|||
</div> |
|||
<div class="xcx-menu-item"> |
|||
<div class="info"> |
|||
<div class="top">项目</div> |
|||
<div class="down">PROJECTS</div> |
|||
</div> |
|||
<div class="media"><img src="{$yf_theme_path}assets/img/xiangmu.png" alt=""></div> |
|||
<a href="{:url('culture/project/index')}" class="href-abs"></a> |
|||
</div> |
|||
<div class="xcx-menu-item"> |
|||
<div class="info"> |
|||
<div class="top">文化金融专业服务机构</div> |
|||
<div class="down">professional services</div> |
|||
</div> |
|||
<div class="media"><img src="{$yf_theme_path}assets/img/jigou.png" alt=""></div> |
|||
<a href="{:url('culture/agency/index')}" class="href-abs"></a> |
|||
</div> |
|||
<div class="xcx-menu-item"> |
|||
<div class="info"> |
|||
<div class="top">个人中心</div> |
|||
<div class="down">personal center</div> |
|||
</div> |
|||
<div class="media"><img src="{$yf_theme_path}assets/img/center.png" alt=""></div> |
|||
<a href="{:url('culture/user/index')}" class="href-abs"></a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="sec-bread"> |
|||
<div class="content"> |
|||
<ul class="bread-crumb"> |
|||
<li><a href="{:url('home/index/index')}">首页</a></li> |
|||
<li><a href="{:url('culture/index/index')}">深圳文化金融服务中心</a></li> |
|||
{foreach name="current" id="vo" key="key"} |
|||
<li {if condition="count($current) eq $key+1"}class="active"{/if}><a {if condition="isset($vo['jump'])"}href="{$vo.jump}"{else}href="javascript:void(0);"{/if}>{$vo.title}</a></li> |
|||
{/foreach} |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
{__CONTENT__} |
|||
</div> |
|||
<!--右侧悬浮窗口开始--> |
|||
{include file="home/view@public:footer" /} |
|||
<!--右侧悬浮窗口结束--> |
|||
|
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,33 @@ |
|||
{layout name="layout" /} |
|||
<link rel="stylesheet" type="text/css" href="{$yf_theme_path}public/css/bootstrap.css"> |
|||
<style> |
|||
.login-detail{background:#fff;padding:50px 0px;} |
|||
#logForm{width:520px;margin:0px auto;} |
|||
</style> |
|||
<div class=" clearfix"> |
|||
<div class="content"> |
|||
<div class="login-detail" |
|||
<div class="form-group" style="text-align:center;"> |
|||
<div id="login_container" style="margin:0px auto;"> |
|||
|
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<script src="{$yf_theme_path}/public/js/jquery.form.js"></script> |
|||
<script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script> |
|||
<script> |
|||
$(function(){ |
|||
var obj = new WxLogin({ |
|||
self_redirect:false, |
|||
id:"login_container", |
|||
appid: "wx5cf3b72f956ecbe1", |
|||
scope: "snsapi_login", |
|||
redirect_uri: "{:url('culture/common/register','',false,true)}", |
|||
state: "", |
|||
style: "", |
|||
href: "" |
|||
}); |
|||
}); |
|||
</script> |
|||
@ -0,0 +1,88 @@ |
|||
{layout name="layout" /} |
|||
|
|||
<div class="sec-user sec-detail clearfix"> |
|||
<div class="content"> |
|||
<div class="user-detail"> |
|||
<div class="detail-edit"> |
|||
<div class="detail"> |
|||
<div class="detail-head clearfix"> |
|||
<div class="media"> |
|||
<div class="img-wrapper"> |
|||
<img src="{$yf_theme_path}assets/img/default.png" alt=""> |
|||
</div> |
|||
</div> |
|||
<div class="media-content"> |
|||
<div class="content-content"> |
|||
<h2 class="title">{$detail.name}</h2> |
|||
<div class="jifen">信誉积分:<span>{$detail.redeem_point}</span></div> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="detail-content"> |
|||
<div class="cats-title"><span>介绍</span></div> |
|||
<div class="detail-info">{$detail.description|default="暂无"}</div> |
|||
</div> |
|||
<div class="foot"><a href="javascript:void(0);" style="width:20%;" class="btn-xiugai chatbtn">联系客服</a></div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="user-caidan"> |
|||
{include file="public:userinfo" /} |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
<script type='text/javascript'> |
|||
(function(m, ei, q, i, a, j, s) { |
|||
m[i] = m[i] || function() { |
|||
(m[i].a = m[i].a || []).push(arguments) |
|||
}; |
|||
j = ei.createElement(q), |
|||
s = ei.getElementsByTagName(q)[0]; |
|||
j.async = true; |
|||
j.charset = 'UTF-8'; |
|||
j.src = 'https://static.meiqia.com/dist/meiqia.js?_=t'; |
|||
s.parentNode.insertBefore(j, s); |
|||
})(window, document, 'script', '_MEIQIA'); |
|||
function allSet(servability){ |
|||
// 你可以根据自己的需求编写相应的代码 |
|||
console.log('美洽网站插件初始化完毕。'); |
|||
_MEIQIA('showPanel',{greeting: '{$detail.name}'});//留言板 |
|||
if (servability) { |
|||
console.log('有客服在线'); |
|||
} else { |
|||
console.log('无客服在线'); |
|||
} |
|||
} |
|||
function handleStart() { |
|||
console.log('会话开始回调') |
|||
} |
|||
function handleEnd(){ |
|||
console.log('会话结束时的回调') |
|||
} |
|||
_MEIQIA('entId', 106356); |
|||
_MEIQIA('allSet',allSet); |
|||
//会话开始时的回调 |
|||
_MEIQIA('startConversation',handleStart); |
|||
//会话结束时的回调 |
|||
_MEIQIA('endConversation',handleEnd); |
|||
_MEIQIA('manualInit');//手动初始化 |
|||
|
|||
_MEIQIA('metadata',{"name":"老王","qq":"123456","age":"11","gender":"男"}); |
|||
// 设置 clientId |
|||
//_MEIQIA('clientId', '顾客的唯一标识'); |
|||
_MEIQIA('convClickCallback', clickCallback); |
|||
//展开对话窗口(创建对话/排队/留言)回调接口 |
|||
//type 参数共 3 个值,queue(排队),ticket(工单),conv(对话) |
|||
function clickCallback(type, convId) { |
|||
console.log(type); |
|||
if (type === 'conv') { |
|||
console.log(convId); |
|||
} |
|||
} |
|||
$(".chatbtn").click(function(){ |
|||
_MEIQIA('init');//自动初始化 |
|||
}); |
|||
</script> |
|||
@ -0,0 +1,56 @@ |
|||
{layout name="layout" /} |
|||
<div class="sec-user clearfix"> |
|||
<div class="content"> |
|||
<div class="user-detail"> |
|||
<div class="detail-edit"> |
|||
<div class="body"> |
|||
<div class="body-content clearfix"> |
|||
{if condition="count($showlist)"} |
|||
{foreach name="showlist" item="vo"} |
|||
<div class="item-jifen" {if condition="isset($my) and $my eq 1"}onclick="window.location.href='{:url('market_detail',['id'=>$vo['id']])}'" style="cursor:pointer"{/if}> |
|||
<div class="item-wrapper"> |
|||
<h2 class="title">{$vo.name}</h2> |
|||
<div class="info">{$vo.description}</div> |
|||
<div class="func"> |
|||
<small>{$vo.redeem_point}积分</small> |
|||
{if condition="isset($my) and $my eq 1"} |
|||
<div class="dinline">已兑换</div> |
|||
{else} |
|||
<div data-id="{$vo.id}" style="cursor:pointer;border:1px solid #ccc;border-radius:3px;padding:1px 5px;" class="dinline change">兑换</div> |
|||
{/if} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
{/foreach} |
|||
{/if} |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="user-caidan"> |
|||
{include file="public:userinfo" /} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<script> |
|||
$(function(){ |
|||
$(".change").each(function(){ |
|||
$(this).click(function(){ |
|||
var url="{:url('redeem')}"; |
|||
var id=$(this).data('id'); |
|||
if(typeof id=='undefined'||id==''){ |
|||
layer.msg("缺少id"); |
|||
return false; |
|||
} |
|||
layer.load(1, {shade: [0.1,'#fff']}); |
|||
$.get(url,{id:id},function(data){ |
|||
layer.closeAll(); |
|||
if(typeof data.message!='undefined'){ |
|||
layer.msg(data.message); |
|||
} |
|||
}); |
|||
}); |
|||
}); |
|||
}); |
|||
</script> |
|||
@ -0,0 +1,113 @@ |
|||
{layout name="layout" /} |
|||
<style> |
|||
#propage{padding: 15px 20px;text-align: left;color: #ccc;text-align:center;} |
|||
#propage a{display: inline-block;color:#666;display: inline-block;line-height:1.4em;padding:6px 12px;border: 1px solid #ddd; margin: 0 2px;border-radius: 4px;vertical-align: middle;} |
|||
#propage a:hover{text-decoration: none;border: 1px solid #d43f3a;} |
|||
#propage span.current{display: inline-block;line-height:1.4em;padding:6px 12px;margin: 0 2px;color: #fff;background-color:#d43f3a; border: 1px solid #d43f3a;border-radius: 4px;vertical-align: middle;} |
|||
#propage span.disabled{ display: inline-block;line-height:1.4em;padding:6px 12px;margin: 0 2px; color: #bfbfbf;background: #f2f2f2;border: 1px solid #bfbfbf;border-radius: 4px;vertical-align: middle;} |
|||
</style> |
|||
<div class="projectWraper"> |
|||
<div class="project-wrapper"> |
|||
<div class="content"> |
|||
<div class="policy clearfix"> |
|||
|
|||
</div> |
|||
<div class="col-xs-12 text-center list-page" align="center"> |
|||
<ul id="propage" class="pagination"> |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<script type="text/javascript" src="{$yf_theme_path}public/js/jquery.page.js"></script> |
|||
<script> |
|||
//项目分类 |
|||
$(function(){ |
|||
|
|||
var prolist=[]; |
|||
$("body").on('click','.policy-item',function(){ |
|||
event.preventDefault(); |
|||
var id=$(this).data('id'); |
|||
var jump="__URL__/policydetail/id/"+id+".html"; |
|||
window.location.href=jump; |
|||
}); |
|||
layer.load(1, {shade: [0.1,'#fff']}); |
|||
function projects(list){ |
|||
var html=''; |
|||
prolist=list; |
|||
console.log(list); |
|||
list.forEach(function(item){ |
|||
var jump="javascript:void(0);"; |
|||
html+='<div class="policy-item clearfix" data-id='+item['id']+'>'; |
|||
html+='<div class="title">◆ '+item['name']+'</div>'; |
|||
html+='<div class="date">'+item['created_at']+'</div>'; |
|||
html+='</div>'; |
|||
|
|||
}); |
|||
return html; |
|||
} |
|||
function propage(meta){ |
|||
var per_page=meta['per_page']; |
|||
var total=parseInt(meta['total']); |
|||
var current_page=parseInt(meta['current_page']); |
|||
var pages=Math.ceil(total/per_page); |
|||
console.log(pages); |
|||
|
|||
var total=parseInt(meta['total']); |
|||
var lastpage=parseInt(meta['last_page']); |
|||
$("#propage").remove(); |
|||
$(".list-page").append('<ul id="propage" class="pagination"></ul>'); |
|||
$("#propage").createPage({ |
|||
pageCount:lastpage, |
|||
current:current_page, |
|||
backFn:function(p){ |
|||
fillProject(p,0); |
|||
} |
|||
}); |
|||
} |
|||
function fillProject(curpage,showpage){ |
|||
layer.load(1, {shade: [0.1,'#fff']}); |
|||
var query="page="+curpage; |
|||
var url="{:url('ajaxpolicys')}?"+query; |
|||
$(this).attr('disabled',true); |
|||
console.log(url); |
|||
$.get(url,function(data){ |
|||
$(this).attr('disabled',false); |
|||
data=JSON.parse(data); |
|||
console.log(data); |
|||
layer.closeAll(); |
|||
if(typeof data =='object'&&typeof data['data']!='undefined'){ |
|||
var meta=data['meta']; |
|||
var list=data['data']; |
|||
if(showpage){ |
|||
$("#propage").html(""); |
|||
propage(meta); |
|||
} |
|||
var html=projects(list); |
|||
$(".policy").html(html); |
|||
|
|||
|
|||
} |
|||
}); |
|||
} |
|||
var curpage=1; |
|||
//项目列表 |
|||
var url="{:url('ajaxpolicys')}"; |
|||
$.get(url,function(data){ |
|||
data=JSON.parse(data); |
|||
console.log(data); |
|||
layer.closeAll(); |
|||
if(typeof data =='object'&&typeof data['data']!='undefined'){ |
|||
|
|||
var meta=data['meta']; |
|||
var list=data['data']; |
|||
var html=projects(list); |
|||
$(".policy").html(html); |
|||
|
|||
var html=propage(meta); |
|||
$(".projectWraper").show(); |
|||
} |
|||
}); |
|||
|
|||
}); |
|||
</script> |
|||
@ -0,0 +1,13 @@ |
|||
{layout name="layout" /} |
|||
<div class="sec-detail"> |
|||
<div class="content"> |
|||
<div class="detail" style="padding:35px 55px;min-height:450px;"> |
|||
<div class="detail-content"> |
|||
<div class="cats-title" style="text-align:center;line-height:1.2em;"><span style="border:none;color:#333;font-size:1.2em;">{$detail.name}</span><br/><span style="border:none;font-size:11px;margin-bottom:5px;">{$detail.created_at}</span></div> |
|||
<div class="detail-info clearfix"> |
|||
{$detail.content} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
@ -0,0 +1,267 @@ |
|||
{layout name="layout" /} |
|||
<link rel="stylesheet" type="text/css" href="{$yf_theme_path}public/css/bootstrap.css"> |
|||
<style> |
|||
.user-detail .error{padding-left:5px;color:red;line-height:2.4em;} |
|||
.user-detail input[type=file]{ |
|||
position: absolute; |
|||
top: 1px; |
|||
left: 1px; |
|||
margin: 0; |
|||
height:100%; |
|||
width: 100%; |
|||
opacity: 0; |
|||
filter: alpha(opacity=0); |
|||
z-index:999; |
|||
cursor: pointer |
|||
} |
|||
.head-shell{float:left;display:inline-block;margin-top:-24px !important;} |
|||
.img-shell{width:88px;border-radius:50%;overflow:hidden;position:relative;} |
|||
.btn-edit{width:88px;border-radius:50%;overflow:hidden;line-height:88px !important;} |
|||
.detail-edit{margin-top:24px;} |
|||
.form-control{width:76%;} |
|||
.error{display:inline-block;} |
|||
</style> |
|||
<div class="sec-user clearfix"> |
|||
<div class="content"> |
|||
<div class="user-detail"> |
|||
<div class="detail-edit"> |
|||
<form method="post" id="userForm" action="{:url('profile')}" class="f-form person-form form-horizontal active"> |
|||
<div class="form-group f-item"> |
|||
<label class="col-xs-2 control-label">头像</label> |
|||
<div class="col-xs-7"> |
|||
<div class="head-shell tx-edit"> |
|||
<div class="img-shell"> |
|||
<input type="file" name="avatarbtn" id="avatarbtn" class="jquery-file-upload-file-input" > |
|||
<input type="hidden" name="avatar" id="avatar" value="{$profile.avatar}" > |
|||
<div class="attachments">{if condition="$profile['avatar']"}<img src="{$profile.avatar}" />{/if}</div> |
|||
</div> |
|||
<span class="btn-edit">修改</span> |
|||
<div class="attachment-error-message"></div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-xs-2 control-label">用户名</label> |
|||
<div class="col-xs-7"> |
|||
<input type="text" class="form-control" id="name" name="name" value="{$profile.name}" /> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-xs-2 control-label">手机号码</label> |
|||
<div class="col-xs-7"> |
|||
<input type="text" class="form-control" id="phone" name="phone" value="{$profile.phone}" /> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-xs-2 control-label">职位</label> |
|||
<div class="col-xs-7"> |
|||
<input type="text" class="form-control" id="position" name="position" value="{$profile.position}" /> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-xs-2 control-label">所属公司</label> |
|||
<div class="col-xs-7"> |
|||
<input type="text" class="form-control" id="company" name="company" value="{$profile.company}" /> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-xs-2 control-label">邮箱</label> |
|||
<div class="col-xs-7"> |
|||
<input type="text" class="form-control" id="email" name="email" value="{$profile.email}" /> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-xs-2 control-label"></label> |
|||
<div class="col-xs-7"> |
|||
<button type="submit" class="btn-submit">保存</button> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
<div class="user-caidan"> |
|||
{include file="public:userinfo" /} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<script src="{$yf_theme_path}/public/js/jquery.form.js"></script> |
|||
<script src="{$yf_theme_path}/public/js/jquery.validate.min.js"></script> |
|||
<script src="{$yf_theme_path}/public/js/jquery-ui-1.10.3.min.js"></script> |
|||
<script src="{$yf_theme_path}/public/js/jquery.ui.widget.js"></script> |
|||
<script src="{$yf_theme_path}/public/js/jquery.fileupload.js"></script> |
|||
<script src="{$yf_theme_path}/public/js/base.js"></script> |
|||
<script> |
|||
function change(limit){ |
|||
var size = ""; |
|||
if(limit < 0.1 * 1024){ //小于0.1KB,则转化成B |
|||
size = limit.toFixed(2) + "B" |
|||
}else if(limit < 0.1 * 1024 * 1024){ //小于0.1MB,则转化成KB |
|||
size = (limit/1024).toFixed(2) + "KB" |
|||
}else if(limit < 0.1 * 1024 * 1024 * 1024){ //小于0.1GB,则转化成MB |
|||
size = (limit/(1024 * 1024)).toFixed(2) + "MB" |
|||
}else{ //其他转化成GB |
|||
size = (limit/(1024 * 1024 * 1024)).toFixed(2) + "GB" |
|||
} |
|||
|
|||
var sizeStr = size + ""; //转成字符串 |
|||
var index = sizeStr.indexOf("."); //获取小数点处的索引 |
|||
var dou = sizeStr.substr(index + 1 ,2) //获取小数点后两位的值 |
|||
if(dou == "00"){ //判断后两位是否为00,如果是则删除00 |
|||
return sizeStr.substring(0, index) + sizeStr.substr(index + 3, 2) |
|||
} |
|||
return size; |
|||
} |
|||
//身份证号码的验证规则 |
|||
function isIdCardNo(num){ |
|||
//if (isNaN(num)) {alert("输入的不是数字!"); return false;} |
|||
var len = num.length, re; |
|||
if (len == 15) |
|||
re = new RegExp(/^(\d{6})()?(\d{2})(\d{2})(\d{2})(\d{2})(\w)$/); |
|||
else if (len == 18) |
|||
re = new RegExp(/^(\d{6})()?(\d{4})(\d{2})(\d{2})(\d{3})(\w)$/); |
|||
else { |
|||
//alert("输入的数字位数不对。"); |
|||
return false; |
|||
} |
|||
var a = num.match(re); |
|||
if (a != null) |
|||
{ |
|||
if (len==15) |
|||
{ |
|||
var D = new Date("19"+a[3]+"/"+a[4]+"/"+a[5]); |
|||
var B = D.getYear()==a[3]&&(D.getMonth()+1)==a[4]&&D.getDate()==a[5]; |
|||
} |
|||
else |
|||
{ |
|||
var D = new Date(a[3]+"/"+a[4]+"/"+a[5]); |
|||
var B = D.getFullYear()==a[3]&&(D.getMonth()+1)==a[4]&&D.getDate()==a[5]; |
|||
} |
|||
if (!B) { |
|||
//alert("输入的身份证号 "+ a[0] +" 里出生日期不对。"); |
|||
return false; |
|||
} |
|||
} |
|||
if(!re.test(num)){ |
|||
//alert("身份证最后一位只能是数字和字母。"); |
|||
return false; |
|||
} |
|||
return true; |
|||
} |
|||
function uploadPic(url,btn,input,current,num){ |
|||
//插件jquery.fileupload.js |
|||
jQuery(btn).fileupload({ |
|||
url: url, |
|||
dataType: 'json', |
|||
done: function (e, data) { |
|||
var file=data.result; |
|||
tool.msg(file['msg']); |
|||
if(file['code']==1){ |
|||
var pic=file['data']['path']; |
|||
if(num==1){ |
|||
$(input).val(pic); |
|||
$(btn).val(pic); |
|||
}else{ |
|||
var cur=$(input).val(); |
|||
var ipic=''; |
|||
if(cur)ipic=cur+';'+pic; |
|||
else ipic=pic; |
|||
$(input).val(ipic); |
|||
|
|||
} |
|||
} |
|||
}, |
|||
progressall: function (e, data) { |
|||
var progress = parseInt(data.loaded / data.total * 100, 10); |
|||
var count=$(".attachments").eq(current).find(".attachment").length; |
|||
var curbar=current; |
|||
if(num>1){ |
|||
curbar=count-1; |
|||
} |
|||
console.log('curbar:'+curbar); |
|||
$("#progressbar"+curbar).css({'width':progress+"%"}); |
|||
if(progress==100){ |
|||
$("#progressbar"+curbar).delay(500).fadeOut(); |
|||
} |
|||
} |
|||
}).bind('fileuploadadd',function(e,data){ |
|||
var file=data['files'][0]; |
|||
var url = null; |
|||
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); |
|||
} |
|||
var name=file['name']; |
|||
var size=change(file['size']); |
|||
var count=$(".attachments").eq(current).find(".attachment").length; |
|||
var curbar=current; |
|||
if(num>1){ |
|||
curbar=count; |
|||
} |
|||
console.log('curbar2:'+curbar); |
|||
if(/^blob/.test(url)){ |
|||
var html='<div class="attachment clearfix">'; |
|||
html+='<div class="progress-bar" id="progressbar'+curbar+'" role="progressbar" aria-valuenow="0" data-transitiongoal="100" aria-valuemin="0" aria-valuemax="100"></div>'; |
|||
html+='<div class="info clearfix"><div class="preview-area pull-left"><div class="preview"><img src="'+url+'" /></div></div>'; |
|||
html+='<div class="status pull-left"><span class="file-name">'+name+'</span><span class="file-size-status">(<span class="file-size">'+size+'<span></span></span>)</span></div>'; |
|||
html+='<div class="actions web-actions pull-right"><a data-role="cancel" class="delete-link" href="javascript:void(0)">删除</a></div></div></div>'; |
|||
if(num==1){ |
|||
$(".attachments").eq(current).html(html); |
|||
}else{ |
|||
|
|||
if(count>=num){ |
|||
tool.msg("超过允许上传图片张数"); |
|||
return false; |
|||
} |
|||
$(".attachments").eq(current).append(html); |
|||
} |
|||
|
|||
} |
|||
}).prop('disabled', !$.support.fileInput).parent().addClass($.support.fileInput ? undefined : 'disabled'); |
|||
} |
|||
$(function(){ |
|||
var url="{:url('upload',['key'=>'avatarbtn'])}"; |
|||
uploadPic(url,"#avatarbtn","#avatar",0,1); |
|||
// 手机号码验证 |
|||
jQuery.validator.addMethod("isMobile", function(value, element) { |
|||
var length = value.length; |
|||
return this.optional(element) || (length == 11 && /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/.test(value)); |
|||
}, "请正确填写您的手机号码。"); |
|||
// 身份证号码验证 |
|||
jQuery.validator.addMethod("isIdCardNo", function(value, element) { |
|||
//var idCard = /^(\d{6})()?(\d{4})(\d{2})(\d{2})(\d{3})(\w)$/; |
|||
return this.optional(element) || isIdCardNo(value); |
|||
}, "请输入正确的身份证号码。"); |
|||
|
|||
var rules={ |
|||
"name":"required", |
|||
"phone":{ |
|||
"required":true, |
|||
"isMobile":true |
|||
}, |
|||
"position":"required", |
|||
"company":"required", |
|||
"email":{ |
|||
"required":true, |
|||
"email":true |
|||
} |
|||
}; |
|||
var messages={ |
|||
"name":"姓名必填", |
|||
"phone":{ |
|||
"required":"手机号码必填", |
|||
"isMobile":"请正确填写您的手机号码" |
|||
}, |
|||
"position":"姓名必填", |
|||
"company":"所属公司必填", |
|||
"email":{ |
|||
"required":"邮箱必填", |
|||
"email":"填写正确邮箱地址" |
|||
} |
|||
}; |
|||
tool.commonForm("#userForm",rules,messages); |
|||
}); |
|||
</script> |
|||
@ -0,0 +1,41 @@ |
|||
{layout name="layout" /} |
|||
|
|||
<div class="sec-detail"> |
|||
<div class="content"> |
|||
<div class="detail"> |
|||
<div class="detail-head clearfix"> |
|||
<div class="media"> |
|||
<div class="img-wrapper"> |
|||
{if condition="$detail['logo']"} |
|||
<img src="{$detail.logo}" alt="{$detail.name}" onerror="this.src='{$yf_theme_path}assets/img/default.png'"> |
|||
{else} |
|||
<img src="{$yf_theme_path}assets/img/default.png" alt=""> |
|||
{/if} |
|||
</div> |
|||
</div> |
|||
<div class="media-content"> |
|||
<div class="content-content"> |
|||
<h2 class="title">{$detail.name}</h2> |
|||
<div class="tags"> |
|||
{if condition="isset($detail['industry']['name'])"}<a href="javascript:void(0);">{$detail.industry.name}</a>{/if} |
|||
{if condition="isset($detail['investment']['name'])"}<a href="javascript:void(0);">{$detail.investment.name}</a>{/if} |
|||
{if condition="isset($detail['region']['name'])"}<a href="javascript:void(0);">{$detail.region.name}</a>{/if} |
|||
</div> |
|||
<div class="jifen">信誉积分:<span>{$detail.reputation}</span></div> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="detail-content"> |
|||
<div class="cats-title"><span>项目介绍</span></div> |
|||
<div class="detail-info">{$detail.project_introduction}</div> |
|||
<div class="cats-title"><span>商业模式</span></div> |
|||
<div class="detail-info">{$detail.major_product_introduction}</div> |
|||
<div class="cats-title"><span>核心团队</span></div> |
|||
<div class="detail-info">{$detail.core_team_introduction}</div> |
|||
<div class="cats-title"><span>公司股权融资经历</span></div> |
|||
<div class="detail-info">{$detail.financing_introduction}</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
After Width: | Height: | Size: 267 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 540 B |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 307 B |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 137 B |
|
After Width: | Height: | Size: 100 B |
|
After Width: | Height: | Size: 133 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 258 B |
|
After Width: | Height: | Size: 207 B |
|
After Width: | Height: | Size: 944 B |
|
After Width: | Height: | Size: 191 B |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 586 B |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 263 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 180 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 819 B |
|
After Width: | Height: | Size: 170 B |
|
After Width: | Height: | Size: 117 B |
|
After Width: | Height: | Size: 170 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 208 B |
|
After Width: | Height: | Size: 769 B |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 212 KiB |
|
After Width: | Height: | Size: 642 B |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 173 B |
|
After Width: | Height: | Size: 720 B |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 534 B |
|
After Width: | Height: | Size: 4.4 KiB |
@ -0,0 +1,61 @@ |
|||
{layout name="layout" /} |
|||
|
|||
<div class="sec-user clearfix"> |
|||
<div class="content"> |
|||
<div class="user-detail"> |
|||
<div class="head clearfix"> |
|||
<div class="left"> |
|||
<div class="head-shell"> |
|||
<div class="img-shell"> |
|||
<img src="{$profile.avatar}" alt="" onError="this.src='statics/img/head.jpg'"> |
|||
</div> |
|||
</div> |
|||
<h2 class="user-name">{$profile.name}</h2> |
|||
<div class="info clearfix"> |
|||
<div class="info-item"> |
|||
<div class="num">{$profile.reputation}</div> |
|||
<div class="txt">信誉分</div> |
|||
</div> |
|||
<div class="info-item"> |
|||
<div class="num">{$profile.point}</div> |
|||
<div class="txt">可兑换的信誉分</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="right lowercase"> |
|||
<p><span>姓名</span><span>:{$profile.name}</span></p> |
|||
<p><span>手机号码</span><span>:{$profile.phone}</span></p> |
|||
<p><span>职位</span><span>:{$profile.position}</span></p> |
|||
<p><span>所属公司</span><span>:{$profile.company}</span></p> |
|||
<p><span>邮箱</span><span>:{$profile.email}</span></p> |
|||
</div> |
|||
|
|||
</div> |
|||
<div class="foot"> |
|||
<a href="{:url('profile')}" class="btn-xiugai">修改</a> <a href="{:url('culture/common/logout')}" class="logout btn-xiugai">登出</a> |
|||
</div> |
|||
</div> |
|||
<div class="user-caidan"> |
|||
{include file="public:userinfo" /} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<script> |
|||
$(function(){ |
|||
$(".logout").click(function(event){ |
|||
event.preventDefault(); |
|||
var url=$(this).attr('href'); |
|||
$.get(url,function(data){ |
|||
console.log(data); |
|||
var msg=data.msg; |
|||
var url=data.url; |
|||
layer.msg(msg, { |
|||
time:3000 //2秒关闭(如果不配置,默认是3秒) |
|||
,shade:0 |
|||
}, function(){ |
|||
window.location.href=url; |
|||
}); |
|||
}) |
|||
}); |
|||
}); |
|||
</script> |
|||