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

260 lines
14 KiB

<html>
<head>
<meta charset="utf-8">
<title>{$title}</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="古建合作机构信息登记表(机构)提交数据。">
<meta property="og:type" content="webpage">
<meta property="og:title" content="古建合作机构信息登记表(机构)">
<meta property="og:description" content="古建合作机构信息登记表(机构)提交数据。">
<link rel="stylesheet" media="screen" href="{$yf_theme_path}index/Public/Css/published.css">
<link rel="stylesheet" media="screen" href="{$yf_theme_path}index/Public/Css/base.css">
<script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
</head>
<body class="entry-container">
<img id="shareImg" src="{$share.imgUrl}" width="0" height="0" />
<div class="entry-container-inner">
<form class="center with-shadow indent-on-large-phone" id="postForm" action="{:url('apply5',array('cid'=>$cid))}" method="post">
{:token()}
<div class="form-header">
<div class="banner"><div class="banner-text"> </div></div>
<div class="logo-box">
<h1 class="form-title ">{$title}</h1>
</div>
</div>
<div class="form-content container-fluid">
<div class="row">
<div class="fields clearfix">
<div class="field required col-sm-12" >
<div class="form-group">
<div class="field-label">姓名(请填写2-10个字)</span></div>
<div class="field-content"><input type="text" name="username" id="username" maxlength="10"></div>
</div>
</div>
<div class="field required field-drop-down col-sm-12" >
<div class="form-group">
<div class="field-label">证件类型</div>
<div class="field-content">
<div class="dropdown-wrapper">
<select class="needsclick has-data field-transformed" data-has-error="false" data-random-choices="false" name="cred_type" id="cred_type"><option value="">请选择</option>
<option selected="selected" value="1">身份证</option>
<option value="2">护照</option>
<option value="3">军人证</option>
</select>
<b class="dropdown-bg"></b>
<i class="dropdown-trigger"></i>
</div>
</div>
</div>
</div>
<div class="field required col-sm-12">
<div class="form-group">
<div class="field-label">证件号码(请填写最多18个字)</div>
<div class="field-content">
<input type="text" name="credcard" id="credcard" maxlength="18">
</div>
</div>
</div>
<div class="field required col-sm-12">
<div class="form-group">
<div class="field-label">联系地址</div>
<div class="field-content"><input type="text" name="address" id="address"></div>
</div>
</div>
<div class="field required col-sm-12" >
<div class="form-group">
<div class="field-label">联系电话</div>
<div class="field-content">
<div data-role="verification_sender">
<div class="gd-input-container"><input class="mobile-input input-with-icon enhanced-input" placeholder=" " type="tel" name="mobile" id="mobile"></div>
</div>
</div>
</div>
</div>
<div class="field required col-sm-12">
<div class="form-group">
<div class="field-label">古建收藏/投资经验(单位:年)</div>
<div class="field-content">
<div class="gd-input-container"><input class="input-with-icon enhanced-input" max="999999999999999" min="0" placeholder=" " type="number" name="join_year" id="join_year"></div>
</div>
</div>
</div>
<div class="field field-text-area col-sm-12">
<div class="form-group">
<div class="field-label" >古建藏品介绍:<span>(年代、类别、数量、派别等,请填写最多500个字)</span></div>
<div class="field-content">
<textarea rows="3" name="infor" id="infor" style="overflow: hidden; overflow-wrap: break-word; height: 66px;"></textarea>
</div>
</div>
</div>
<div class="field field-text-area col-sm-12">
<div class="form-group">
<div class="field-label" >个人简介、古建行业相关专业资质、收藏成果等介绍(请填写最多500个字)</span></div>
<div class="field-content">
<textarea rows="3" name="experience" id="experience" style="overflow: hidden; overflow-wrap: break-word; height: 66px;"></textarea>
</div>
</div>
</div>
<div class="field col-sm-12">
<div class="form-group">
<div class="field-label" >声明及承诺</div>
<div class="field-content">
<div class="choices">
<label class="radio ">
<div class="radio-button-wrapper"><input class="needsclick field-transformed" type="radio" value="1" checked="checked" name="promise"><i class="selected-icon"></i></div>
<div class="choice-description">本人/本机构承诺上述所填信息均属实<span class="quota"></span>
</div>
</label>
</div>
</div>
</div>
<div class="field submit-field col-md-12 text-center clearfix ">
<input type="submit" name="commit" value="提交" data-disabled-with="提交中..." class="submit gd-btn gd-btn-primary-solid with-shadow">
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<script src="{$yf_theme_path}public/js/jquery.js"></script>
<script src="{$yf_theme_path}index/Public/Js/jquery.form.js"></script>
<script src="{$yf_theme_path}index/Public/Js/jquery.validate.min.js"></script>
<script src="{$yf_theme_path}index/Public/Js/layer/layer.js"></script>
<script src="{$yf_theme_path}index/Public/Js/base.js"></script>
<script>
//身份证号码的验证规则
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(){
wx.config({
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: "{$signPackage.appId}", // 必填,公众号的唯一标识
timestamp:"{$signPackage.timestamp}", // 必填,生成签名的时间戳
nonceStr:"{$signPackage.nonceStr}", // 必填,生成签名的随机串
signature:"{$signPackage.signature}",// 必填,签名
jsApiList: ['updateAppMessageShareData','updateTimelineShareData'] // 必填,需要使用的JS接口列表
});
wx.ready(function(){
//自定义“分享给朋友”及“分享到QQ”按钮的分享内容
wx.updateAppMessageShareData({
title:"{$share.title}", // 分享标题
desc: "{$share.desc}", // 分享描述
link:"{$share.link}", // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl:"{$share.imgUrl}", // 分享图标
success: function () {
// 设置成功
}
});
//获取“分享到朋友圈”按钮点击状态及自定义分享内容接口(即将废弃)
wx.updateTimelineShareData({
title:"{$share.title}", // 分享标题
link:"{$share.link}", // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl:"{$share.imgUrl}", // 分享图标
success: 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 rules={
"username":"required",
"avatar":"required",
"cred_type":"required",
"credcard":{
"required":true,
"isIdCardNo":true
},
//"credfilebtn":"required",
"contact":"required",
"mobile":{
"required":true,
"isMobile":true
},
"join_year":"required"
};
var messages={
"username":"姓名必填",
"avatar":"个人照片必须上传",
"cred_type":"证件类型必选",
"credcard":{
"required":"法人身份证号码必填"
},
"contact":"联系人必填",
"mobile":{
"required":"手机号码必填",
"isMobile":"请正确填写您的手机号码"
},
"join_year":"投资年限必填"
};
tool.commonForm("#postForm",rules,messages,'','',function(data){
layer.open({
title:'反馈结果',
content:data.msg,
yes: function(layero, index){
if(data.code==0&&data.url){
window.location.href=data.url;
}
if(data.code==1){
window.location.href=data.url;
}
}
});
});
});
</script>
</body>
</html>