分享详情页修改
This commit is contained in:
parent
a494c0ed16
commit
b844f82c50
@ -23,7 +23,7 @@ export default ({ instance }: Props) => {
|
|||||||
let mtBox = document.getElementsByClassName('flex-1 mt-14 flex flex-col overflow-hidden')[0]
|
let mtBox = document.getElementsByClassName('flex-1 mt-14 flex flex-col overflow-hidden')[0]
|
||||||
if (!chatShow.get()) {
|
if (!chatShow.get()) {
|
||||||
infoHeader.style.display = "flex";
|
infoHeader.style.display = "flex";
|
||||||
infoSend.style.display = "flex";
|
infoSend.style.display = "block";
|
||||||
mtBox.style.marginTop = '3.5rem';
|
mtBox.style.marginTop = '3.5rem';
|
||||||
}
|
}
|
||||||
currentConversationId.set(instance.id)
|
currentConversationId.set(instance.id)
|
||||||
|
@ -155,23 +155,27 @@ export default () => {
|
|||||||
uniqid.set(id)
|
uniqid.set(id)
|
||||||
setDataInfo()
|
setDataInfo()
|
||||||
}
|
}
|
||||||
const unId=useStore(uniqid)
|
const unId = useStore(uniqid)
|
||||||
|
|
||||||
//设置切换显示内容
|
//设置切换显示内容
|
||||||
const setDataInfo=()=>{
|
const setDataInfo = () => {
|
||||||
let infoSend = document.getElementById("infoSend");
|
let infoSend = document.getElementById("infoSend");
|
||||||
let infoHeader = document.getElementById("infoHeader");
|
let infoHeader = document.getElementById("infoHeader");
|
||||||
let mtBox = document.getElementsByClassName('flex-1 mt-14 flex flex-col overflow-hidden')[0]
|
let mtBox = document.getElementsByClassName('flex-1 mt-14 flex flex-col overflow-hidden')[0]
|
||||||
if (chatShow.get()) {
|
if (chatShow.get()) {
|
||||||
infoSend.style.display = "none";
|
infoSend.style.display = "none";
|
||||||
|
if (!isMobile()) {
|
||||||
infoHeader.style.display = "none";
|
infoHeader.style.display = "none";
|
||||||
mtBox.style.marginTop = 0;
|
mtBox.style.marginTop = 0;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
infoHeader.style.display = "flex";
|
|
||||||
infoSend.style.display = "flex";
|
infoSend.style.display = "flex";
|
||||||
|
if (!isMobile()) {
|
||||||
|
infoHeader.style.display = "flex";
|
||||||
mtBox.style.marginTop = '3.5rem';
|
mtBox.style.marginTop = '3.5rem';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//提示弹窗
|
//提示弹窗
|
||||||
// const ErrorState = () => (
|
// const ErrorState = () => (
|
||||||
@ -225,7 +229,7 @@ export default () => {
|
|||||||
{(instance, i) => (
|
{(instance, i) => (
|
||||||
<Show when={instance.title}>
|
<Show when={instance.title}>
|
||||||
<ConversationSidebarItem
|
<ConversationSidebarItem
|
||||||
clickInfo={instance.uniqid==unId()}
|
clickInfo={instance.uniqid == unId()}
|
||||||
chatWatch={chatWatch} popShow={popShow} instanceData={{ ...instance }} infoList={list.data} key={i as any} setList={setList} />
|
chatWatch={chatWatch} popShow={popShow} instanceData={{ ...instance }} infoList={list.data} key={i as any} setList={setList} />
|
||||||
</Show>
|
</Show>
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user