Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
221789f0
Commit
221789f0
authored
Apr 30, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
a20957cd
8db0041d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
App.vue
src/App.vue
+5
-1
complete-check.vue
src/components/complete-check/complete-check.vue
+4
-1
index.vue
src/pages/login/index.vue
+3
-3
No files found.
src/App.vue
View file @
221789f0
...
...
@@ -145,8 +145,12 @@ export default {
wxAppNo
:
that
.
globalData
.
wxAppNo
,
// 自营平台小程序
};
let
result
=
await
that
.
$u
.
api
.
loginWechatAuth
(
params
)
if
(
result
&&
result
.
code
==
200
&&
result
.
data
)
{
if
(
result
&&
result
.
code
==
200
&&
result
.
data
&&
result
.
data
.
token
)
{
that
.
setUserData
(
result
.
data
);
}
else
{
uni
.
navigateTo
({
url
:
"pages/login/index"
})
}
}
else
{
uni
.
showModal
({
...
...
src/components/complete-check/complete-check.vue
View file @
221789f0
...
...
@@ -64,6 +64,10 @@
export
default
{
name
:
"complete-check"
,
props
:
{
show
:
{
type
:
Boolean
,
default
:
true
},
pass
:
{
type
:
Boolean
,
default
:
false
...
...
@@ -81,7 +85,6 @@
},
data
()
{
return
{
show
:
true
,
};
},
computed
:
{
...
...
src/pages/login/index.vue
View file @
221789f0
...
...
@@ -99,15 +99,15 @@ export default {
return
login
.
authorization
(
params
);
}).
then
(
res
=>
{
uni
.
hideLoading
();
if
(
res
)
{
if
(
res
&&
res
.
code
==
200
&&
res
.
data
&&
res
.
data
.
token
)
{
that
.
setUserData
(
res
.
data
)
that
.
goBackPage
()
}
else
{
th
is
.
setLoginStatus
()
th
at
.
setLoginStatus
()
}
}).
catch
(
res
=>
{
uni
.
hideLoading
()
th
is
.
setLoginStatus
()
th
at
.
setLoginStatus
()
})
},
...
...
Write
Preview
Markdown
is supported
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