Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4e69ec3b
authored
Apr 08, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
79b70628
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
api/module/userApi.js
pages/common/login.vue
pages/home/home.vue
api/module/userApi.js
View file @
4e69ec3
...
...
@@ -38,7 +38,7 @@ module.exports = {
return
http
.
fetch
(
'dj.api.smartcarlife.workWechat.selectAccountLogin'
,
data
)
},
// 获取园区店开通的场景入口
getYqMerchantSceneConfigAPI
(
data
)
{
getYqMerchantSceneConfigAPI
(
data
)
{
data
.
projectName
=
'boutique'
return
http
.
post
({
method
:
'dj.api.smartcarlife.select.openScene.info'
,
...
...
pages/common/login.vue
View file @
4e69ec3
...
...
@@ -72,6 +72,12 @@ export default {
};
},
onLoad
(
options
)
{
let
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
uni
.
$api
.
userApi
.
getListSelectAccount
().
then
(
res
=>
{
if
(
res
.
code
==
0
&&
userInfo
)
uni
.
reLaunch
({
url
:
'/pages/home/home'
})
})
},
methods
:
{
/**获取验证码 */
...
...
@@ -80,7 +86,7 @@ export default {
try
{
if
(
!
mobile
)
throw
'请输入手机号'
;
if
(
!
phoneRex
.
test
(
mobile
))
throw
'请输入正确的手机号'
;
if
(
count
)
throw
'验证码发送过于频繁,请稍后
在
试'
;
if
(
count
)
throw
'验证码发送过于频繁,请稍后
再
试'
;
this
.
countDown
(
60
);
uni
.
showLoading
();
const
{
code
,
message
}
=
await
uni
.
$api
.
userApi
.
getSmsCode
({
mobile
});
...
...
@@ -155,7 +161,7 @@ export default {
url
:
'/pages/common/accountItems'
})
},
},
};
</
script
>
...
...
pages/home/home.vue
View file @
4e69ec3
...
...
@@ -122,6 +122,8 @@ export default {
},
// 退出
logout
()
{
uni
.
$storage
.
rm
(
'userInfo'
)
uni
.
$storage
.
rm
(
'sessionId'
)
this
.
stopAudio
();
uni
.
reLaunch
({
url
:
"/pages/common/login"
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment