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.
DS7/DSWeb/Areas/Dispatch/Views/Stock/Regist.aspx

104 lines
4.0 KiB
Plaintext

3 years ago
<%@ 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"];
%>
<link type="text/css" rel="stylesheet" href="/Areas/Dispatch/Content/MP/css/regist.css" />
<div class="container">
<div class="page form_page js_show">
<header class='demos-header'>
<h2 class="demos-title">注册</h2>
</header>
<div class="clearfix"></div>
<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" id="iptName" placeholder="请输入您的姓名" 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" id="iptTel" placeholder="请输入您的手机号码" 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" id="iptCompName" placeholder="请输入您的公司名称" value="<%=driver.CompanyName %>" <%=(driver.IsAudit?"readonly":"") %> />
</div>
</div>
</div>
<%
if (!driver.IsAudit)
{
%>
<a class="weui-agree" href="#" id="showTooltips">同意条款并注册</a>
<%
}
else
{
%>
<a class="weui-agree" href="#">资料已审核,不能修改</a>
<%
}
%>
</div>
</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');
}
}
});
}
});
$(function () {
$(document).attr("title", "仓储信息查询");
})
</script>
</asp:Content>