Commit 4650ff9a by maolipeng

feat:每周优化。。。。。

parent 81d33c35
......@@ -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 ? (
......
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