|
@@ -63,8 +63,9 @@ class MatchSignService extends CrudService {
|
|
|
|
|
|
checkAgeInRange(age, cardAge) {
|
|
|
let next = true;
|
|
|
- if (_.isString(age) && age.include('-')) {
|
|
|
+ if (_.isString(age) && age.indexOf('-') > -1) {
|
|
|
const arr = age.split('-');
|
|
|
+ console.log(arr);
|
|
|
const start = parseInt(_.head(arr));
|
|
|
const end = parseInt(_.last(arr));
|
|
|
// inRange 是左闭右开区间,所以加1,形成闭区间
|