Browse Source

配置问答页面路由

pull/23/head
zq 2 months ago
parent
commit
08dc965d25
  1. 3
      control/index.php
  2. 1
      view/templates/include/header.html
  3. 41
      view/templates/index/interlocution.html

3
control/index.php

@ -92,4 +92,7 @@ class index extends publicBase {
$this->ajax_json(true, '设置成功');
}
public function interlocution() {
}
}

1
view/templates/include/header.html

@ -8,6 +8,7 @@
<img class="icon" src="{$smarty.const.CSS_URL}/images/drop-icon.svg" alt="">
</button>
<div class="dropdown-panel">
<a href="/index/interlocution">问答</a>
{if $_user_info.is_super_admin}
<a href="/index/user_list">子账号管理</a>
{/if}

41
view/templates/index/deepSeek.html → view/templates/index/interlocution.html

@ -5,15 +5,15 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DeepSeek Chat</title>
<link rel="stylesheet" href="../../css/common.css?v={$smarty.const.CSS_JS_VERSION}">
<link rel="stylesheet" href="../../css/main.css?v={$smarty.const.CSS_JS_VERSION}">
<link rel="stylesheet" href="../../css/deepSeek.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/deepSeek.css?v={$smarty.const.CSS_JS_VERSION}">
<link rel="stylesheet"
href="../../css/default.min.css">
<script src="../../js/jquery-3.6.0.min.js" type="text/javascript"></script>
<script src="../../js/marked.min.js"></script>
href="{$smarty.const.CSS_URL}/css/default.min.css">
<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="../../js/highlight.min.js"></script>
<script src="{$smarty.const.CSS_URL}/js/highlight.min.js"></script>
</head>
@ -25,7 +25,7 @@
<div class="sidebar b8812f16" id="sidebar">
<div class="sidebar-header">
<div class="sidebar-title _6969ec9">
<!-- <img src="../../images/deepLogo.svg" alt=""> -->
<!-- <img src="{$smarty.const.CSS_URL}/images/deepLogo.svg" alt=""> -->
<div class="e066abb8"><svg viewBox="-2 0 175 32" fill="none" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs></defs>
@ -56,10 +56,10 @@
d="M165.04 15.31L172.21 25.91L166.79 25.91L159.62 15.31L166.79 6.81L172.21 6.81L165.04 15.31Z"
fill="currentColor" fill-opacity="1.000000" fill-rule="nonzero"></path>
</svg></div>
<img src="../../images/retract.svg" id="toggleSidebar" alt="">
<img src="{$smarty.const.CSS_URL}/images/retract.svg" id="toggleSidebar" alt="">
</div>
<div class=" _5a8ac7a ebaea5d2 newChatBtn">
<img class="_1c42ad7" src="../../images/addNewBtn.svg" alt="">
<img class="_1c42ad7" src="{$smarty.const.CSS_URL}/images/addNewBtn.svg" alt="">
<span>开启新对话</span>
</div>
</div>
@ -74,11 +74,11 @@
</svg></div>
</div>
<div id="openMenu" title="打开边栏">
<img src="../../images/expand.svg" alt="">
<img src="{$smarty.const.CSS_URL}/images/expand.svg" alt="">
</div>
<div class="newChatBtn" title="开启新对话">
<img src="../../images/addNewBtn.svg" alt="">
<img src="{$smarty.const.CSS_URL}/images/addNewBtn.svg" alt="">
</div>
</div>
@ -87,11 +87,11 @@
<!-- <div class="time-section _48cdfc1">今天</div>
<div class="conversation-item _83421f9">
<span class="c08e6e93">草莓糖的作者最喜欢色设计</span>
<img class="_2090548" src="../../images/deepMoreTitle.svg" alt="">
<img class="_2090548" src="{$smarty.const.CSS_URL}/images/deepMoreTitle.svg" alt="">
</div>
<div class="conversation-item _83421f9">
<span class="c08e6e93">草莓糖的作者asdsa最喜欢色设计</span>
<img class="_2090548" src="../../images/deepMoreTitle.svg" alt="">
<img class="_2090548" src="{$smarty.const.CSS_URL}/images/deepMoreTitle.svg" alt="">
</div> -->
</div>
</div>
@ -167,7 +167,7 @@
style="transition: none; transform: rotate(0deg);">
<div class="ds-icon"
style="font-size: 19px; width: 19px; height: 19px; color: rgb(76, 76, 76);">
<img src="../../images/btnIcon1.svg" alt="">
<img src="{$smarty.const.CSS_URL}/images/btnIcon1.svg" alt="">
</div>
</span></div><span class="ad0c98fd">深度思考 (R1)</span>
</div>
@ -179,13 +179,13 @@
style="transition: none; transform: rotate(0deg);">
<div class="ds-icon"
style="font-size: 17px; width: 17px; height: 17px; color: rgb(76, 76, 76);">
<img src="../../images/btnIcon2.svg" alt="">
<img src="{$smarty.const.CSS_URL}/images/btnIcon2.svg" alt="">
</div>
</span></div><span class="ad0c98fd">联网搜索</span>
</div>
<div class="bf38813a">
<div class="f02f0e25">
<div class="f02f0e25 hide">
<div class="ds-icon" title=""
style="font-size: 23px; width: 23px; height: 23px;">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 20" fill="none">
@ -201,8 +201,8 @@
<div role="button" class="_7436101 bcc55ca1" id="sendBtn">
<div class="_6f28693">
<div class="ds-icon" style="font-size: 16px; width: 16px; height: 16px;">
<img class="sendBIconnot" src="../../images/sendnot.svg" alt="">
<img class="sendBIconActive" src="../../images/sendActive.svg" alt="">
<img class="sendBIconnot" src="{$smarty.const.CSS_URL}/images/sendnot.svg" alt="">
<img class="sendBIconActive" src="{$smarty.const.CSS_URL}/images/sendActive.svg" alt="">
</div>
</div>
</div>
@ -575,7 +575,8 @@
var aiMessageDiv = renderMessage("", "assistant", true);
// console.log(aiMessageDiv, 'aiMessageDiv---');
document.getElementById("messageInput").value = ""; // 清空输入框
const response = await fetch('http://192.168.31.74:26000/api/stream', {
const response = await fetch('/api/stream', {
// const response = await fetch('http://192.168.31.74:26000/api/stream', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
Loading…
Cancel
Save