Commit 12a9dd0b by zhangleyuan

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

parent 442a3f74
...@@ -99,7 +99,6 @@ function ChangePhoneModal(props: changePhoneModalProps) { ...@@ -99,7 +99,6 @@ function ChangePhoneModal(props: changePhoneModalProps) {
const param ={ const param ={
authCode: phoneVerify, authCode: phoneVerify,
phone: newPhone, phone: newPhone,
storeUserId: 0
} }
BaseService.editUserPhone(param).then((res) => { BaseService.editUserPhone(param).then((res) => {
if(res.success){ if(res.success){
......
...@@ -9,11 +9,20 @@ ...@@ -9,11 +9,20 @@
height: @top-height; height: @top-height;
background-color: #FFF; background-color: #FFF;
z-index: 112; z-index: 112;
.logo{ .logo{
display: block; display: inline-block;
height: 24px; height: 24px;
margin-left: 20px; 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 { .top {
display: flex; display: flex;
display: -webkit-flex; display: -webkit-flex;
......
/* /*
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2019-09-10 18:26:03 * @Date: 2019-09-10 18:26:03
* @LastEditors: wufan * @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-08 15:48:13 * @LastEditTime: 2020-12-08 16:38:59
* @Description: * @Description:
*/ */
import React , { useContext, useEffect ,useState}from 'react'; import React , { useContext, useEffect ,useState}from 'react';
...@@ -20,6 +20,7 @@ import User from '@/common/js/user'; ...@@ -20,6 +20,7 @@ import User from '@/common/js/user';
import BaseService from "@/domains/basic-domain/baseService"; import BaseService from "@/domains/basic-domain/baseService";
import { XMContext } from '@/store/context'; import { XMContext } from '@/store/context';
import baseImg from '@/common/images/xiaomai-IMG.png'; import baseImg from '@/common/images/xiaomai-IMG.png';
import logoImg from '@/common/images/logo.png';
const { confirm } = Modal; const { confirm } = Modal;
function Header(){ function Header(){
const [menuType, setMenuType] = useState(1); const [menuType, setMenuType] = useState(1);
...@@ -88,11 +89,8 @@ function Header(){ ...@@ -88,11 +89,8 @@ function Header(){
<div id="top-container" className="top-container"> <div id="top-container" className="top-container">
<div className="top top-nav"> <div className="top top-nav">
<div> <div>
{menuType ? ( <img src={logoImg} className="logo" alt="" />
<img src="https://image.xiaomaiketang.com/xm/TP2x7aQ24y.png" className="logo" alt="" /> <span className="logo-name">小麦云课堂</span>
):(
<img src="https://dev.xiaomai5.com/admin/static/images/logo.928339cd.png" className="logo" alt="" />
)}
</div> </div>
{menuType ? ( {menuType ? (
<span className="icon iconfont cursor ml20 handLike" onClick={handleMenu}> <span className="icon iconfont cursor ml20 handLike" onClick={handleMenu}>
......
...@@ -245,14 +245,15 @@ function CourseCatalogPage() { ...@@ -245,14 +245,15 @@ function CourseCatalogPage() {
setCatalogModalType('edit'); setCatalogModalType('edit');
setCatalogModalVisible(true); setCatalogModalVisible(true);
}else{ }else{
setParentCatalogId(record.parentId)
setSecondCatalogModalType('edit'); setSecondCatalogModalType('edit');
setSecondCatalogModalVisible(true); setSecondCatalogModalVisible(true);
} }
setChooseItem(record); setChooseItem(record);
} }
function expandSecondCatalog(expanded:boolean,record:any){ // function expandSecondCatalog(expanded:boolean,record:any){
setParentCatalogId(record.id); // setParentCatalogId(record.id);
} // }
return ( return (
<div className=" page course-catalog-page"> <div className=" page course-catalog-page">
<div className="page-content"> <div className="page-content">
...@@ -282,7 +283,7 @@ function CourseCatalogPage() { ...@@ -282,7 +283,7 @@ function CourseCatalogPage() {
} }
}} }}
dataSource={courseCatalogList} dataSource={courseCatalogList}
onExpand={(expanded, record)=>expandSecondCatalog(expanded, record)} // onExpand={(expanded, record)=>expandSecondCatalog(expanded, record)}
/> />
</div> </div>
<div className="box-footer"> <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