@@ -1,5 +0,0 @@
-// 正则有效手机号码
-export const isvalidPhone = function (str) {
- const reg = /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/
- return reg.test(str)
-}
@@ -47,7 +47,7 @@
</template>
<script>
- import { isvalidPhone } from '@/libs/validate.js'
+ import { isvalidPhone } from '@/libs/tools.js'
import Address from '@/components/address.vue'
import uniPopup from '@/components/uni-popup/uni-popup.vue'
import popupCon from '@/components/uni-popup/popup-con.vue'
@@ -33,7 +33,7 @@
import { memberVerifyCode, memberChangePwd, memberValidateVerifyCode, memberGetByMobile } from '@/api/user.js'
@@ -41,7 +41,7 @@
import market from "@/js_sdk/dc-market/market.js"
import { checkVersionToLoadUpdate, setStorageForAppVersion } from '@/libs/tools'
-import { isvalidPhone } from '@/libs/validate.js';
+import { isvalidPhone } from '@/libs/tools.js';
import { login } from '@/api/user.js';
import { getSysVersion } from '@/api/data.js'
export default {