<?php include(pe_tpl('header.html'));?>
<div class="pagetop">
	<div class="fh"><a href="user.php?mod=userbank"></a></div>
	<div><?php echo $menutitle ?></div>
	<div class="cd"><a href=" "></a></div>
	<?php include(pe_tpl('top_menu.html'));?>
</div>
<form method="post" id="form">
<div class="main">
	<div class="zc_box2">
		<div class="zc_list">
			<div class="zc_name">银行名称</div>
			<div class="zc_text" >
				<input type="text" name="userbank_type" class="zc_input1">
<pre><code>		&lt;/div&gt;
	&lt;/div&gt;
	&lt;div class=&quot;zc_list&quot;&gt;
		&lt;div class=&quot;zc_name&quot;&gt;银行卡号&lt;/div&gt;
		&lt;div class=&quot;zc_text&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;userbank_num&quot; class=&quot;zc_input1&quot; value=&quot;&quot; /&gt;&lt;/div&gt;
	&lt;/div&gt;
	&lt;div class=&quot;zc_list&quot;&gt;
		&lt;div class=&quot;zc_name&quot;&gt;持卡人姓名&lt;/div&gt;
		&lt;div class=&quot;zc_text&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;userbank_tname&quot; class=&quot;zc_input1&quot; value=&quot;&quot; /&gt;&lt;/div&gt;
	&lt;/div&gt;
	&lt;div class=&quot;zc_list&quot;&gt;
		&lt;div class=&quot;zc_name&quot;&gt;手机号码&lt;/div&gt;
		&lt;div class=&quot;zc_text&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;user_phone&quot; class=&quot;zc_input1&quot; value=&quot;&quot; /&gt;&lt;/div&gt;
	&lt;/div&gt;
	&lt;div class=&quot;zc_list&quot;&gt;
		&lt;div class=&quot;zc_name&quot; style=&quot;width:135px;&quot;&gt;支付密码&lt;/div&gt;
		&lt;div class=&quot;zc_text&quot; style=&quot;margin-left:150px;&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;user_paypw&quot; class=&quot;zc_input1&quot; value=&quot;&quot; /&gt;&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;loginbtn&quot; style=&quot;margin:20px 10px;&quot;&gt;
	&lt;input type=&quot;hidden&quot; name=&quot;pe_token&quot; value=&quot;&lt;?php echo $pe_token ?&gt;&quot; /&gt;
	&lt;input type=&quot;hidden&quot; name=&quot;pesubmit&quot; /&gt;	
	&lt;input type=&quot;button&quot; value=&quot;提交&quot; /&gt;
&lt;/div&gt;
</code></pre>
</div>
</form>
<script type="text/javascript">
$(function(){
	/*js_bankselect();
	$(":input[name='userbank_type']").change(function(){
		js_bankselect();
	});*/
	pe_select_radio('userbank_type', $(":input[name='userbank_type']:eq(0)").val(), function(json){
		$("#userbank_type_show").html($(":input[name='userbank_type']:checked").attr("userbank_name"));
		js_bankselect();
		app_page_close();
	});
	$(":button").click(function(){
		var userbank_type = $(":input[name='userbank_type']:checked").val().trim();
		if (userbank_type == '') {
			app_tip('请填写正确的信息');
			return false;
		}
<pre><code>	if ($(&quot;:input[name='userbank_num']&quot;).val().trim() == '') {
		app_tip('请填写正确的信息');
		return false;
	}
	if ($(&quot;:input[name='userbank_tname']&quot;).val().trim() == '') {
		app_tip('请填写正确的信息');
		return false;
	}
	if ($(&quot;:input[name='user_phone']&quot;).val().trim() == '') {
		app_tip('请填写正确的信息');
		return false;
	}
	if ($(&quot;:input[name='user_paypw']&quot;).val().trim() == '') {
		app_tip('请填写支付密码');
		return false;
	}
	app_submit('user.php?mod=userbank&amp;act=add', function(json){
		if (json.result) {
			if ('&lt;?php echo $_g_fromto ?&gt;') {
				app_open(&quot;&lt;?php echo $_g_fromto ?&gt;&quot;, 1000);				
			}
			else {
				app_open(&quot;user.php?mod=userbank&quot;, 1000);				
			}
		}
	})
})
</code></pre>
<p>})
function js_bankselect() {
var userbank_type = $(&quot;:input[name='userbank_type']:checked&quot;).val();
if (userbank_type == 'alipay' || userbank_type == 'wechat') {
$(&quot;#userbank_address&quot;).hide().find(&quot;:input&quot;).attr(&quot;disabled&quot;, &quot;disabled&quot;);
}
else {
$(&quot;#userbank_address&quot;).show().find(&quot;:input&quot;).removeAttr(&quot;disabled&quot;);
}
}
</script></p>
<?php include(pe_tpl('footer.html'));?
php includepe_tplheaderhtml;div class=pagetop	div class=fha href=userphpmod=userbankadiv	divphp echo $menutitle div	div class=cda href= adiv	php includepe_tpltop_menuhtml;divform method=post id=formdi

原文地址: http://www.cveoy.top/t/topic/h5q3 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录