diff --git a/src/layout/head/Head.tsx b/src/layout/head/Head.tsx
index 7b506eb..b02dd71 100644
--- a/src/layout/head/Head.tsx
+++ b/src/layout/head/Head.tsx
@@ -4,7 +4,7 @@ import { useDispatch } from 'react-redux'
import BalanceHead from '../../components/balance/BalanceHead.tsx';
import RechargeHead from '../../components/recharge/RechargeHead.tsx';
import { Dropdown, MenuProps, message, Modal, Space, Spin, Input } from "antd";
-import { DownOutlined, UserOutlined, QuestionCircleOutlined, BellOutlined, KeyOutlined, LogoutOutlined, GiftOutlined, AccountBookOutlined, ContainerOutlined, MenuFoldOutlined, UsergroupAddOutlined } from "@ant-design/icons";
+import { DownOutlined, UserOutlined, QuestionCircleOutlined, BellOutlined, KeyOutlined, LogoutOutlined, GiftOutlined, AccountBookOutlined, ContainerOutlined, MenuFoldOutlined, UsergroupAddOutlined, } from "@ant-design/icons";
import { useContext, useEffect, useState } from "react";
import { put, get, post, getUseUrl } from "../../util/AjaxUtils.ts";
import { GlobalContext, GlobalDispatchContext, reloadUser } from "../../context/GlobalContext.ts";
@@ -14,6 +14,8 @@ import PasswordChange from "../../components/password/PasswordChange.tsx";
import InvoiceList from "../../components/invoice/InvoiceList.tsx";
import logoImg from '../../static/head/logo.png'
import userImg from '../../static/homeimg/userimg.png'
+import kf from '../../static/head/kf.png'
+import kfImg from '../../static/head/kfImg.png'
import { reMenuActive } from '../../util/cache';
// import BelongPeople from '../../components/BelongPeople/BelongPeople.tsx'
import BelongPeople from '../../components/BelongPeople/BelongPeople.tsx'
@@ -27,6 +29,8 @@ export default function Head() {
// const couponModal = redxuState.couponModal
// 消息通知弹窗
const [noticeModal, setNoticeModal] = useState(false)
+ // 客服弹窗
+ const [kfModal, setkfModal] = useState(false)
// 未读消息数
const [unRead, setUnRead] = useState(0)
// 获取未读消息总数
@@ -292,7 +296,7 @@ export default function Head() {
// })
// }
-
+
useEffect(() => {
@@ -435,7 +439,18 @@ export default function Head() {
{/*
*/}
+
{
+ setkfModal(true)
+ }}>
+
+

+
+
+ 在线客服
+
+
+
{/*
{
window.open('https://www.aimzhu.com/operator/route/agreementportal/view?agreementId=c0c5683a-bef3-40c3-8395-900a362ea234&title=系统操作流程')
}}>
@@ -771,6 +786,31 @@ export default function Head() {
}}>
+
{
+ setkfModal(false)
+
+ }}>
+
+
微信扫码咨询客服
+
+

+
+
+ 若已登录电脑端, {
+ window.open('https://work.weixin.qq.com/kfid/kfc599f9d40b65ac392')
+ }
+ }>点击联系客服
+
+
+
{/*
{
get({
diff --git a/src/route/proj/ProjCreate.tsx b/src/route/proj/ProjCreate.tsx
index 1070028..4b52cfe 100644
--- a/src/route/proj/ProjCreate.tsx
+++ b/src/route/proj/ProjCreate.tsx
@@ -63,9 +63,16 @@ export default function ProjCreate() {
setCharge(data.additional);
// console.log("创建数据", data);
// console.log(charge.projTypes[0].price);
- setAllInfo(data.projTypes[0])
- setMaterialInfo(data.projTypes[1])
- setFreeInfo(data.projTypes[2])
+ // setAllInfo(data.projTypes[0])
+ // setMaterialInfo(data.projTypes[1])
+ // setFreeInfo(data.projTypes[2])
+ // 找到ata.projTypes数组种type == all的对象付给 info
+
+ setAllInfo(data.projTypes.find((item: any) => item.type == 'ALL'))
+ setMaterialInfo(data.projTypes.find((item: any) => item.type == 'MATERIAL'))
+ setFreeInfo(data.projTypes.find((item: any) => item.type == 'FREE'))
+ // MATERIAL FREE
+
// console.log('后面的price',data.proj.materialAgent);
setFreeCount(data.freeCount)
}
diff --git a/src/static/head/kf.png b/src/static/head/kf.png
new file mode 100644
index 0000000..2782f48
Binary files /dev/null and b/src/static/head/kf.png differ
diff --git a/src/static/head/kfImg.png b/src/static/head/kfImg.png
new file mode 100644
index 0000000..b7b7eac
Binary files /dev/null and b/src/static/head/kfImg.png differ