记得上下班打卡 | git大法好,push需谨慎

Commit 56f08c78 authored by dongchun's avatar dongchun

修改代理相关内容

parent dcabf72d
......@@ -49,7 +49,7 @@
</div>
</div>
<div class="addItems">
<span><em style="color: red;">*</em>票提设置</span><input id="ticket" type="text" placeholder="票提设置%" class="form-control" style="width:200px;height: 30px;">
<span><em style="color: red;">*</em>票提设置</span><input id="ticket" type="number" placeholder="票提设置%" class="form-control" style="width:200px;height: 30px;">
</div>
</div>
</div>
......
......@@ -202,6 +202,8 @@
function create(){
$.modal.open('创建特邀代理',prefix2+'/smileUserListAdd', 450, 400, (index, layero) => {
let body = layer.getChildFrame('body', index);
let testMethod = /^([0-9]{1,2}|100)$/;
if (!testMethod.test(Number(body.find('#ticket').val()))) return layer.msg('票提应为0-100的正整数!')
let data = {
describe: body.find('#text').val(),
name: body.find('#name').val(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment