|
@@ -279,12 +279,17 @@
|
|
|
_self.val(6);
|
|
|
return;
|
|
|
}
|
|
|
- rate = _.round(rate);
|
|
|
+ // 如果是小数,自动转成整数
|
|
|
+ if (rate.toString().indexOf('.') !== -1) {
|
|
|
+ toastr.warning('请输入1-24之前的整数值');
|
|
|
+ }
|
|
|
+ rate = parseInt(rate);
|
|
|
if(rate < 1 || rate > 24) {
|
|
|
toastr.error('请输入1-24之前的整数值');
|
|
|
_self.val(6);
|
|
|
return;
|
|
|
}
|
|
|
+ _self.val(rate);
|
|
|
}, 500);
|
|
|
});
|
|
|
$('#set_wx_button').click(function () {
|