188 lines
7.8 KiB
Plaintext
188 lines
7.8 KiB
Plaintext
@using WX.CRM.WebHelper;
|
||
@{
|
||
ViewBag.Title = "Index";
|
||
Layout = "~/Views/Shared/_content.cshtml";
|
||
}
|
||
<script src="/Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
||
<link href="/Content/themes/blue/easyui.css" rel="stylesheet" />
|
||
<link href="/Content/Site.css" rel="stylesheet" />
|
||
<script src="/Scripts/common.js"></script>
|
||
<link href="/Content/data_grid_list.css" rel="stylesheet" />
|
||
<script src="/Scripts/op/jquery.rewrite.js"></script>
|
||
<style type="text/css">
|
||
.xm-option {
|
||
line-height: 30px;
|
||
}
|
||
|
||
.layui-btn-red {
|
||
background: #FF4D4D;
|
||
}
|
||
</style>
|
||
<div class="layui-fluid" style="padding-left:0px;padding-top:10px;">
|
||
<div class="layui-card" id="topcard" style="width:100%;padding-top:10px;">
|
||
<div class="layui-card-header layui-self-header">
|
||
<div style="float:left;position:relative;">
|
||
验证码发送状态查找
|
||
</div>
|
||
<div class="hrclass" style="position:relative;float: left;"></div>
|
||
</div>
|
||
<div class="layui-card-body " id="contentBody">
|
||
<form class="layui-form selftopwhere" id="myform">
|
||
<div class="layui-form-item">
|
||
<div class="layui-inline" style="width:250px">
|
||
<input type="text" name="mobile" style="width:250px" required lay-verify="required" placeholder="请输入号码或客户Id" autocomplete="off" class="layui-input" value="">
|
||
</div>
|
||
<div class="layui-inline">
|
||
<input class="layui-btn layui-btn-sm layui-btn-ok" data-method="search" type="button" value="查询" />
|
||
<input class="layui-btn layui-btn-sm layui-btn-reset" data-method="reset" type="reset" value="清空" />
|
||
</div>
|
||
<div style="color:red">
|
||
1、接收状态“成功”,客户确看不到验证码,这种是客户收到验证码了,但是可能手机短信屏蔽了,客户需要手机中翻翻看<br />
|
||
2、接收状态“失败”,运营商发送出现了问题,可以拿“返回状态码”翻看运营商对应的错误码<br />
|
||
<a target="_blank" href="https://cloud.tencent.com/document/product/382/59177">腾讯云错误码查看地址</a><br />
|
||
<a target="_blank" href="https://help.aliyun.com/zh/sms/developer-reference/delivery-receipt-error-codes">阿里云错误码查看地址</a><br />
|
||
</div>
|
||
</div>
|
||
</form>
|
||
<table class="layui-hide" id="tab_kefuzhuangtaiyi1" lay-filter="wochao"></table>
|
||
<iframe id="BillOpen" width="0" height="0" scrolling="no" frameborder="0" style="display:none;"></iframe>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!--确定宽度-->
|
||
|
||
<script>
|
||
function onLoadSucced() {
|
||
}
|
||
</script>
|
||
<script>
|
||
var selectRow = {};
|
||
var winindex;
|
||
var layer;
|
||
var rowid;
|
||
//注意:选项卡 依赖 element 模块,否则无法进行功能性操作
|
||
layui.use('element', function () {
|
||
var element = layui.element;
|
||
element.on('tab(tonghuajiankong)', function (n) {
|
||
$(".bodytable").addClass("hidden");
|
||
$("#kefuzhuangtai" + (n.index + 1)).removeClass("hidden");
|
||
});
|
||
element.on('tab(maintab)', function (n) {
|
||
if (n.index == 0)
|
||
$("#bottomcard").removeClass("hidden");
|
||
else
|
||
$("#bottomcard").addClass("hidden");
|
||
});
|
||
});
|
||
layui.use(['laypage', 'layer', 'table', 'laydate', 'form'], function () {
|
||
var form = layui.form;
|
||
var laydate = layui.laydate;
|
||
layer = layui.layer;
|
||
table = layui.table;
|
||
table.render({
|
||
id: 'listReload'//列表别名ID
|
||
, elem: '#tab_kefuzhuangtaiyi1'
|
||
, url: 'GetSmsRecordGetList'
|
||
, method: 'POST'
|
||
, cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 新增
|
||
, page: true
|
||
, limit: 90
|
||
, height: "full-160"
|
||
, autoSort: false
|
||
//, size:"sm"
|
||
, cols: [[
|
||
, { field: 'numbers', type: 'numbers' }
|
||
, { field: 'id', title: '消息ID', width: 80 }
|
||
, { field: 'umid', title: '客户Id', width: 300 }
|
||
, { field: 'mobile', title: '号码', width: 150 }
|
||
, { field: 'channel_name', title: '短信运营商', width: 150 }
|
||
, { field: 'sms_content', title: '内容', width: 340}
|
||
, {
|
||
field: 'send_state', title: '发送状态', templet: function (e) {
|
||
if (e.send_state) {
|
||
return "<font color='green'>成功</font>"
|
||
} else {
|
||
return "<font color='red'>失败</font>"
|
||
}
|
||
}, width: 100
|
||
}
|
||
, { field: 'send_time', title: '发送时间', width: 170 }
|
||
, { field: 'receipt_code', title: '返回状态码', width: 120 }
|
||
//, { field: 'receipt_status', title: '接收状态', width: 120}
|
||
, { field: 'receipt_time', title: '接收时间', width: 170 }
|
||
, {
|
||
field: 'receipt_success', title: '接收状态', width: 100, templet: function (e) {
|
||
if (e.receipt_code) {
|
||
if (e.receipt_code == 'DELIVERED' || e.receipt_code == 'DELIVRD') {
|
||
return "<font color='green'>成功</font>"
|
||
} else {
|
||
return "<font color='red'>失败</font>"
|
||
}
|
||
} else {
|
||
return ""
|
||
}
|
||
}
|
||
}
|
||
]], where: $("#myform").serializeFormJSON()
|
||
,
|
||
done: function (res, curr, count) {
|
||
$("#isExe").val("");
|
||
$("#fiterUser").val("");
|
||
}
|
||
});
|
||
//监听行单击事件(单击事件为:rowDouble)
|
||
table.on('row(wochao)', function (obj) {
|
||
var data = obj.data;
|
||
//console.log(data);
|
||
//标注选中样式
|
||
obj.tr.addClass('self-table-click').siblings().removeClass('self-table-click');
|
||
selectRow = data;
|
||
});
|
||
table.on('sort(wochao)', function (obj) {
|
||
console.log(obj.field);
|
||
console.log(obj.type);
|
||
table.reload('listReload',
|
||
{
|
||
initSort: obj
|
||
, where: {
|
||
sort: obj.field,
|
||
order: obj.type
|
||
}
|
||
})
|
||
});
|
||
var active = {
|
||
search: function () {
|
||
var param = $("#myform").serializeFormJSON();
|
||
table.reload('listReload', {
|
||
where: param,
|
||
page: {
|
||
curr: 1
|
||
}
|
||
});
|
||
}, reset: function () {
|
||
$("#deptid").val("");
|
||
selectChannel.reset();
|
||
allChannel.forEach(function (item) {
|
||
item.selected = false;
|
||
})
|
||
selectChannel = xmSelect.render(optionsChannel);
|
||
selectChannel.update({ data: allChannel });
|
||
}
|
||
};
|
||
$('.layui-btn').on('click', function () {
|
||
var othis = $(this), method = othis.data('method');
|
||
console.log(method);
|
||
active[method] ? active[method].call(this, othis) : '';
|
||
|
||
});
|
||
});
|
||
function Closed() {
|
||
layer.close(winindex);
|
||
}
|
||
function TableReload() {
|
||
table.reload('listReload', {
|
||
|
||
});
|
||
}
|
||
</script>
|