const isMobilePhoneNum = (params) => { const areaCode = params.areaCode || 'cn' const str = params.str switch (areaCode) { case 'de': break default: case 'cn': const reg = /^1[3456789]d{9}$/ return reg.test(str) } } export default { notShorterStr, isLogined, isLoginInputOK, encryptLoginPwd, isMobilePhoneNum }