Commit 12a9dd0b by zhangleyuan

feat:修改小麦云课堂的图标显示

parent 442a3f74
......@@ -99,7 +99,6 @@ function ChangePhoneModal(props: changePhoneModalProps) {
const param ={
authCode: phoneVerify,
phone: newPhone,
storeUserId: 0
}
BaseService.editUserPhone(param).then((res) => {
if(res.success){
......
......@@ -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;
......
/*
* @Author: 吴文洁
* @Date: 2019-09-10 18:26:03
* @LastEditors: wufan
* @LastEditTime: 2020-12-08 15:48:13
* @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-08 16: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}>
......
......@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment