mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 20:03:26 +08:00
uniapp【修复】:添加地址时,验证手机号
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
import { useShopConfigStore } from '@/core/store';
|
||||
import { handleShowToast } from '@/core/utils';
|
||||
import { useLoadingFn } from '@/core/hooks';
|
||||
import { mobile } from '@/uni_modules/uv-ui-tools/libs/function/test.js';
|
||||
|
||||
interface QueryParams {
|
||||
type : string;
|
||||
@@ -294,7 +295,7 @@
|
||||
if (!state.form.mobile) {
|
||||
handleShowToast('请输入收货人手机号'); return;
|
||||
}
|
||||
if (state.form.mobile.length !== 11) {
|
||||
if (!mobile(state.form.mobile)) {
|
||||
handleShowToast('收货人手机号格式不正确'); return;
|
||||
}
|
||||
if (state.form.areaId <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user