Commit 4650ff9a by maolipeng

feat:每周优化。。。。。

parent 81d33c35
...@@ -11,6 +11,7 @@ import { Radio, Button, Dropdown, Modal, Tooltip, message } from "antd"; ...@@ -11,6 +11,7 @@ import { Radio, Button, Dropdown, Modal, Tooltip, message } from "antd";
import { LIVE_SHARE } from "@/domains/course-domain/constants"; import { LIVE_SHARE } from "@/domains/course-domain/constants";
import User from "@/common/js/user"; import User from "@/common/js/user";
import Service from "@/common/js/service"; import Service from "@/common/js/service";
import StoreService from "@/domains/store-domain/storeService";
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 logoImg from "@/common/images/logo.png"; import logoImg from "@/common/images/logo.png";
...@@ -33,6 +34,7 @@ function Header(props) { ...@@ -33,6 +34,7 @@ function Header(props) {
const [list, setList] = useState([]); const [list, setList] = useState([]);
const [openDropdown, setOpenDropdown] = useState(false); const [openDropdown, setOpenDropdown] = useState(false);
const [instScroll, setInstScroll] = useState(false); const [instScroll, setInstScroll] = useState(false);
const [topLeftLogo, setTopLeftLogo] = useState("https://image.xiaomaiketang.com/xm/WEsMPAYxAs.png")
const ctx = useContext(XMContext); const ctx = useContext(XMContext);
const htmlUrl = `${LIVE_SHARE}store/index?id=${User.getStoreId()}&userId=${User.getUserId()}&from=work_weixin`; const htmlUrl = `${LIVE_SHARE}store/index?id=${User.getStoreId()}&userId=${User.getUserId()}&from=work_weixin`;
const storeUserId = User.getStoreUserId(); const storeUserId = User.getStoreUserId();
...@@ -47,6 +49,7 @@ function Header(props) { ...@@ -47,6 +49,7 @@ function Header(props) {
setStoreName(value); setStoreName(value);
}); });
getStoreList(); getStoreList();
getTopLeftLogo()
}, []); }, []);
useEffect(() => { useEffect(() => {
...@@ -77,6 +80,13 @@ function Header(props) { ...@@ -77,6 +80,13 @@ function Header(props) {
}); });
} }
function getTopLeftLogo() {
StoreService.getStoreDetail({storeId:User.getStoreId})
.then(res=> {
setTopLeftLogo(res.result.logo)
})
}
function getStoreList() { function getStoreList() {
if (!enterpriseId) return null; if (!enterpriseId) return null;
const params = { const params = {
...@@ -219,7 +229,7 @@ function Header(props) { ...@@ -219,7 +229,7 @@ function Header(props) {
<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>
<img src='https://image.xiaomaiketang.com/xm/WEsMPAYxAs.png' className="logo" alt="" /> <img src={topLeftLogo} className="logo" alt="" />
</div> </div>
<div className="message-help"> <div className="message-help">
{list.length ? ( {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