Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
17bbd6c1
Commit
17bbd6c1
authored
Jul 18, 2021
by
linlinjava
Browse files
fix[litemall-vue]
parent
ce2720b5
Changes
2
Show whitespace changes
Inline
Side-by-side
litemall-vue/src/store/index.js
View file @
17bbd6c1
...
...
@@ -7,6 +7,7 @@ Vue.use(Vuex)
const
state
=
{
showHeader
:
true
,
title
:
''
}
export
default
new
Vuex
.
Store
({
...
...
litemall-vue/src/views/user/user-information-set/set-password/index.vue
View file @
17bbd6c1
...
...
@@ -3,10 +3,9 @@
<van-cell-group>
<van-field
label=
"新密码"
v-model=
"password"
type=
"password"
placeholder=
"请输入新密码"
label=
"手机号码"
v-model=
"mobile"
placeholder=
"请输入手机号码"
/>
<van-field
...
...
@@ -15,7 +14,7 @@
@
click-icon=
"getCode"
placeholder=
"请输入验证码"
>
<span
slot=
"
ic
on"
<span
slot=
"
butt
on"
class=
"verifi_code red"
:class=
"
{verifi_code_counting: counting}"
@click="getCode">
...
...
@@ -25,6 +24,21 @@
<span
v-else
>
获取验证码
</span>
</span>
</van-field>
<van-field
label=
"新密码"
v-model=
"password"
type=
"password"
placeholder=
"请输入新密码"
/>
<van-field
label=
"确认密码"
v-model=
"password2"
type=
"password"
placeholder=
"请再次输入密码"
/>
</van-cell-group>
<div
class=
"bottom_btn"
>
...
...
@@ -37,11 +51,12 @@
<
script
>
import
{
authCaptcha
,
authReset
,
authLogout
}
from
'
@/api/api
'
;
import
{
removeLocalStorage
}
from
'
@/utils/local-storage
'
;
import
{
Field
}
from
'
vant
'
;
import
{
Field
,
Toast
}
from
'
vant
'
;
export
default
{
data
:
()
=>
({
password
:
''
,
password2
:
''
,
mobile
:
''
,
code
:
''
,
counting
:
false
...
...
@@ -58,6 +73,8 @@ export default {
.
then
(()
=>
{
this
.
$dialog
.
alert
({
message
:
'
保存成功, 请重新登录.
'
})
authLogout
();
}).
catch
(
error
=>
{
Toast
.
fail
(
error
.
data
.
errmsg
);
});
}
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment