Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-starter
提交
8a0d0628
U
uni-starter
项目概览
DCloud
/
uni-starter
通知
4638
Star
228
Fork
210
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8a0d0628
编写于
4月 09, 2021
作者:
芊
芊里
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
手机号仅支持中国大陆
上级
fa1b52d9
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
23 addition
and
13 deletion
+23
-13
uni_modules/uni-login-page/pages/index/index.vue
uni_modules/uni-login-page/pages/index/index.vue
+12
-7
uni_modules/uni-login-page/pages/index/pwd-login.vue
uni_modules/uni-login-page/pages/index/pwd-login.vue
+11
-6
未找到文件。
uni_modules/uni-login-page/pages/index/index.vue
浏览文件 @
8a0d0628
...
@@ -11,9 +11,10 @@
...
@@ -11,9 +11,10 @@
<uni-easyinput
type=
"number"
class=
"phone-input-box"
:inputBorder=
"false"
<uni-easyinput
type=
"number"
class=
"phone-input-box"
:inputBorder=
"false"
v-model=
"formData.phone"
maxlength=
"11"
placeholder=
"请输入手机号"
>
v-model=
"formData.phone"
maxlength=
"11"
placeholder=
"请输入手机号"
>
<template
slot=
"left"
>
<template
slot=
"left"
>
<picker
mode=
"selector"
:range=
"phoneArea"
@
change=
"selectPhoneArea"
>
<!-- 当前仅支持中国大陆手机号 -->
<text
class=
"phone-area"
>
{{
currenPhoneArea
}}
</text>
<!--
<picker
mode=
"selector"
:range=
"phoneArea"
@
change=
"selectPhoneArea"
>
-->
</picker>
<text
class=
"phone-area"
@
click=
"selectPhoneArea"
>
{{
currenPhoneArea
}}
</text>
<!--
</picker>
-->
</
template
>
</
template
>
</uni-easyinput>
</uni-easyinput>
</uni-forms-item>
</uni-forms-item>
...
@@ -51,7 +52,7 @@
...
@@ -51,7 +52,7 @@
text
:
'
隐私政策
'
,
text
:
'
隐私政策
'
,
to
:
'
/pages/ucenter/agree-list/privacy/privacy
'
to
:
'
/pages/ucenter/agree-list/privacy/privacy
'
}],
}],
phoneArea
:
[
'
+86
'
,
'
+87
'
],
phoneArea
:
[
'
+86
'
],
currenPhoneArea
:
'
+86
'
,
currenPhoneArea
:
'
+86
'
,
phoneNumber
:
''
,
phoneNumber
:
''
,
...
@@ -105,7 +106,11 @@
...
@@ -105,7 +106,11 @@
})
})
},
},
selectPhoneArea
(
event
)
{
selectPhoneArea
(
event
)
{
this
.
currenPhoneArea
=
this
.
phoneArea
[
event
.
detail
.
value
];
uni
.
showToast
({
title
:
'
当前仅支持中国大陆手机号
'
,
icon
:
'
none
'
});
// this.currenPhoneArea = this.phoneArea[event.detail.value];
},
},
sendShortMsg
()
{
sendShortMsg
()
{
if
(
!
this
.
canGetShortMsg
)
return
;
if
(
!
this
.
canGetShortMsg
)
return
;
...
...
uni_modules/uni-login-page/pages/index/pwd-login.vue
浏览文件 @
8a0d0628
...
@@ -11,9 +11,10 @@
...
@@ -11,9 +11,10 @@
<uni-easyinput
type=
"number"
class=
"phone-input-box"
:inputBorder=
"false"
<uni-easyinput
type=
"number"
class=
"phone-input-box"
:inputBorder=
"false"
v-model=
"formData.phone"
maxlength=
"11"
placeholder=
"请输入手机号"
>
v-model=
"formData.phone"
maxlength=
"11"
placeholder=
"请输入手机号"
>
<template
slot=
"left"
>
<template
slot=
"left"
>
<picker
mode=
"selector"
:range=
"phoneArea"
@
change=
"selectPhoneArea"
>
<!-- 当前仅支持中国大陆手机号 -->
<text
class=
"phone-area"
>
{{
currenPhoneArea
}}
</text>
<!--
<picker
mode=
"selector"
:range=
"phoneArea"
@
change=
"selectPhoneArea"
>
-->
</picker>
<text
class=
"phone-area"
@
click=
"selectPhoneArea"
>
{{
currenPhoneArea
}}
</text>
<!--
</picker>
-->
</
template
>
</
template
>
</uni-easyinput>
</uni-easyinput>
<uni-easyinput
type=
"number"
class=
"phone-input-box"
:inputBorder=
"false"
<uni-easyinput
type=
"number"
class=
"phone-input-box"
:inputBorder=
"false"
...
@@ -48,7 +49,7 @@
...
@@ -48,7 +49,7 @@
text
:
'
隐私政策
'
,
text
:
'
隐私政策
'
,
to
:
'
/pages/ucenter/agree-list/privacy/privacy
'
to
:
'
/pages/ucenter/agree-list/privacy/privacy
'
}],
}],
phoneArea
:
[
'
+86
'
,
'
+87
'
],
phoneArea
:
[
'
+86
'
],
currenPhoneArea
:
'
+86
'
,
currenPhoneArea
:
'
+86
'
,
formData
:
{
formData
:
{
...
@@ -115,7 +116,11 @@
...
@@ -115,7 +116,11 @@
// 下边是可以登录
// 下边是可以登录
},
},
selectPhoneArea
(
event
)
{
selectPhoneArea
(
event
)
{
this
.
currenPhoneArea
=
this
.
phoneArea
[
event
.
detail
.
value
];
uni
.
showToast
({
title
:
'
当前仅支持中国大陆手机号
'
,
icon
:
'
none
'
});
// this.currenPhoneArea = this.phoneArea[event.detail.value];
},
},
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录