diff --git a/src/components/chat-scroll-view/chat-scroll-view.vue b/src/components/chat-scroll-view/chat-scroll-view.vue
index 5a1a006..b30f0cf 100644
--- a/src/components/chat-scroll-view/chat-scroll-view.vue
+++ b/src/components/chat-scroll-view/chat-scroll-view.vue
@@ -22,10 +22,10 @@
-
+ /> -->
-
-
+
+
+
+ 对话列表
+
+
+ class="flex text-content items-center "
+ >
+
()
const appStore = useAppStore()
const router = useRouter()
@@ -380,6 +394,9 @@ const isShowFileUpload = computed(() => {
pluginOptions.pluginId === 'gpt-4-all'
)
})
+const backChatLock=()=>{
+ emit('back',false)
+}
const pagingRef = shallowRef()
const queryList = async (pageNo: number, pageSize: number) => {
diff --git a/src/packages/pages/ai_talk/ai_talk.vue b/src/packages/pages/ai_talk/ai_talk.vue
index eb4cd2e..249f0dd 100644
--- a/src/packages/pages/ai_talk/ai_talk.vue
+++ b/src/packages/pages/ai_talk/ai_talk.vue
@@ -18,22 +18,23 @@
:safeAreaInsetBottom="false"
:avatar="appStore.getChatConfig.chat_logo"
bottom="100rpx"
+ @back="handlerback"
>
-
-
+ />
+ -->
-
+
-
+
-
+
@@ -113,9 +114,10 @@ import { useSessionList } from './components/useSessionList'
import agreement from '@/components/agreement/agreement.vue'
const { getSessionLists, sessionActive } = useSessionList()
-const showPopup = ref(false)
+const showPopup = ref(true)
const showExamplePopup = ref(false)
const problem = ref([])
+const popup=ref(null)
// 聊天记录列表
const chatList = ref([])
const chatRef = shallowRef()
@@ -134,7 +136,10 @@ const modelKey = ref('')
const getProblemExample = async () => {
problem.value = await getSamplesLists()
}
-
+const handlerback=()=>{
+ console.log(popup.value,'=====popup.value')
+ popup.value.showPopup()
+}
const getDecorateFunc = async () => {
try {
const { data } = await getDecorate({ id: 8 })
diff --git a/src/packages/pages/ai_talk/components/session-item.vue b/src/packages/pages/ai_talk/components/session-item.vue
index b2c5b46..36b4941 100644
--- a/src/packages/pages/ai_talk/components/session-item.vue
+++ b/src/packages/pages/ai_talk/components/session-item.vue
@@ -1,15 +1,18 @@
-
-
+
+
+
-
- {{ name }}
+ /> -->
+
+ 机器人助手
+ {{creat_time}}
+
+ {{ name }}
-
+
+
+
\ No newline at end of file
diff --git a/src/packages/pages/ai_talk/components/session-popup.vue b/src/packages/pages/ai_talk/components/session-popup.vue
index 75a9e72..52a64ef 100644
--- a/src/packages/pages/ai_talk/components/session-popup.vue
+++ b/src/packages/pages/ai_talk/components/session-popup.vue
@@ -1,15 +1,15 @@
-
+
-
-
+
+ 删除所有会话
@@ -19,21 +19,24 @@
v-model="sessionActive"
:item-id="item.id"
:name="item.name"
+ :time="item.create_time"
@edit="sessionEdit"
@delete="sessionDelete"
+ @show="sessionDetail"
/>
-
-
- 删除所有会话
-
-
+
+
+ 新建
+
+
+
@@ -44,7 +47,7 @@ import { useAppStore } from '@/stores/app'
import { useSessionList } from './useSessionList'
import { useLockFn } from '@/hooks/useLockFn'
import SessionItem from './session-item.vue'
-import { watch } from 'vue'
+import { watch,defineExpose } from 'vue'
const props = defineProps({
modelValue: {
type: Boolean
@@ -73,7 +76,14 @@ const {
const { lockFn: sessionAddLock, isLock } = useLockFn(async () => {
await sessionAdd()
})
-
+const sessionAddTalk=()=>{
+ emit('update:modelValue', false)
+ sessionAdd()
+}
+const sessionDetail=(val)=>{
+ emit('update:modelValue', val)
+}
+const showPopup=()=>emit('update:modelValue', true)
const appStore = useAppStore()
watch(
() => appStore.getChatConfig,
@@ -87,4 +97,27 @@ watch(
immediate: true
}
)
+defineExpose({
+ showPopup
+})
+
diff --git a/src/pages/ai_creation/ai_creation.vue b/src/pages/ai_creation/ai_creation.vue
new file mode 100644
index 0000000..cf34855
--- /dev/null
+++ b/src/pages/ai_creation/ai_creation.vue
@@ -0,0 +1,127 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ category.name
+ }}
+
+
+
+
+
+
+
+
+ {{ item.name }}
+ {{ item.tips }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/user/user.vue b/src/pages/user/user.vue
index 423fe00..19265be 100644
--- a/src/pages/user/user.vue
+++ b/src/pages/user/user.vue
@@ -54,7 +54,7 @@ onShow(() => {
getData()
userStore.getUser()
})
-
+
onPullDownRefresh(async () => {
getData()
userStore.getUser()
diff --git a/src/static/images/user/toux.png b/src/static/images/user/toux.png
new file mode 100644
index 0000000..a912fe9
Binary files /dev/null and b/src/static/images/user/toux.png differ
diff --git a/src/styles/public.scss b/src/styles/public.scss
index 9c42d4f..891a11d 100644
--- a/src/styles/public.scss
+++ b/src/styles/public.scss
@@ -1,15 +1,15 @@
page {
- background-color: $u-bg-color;
- font-size: 28rpx;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- font-family: theme('fontFamily.sans')
+ background-color: $u-bg-color;
+ font-size: 28rpx;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ font-family: theme('fontFamily.sans')
}
uni-modal {
- z-index: 999999 !important;
+ z-index: 999999 !important;
}
button::after {
- border: initial;
-}
+ border: initial;
+}
\ No newline at end of file