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
12a9dd0b
Commit
12a9dd0b
authored
Dec 08, 2020
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改小麦云课堂的图标显示
parent
442a3f74
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
17 deletions
+24
-17
src/modules/personalInfo/ChangePhoneModal.tsx
+0
-1
src/modules/root/Header.less
+14
-5
src/modules/root/Header.tsx
+5
-7
src/modules/store-manege/CourseCatalogPage.tsx
+5
-4
No files found.
src/modules/personalInfo/ChangePhoneModal.tsx
View file @
12a9dd0b
...
...
@@ -99,7 +99,6 @@ function ChangePhoneModal(props: changePhoneModalProps) {
const
param
=
{
authCode
:
phoneVerify
,
phone
:
newPhone
,
storeUserId
:
0
}
BaseService
.
editUserPhone
(
param
).
then
((
res
)
=>
{
if
(
res
.
success
){
...
...
src/modules/root/Header.less
View file @
12a9dd0b
...
...
@@ -9,11 +9,20 @@
height: @top-height;
background-color: #FFF;
z-index: 112;
.logo{
display: block;
height: 24px;
margin-left: 20px;
}
.logo{
display: inline-block;
height: 24px;
margin-left: 20px;
}
.logo-name{
font-size: 14px;
font-weight: 500;
color: #FFB714;
line-height: 20px;
vertical-align: middle;
font-weight:bold;
margin-left:11px;
}
.top {
display: flex;
display: -webkit-flex;
...
...
src/modules/root/Header.tsx
View file @
12a9dd0b
/*
* @Author: 吴文洁
* @Date: 2019-09-10 18:26:03
* @LastEditors:
wuf
an
* @LastEditTime: 2020-12-08 1
5:48:13
* @LastEditors:
zhangleyu
an
* @LastEditTime: 2020-12-08 1
6:38:59
* @Description:
*/
import
React
,
{
useContext
,
useEffect
,
useState
}
from
'react'
;
...
...
@@ -20,6 +20,7 @@ import User from '@/common/js/user';
import
BaseService
from
"@/domains/basic-domain/baseService"
;
import
{
XMContext
}
from
'@/store/context'
;
import
baseImg
from
'@/common/images/xiaomai-IMG.png'
;
import
logoImg
from
'@/common/images/logo.png'
;
const
{
confirm
}
=
Modal
;
function
Header
(){
const
[
menuType
,
setMenuType
]
=
useState
(
1
);
...
...
@@ -88,11 +89,8 @@ function Header(){
<
div
id=
"top-container"
className=
"top-container"
>
<
div
className=
"top top-nav"
>
<
div
>
{
menuType
?
(
<
img
src=
"https://image.xiaomaiketang.com/xm/TP2x7aQ24y.png"
className=
"logo"
alt=
""
/>
):(
<
img
src=
"https://dev.xiaomai5.com/admin/static/images/logo.928339cd.png"
className=
"logo"
alt=
""
/>
)
}
<
img
src=
{
logoImg
}
className=
"logo"
alt=
""
/>
<
span
className=
"logo-name"
>
小麦云课堂
</
span
>
</
div
>
{
menuType
?
(
<
span
className=
"icon iconfont cursor ml20 handLike"
onClick=
{
handleMenu
}
>
...
...
src/modules/store-manege/CourseCatalogPage.tsx
View file @
12a9dd0b
...
...
@@ -245,14 +245,15 @@ function CourseCatalogPage() {
setCatalogModalType
(
'edit'
);
setCatalogModalVisible
(
true
);
}
else
{
setParentCatalogId
(
record
.
parentId
)
setSecondCatalogModalType
(
'edit'
);
setSecondCatalogModalVisible
(
true
);
}
setChooseItem
(
record
);
}
function
expandSecondCatalog
(
expanded
:
boolean
,
record
:
any
){
setParentCatalogId
(
record
.
id
);
}
//
function expandSecondCatalog(expanded:boolean,record:any){
//
setParentCatalogId(record.id);
//
}
return
(
<
div
className=
" page course-catalog-page"
>
<
div
className=
"page-content"
>
...
...
@@ -282,7 +283,7 @@ function CourseCatalogPage() {
}
}
}
dataSource=
{
courseCatalogList
}
onExpand=
{
(
expanded
,
record
)
=>
expandSecondCatalog
(
expanded
,
record
)
}
//
onExpand={(expanded, record)=>expandSecondCatalog(expanded, record)}
/>
</
div
>
<
div
className=
"box-footer"
>
...
...
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