最低额度,最高额度,比例数据格式校验

master
liuweiwen 5 years ago
parent 1e24fadb79
commit cc8e2149e0

@ -111,28 +111,28 @@
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>新用户判断标准(说明第几次之前为新用户)(次)</td>
<td class="r">
<input type="text" class="txt " name="new_apply_count" value="1" placeholder="请输入新用户判断标准">
<input type="text" class="txt " name="new_apply_count" value="1" placeholder="请输入新用户判断标准" onkeyup="value=value.replace(/[^\d]/g,'')">
</td>
</tr>
<tr>
<td class="l">新用户资源最低申请额度(/个)</td>
<td class="r">
<input type="text" class="txt " name="new_low_value" value="0" placeholder="请输入最低申请额度">
<input type="text" class="txt " name="new_low_value" value="0" placeholder="请输入最低申请额度" onkeyup="value=value.replace(/[^\d]/g,'')">
</td>
</tr>
<tr>
<td class="l">新用户资源最高申请额度(/个)</td>
<td class="r">
<input type="text" class="txt " name="new_high_value" value="300" placeholder="请输入最高申请额度">
<input type="text" class="txt " name="new_high_value" value="300" placeholder="请输入最高申请额度" onkeyup="value=value.replace(/[^\d]/g,'')">
</td>
</tr>
<tr>
<td class="l">非新用户可申请额度占总充值量的比例(%)</td>
<td class="r">
<input type="text" class="txt " name="old_value_ratio" value="70" placeholder="请输入比例">
<input type="text" class="txt " name="old_value_ratio" value="70" placeholder="请输入比例" onkeyup="value=value.replace(/[^\d]/g,'')">
</td>
</tr>

@ -110,28 +110,28 @@
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>新用户判断标准(说明第几次之前为新用户)(次)</td>
<td class="r">
<input type="text" class="txt " name="new_apply_count" value="{$data['new_apply_count']}" placeholder="请输入新用户判断标准">
<input type="text" class="txt " name="new_apply_count" value="{$data['new_apply_count']}" placeholder="请输入新用户判断标准" onkeyup="value=value.replace(/[^\d]/g,'')">
</td>
</tr>
<tr>
<td class="l">新用户资源最低申请额度(/个)</td>
<td class="r">
<input type="text" class="txt " name="new_low_value" value="{$data['new_low_value']}" placeholder="请输入最低申请额度">
<input type="text" class="txt " name="new_low_value" value="{$data['new_low_value']}" placeholder="请输入最低申请额度" onkeyup="value=value.replace(/[^\d]/g,'')">
</td>
</tr>
<tr>
<td class="l">新用户资源最高申请额度(/个)</td>
<td class="r">
<input type="text" class="txt " name="new_high_value" value="{$data['new_high_value']}" placeholder="请输入最高申请额度">
<input type="text" class="txt " name="new_high_value" value="{$data['new_high_value']}" placeholder="请输入最高申请额度" onkeyup="value=value.replace(/[^\d]/g,'')">
</td>
</tr>
<tr>
<td class="l">非新用户可申请额度占总充值量的比例(%)</td>
<td class="r">
<input type="text" class="txt " name="old_value_ratio" value="{$data['old_value_ratio']}" placeholder="请输入比例">
<input type="text" class="txt " name="old_value_ratio" value="{$data['old_value_ratio']}" placeholder="请输入比例" onkeyup="value=value.replace(/[^\d]/g,'')">
</td>
</tr>

@ -1365,12 +1365,12 @@ CREATE TABLE `tab_resource_verify_config` (
`game_name` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '游戏名称',
`sdk_version` tinyint(2) DEFAULT NULL COMMENT '区别版本 1安卓 2苹果 0 双版本',
`new_apply_count` int(4) DEFAULT '0' COMMENT '新用户判断标准(申请次数不大于此值)',
`new_low_value` decimal(20,2) DEFAULT '0.00' COMMENT '新用户资源最低申请额度',
`new_high_value` decimal(20,2) DEFAULT '0.00' COMMENT '新用户资源最高申请额度',
`old_value_ratio` varchar(5) COLLATE utf8mb4_bin DEFAULT '0' COMMENT '非新用户可申请额度占总充值量的比例',
`new_low_value` int(11) DEFAULT '0' COMMENT '新用户资源最低申请额度',
`new_high_value` int(11) DEFAULT '0' COMMENT '新用户资源最高申请额度',
`old_value_ratio` decimal(5,2) DEFAULT '0.00' COMMENT '非新用户可申请额度占总充值量的比例',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态0-锁定1-正常',
`uid` int(11) DEFAULT '0' COMMENT '后台操作员id',
`add_time` int(11) DEFAULT '0' COMMENT '新增时间',
`update_time` int(11) DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='资源审核配置';
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='资源审核配置';

Loading…
Cancel
Save