Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
言程序plus
uni-starter
提交
85cf8673
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看板
提交
85cf8673
编写于
4月 07, 2021
作者:
L
linju
浏览文件
操作
浏览文件
下载
差异文件
213
上级
05a2bca1
4102167b
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
392 addition
and
80 deletion
+392
-80
uni_modules/uni-login-page/common/loginPage.css
uni_modules/uni-login-page/common/loginPage.css
+123
-0
uni_modules/uni-login-page/components/login-action-sheet/login-action-sheet.vue
...page/components/login-action-sheet/login-action-sheet.vue
+27
-10
uni_modules/uni-login-page/components/login-ikonw/login-ikonw.vue
...les/uni-login-page/components/login-ikonw/login-ikonw.vue
+15
-6
uni_modules/uni-login-page/components/login-short-code/login-short-code.vue
...gin-page/components/login-short-code/login-short-code.vue
+15
-6
uni_modules/uni-login-page/pages/index/index.vue
uni_modules/uni-login-page/pages/index/index.vue
+11
-58
uni_modules/uni-login-page/pages/index/pwd-login.vue
uni_modules/uni-login-page/pages/index/pwd-login.vue
+107
-0
uni_modules/uni-login-page/pages/index/pwd-retrieve.vue
uni_modules/uni-login-page/pages/index/pwd-retrieve.vue
+94
-0
未找到文件。
uni_modules/uni-login-page/common/loginPage.css
0 → 100644
浏览文件 @
85cf8673
/* #ifndef APP-NVUE */
page
{
display
:
flex
;
flex-direction
:
column
;
flex
:
1
;
height
:
100%
;
}
/* #endif */
.wrap
{
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex-direction
:
column
;
flex
:
1
;
width
:
750
rpx
;
background-color
:
#fff
;
}
.wrap-content
{
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex
:
1
;
flex-direction
:
column
;
justify-content
:
flex-start
;
align-items
:
center
;
}
.content
{
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
width
:
630
rpx
;
flex-direction
:
column
;
}
.content-top-title
{
font-size
:
32
rpx
;
font-weight
:
600
;
padding-top
:
50
rpx
;
}
.hidden
,
page
{
background-color
:
transparent
;
}
.login-iknow
{
padding-top
:
24
rpx
;
padding-bottom
:
48
rpx
;
}
.phone-input-box
{
height
:
85
rpx
;
background-color
:
#f9f9f9
;
border-radius
:
6
rpx
;
flex-direction
:
row
;
flex-wrap
:
nowrap
;
align-items
:
center
;
justify-content
:
center
;
}
.phone-area
{
padding
:
0
20
rpx
;
font-size
:
30
rpx
;
}
.phone-input
{
flex
:
1
;
border-left-width
:
1px
;
border-left-color
:
#d7d9d8
;
padding
:
0
20
rpx
;
font-size
:
30
rpx
;
}
.tip-text
{
padding-top
:
20
rpx
;
padding-bottom
:
36
rpx
;
color
:
#8a8f8b
;
font-size
:
26
rpx
;
}
.send-btn-box
{
height
:
85
rpx
;
background-color
:
#d8d8da
;
margin-bottom
:
50
rpx
;
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex-direction
:
column
;
width
:
630
rpx
;
justify-content
:
center
;
align-items
:
center
;
border-radius
:
6
rpx
;
}
.send-btn-text
{
color
:
#fff
;
}
.send-btn-active
{
background-color
:
#007aff
;
}
.auth-box
{
width
:
630
rpx
;
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
}
.login-text
{
color
:
#1c436e
;
font-size
:
26
rpx
;
}
.hover
{
opacity
:
0.8
;
}
uni_modules/uni-login-page/components/login-action-sheet/login-action-sheet.vue
浏览文件 @
85cf8673
<
template
>
<uni-popup
ref=
"actionSheet"
type=
"bottom"
>
<view
class=
"
flex w-750 action-sheet-box bg-white
"
>
<view
class=
"
flex flex-row flex-nowrap align-center justify-center
auth-item"
@
click=
"clickItem(item)"
<view
class=
"
action-sheet-box
"
>
<view
class=
"
auth-wrap
auth-item"
@
click=
"clickItem(item)"
hover-class=
"hover"
v-for=
"(item, index) in providerList"
:key=
"index"
>
<image
:src=
"item.image"
class=
"login-logo"
></image>
<text
class=
"
px-1 font-28
"
>
{{
providerName
[
item
.
value
]
}}
</text>
<text
class=
"
auth-text
"
>
{{
providerName
[
item
.
value
]
}}
</text>
</view>
<view
class=
"cancel-line"
></view>
<view
class=
"
flex flex-row flex-nowrap align-center justify-center
cancel-item"
@
click=
"clickItem(item)"
>
<text
class=
"
font-28
"
>
取消
</text>
<view
class=
"
auth-wrap
cancel-item"
@
click=
"clickItem(item)"
>
<text
class=
"
auth-text
"
>
取消
</text>
</view>
</view>
</uni-popup>
...
...
@@ -88,19 +88,32 @@
}
</
script
>
<
style
>
@import
url("../../common/myStyle.css")
;
<
style
scoped
>
.action-sheet-box
{
border-top-left-radius
:
20
rpx
;
border-top-right-radius
:
20
rpx
;
border-top-right-radius
:
20
rpx
;
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
width
:
750
rpx
;
background-color
:
#fff
;
}
.login-logo
{
width
:
42
rpx
;
height
:
42
rpx
;
}
.auth-wrap
{
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex-direction
:
row
;
flex-wrap
:
nowrap
;
align-items
:
center
;
justify-content
:
center
;
}
.auth-item
{
border-bottom-width
:
1px
;
border-bottom-color
:
#F1F1F1
;
...
...
@@ -115,5 +128,9 @@
width
:
750
rpx
;
height
:
10
rpx
;
background-color
:
#F1F1F1
;
}
.auth-text
{
padding
:
0
10
rpx
;
font-size
:
28
rpx
;
}
</
style
>
uni_modules/uni-login-page/components/login-ikonw/login-ikonw.vue
浏览文件 @
85cf8673
<
template
>
<view
class=
"
flex flex-row flex
-wrap"
>
<text
class=
"text-sub
font-26
"
v-for=
"(t, i) in innerText"
:key=
"i"
:class=
"t.to?'link-color':''"
<view
class=
"
login-iknow
-wrap"
>
<text
class=
"text-sub"
v-for=
"(t, i) in innerText"
:key=
"i"
:class=
"t.to?'link-color':''"
@
click=
"clickLink(t)"
>
{{
t
.
text
||
t
}}
</text>
</view>
</
template
>
...
...
@@ -19,7 +19,7 @@
},
link
:
{
type
:
Array
,
default
:
[]
default
:
()
=>
[]
}
},
data
()
{
...
...
@@ -69,9 +69,18 @@
}
</
script
>
<
style
>
@import
url("../../common/myStyle.css")
;
<
style
scoped
>
.login-iknow-wrap
{
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex-direction
:
row
;
flex-wrap
:
wrap
;
}
.text-sub
{
color
:
#8a8f8b
;
font-size
:
26
rpx
;
}
.link-color
{
color
:
#04498c
;
}
...
...
uni_modules/uni-login-page/components/login-short-code/login-short-code.vue
浏览文件 @
85cf8673
<
template
>
<view
class=
"
flex justify-center align-center
short-code-btn"
hover-class=
"hover"
@
click=
"clickBtn"
>
<text
class=
"
font-28
"
>
{{
innerText
}}
</text>
<view
class=
"short-code-btn"
hover-class=
"hover"
@
click=
"clickBtn"
>
<text
class=
"
inner-text"
:class=
"reverseNumber==0?'inner-text-active':''
"
>
{{
innerText
}}
</text>
</view>
</
template
>
...
...
@@ -70,11 +70,20 @@
}
</
script
>
<
style
>
@import
url("../../common/myStyle.css")
;
<
style
scoped
>
.short-code-btn
{
width
:
200
rpx
;
height
:
85
rpx
;
height
:
85
rpx
;
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
justify-content
:
center
;
align-items
:
center
;
}
.inner-text
{
font-size
:
28
rpx
;
}
.inner-text-active
{
color
:
#007aff
;
}
</
style
>
uni_modules/uni-login-page/pages/index/index.vue
浏览文件 @
85cf8673
...
...
@@ -5,14 +5,14 @@
<view
class=
"content"
>
<!-- 顶部文字 -->
<text
class=
"content-top-title"
>
登陆后即可展示自己
</text>
<login-ikonw
class=
"l
gn
in-iknow"
:link=
"link"
text=
"登录即表示同意用户协议和隐私政策"
></login-ikonw>
<login-ikonw
class=
"l
og
in-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"
placeholder=
"请输入手机号"
<input
type=
"number"
class=
"phone-input"
maxlength=
"11"
placeholder=
"请输入手机号"
v-model=
"phoneNumber"
/>
</view>
...
...
@@ -95,6 +95,7 @@
</
script
>
<
style
>
<<<<<<<
HEAD
page
{
background
:
transparent
;
}
...
...
@@ -131,11 +132,13 @@
width
:
630
rpx
;
flex-direction
:
column
;
}
=======
@import
url("../../common/loginPage.css")
;
>>>>>>>
4102167
b2d3d22ebf4994a07a5b8421d8539345c
.content-top-title
{
font-size
:
32
rpx
;
font-weight
:
600
;
padding-top
:
50
rpx
;
text-align
:
center
;
}
<<<<<<<
HEAD
@import
url("../../common/myStyle.css")
;
.lgnin-iknow
{
...
...
@@ -150,59 +153,9 @@
flex-direction
:
row
;
flex-wrap
:
nowrap
;
align-items
:
center
;
=======
.login-iknow{
>>>>>>>
4102167b2d3d22ebf4994a07a5b8421d8539345c
justify-content
:
center
;
}
.phone-area
{
padding
:
0
20
rpx
;
font-size
:
30
rpx
;
}
.phone-input
{
border-left-width
:
1px
;
border-left-color
:
#d7d9d8
;
padding
:
0
20
rpx
;
font-size
:
30
rpx
;
}
.tip-text
{
padding-top
:
20
rpx
;
padding-bottom
:
36
rpx
;
color
:
#8a8f8b
;
font-size
:
26
rpx
;
}
.send-btn-box
{
height
:
85
rpx
;
background-color
:
#d8d8da
;
margin-bottom
:
50
rpx
;
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex-direction
:
column
;
width
:
630
rpx
;
justify-content
:
center
;
align-items
:
center
;
border-radius
:
6
rpx
;
}
.send-btn-text
{
color
:
#fff
;
}
.send-btn-active
{
background-color
:
#007aff
;
}
.auth-box
{
width
:
630
rpx
;
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
}
.login-text
{
color
:
#1c436e
;
font-size
:
26
rpx
;
}
</
style
>
\ No newline at end of file
uni_modules/uni-login-page/pages/index/pwd-login.
n
vue
→
uni_modules/uni-login-page/pages/index/pwd-login.vue
浏览文件 @
85cf8673
<
template
>
<view class="
flex flex-column flex-1 w-750 bg-white
">
<view class="
flex-1 flex flex-column justify-start align-center
">
<view class="
w-630 flex flex-column
">
<view
class=
"
wrap
"
>
<view
class=
"
wrap-content
"
>
<view
class=
"
content
"
>
<!-- 顶部文字 -->
<text class="
font-32 font-blod pt-5
">手机号密码登录</text>
<text
class=
"
content-top-title
"
>
手机号密码登录
</text>
<!-- 登录框 (选择手机号所属国家和地区需要另行实现) -->
<view class="phone-input-box
round flex flex-row flex-nowrap align-center justify-center mt-5
">
<view
class=
"phone-input-box"
>
<picker
mode=
"selector"
:range=
"phoneArea"
@
change=
"selectPhoneArea"
>
<text class="p
x-2 font-30
">{{currenPhoneArea}}</text>
<text
class=
"p
hone-area
"
>
{{
currenPhoneArea
}}
</text>
</picker>
<input type="number" class="flex-1 phone-input px-2 font-30" placeholder="请输入手机号"
v-model="phoneNumber" />
<input
type=
"number"
class=
"phone-input"
placeholder=
"请输入手机号"
maxlength=
"11"
v-model=
"phoneNumber"
/>
</view>
<view class="phone-input-box
round flex flex-row flex-nowrap align-center justify-center mt-2
">
<input type="password" :password="true" class="
flex-1 px-2 font-30
" placeholder="请输入密码"
<view
class=
"phone-input-box"
>
<input
type=
"password"
:password=
"true"
class=
"
phone-input pwd-input
"
placeholder=
"请输入密码"
v-model=
"password"
/>
</view>
<login-ikonw class="l
gn
in-iknow" :link="link" text="登录即表示同意用户协议和隐私政策"></login-ikonw>
<login-ikonw
class=
"l
og
in-iknow"
:link=
"link"
text=
"登录即表示同意用户协议和隐私政策"
></login-ikonw>
<!-- 发送按钮 -->
<view class="send-btn-box
flex w-630 justify-center align-center round
" hover-class="hover"
<view
class=
"send-btn-box"
hover-class=
"hover"
@
click=
"pwdLogin"
:class=
"canLogin?'send-btn-active':''"
>
<text class="
text-white
">登录</text>
<text
class=
"
send-btn-text
"
>
登录
</text>
</view>
<!-- 忘记密码 -->
<view class="
flex flex-row flex-nowrap
">
<text class="
font-26
text-sub">忘记了?</text>
<text class="
font-26
login-text" @click="toRetrievePwd">找回密码</text>
<view
class=
"
auth-box
"
>
<text
class=
"
login-text login-
text-sub"
>
忘记了?
</text>
<text
class=
"login-text"
@
click=
"toRetrievePwd"
>
找回密码
</text>
</view>
</view>
</view>
...
...
@@ -95,39 +94,14 @@
</
script
>
<
style
>
@import url("../../common/myStyle.css");
.lgnin-iknow {
padding-top: 24rpx;
padding-bottom: 36rpx;
}
.phone-input-box {
height: 85rpx;
background-color: #f9f9f9;
}
.phone-input {
border-left-width: 1px;
border-left-color: #d7d9d8;
}
.tip-text {
padding-top: 20rpx;
padding-bottom: 36rpx;
}
.send-btn-box {
height: 85rpx;
background-color: #d8d8da;
margin-bottom: 50rpx;
}
.send-btn-active {
background-color: #007aff;
}
.login-text {
color: #1c436e;
@import
url("../../common/loginPage.css")
;
.phone-input-box
{
margin-top
:
20
rpx
;
}
.auth-box
{
justify-content
:
flex-start
;
}
.login-text-sub
{
color
:
#8a8f8b
;
}
</
style
>
uni_modules/uni-login-page/pages/index/pwd-retrieve.
n
vue
→
uni_modules/uni-login-page/pages/index/pwd-retrieve.vue
浏览文件 @
85cf8673
<
template
>
<view class="
flex flex-column flex-1 w-750 bg-white
">
<view class="
flex-1 flex flex-column justify-start align-center
">
<view class="
w-630 flex flex-column
">
<view
class=
"
wrap
"
>
<view
class=
"
wrap-content
"
>
<view
class=
"
content
"
>
<!-- 顶部文字 -->
<text class="
font-32 font-blod pt-5
">手机号密码登录</text>
<login-ikonw class="l
gn
in-iknow" :text="tipText"></login-ikonw>
<text
class=
"
content-top-title
"
>
手机号密码登录
</text>
<login-ikonw
class=
"l
og
in-iknow"
:text=
"tipText"
></login-ikonw>
<!-- 登录框 (选择手机号所属国家和地区需要另行实现) -->
<view class="phone-input-box
round flex flex-row flex-nowrap align-center justify-center
">
<input type="number" :maxlength="6" class="
flex-1 phone-input px-2 font-30
" placeholder="请输入验证码"
<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
round flex flex-row flex-nowrap align-center justify-center mt-2
">
<input type="password" :password="true" class="
flex-1 px-2 font-30
" placeholder="请输入密码"
<view
class=
"phone-input-box"
>
<input
type=
"password"
:password=
"true"
class=
"
phone-input
"
placeholder=
"请输入密码"
v-model=
"password"
/>
</view>
<!-- 发送按钮 -->
<view class="send-btn-box
flex w-630 justify-center align-center round mt-5
" hover-class="hover"
@click="
pwdLogin
" :class="canSubmit?'send-btn-active':''">
<text class="
text-white
">完成</text>
<view
class=
"send-btn-box"
hover-class=
"hover"
@
click=
"
submit
"
:class=
"canSubmit?'send-btn-active':''"
>
<text
class=
"
send-btn-text
"
>
完成
</text>
</view>
</view>
</view>
...
...
@@ -69,42 +69,26 @@
});
// 发送成功后开启倒计时
done
();
},
/**
* 完成并提交
*/
submit
(){
}
}
}
</
script
>
<style>
@import url("../../common/myStyle.css");
.lgnin-iknow {
padding-top: 24rpx;
padding-bottom: 36rpx;
}
.phone-input-box {
height: 85rpx;
background-color: #f9f9f9;
}
.phone-input {}
.tip-text {
padding-top: 20rpx;
padding-bottom: 36rpx;
}
.send-btn-box {
height: 85rpx;
background-color: #d8d8da;
margin-bottom: 50rpx;
}
.send-btn-active {
background-color: #007aff;
}
.login-text {
color: #1c436e;
<
style
>
@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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录