|
@ -8,8 +8,9 @@ |
|
|
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/common.css?v={$smarty.const.CSS_JS_VERSION}"> |
|
|
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/common.css?v={$smarty.const.CSS_JS_VERSION}"> |
|
|
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/main.css?v={$smarty.const.CSS_JS_VERSION}"> |
|
|
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/main.css?v={$smarty.const.CSS_JS_VERSION}"> |
|
|
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/deepSeek.css?v={$smarty.const.CSS_JS_VERSION}"> |
|
|
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/deepSeek.css?v={$smarty.const.CSS_JS_VERSION}"> |
|
|
<link rel="stylesheet" |
|
|
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/default.min.css"> |
|
|
href="{$smarty.const.CSS_URL}/css/default.min.css"> |
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"> |
|
|
|
|
|
<script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script> |
|
|
<script src="{$smarty.const.CSS_URL}/js/jquery-3.6.0.min.js" type="text/javascript"></script> |
|
|
<script src="{$smarty.const.CSS_URL}/js/jquery-3.6.0.min.js" type="text/javascript"></script> |
|
|
<script src="{$smarty.const.CSS_URL}/js/marked.min.js"></script> |
|
|
<script src="{$smarty.const.CSS_URL}/js/marked.min.js"></script> |
|
|
<!-- 可选样式 --> |
|
|
<!-- 可选样式 --> |
|
@ -201,8 +202,10 @@ |
|
|
<div role="button" class="_7436101 bcc55ca1" id="sendBtn"> |
|
|
<div role="button" class="_7436101 bcc55ca1" id="sendBtn"> |
|
|
<div class="_6f28693"> |
|
|
<div class="_6f28693"> |
|
|
<div class="ds-icon" style="font-size: 16px; width: 16px; height: 16px;"> |
|
|
<div class="ds-icon" style="font-size: 16px; width: 16px; height: 16px;"> |
|
|
<img class="sendBIconnot" src="{$smarty.const.CSS_URL}/images/sendnot.svg" alt=""> |
|
|
<img class="sendBIconnot" |
|
|
<img class="sendBIconActive" src="{$smarty.const.CSS_URL}/images/sendActive.svg" alt=""> |
|
|
src="{$smarty.const.CSS_URL}/images/sendnot.svg" alt=""> |
|
|
|
|
|
<img class="sendBIconActive" |
|
|
|
|
|
src="{$smarty.const.CSS_URL}/images/sendActive.svg" alt=""> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -216,7 +219,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{literal} |
|
|
<script> |
|
|
<script> |
|
|
// 新对话按钮点击事件 |
|
|
// 新对话按钮点击事件 |
|
|
// document.querySelector('.new-chat-btn').addEventListener('click', function () { |
|
|
// document.querySelector('.new-chat-btn').addEventListener('click', function () { |
|
@ -576,7 +579,7 @@ |
|
|
// console.log(aiMessageDiv, 'aiMessageDiv---'); |
|
|
// console.log(aiMessageDiv, 'aiMessageDiv---'); |
|
|
document.getElementById("messageInput").value = ""; // 清空输入框 |
|
|
document.getElementById("messageInput").value = ""; // 清空输入框 |
|
|
const response = await fetch('/api/stream', { |
|
|
const response = await fetch('/api/stream', { |
|
|
// const response = await fetch('http://192.168.31.74:26000/api/stream', { |
|
|
// const response = await fetch('http://192.168.31.74:26000/api/stream', { |
|
|
method: 'POST', |
|
|
method: 'POST', |
|
|
headers: { |
|
|
headers: { |
|
|
'Content-Type': 'application/json' |
|
|
'Content-Type': 'application/json' |
|
@ -610,9 +613,9 @@ |
|
|
} |
|
|
} |
|
|
if (!loadFlag) { |
|
|
if (!loadFlag) { |
|
|
// aiMessageDiv.textContent = aiResponse; // 流式更新 |
|
|
// aiMessageDiv.textContent = aiResponse; // 流式更新 |
|
|
aiMessageDiv.innerHTML = marked.parse(aiResponse);; // 流式更新 |
|
|
aiMessageDiv.innerHTML = marked.parse(aiResponse);; // 流式更新 |
|
|
} |
|
|
} |
|
|
console.log($('.content-body'),'9898'); |
|
|
console.log($('.content-body'), '9898'); |
|
|
aiMessageDiv.scrollIntoView({ |
|
|
aiMessageDiv.scrollIntoView({ |
|
|
behavior: "smooth" |
|
|
behavior: "smooth" |
|
|
}); |
|
|
}); |
|
@ -670,6 +673,8 @@ |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
{/literal} |
|
|
|
|
|
|
|
|
</body> |
|
|
</body> |
|
|
|
|
|
|
|
|
</html> |
|
|
</html> |