You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
3.5 KiB
Plaintext
101 lines
3.5 KiB
Plaintext
<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Dispatch/Views/Shared/MP.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="Body" runat="server">
|
|
<%
|
|
DispInfoClientRegistViewModel driver = (DispInfoClientRegistViewModel)ViewData["infoClient"];
|
|
%>
|
|
<header class='demos-header'>
|
|
<h2 class="demos-title">注册</h2>
|
|
</header>
|
|
<div class="weui-cells weui-cells_form">
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">姓名</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" placeholder="请输入姓名" id="iptName" value="<%=driver.Name %>" <%=(driver.IsAudit?"readonly":"") %> />
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">手机号码</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" placeholder="请输入手机号码" id="iptTel" value="<%=driver.Tel %>" <%=(driver.IsAudit?"readonly":"") %> />
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">公司名称</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" placeholder="请输入公司名称" id="iptCompName" value="<%=driver.CompanyName %>" <%=(driver.IsAudit?"readonly":"") %> />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="weui-btn-area">
|
|
<%
|
|
if (!driver.IsAudit)
|
|
{
|
|
%>
|
|
<a class="weui-btn weui-btn_primary" href="javascript:" id="showTooltips">提交</a>
|
|
<%
|
|
}
|
|
else
|
|
{
|
|
%>
|
|
<a class="weui-btn weui-btn_default weui-btn_disabled" href="javascript:">资料已审核,不能修改</a>
|
|
<%
|
|
}
|
|
%>
|
|
</div>
|
|
</asp:Content>
|
|
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="FooterScript" runat="server">
|
|
<script>
|
|
var openid = '<%=ViewData["openid"]%>';
|
|
$("#showTooltips").click(function () {
|
|
var name = $('#iptName').val();
|
|
var tel = $('#iptTel').val();
|
|
var regName = $('#iptCompName').val();
|
|
if (!name || name.length == 0) {
|
|
$.toptip('请输入姓名');
|
|
}
|
|
else if (!tel || !/1[3|4|5|6|7|8]\d{9}/.test(tel)) {
|
|
$.toptip('请输入正确的手机号');
|
|
}
|
|
else if (!regName || regName.length == 0) {
|
|
$.toptip('请输入公司名称');
|
|
}
|
|
else {
|
|
var obj = {
|
|
openid: openid,
|
|
name: name,
|
|
tel: tel,
|
|
companyName: regName
|
|
};
|
|
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "/Dispatch/Dispatch/DispInfoClientRegist",
|
|
dataType: "json",
|
|
data: obj,
|
|
success: function (data) {
|
|
if (data.Success) {
|
|
$.toptip('提交成功', 'success');
|
|
} else {
|
|
$.toptip(data.Message, 'success');
|
|
}
|
|
}
|
|
});
|
|
|
|
}
|
|
});
|
|
</script>
|
|
</asp:Content>
|
|
|
|
|