Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
言程序plus
uni-starter
提交
2b828b6a
U
uni-starter
项目概览
言程序plus
/
uni-starter
与 Fork 源项目一致
Fork自
DCloud / uni-starter
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
2b828b6a
编写于
4月 08, 2021
作者:
芊
芊里
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
输入框使用easyInput
上级
988eede8
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
210 addition
and
375 deletion
+210
-375
uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue
.../uni-easyinput/components/uni-easyinput/uni-easyinput.vue
+1
-0
uni_modules/uni-login-page/common/loginPage.css
uni_modules/uni-login-page/common/loginPage.css
+16
-7
uni_modules/uni-login-page/common/myStyle.css
uni_modules/uni-login-page/common/myStyle.css
+0
-267
uni_modules/uni-login-page/components/auth-btn/auth-btn.vue
uni_modules/uni-login-page/components/auth-btn/auth-btn.vue
+1
-1
uni_modules/uni-login-page/pages/index/index.vue
uni_modules/uni-login-page/pages/index/index.vue
+77
-40
uni_modules/uni-login-page/pages/index/pwd-login.vue
uni_modules/uni-login-page/pages/index/pwd-login.vue
+63
-33
uni_modules/uni-login-page/pages/index/pwd-retrieve.vue
uni_modules/uni-login-page/pages/index/pwd-retrieve.vue
+52
-27
未找到文件。
uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue
浏览文件 @
2b828b6a
...
...
@@ -2,6 +2,7 @@
<view
class=
"uni-easyinput"
:class=
"
{'uni-easyinput-error':msg}" :style="{color:inputBorder
&&
msg?'#dd524d':styles.color}">
<view
class=
"uni-easyinput__content"
:class=
"
{'is-input-border':inputBorder ,'is-input-error-border':inputBorder
&&
msg,'is-textarea':type==='textarea','is-disabled':disabled}"
:style="{'border-color':inputBorder
&&
msg?'#dd524d':styles.borderColor,'background-color':disabled?styles.disableColor:''}">
<slot
name=
"left"
></slot>
<uni-icons
v-if=
"prefixIcon"
class=
"content-clear-icon"
:type=
"prefixIcon"
color=
"#c0c4cc"
@
click=
"onClickIcon('prefix')"
></uni-icons>
<textarea
v-if=
"type === 'textarea'"
class=
"uni-easyinput__content-textarea"
:class=
"
{'input-padding':inputBorder}"
:name="name" :value="val" :placeholder="placeholder" :placeholderStyle="placeholderStyle" :disabled="disabled"
...
...
uni_modules/uni-login-page/common/loginPage.css
浏览文件 @
2b828b6a
...
...
@@ -63,13 +63,24 @@ page {
.phone-area
{
padding
:
0
20
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
/* #ifdef APP-NVUE */
border-right-width
:
1
rpx
;
border-right-color
:
#d7d9d8
;
/* #endif */
/* #ifndef APP-NVUE */
border-right
:
1
rpx
solid
#d7d9d8
;
/* #endif */
}
.phone-input
{
flex
:
1
;
border-left-width
:
1px
;
border-left-color
:
#d7d9d8
;
flex
:
1
;
/* #ifndef APP-NVUE */
border-left
:
1
rpx
solid
#D7D9D8
;
/* #endif */
/* #ifdef APP-NVUE */
border-left-width
:
1
rpx
;
border-left-color
:
#d7d9d8
;
/* #endif */
padding
:
0
20
rpx
;
font-size
:
30
rpx
;
}
...
...
@@ -83,8 +94,6 @@ page {
.send-btn-box
{
height
:
85
rpx
;
background-color
:
#d8d8da
;
margin-bottom
:
50
rpx
;
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
...
...
uni_modules/uni-login-page/common/myStyle.css
已删除
100644 → 0
浏览文件 @
988eede8
.flex
{
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
}
.w-750
{
width
:
750
rpx
;
}
.w-630
{
width
:
630
rpx
;
}
.w-400
{
width
:
400
rpx
;
}
.w-375
{
width
:
375
rpx
;
}
.flex-1
{
flex
:
1
;
}
.flex-column
{
flex-direction
:
column
;
}
.flex-row
{
flex-direction
:
row
;
}
.flex-wrap
{
flex-wrap
:
wrap
;
}
.flex-nowrap
{
flex-wrap
:
nowrap
;
}
.align-center
{
align-items
:
center
;
}
.align-start
{
align-items
:
flex-start
;
}
.align-end
{
align-items
:
flex-end
;
}
.justify-center
{
justify-content
:
center
;
}
.justify-start
{
justify-content
:
flex-start
;
}
.justify-end
{
justify-content
:
flex-end
;
}
.justify-between
{
justify-content
:
space-between
;
}
.round
{
border-radius
:
6
rpx
;
}
.round-0
{
border-radius
:
0
rpx
;
}
.round-1
{
border-radius
:
10
rpx
;
}
.p-1
{
padding
:
10
rpx
;
}
.p-2
{
padding
:
20
rpx
;
}
.p-3
{
padding
:
30
rpx
;
}
.p-4
{
padding
:
40
rpx
;
}
.p-5
{
padding
:
50
rpx
;
}
.px-1
{
padding-left
:
10
rpx
;
padding-right
:
10
rpx
;
}
.px-2
{
padding-left
:
20
rpx
;
padding-right
:
20
rpx
;
}
.px-3
{
padding-left
:
30
rpx
;
padding-right
:
30
rpx
;
}
.px-4
{
padding-left
:
40
rpx
;
padding-right
:
40
rpx
;
}
.px-5
{
padding-left
:
50
rpx
;
padding-right
:
50
rpx
;
}
.py-1
{
padding-top
:
10
rpx
;
padding-bottom
:
10
rpx
;
}
.py-2
{
padding-top
:
20
rpx
;
padding-bottom
:
20
rpx
;
}
.py-3
{
padding-top
:
30
rpx
;
padding-bottom
:
30
rpx
;
}
.py-4
{
padding-top
:
40
rpx
;
padding-bottom
:
40
rpx
;
}
.py-5
{
padding-top
:
50
rpx
;
padding-bottom
:
50
rpx
;
}
.pt-1
{
padding-top
:
10
rpx
;
}
.pt-2
{
padding-top
:
20
rpx
;
}
.pt-5
{
padding-top
:
50
rpx
;
}
.m-1
{
margin
:
10
rpx
;
}
.m-2
{
margin
:
20
rpx
;
}
.m-3
{
margin
:
30
rpx
;
}
.m-4
{
margin
:
40
rpx
;
}
.m-5
{
margin
:
50
rpx
;
}
.mt-2
{
margin-top
:
20
rpx
;
}
.mt-5
{
margin-top
:
50
rpx
;
}
.mx-1
{
margin-left
:
10
rpx
;
margin-right
:
10
rpx
;
}
.mx-2
{
margin-left
:
20
rpx
;
margin-right
:
20
rpx
;
}
.mx-3
{
margin-left
:
30
rpx
;
margin-right
:
30
rpx
;
}
.mx-4
{
margin-left
:
40
rpx
;
margin-right
:
40
rpx
;
}
.mx-5
{
margin-left
:
50
rpx
;
margin-right
:
50
rpx
;
}
.my-1
{
margin-top
:
10
rpx
;
margin-bottom
:
10
rpx
;
}
.my-2
{
margin-top
:
20
rpx
;
margin-bottom
:
20
rpx
;
}
.my-3
{
margin-top
:
30
rpx
;
margin-bottom
:
30
rpx
;
}
.my-4
{
margin-top
:
40
rpx
;
margin-bottom
:
40
rpx
;
}
.my-5
{
margin-top
:
50
rpx
;
margin-bottom
:
50
rpx
;
}
.font-blod
{
font-weight
:
bold
;
}
.font-bolder
{
font-weight
:
900
;
}
.font-lighter
{
font-weight
:
100
;
}
.font-normal
{
font-weight
:
normal
;
}
.font-20
{
font-size
:
20
rpx
;
}
.font-22
{
font-size
:
22
rpx
;
}
.font-24
{
font-size
:
24
rpx
;
}
.font-26
{
font-size
:
26
rpx
;
}
.font-28
{
font-size
:
28
rpx
;
}
.font-30
{
font-size
:
30
rpx
;
}
.font-32
{
font-size
:
32
rpx
;
}
.font-34
{
font-size
:
34
rpx
;
}
.font-36
{
font-size
:
36
rpx
;
}
.font-40
{
font-size
:
40
rpx
;
}
.font-50
{
font-size
:
50
rpx
;
}
.font-60
{
font-size
:
60
rpx
;
}
.font-100
{
font-size
:
100
rpx
;
}
.text-white
{
color
:
#FFFFFF
;
}
.text-sub
{
color
:
#8a8f8b
;
}
.bg-white
{
background-color
:
#FFFFFF
;
}
.hover
{
opacity
:
0.8
;
}
.border-test
{
/* #ifdef APP-NVUE */
border-width
:
1
rpx
;
border-color
:
#DD524D
;
/* #endif */
/* #ifndef APP-NVUE */
border
:
1
rpx
solid
#DD524D
;
box-sizing
:
border-box
;
/* #endif */
}
\ No newline at end of file
uni_modules/uni-login-page/components/auth-btn/auth-btn.vue
浏览文件 @
2b828b6a
...
...
@@ -105,7 +105,7 @@
</
script
>
<
style
>
@import
url("../../common/myStyle.css")
;
/* @import url("../../common/myStyle.css"); */
.auth-logo
{
width
:
84
rpx
;
height
:
84
rpx
;
...
...
uni_modules/uni-login-page/pages/index/index.vue
浏览文件 @
2b828b6a
<
template
>
<view
class=
"wrap"
v-show=
"isShow"
>
<view
class=
"wrap"
v-show=
"isShow"
>
<uni-nav-bar
@
clickLeft=
"back"
left-icon=
"back"
right-text=
"帮助"
:statusBar=
"true"
:border=
"false"
></uni-nav-bar>
<view
class=
"wrap-content"
>
<view
class=
"content"
>
<!-- 顶部文字 -->
<text
class=
"content-top-title"
>
登陆后即可展示自己
</text>
<login-ikonw
class=
"login-iknow"
:link=
"link"
text=
"登录即表示同意用户协议和隐私政策"
></login-ikonw>
<!-- 登录框 (选择手机号所属国家和地区需要另行实现) -->
<view
class=
"phone-input-box"
>
<picker
mode=
"selector"
:range=
"phoneArea"
@
change=
"selectPhoneArea"
>
<text
class=
"phone-area"
>
{{
currenPhoneArea
}}
</text>
</picker>
<input
type=
"number"
class=
"phone-input"
maxlength=
"11"
placeholder=
"请输入手机号"
v-model=
"phoneNumber"
/>
</view>
<!-- tip -->
<text
class=
"tip-text"
>
未注册的手机号验证通过后蒋自动注册
</text>
<!-- 发送按钮 -->
<view
class=
"send-btn-box"
hover-class=
"hover"
@
click=
"sendShortMsg"
:class=
"canGetShortMsg?'send-btn-active':''"
>
<text
class=
"send-btn-text"
>
获取短信验证码
</text>
</view>
<uni-forms
ref=
"form"
:value=
"formData"
:rules=
"rules"
>
<uni-forms-item
name=
"phone"
>
<uni-easyinput
type=
"number"
class=
"phone-input-box"
:inputBorder=
"false"
v-model=
"formData.phone"
maxlength=
"11"
placeholder=
"请输入手机号"
>
<template
slot=
"left"
>
<picker
mode=
"selector"
:range=
"phoneArea"
@
change=
"selectPhoneArea"
>
<text
class=
"phone-area"
>
{{
currenPhoneArea
}}
</text>
</picker>
</
template
>
</uni-easyinput>
</uni-forms-item>
<button
class=
"send-btn-box"
:disabled=
"!canGetShortMsg"
:type=
"canGetShortMsg?'primary':'default'"
@
click=
"sendShortMsg"
>
获取短信验证码
</button>
</uni-forms>
<!-- tip -->
<text
class=
"tip-text"
>
未注册的手机号验证通过后将自动注册
</text>
<!-- 其他登录方式 -->
<view
class=
"auth-box"
>
...
...
@@ -33,7 +33,7 @@
</view>
</view>
<!-- 登录按钮弹窗 -->
<login-action-sheet
ref=
"loginActionSheet"
></login-action-sheet>
<login-action-sheet
ref=
"loginActionSheet"
></login-action-sheet>
<uni-quick-login></uni-quick-login>
</view>
</template>
...
...
@@ -41,8 +41,8 @@
<
script
>
export
default
{
data
()
{
return
{
isShow
:
false
,
return
{
isShow
:
false
,
link
:
[{
text
:
'
用户协议
'
,
to
:
'
/baidu.com
'
...
...
@@ -52,21 +52,47 @@
}],
phoneArea
:
[
'
+86
'
,
'
+87
'
],
currenPhoneArea
:
'
+86
'
,
phoneNumber
:
''
phoneNumber
:
''
,
formData
:
{
phone
:
''
},
rules
:
{
// 对phone字段进行必填验证
phone
:
{
rules
:
[{
required
:
true
,
errorMessage
:
'
请输入手机号
'
,
},
{
pattern
:
/^1
\d{10}
$/
,
errorMessage
:
'
手机号格式不正确
'
,
}
]
}
}
}
},
onReady
()
{
setTimeout
(()
=>
{
this
.
isShow
=
true
},
1500
);
},
onReady
()
{
setTimeout
(()
=>
{
this
.
isShow
=
true
},
1500
);
},
computed
:
{
canGetShortMsg
()
{
let
reg
=
/^1
\d{10}
$/
;
return
reg
.
test
(
this
.
phoneNumber
);
return
reg
.
test
(
this
.
formData
.
phone
);
}
},
methods
:
{
// 触发提交表单
submit
()
{
this
.
$refs
.
form
.
submit
().
then
(
res
=>
{
console
.
log
(
'
表单数据信息:
'
,
res
);
}).
catch
(
err
=>
{
console
.
log
(
'
表单错误信息:
'
,
err
);
})
},
selectPhoneArea
(
event
)
{
this
.
currenPhoneArea
=
this
.
phoneArea
[
event
.
detail
.
value
];
},
...
...
@@ -86,21 +112,32 @@
},
openLoginList
()
{
this
.
$refs
.
loginActionSheet
.
open
();
},
back
()
{
uni
.
navigateBack
()
},
back
()
{
uni
.
navigateBack
()
}
}
}
</
script
>
<
style
>
@import
url("../../common/loginPage.css")
;
.content-top-title
{
text-align
:
center
;
}
.login-iknow
{
justify-content
:
center
;
<
style
>
@import
url("../../common/loginPage.css")
;
.content-top-title
{
text-align
:
center
;
}
.login-iknow
{
justify-content
:
center
;
}
.phone-area
{
/* #ifdef APP-NVUE */
border-right-width
:
1
rpx
;
border-right-color
:
#d7d9d8
;
/* #endif */
/* #ifndef APP-NVUE */
border-right
:
1
rpx
solid
#d7d9d8
;
/* #endif */
}
</
style
>
\ No newline at end of file
</
style
>
uni_modules/uni-login-page/pages/index/pwd-login.vue
浏览文件 @
2b828b6a
...
...
@@ -4,27 +4,24 @@
<view
class=
"content"
>
<!-- 顶部文字 -->
<text
class=
"content-top-title"
>
手机号密码登录
</text>
<!-- 登录框 (选择手机号所属国家和地区需要另行实现) -->
<view
class=
"phone-input-box"
>
<picker
mode=
"selector"
:range=
"phoneArea"
@
change=
"selectPhoneArea"
>
<text
class=
"phone-area"
>
{{
currenPhoneArea
}}
</text>
</picker>
<input
type=
"number"
class=
"phone-input"
placeholder=
"请输入手机号"
maxlength=
"11"
v-model=
"phoneNumber"
/>
</view>
<view
class=
"phone-input-box"
>
<input
type=
"password"
:password=
"true"
class=
"phone-input pwd-input"
placeholder=
"请输入密码"
v-model=
"password"
/>
</view>
<login-ikonw
class=
"login-iknow"
:link=
"link"
text=
"登录即表示同意用户协议和隐私政策"
></login-ikonw>
<!-- 发送按钮 -->
<view
class=
"send-btn-box"
hover-class=
"hover"
@
click=
"pwdLogin"
:class=
"canLogin?'send-btn-active':''"
>
<text
class=
"send-btn-text"
>
登录
</text>
</view>
<!-- 登录框 (选择手机号所属国家和地区需要另行实现) -->
<uni-forms
ref=
"form"
:value=
"formData"
:rules=
"rules"
>
<uni-forms-item
name=
"phone"
>
<uni-easyinput
type=
"number"
class=
"phone-input-box"
:inputBorder=
"false"
v-model=
"formData.phone"
maxlength=
"11"
placeholder=
"请输入手机号"
>
<template
slot=
"left"
>
<picker
mode=
"selector"
:range=
"phoneArea"
@
change=
"selectPhoneArea"
>
<text
class=
"phone-area"
>
{{
currenPhoneArea
}}
</text>
</picker>
</
template
>
</uni-easyinput>
<uni-easyinput
type=
"number"
class=
"phone-input-box"
:inputBorder=
"false"
v-model=
"formData.pwd"
placeholder=
"请输入密码"
></uni-easyinput>
</uni-forms-item>
<button
class=
"send-btn-box"
:disabled=
"!canLogin"
:type=
"canLogin?'primary':'default'"
@
click=
"pwdLogin"
>
登录
</button>
</uni-forms>
<!-- 忘记密码 -->
<view
class=
"auth-box"
>
...
...
@@ -50,16 +47,45 @@
to
:
'
baidu
'
}],
phoneArea
:
[
'
+86
'
,
'
+87
'
],
currenPhoneArea
:
'
+86
'
,
currenPhoneArea
:
'
+86
'
,
formData
:
{
phone
:
''
,
pwd
:
''
},
rules
:
{
phone
:
{
rules
:
[{
required
:
true
,
errorMessage
:
'
请输入手机号
'
,
},
{
pattern
:
/^1
\d{10}
$/
,
errorMessage
:
'
手机号格式不正确
'
,
}
]
},
pwd
:{
rules
:
[{
required
:
true
,
errorMessage
:
'
请输入密码
'
,
},
{
pattern
:
/^.
{6,20}
$/
,
errorMessage
:
'
密码应为6到20位
'
,
}
]
}
}
}
},
computed
:
{
canLogin
()
{
let
reg_phone
=
/^1
\d{10}
$/
;
let
reg_pwd
=
/^.
{6,20}
$/
;
let
isPhone
=
reg_phone
.
test
(
this
.
phoneNumber
);
let
isPhone
=
reg_phone
.
test
(
this
.
formData
.
phone
);
let
isPwd
=
reg_pwd
.
test
(
this
.
passwor
d
);
let
isPwd
=
reg_pwd
.
test
(
this
.
formData
.
pw
d
);
return
isPhone
&&
isPwd
;
}
},
...
...
@@ -69,14 +95,14 @@
*/
toRetrievePwd
()
{
let
reg_phone
=
/^1
\d{10}
$/
;
let
isPhone
=
reg_phone
.
test
(
this
.
phoneNumber
);
let
isPhone
=
reg_phone
.
test
(
this
.
formData
.
phone
);
if
(
!
isPhone
)
return
uni
.
showToast
({
title
:
'
请输入正确的手机号
'
,
icon
:
'
none
'
});
uni
.
navigateTo
({
url
:
'
./pwd-retrieve?phoneNumber=
'
+
this
.
phoneNumber
+
'
&phoneArea=
'
+
this
.
currenPhoneArea
url
:
'
./pwd-retrieve?phoneNumber=
'
+
this
.
formData
.
phone
+
'
&phoneArea=
'
+
this
.
currenPhoneArea
})
},
/**
...
...
@@ -94,14 +120,18 @@
</
script
>
<
style
>
@import
url("../../common/loginPage.css")
;
.phone-input-box
{
margin-top
:
20
rpx
;
}
.auth-box
{
@import
url("../../common/loginPage.css")
;
.phone-input-box
{
margin-top
:
20
rpx
;
}
.auth-box
{
justify-content
:
flex-start
;
}
.login-text-sub
{
color
:
#8a8f8b
;
margin-top
:
20
rpx
;
}
.login-text-sub
{
color
:
#8a8f8b
;
}
</
style
>
uni_modules/uni-login-page/pages/index/pwd-retrieve.vue
浏览文件 @
2b828b6a
...
...
@@ -5,23 +5,21 @@
<!-- 顶部文字 -->
<text
class=
"content-top-title"
>
手机号密码登录
</text>
<login-ikonw
class=
"login-iknow"
:text=
"tipText"
></login-ikonw>
<!-- 登录框 (选择手机号所属国家和地区需要另行实现) -->
<view
class=
"phone-input-box"
>
<input
type=
"number"
:maxlength=
"6"
class=
"phone-input"
placeholder=
"请输入验证码"
v-model=
"phoneCode"
/>
<login-short-code
@
getCode=
"getCode"
></login-short-code>
</view>
<view
class=
"phone-input-box"
>
<input
type=
"password"
:password=
"true"
class=
"phone-input"
placeholder=
"请输入密码"
v-model=
"password"
/>
</view>
<!-- 发送按钮 -->
<view
class=
"send-btn-box"
hover-class=
"hover"
@
click=
"submit"
:class=
"canSubmit?'send-btn-active':''"
>
<text
class=
"send-btn-text"
>
完成
</text>
</view>
<!-- 登录框 (选择手机号所属国家和地区需要另行实现) -->
<uni-forms
ref=
"form"
:value=
"formData"
:rules=
"rules"
>
<uni-forms-item
name=
"phone"
>
<uni-easyinput
type=
"number"
class=
"phone-input-box"
:inputBorder=
"false"
v-model=
"formData.code"
maxlength=
"6"
placeholder=
"请输入验证码"
>
<template
slot=
"right"
>
<login-short-code
@
getCode=
"getCode"
></login-short-code>
</
template
>
</uni-easyinput>
<uni-easyinput
type=
"number"
class=
"phone-input-box"
:inputBorder=
"false"
v-model=
"formData.pwd"
placeholder=
"请输入密码"
></uni-easyinput>
</uni-forms-item>
<button
class=
"send-btn-box"
:disabled=
"!canSubmit"
:type=
"canSubmit?'primary':'default'"
@
click=
"submit"
>
完成
</button>
</uni-forms>
</view>
</view>
</view>
...
...
@@ -34,7 +32,36 @@
phoneNumber
:
''
,
phoneCode
:
''
,
password
:
''
,
currenPhoneArea
:
''
,
currenPhoneArea
:
''
,
formData
:{
code
:
''
,
pwd
:
''
},
rules
:
{
code
:
{
rules
:
[{
required
:
true
,
errorMessage
:
'
请输入验证码
'
,
},
{
legn
:
/^.
{6}
$/
,
errorMessage
:
'
请输入6位验证码
'
,
}
]
},
pwd
:{
rules
:
[{
required
:
true
,
errorMessage
:
'
请输入密码
'
,
},
{
pattern
:
/^.
{6,20}
$/
,
errorMessage
:
'
密码应为6到20位
'
,
}
]
}
}
}
},
computed
:
{
...
...
@@ -46,15 +73,19 @@
let
reg_pwd
=
/^.
{6,20}
$/
;
let
reg_code
=
/^
\d{6}
$/
;
let
isPhone
=
reg_phone
.
test
(
this
.
phoneNumber
);
let
isPwd
=
reg_pwd
.
test
(
this
.
passwor
d
);
let
isCode
=
reg_code
.
test
(
this
.
phoneC
ode
);
let
isPwd
=
reg_pwd
.
test
(
this
.
formData
.
pw
d
);
let
isCode
=
reg_code
.
test
(
this
.
formData
.
c
ode
);
return
isPhone
&&
isPwd
&&
isCode
;
}
},
onLoad
(
event
)
{
if
(
event
)
{
if
(
event
&&
event
.
phoneNumber
)
{
this
.
phoneNumber
=
event
.
phoneNumber
;
this
.
currenPhoneArea
=
'
+
'
+
Number
(
event
.
phoneArea
);
}
else
{
this
.
phoneNumber
=
'
17731252731
'
;
this
.
currenPhoneArea
=
'
+86
'
;
}
},
methods
:
{
...
...
@@ -84,11 +115,5 @@
@import
url("../../common/loginPage.css")
;
.phone-input-box
{
margin-top
:
20
rpx
;
}
.phone-input
{
border-left-width
:
0
;
}
.send-btn-box
{
margin-top
:
50
rpx
;
}
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录