Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
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
viitto
pptist
Commits
771ff764
Commit
771ff764
authored
Jun 19, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 1.4.0
parents
683c079d
20ebbd5f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
axios.ts
src/configs/axios.ts
+2
-1
user.ts
src/store/user.ts
+4
-3
wechatLogin.vue
src/views/Auth/components/wechatLogin.vue
+4
-0
PlayView.vue
src/views/Editor/PlayView.vue
+1
-1
No files found.
src/configs/axios.ts
View file @
771ff764
...
...
@@ -15,7 +15,8 @@ export enum ApiResult{
'TOKEN_INVALID'
=
10000
,
'TOKEN_ILLEGAL'
=
10001
,
'REMOTE_LOGIN'
=
10010
,
'STATIC_ACCESS'
=
20005
'STATIC_ACCESS'
=
20005
,
'SCANNING_STATE'
=
10008
}
export
enum
VipType
{
...
...
src/store/user.ts
View file @
771ff764
...
...
@@ -20,7 +20,7 @@ const st: StorageLike = {
}
export
interface
UserLoginResult
{
status
:
'ERROR'
|
'CHOSEN'
|
'SUCCESS'
,
status
:
'ERROR'
|
'CHOSEN'
|
'SUCCESS'
|
'UNSWEPT'
,
verify
:
boolean
,
data
?:
any
[]
}
...
...
@@ -131,9 +131,10 @@ export const useUserStore = defineStore('user', {
return
{
status
:
'CHOSEN'
,
data
:
response
.
data
.
data
}
as
UserLoginResult
}
}
else
return
{
status
:
'ERROR'
}
as
UserLoginResult
}
else
if
(
response
.
data
.
resultCode
==
ApiResult
.
SCANNING_STATE
)
return
{
status
:
'UNSWEPT'
}
as
UserLoginResult
else
return
{
status
:
'ERROR'
}
as
UserLoginResult
}
catch
(
error
)
{}
return
{
status
:
'ERROR'
,
verify
:
true
}
as
UserLoginResult
return
{
status
:
'ERROR'
}
as
UserLoginResult
},
async
setUserPasswordLoginAsync
(
account
:
string
,
pwd
:
string
,
vtoken
:
string
,
tid
:
string
=
''
)
{
try
{
...
...
src/views/Auth/components/wechatLogin.vue
View file @
771ff764
...
...
@@ -82,6 +82,10 @@ const userLoginHandler = async ()=>{
localStorage
.
setItem
(
'sure_invite'
,
JSON
.
stringify
(
inviteInfo
.
value
))
}
location
.
href
=
'/space'
;
}
else
if
(
result
.
status
==
'ERROR'
)
{
stopTimerHandler
()
qrCode
.
value
=
''
ElMessage
.
error
({
message
:
'一维码已失效,请重新获取'
})
}
}
...
...
src/views/Editor/PlayView.vue
View file @
771ff764
...
...
@@ -24,7 +24,7 @@ const screenStore = useScreenStore()
const
sellHistoryTripTemplate
=
async
()
=>
{
const
id
=
parseInt
(
params
.
id
.
toString
())
const
logId
=
parseInt
(
params
.
logId
.
toString
())
const
status
=
parseInt
(
params
.
logId
.
toString
())
const
status
=
parseInt
(
params
.
status
.
toString
())
const
loadingObj
=
ElLoading
.
service
({
text
:
'正在渲染数据'
,
lock
:
true
...
...
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