Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
e3bf0328
Great Teamwork
项目概览
_milo
/
Great Teamwork
通知
13
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Great Teamwork
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e3bf0328
编写于
5月 26, 2023
作者:
M
m0_74163447
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化找回密码和修改密码界面
上级
fc1fde6e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
50 addition
and
35 deletion
+50
-35
teamwork/App.vue
teamwork/App.vue
+0
-12
teamwork/pages/login/find.vue
teamwork/pages/login/find.vue
+33
-16
teamwork/pages/my/my-resetpassword.vue
teamwork/pages/my/my-resetpassword.vue
+17
-7
teamwork/static/login/find.png
teamwork/static/login/find.png
+0
-0
未找到文件。
teamwork/App.vue
浏览文件 @
e3bf0328
...
...
@@ -2,18 +2,6 @@
export
default
{
onLaunch
:
function
()
{
console
.
log
(
'
App Launch
'
)
uni
.
getPushClientId
({
success
:
(
res
)
=>
{
let
push_clientid
=
res
.
cid
console
.
log
(
'
客户端推送标识:
'
,
push_clientid
)
},
fail
(
err
)
{
console
.
log
(
err
)
}
})
uni
.
onPushMessage
((
res
)
=>
{
console
.
log
(
"
收到推送消息:
"
,
res
)
//监听推送消息
})
},
onShow
:
function
()
{
...
...
teamwork/pages/login/find.vue
浏览文件 @
e3bf0328
<
template
>
<view
class=
"bg"
>
<image
class=
"returnBack"
src=
"/static/discover/back.png"
@
click=
"goBack(1,'/pages/login/login')"
></image>
<
view
class=
"content"
>
<
image
class=
"logo"
src=
"/static/login/find.png"
></image
>
<view
class=
"text-area"
>
<uni-forms
:modelValue=
"formData"
label-position=
"left"
:labelWidth=
'90'
:rules=
"confirmRules"
<uni-forms
:modelValue=
"formData"
:rules=
"confirmRules"
ref=
"form"
validate-trigger=
"bind"
err-show-type=
"undertext"
>
<uni-forms-item
name=
"phone"
required
label=
"手机号"
>
<uni-easyinput
type=
"text"
:inputBorder=
"true"
v-model=
"formData.phone"
...
...
@@ -14,23 +14,23 @@
<uni-easyinput
type=
"number"
:inputBorder=
"true"
v-model=
"formData.captcha"
placeholder=
"请输入六位验证码"
></uni-easyinput>
</uni-forms-item>
<!--
<button
class=
"captchaButton"
@
click=
"sendCaptcha()"
>
发送验证码
</button>
-->
<button
size=
"mini"
class=
"captchaButton"
:disabled=
"btnDis"
@
tap=
"sendCaptcha"
>
{{
btnText
}}
</button>
</view>
<uni-forms-item
name=
"newPassword"
required
label=
"新密码"
>
<uni-easyinput
type=
"password"
:inputBorder=
"true"
v-model=
"formData.newPassword"
placeholder=
"请输入密码"
></uni-easyinput>
</uni-forms-item>
<uni-forms-item
name=
"confirmPassword"
required
label=
"确认
密码
"
>
<uni-forms-item
name=
"confirmPassword"
required
label=
"确认"
>
<uni-easyinput
type=
"password"
:inputBorder=
"true"
v-model=
"formData.confirmPassword"
placeholder=
"请确认新密码"
></uni-easyinput>
</uni-forms-item>
<uni-forms-item>
<button
class=
"confirmButton"
@
click=
"confirm('form')"
>
确认
</button>
<button
class=
"confirmButton"
@
click=
"confirm('form')"
>
确认
</button>
</uni-forms-item>
</uni-forms>
</view>
</view>
<uni-popup
ref=
"popupDialog"
type=
"center"
>
<view
class=
"mcaptcha"
>
<view
style=
"padding: 30px 20px;text-align: center;"
>
...
...
@@ -55,7 +55,7 @@
data
()
{
return
{
btnDis
:
false
,
// 发送验证码按钮不禁用
btnText
:
"
发送
验证码
"
,
// 提示
btnText
:
"
发送
"
,
// 提示
loading
:
false
,
graphicVerifyCode
:
""
,
formData
:
{
...
...
@@ -267,33 +267,50 @@
<
style
>
.bg
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
background-color
:
#edeef0
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
.content
{
background-color
:
#edeef0
;
.logo
{
height
:
450
rpx
;
width
:
250
rpx
;
margin-top
:
30
rpx
;
margin-left
:
auto
;
margin-right
:
auto
;
margin-bottom
:
50
rpx
;
}
.text-area
{
display
:
flex
;
align-items
:
center
;
flex-direction
:
column
;
justify-content
:
center
;
position
:
absolute
;
width
:
100%
;
height
:
100%
;
width
:
75%
;
}
.returnBack
{
height
:
55
rpx
;
width
:
55
rpx
;
margin-top
:
6
0
rpx
;
margin-left
:
2
0
rpx
;
margin-top
:
5
0
rpx
;
margin-left
:
2
5
rpx
;
margin-right
:
auto
;
}
.confirmButton
{
background-color
:
#f1992d
;
color
:
#fff
;
border
:
0
;
border-radius
:
20px
;
margin-top
:
8px
;
margin-bottom
:
15px
;
}
.confirmButton
::after
{
...
...
teamwork/pages/my/my-resetpassword.vue
浏览文件 @
e3bf0328
...
...
@@ -7,7 +7,7 @@
</view>
<view
class=
"content"
>
<view
class=
"text-area"
>
<uni-forms
:modelValue=
"formData"
label-position=
"left"
:labelWidth=
'90'
:rules=
"confirmRules"
<uni-forms
:modelValue=
"formData"
:rules=
"confirmRules"
ref=
"form"
validate-trigger=
"bind"
err-show-type=
"undertext"
>
<uni-forms-item
name=
"phone"
required
label=
"手机号"
>
<uni-easyinput
type=
"text"
:inputBorder=
"true"
v-model=
"formData.phone"
...
...
@@ -25,12 +25,12 @@
<uni-easyinput
type=
"password"
:inputBorder=
"true"
v-model=
"formData.newPassword"
placeholder=
"请输入密码"
></uni-easyinput>
</uni-forms-item>
<uni-forms-item
name=
"confirmPassword"
required
label=
"确认
密码
"
>
<uni-forms-item
name=
"confirmPassword"
required
label=
"确认"
>
<uni-easyinput
type=
"password"
:inputBorder=
"true"
v-model=
"formData.confirmPassword"
placeholder=
"请确认新密码"
></uni-easyinput>
</uni-forms-item>
<uni-forms-item>
<button
class=
"confirmButton"
@
click=
"confirm(
'form'
)"
>
确认
</button>
<button
class=
"confirmButton"
@
click=
"confirm()"
>
确认
</button>
</uni-forms-item>
</uni-forms>
</view>
...
...
@@ -48,7 +48,7 @@
<uni-popup
ref=
"alertDialog"
type=
"dialog"
>
<uni-popup-dialog
cancelText=
"取消"
confirmText=
"确定"
title=
"提示"
content=
"确定修改你的密码吗?"
@
confirm=
"dialogConfirm"
></uni-popup-dialog>
@
confirm=
"dialogConfirm
('form')
"
></uni-popup-dialog>
</uni-popup>
</view>
</
template
>
...
...
@@ -64,7 +64,7 @@
data
()
{
return
{
btnDis
:
false
,
// 发送验证码按钮不禁用
btnText
:
"
发送
验证码
"
,
// 提示
btnText
:
"
发送
"
,
// 提示
loading
:
false
,
graphicVerifyCode
:
""
,
formData
:
{
...
...
@@ -171,11 +171,11 @@
this
.
btnText
=
`
${
timer
}
s`
;
},
1000
)
},
confirm
(
validateForm
)
{
confirm
()
{
this
.
$refs
.
alertDialog
.
open
();
},
dialogConfirm
()
{
dialogConfirm
(
validateForm
)
{
this
.
$refs
[
validateForm
].
validate
(
valid
=>
{
if
(
!
valid
)
{
...
...
@@ -205,6 +205,9 @@
title
:
'
修改成功
'
,
duration
:
2000
});
uni
.
navigateBack
({
delta
:
1
,
//返回层数,2则上上页
})
}
else
if
(
this
.
code
==
400
)
{
uni
.
showToast
({
title
:
'
验证码错误或超时
'
,
...
...
@@ -301,6 +304,13 @@
height
:
100%
;
}
.text-area
{
margin-top
:
40
rpx
;
display
:
flex
;
justify-content
:
center
;
width
:
75%
;
}
.top
{
width
:
100%
;
height
:
50px
;
...
...
teamwork/static/login/find.png
0 → 100644
浏览文件 @
e3bf0328
21.9 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录