Browse Source

success merge branch 'zhangrenyuan/feature-20250623164058-金币前端' into milestone-20250623-金币前端

zhangrenyuan/feature-20250623164058-金币前端
zry 4 weeks ago
parent
commit
ae1aafdd4c
  1. 21
      src/views/recharge/addCoinRecharge.vue

21
src/views/recharge/addCoinRecharge.vue

@ -187,6 +187,13 @@ const rules = reactive({
return; return;
} }
//
const integerPart = value.split('.')[0];
if (integerPart.length > 6) {
callback(new Error('整数位数不能超过6位'));
return;
}
// //
if (value.includes('.')) { if (value.includes('.')) {
const decimalPart = value.split('.')[1]; const decimalPart = value.split('.')[1];
@ -218,6 +225,13 @@ const rules = reactive({
return; return;
} }
//
const integerPart = value.split('.')[0];
if (integerPart.length > 6) {
callback(new Error('整数位数不能超过6位'));
return;
}
// //
if (value.includes('.')) { if (value.includes('.')) {
const decimalPart = value.split('.')[1]; const decimalPart = value.split('.')[1];
@ -255,6 +269,13 @@ const rules = reactive({
return; return;
} }
//
const integerPart = value.split('.')[0];
if (integerPart.length > 6) {
callback(new Error('整数位数不能超过6位'));
return;
}
// //
if (value.includes('.')) { if (value.includes('.')) {
const decimalPart = value.split('.')[1]; const decimalPart = value.split('.')[1];

Loading…
Cancel
Save