Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mocp-uniapp
Overview
Overview
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
pangchong
mocp-uniapp
Commits
c066abdb
Commit
c066abdb
authored
Jan 24, 2025
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 提交
parent
9e518af4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
src/mocp/utils/http.js
+2
-2
src/pages/modules/mocp/login/constants/index.compositions.js
+2
-2
src/pages/modules/mocp/login/index.vue
+7
-7
src/pages/modules/mocp/panel/components/panel-navbar.vue
+3
-0
No files found.
src/mocp/utils/http.js
View file @
c066abdb
import
useUserStore
from
'mocp/store/user'
import
useUserStore
from
'mocp/store/user'
const
baseURL
=
'https://hna-platform.anyremote.cn'
//测试
//
const baseURL = 'https://hna-platform.anyremote.cn' //测试
// const baseURL = 'https://moc.hnatechnic.com/api' //生产
// const baseURL = 'https://moc.hnatechnic.com/api' //生产
// const baseURL = 'http://10.123.48.67/api' //Amms内网
// const baseURL = 'http://10.123.48.67/api' //Amms内网
//
const baseURL = 'https://hnaelbtest.hnatechnic.com/mocptest/api' //内网
const
baseURL
=
'https://hnaelbtest.hnatechnic.com/mocptest/api'
//内网
class
ServiceLoading
{
class
ServiceLoading
{
open
(
loading
)
{
open
(
loading
)
{
...
...
src/pages/modules/mocp/login/constants/index.compositions.js
View file @
c066abdb
...
@@ -2,8 +2,8 @@ import { ref, reactive } from 'vue'
...
@@ -2,8 +2,8 @@ import { ref, reactive } from 'vue'
export
const
loginFormRef
=
ref
()
export
const
loginFormRef
=
ref
()
//表单数据
//表单数据
export
const
loginForm
=
reactive
({
export
const
loginForm
=
reactive
({
username
:
'
devzj3
'
,
//devzj3
username
:
''
,
//devzj3
password
:
'
Ifar2016_0525
'
,
//Ifar_9527008 / Ifar2016_0525
password
:
''
,
//Ifar_9527008 / Ifar2016_0525
verifyCode
:
''
verifyCode
:
''
})
})
export
const
showLoad
=
ref
(
false
)
export
const
showLoad
=
ref
(
false
)
...
...
src/pages/modules/mocp/login/index.vue
View file @
c066abdb
...
@@ -76,13 +76,13 @@ const handleLogin = async () => {
...
@@ -76,13 +76,13 @@ const handleLogin = async () => {
loading
.
value
=
true
loading
.
value
=
true
await
login
()
await
login
()
if
(
userStore
.
token
)
{
if
(
userStore
.
token
)
{
//
//
加入席位权限
//加入席位权限
//
await getUserSeatList()
await
getUserSeatList
()
//
if (userStore.seatId) {
if
(
userStore
.
seatId
)
{
//
await Promise.all([getSeatPermission(), getConfigData()])
await
Promise
.
all
([
getSeatPermission
(),
getConfigData
()])
//
} else {
}
else
{
//
userStore.setState('seatPermission', [])
userStore
.
setState
(
'seatPermission'
,
[])
//
}
}
//跳转工作台
//跳转工作台
uni
.
$mocpJump
.
redirectTo
(
'/tab/index'
)
uni
.
$mocpJump
.
redirectTo
(
'/tab/index'
)
}
}
...
...
src/pages/modules/mocp/panel/components/panel-navbar.vue
View file @
c066abdb
...
@@ -62,4 +62,7 @@ const goMyToDo = () => {
...
@@ -62,4 +62,7 @@ const goMyToDo = () => {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'../constants/panel-navbar.scss'
;
@import
'../constants/panel-navbar.scss'
;
:deep
(
._block
)
{
display
:
flex
!important
;
}
</
style
>
</
style
>
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