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
4650ff9a
Commit
4650ff9a
authored
Jun 15, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:每周优化。。。。。
parent
81d33c35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
src/modules/root/Header.jsx
+11
-1
No files found.
src/modules/root/Header.jsx
View file @
4650ff9a
...
...
@@ -11,6 +11,7 @@ import { Radio, Button, Dropdown, Modal, Tooltip, message } from "antd";
import
{
LIVE_SHARE
}
from
"@/domains/course-domain/constants"
;
import
User
from
"@/common/js/user"
;
import
Service
from
"@/common/js/service"
;
import
StoreService
from
"@/domains/store-domain/storeService"
;
import
BaseService
from
"@/domains/basic-domain/baseService"
;
import
{
XMContext
}
from
"@/store/context"
;
import
logoImg
from
"@/common/images/logo.png"
;
...
...
@@ -33,6 +34,7 @@ function Header(props) {
const
[
list
,
setList
]
=
useState
([]);
const
[
openDropdown
,
setOpenDropdown
]
=
useState
(
false
);
const
[
instScroll
,
setInstScroll
]
=
useState
(
false
);
const
[
topLeftLogo
,
setTopLeftLogo
]
=
useState
(
"https://image.xiaomaiketang.com/xm/WEsMPAYxAs.png"
)
const
ctx
=
useContext
(
XMContext
);
const
htmlUrl
=
`
${
LIVE_SHARE
}
store/index?id=
${
User
.
getStoreId
()}
&userId=
${
User
.
getUserId
()}
&from=work_weixin`
;
const
storeUserId
=
User
.
getStoreUserId
();
...
...
@@ -47,6 +49,7 @@ function Header(props) {
setStoreName
(
value
);
});
getStoreList
();
getTopLeftLogo
()
},
[]);
useEffect
(()
=>
{
...
...
@@ -77,6 +80,13 @@ function Header(props) {
});
}
function
getTopLeftLogo
()
{
StoreService
.
getStoreDetail
({
storeId
:
User
.
getStoreId
})
.
then
(
res
=>
{
setTopLeftLogo
(
res
.
result
.
logo
)
})
}
function
getStoreList
()
{
if
(
!
enterpriseId
)
return
null
;
const
params
=
{
...
...
@@ -219,7 +229,7 @@ function Header(props) {
<
div
id=
"top-container"
className=
"top-container"
>
<
div
className=
"top top-nav"
>
<
div
>
<
img
src=
'https://image.xiaomaiketang.com/xm/WEsMPAYxAs.png'
className=
"logo"
alt=
""
/>
<
img
src=
{
topLeftLogo
}
className=
"logo"
alt=
""
/>
</
div
>
<
div
className=
"message-help"
>
{
list
.
length
?
(
...
...
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