TG.WXCRM.V4/WEB/Views/TS/WebChatAssistant/WhiteResApply.cshtml

149 lines
6.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@using WX.CRM.WebHelper;
@using WX.CRM.Model
@using WX.CRM.WEB.Handler
@model WX.CRM.Model.MAP.WX_WhiteResApply
@{
ViewBag.Title = "申请白板资源";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<style>
.hiddenClass {
display: none;
}
.attention {
color: red;
padding: 5px;
}
</style>
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
var hllomsg = $("#HolloMsg").val();
if (hllomsg.length < 4) {
alert("字数不能少于4个字");
return;
}
$.messager.confirm('提示', '助手加人时加人的工作微信不要连wifi一定要用手机流量否则容易被封且连累其它工作微信', function (r) {
if (r) {
$.r_ajax({
url: "/TS/WebChatAssistant/WhiteResApplySave",
type: "Post",
data: $("#CreateForm").serialize(),
dataType: "json",
loading: true,
success: function (data) {
if (data.type == 1) {
window.parent.frameReturnByMes('申请成功!');
window.parent.frameReturnByReload(true);
window.parent.frameReturnByClose();
}
else {
if (data.message.indexOf('[dzhxxcf]')>-1)
$.messager.alert('警告', "打招呼信息有当天已有重复,容易被视为广告骚扰信息,容易封号!请再次编辑。", "error");
else
$.messager.alert('警告', data.message, "error");
//window.parent.frameReturnByMes(data.message);
}
}
});
}
});
}
return false;
});
$("#timeType").change(function () {
var sltValue = $(this).val();
if (sltValue == "2") {
$("#hiddTime").removeClass("hiddenClass");
} else {
$("#hiddTime").addClass("hiddenClass");
}
});
});
</script>
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
<div class="formContent">
@using (Html.BeginForm("Edit", "company", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
<table class="fromEditTable ">
<tbody>
<tr>
<td style="width:100px;">
工作微信号:
</td>
<td style="width:310px">
@Html.DropDownListFor(m => m.Alias, ViewBag.MyAlias as List<SelectListItem>)
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.Alias)
</td>
</tr>
<tr>
<td style="width:100px;">
打招呼信息:
</td>
<td style="width:310px">
@Html.TextAreaFor(m => m.HolloMsg, new { rows = "3", cols = "30" })
@*<textarea rows="3" cols="30"></textarea>*@
限定30个字
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.HolloMsg)
</td>
</tr>
<tr>
<td style="width:100px;">
申请资源个数:
</td>
<td style="width:310px">
@Html.DropDownListFor(m => m.ResCount,
new SelectListItem[] {
new SelectListItem() { Value = "1", Text = "1个" },
new SelectListItem() { Value = "5", Text = "5个" },
new SelectListItem() { Value = "10", Text = "10个", Selected=true }
//,new SelectListItem() { Value = "15", Text = "15个"},
//new SelectListItem() { Value = "20", Text = "20个"},
}
)
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.ResCount)
</td>
</tr>
<tr>
<td style="width:100px;">
执行时间:
</td>
<td style="width:310px">
<select name="timeType" id="timeType">
<option value="1">2~3分钟左右执行</option>
<option value="2">自定义时间</option>
</select>
<span id="hiddTime" class="hiddenClass">
<input name="exe_date" type="text" style="width:100px;" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="@Html.Raw(DateTime.Now.ToString("yyyy-MM-dd"))" />
<input name="exe_time" type="text" style="width:60px;" class="Wdate" onclick="WdatePicker({dateFmt:'HH:mm'})" value="@Html.Raw(DateTime.Now.ToString("HH:mm"))" />
</span>
</td>
<td width="120px">
@*@Html.ValidationMessageFor(m => m.ExeTime)*@
</td>
</tr>
</tbody>
</table>
<p class="attention">注意事项:</p>
<p class="attention">1.加人手机不能在WIFI下使用同时加人手机PC版不要登录</p>
<p class="attention">2.手机执行加人操作是,请不要在动手机</p>
<p class="attention">3.打招呼消息当天内不能相同,否则易视为广告骚扰信息,容易封号</p>
}
</div>