Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaxiu-miniapp
Project
Project
Details
Activity
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
蔡亮华(贵阳日报)
jiaxiu-miniapp
Commits
e1b91f1a
Commit
e1b91f1a
authored
Sep 18, 2024
by
彭佳妮(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录修改
parent
b3563247
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
components.d.ts
components.d.ts
+2
-0
App.vue
src/App.vue
+1
-1
login.vue
src/pages/account/login.vue
+4
-2
index.vue
src/pages/mine/index.vue
+2
-2
No files found.
components.d.ts
View file @
e1b91f1a
...
@@ -18,6 +18,8 @@ declare module 'vue' {
...
@@ -18,6 +18,8 @@ declare module 'vue' {
VanList
:
typeof
import
(
'vant/es'
)[
'List'
]
VanList
:
typeof
import
(
'vant/es'
)[
'List'
]
VanPopup
:
typeof
import
(
'vant/es'
)[
'Popup'
]
VanPopup
:
typeof
import
(
'vant/es'
)[
'Popup'
]
VanPullRefresh
:
typeof
import
(
'vant/es'
)[
'PullRefresh'
]
VanPullRefresh
:
typeof
import
(
'vant/es'
)[
'PullRefresh'
]
VanSearch
:
typeof
import
(
'vant/es'
)[
'Search'
]
VanSticky
:
typeof
import
(
'vant/es'
)[
'Sticky'
]
VanTab
:
typeof
import
(
'vant/es'
)[
'Tab'
]
VanTab
:
typeof
import
(
'vant/es'
)[
'Tab'
]
VanTabs
:
typeof
import
(
'vant/es'
)[
'Tabs'
]
VanTabs
:
typeof
import
(
'vant/es'
)[
'Tabs'
]
VanTextEllipsis
:
typeof
import
(
'vant/es'
)[
'TextEllipsis'
]
VanTextEllipsis
:
typeof
import
(
'vant/es'
)[
'TextEllipsis'
]
...
...
src/App.vue
View file @
e1b91f1a
...
@@ -8,7 +8,7 @@ onLaunch(async () => {
...
@@ -8,7 +8,7 @@ onLaunch(async () => {
// #ifdef H5-SGY
// #ifdef H5-SGY
if
(
import
.
meta
.
env
.
VITE_APP_ENV
===
'production'
)
{
if
(
import
.
meta
.
env
.
VITE_APP_ENV
===
'production'
)
{
userStore
.
logout
()
userStore
.
logout
()
fastLoginBySgy
()
await
fastLoginBySgy
()
return
return
}
else
{
}
else
{
if
(
userStore
.
logout
)
await
signIn2
();
if
(
userStore
.
logout
)
await
signIn2
();
...
...
src/pages/account/login.vue
View file @
e1b91f1a
...
@@ -103,7 +103,8 @@ const login = async () => {
...
@@ -103,7 +103,8 @@ const login = async () => {
userStore
.
login
(
res
)
userStore
.
login
(
res
)
closeToast
()
closeToast
()
showToast
(
'登录成功'
)
showToast
(
'登录成功'
)
router
.
pushTab
({
name
:
'home'
})
// router.pushTab({ name: 'home' })
router
.
back
()
}
}
const
sgyLoginParams
=
ref
({
const
sgyLoginParams
=
ref
({
...
@@ -131,7 +132,8 @@ const fastLoginBySgy = () => {
...
@@ -131,7 +132,8 @@ const fastLoginBySgy = () => {
title
:
'登录成功'
,
title
:
'登录成功'
,
icon
:
'success'
icon
:
'success'
})
})
router
.
pushTab
({
name
:
'mine'
})
// router.pushTab({ name: 'home' })
router
.
back
()
}
}
});
});
}
}
...
...
src/pages/mine/index.vue
View file @
e1b91f1a
...
@@ -96,10 +96,10 @@ const total = reactive({
...
@@ -96,10 +96,10 @@ const total = reactive({
2
:
0
2
:
0
})
})
onShow
(()
=>
{
onShow
(
async
()
=>
{
// toLogin()
// toLogin()
// if (userStore.isLogin())
// if (userStore.isLogin())
getOrganizeList
()
await
getOrganizeList
()
})
})
const
toLogin
=
()
=>
{
const
toLogin
=
()
=>
{
...
...
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