Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
ae719532
Commit
ae719532
authored
Jan 11, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'fixed'
parent
4ab93355
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
public/h5.html
+14
-6
src/index.tsx
+3
-0
No files found.
public/h5.html
View file @
ae719532
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<!-- <link rel="apple-touch-icon" href="../src/common/images/logo.png" /> -->
<!-- <link rel="apple-touch-icon" href="../src/common/images/logo.png" /> -->
<link
rel=
"shortcut icon"
href=
"https://image.xiaomaiketang.com/xm/KGSYFEpcHT.png"
>
<link
rel=
"shortcut icon"
href=
"https://image.xiaomaiketang.com/xm/KGSYFEpcHT.png"
>
<title>
小麦企
训
</title>
<title>
小麦企
培
</title>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"./jquery.min.js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"./jquery.min.js"
></script>
</head>
</head>
...
@@ -56,16 +56,24 @@
...
@@ -56,16 +56,24 @@
if
(
!
code
)
{
if
(
!
code
)
{
return
return
}
}
const
ajaxOptions
=
{
$
.
post
(
BASIC_HOST_MAP
[
env
]
+
"anon/hades/wXWorkUserTicketLogin"
,
data
:
JSON
.
stringify
({
{
appTermEnum
:
appTermEnum
,
appTermEnum
:
appTermEnum
,
code
:
code
,
code
:
code
,
ticket
:
ticket
ticket
:
ticket
}),
type
:
'POST'
,
url
:
BASIC_HOST_MAP
[
env
]
+
"hades/anon/hades/wXWorkUserTicketLogin"
,
contentType
:
'application/json; charset=UTF-8'
,
timeout
:
20000
,
dataType
:
'json'
,
success
(
res
,
status
,
xhr
)
{
},
},
function
(
data
,
status
)
{
};
});
$
.
ajax
(
ajaxOptions
)
});
});
</script>
</script>
...
...
src/index.tsx
View file @
ae719532
...
@@ -18,6 +18,7 @@ import 'antd/dist/antd.less';
...
@@ -18,6 +18,7 @@ import 'antd/dist/antd.less';
import
'video-react/dist/video-react.css'
;
import
'video-react/dist/video-react.css'
;
import
'@/common/less/index.less'
;
import
'@/common/less/index.less'
;
import
'@/core/function'
;
import
'@/core/function'
;
import
User
from
'@/common/js/user'
;
import
Service
from
"@/common/js/service"
;
import
Service
from
"@/common/js/service"
;
declare
var
getParameterByName
:
any
;
declare
var
getParameterByName
:
any
;
...
@@ -53,6 +54,8 @@ if (getParameterByName('code')) {
...
@@ -53,6 +54,8 @@ if (getParameterByName('code')) {
appTermEnum
:
'XIAOMAI_CLOUD_CLASS_PC_WEB_ADMIN'
,
appTermEnum
:
'XIAOMAI_CLOUD_CLASS_PC_WEB_ADMIN'
,
code
:
getParameterByName
(
'code'
)
code
:
getParameterByName
(
'code'
)
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
User
.
setUserId
(
res
.
result
.
userId
);
User
.
setToken
(
res
.
result
.
xmToken
);
mount
()
mount
()
})
})
}
else
{
}
else
{
...
...
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