ComplianceServer/oldcode/WEB/Views/Csvr/CustomerQH/CustomerResid.cshtml

71 lines
1.9 KiB
Plaintext

@{
Layout = null;
}
<style type="text/css">
.DisTable {
display: block;
}
.NoneTable {
display: none;
}
.curshow {
padding: 0 20px 5px;
background-color: #F7FAFE;
}
.curshow2 {
padding: 0 20px 5px;
background-color: #F7FAFE;
}
.curhide {
padding: 0 20px 5px;
}
</style>
<div class="group content_title_width">
<span>绑定客户信息</span>
<div class="togglebtn"></div>
</div>
<div class="content_div">
<table class="layui-table content_width">
<tr>
<td>资金账号:</td>
<td><input type="text" style="width:150px" id="UserAccount" name="UserAccount" /></td>
<td>手机号:</td>
<td><input type="text" style="width:150px" id="telephone" name="telephone" /> </td>
<td>
<input id="btnBind" type="button" class="btn btn-primary" onclick="bindCustomerResid()" style="width:80px;text-align:center" value="绑定">
</td>
</tr>
</table>
</div>
<script type="text/javascript">
function bindCustomerResid()
{
var tel = document.getElementById("telephone").value;
var userAccount = document.getElementById("UserAccount").value;
if (tel == "" || userAccount == "") {
window.frameReturnByMes("不能有空");
}
$.ajax({
url: "/CustomerQH/BindCustomerResid?resid=@ViewBag.ResId&&userAccount=" + userAccount + "&&telephone=" + tel,
type: "Post",
data: "",
dataType: "json",
success: function (data) {
if (data.type == 1) {
window.frameReturnByMes(data.message);
}
else {
window.frameReturnByMes(data.message);
}
}
});
}
</script>