|
@@ -1,12 +1,12 @@
|
|
|
<template>
|
|
|
<view id='app'>
|
|
|
<view class="placeholder"></view>
|
|
|
+ <view class="head">
|
|
|
+ <text>睿宝AI</text>
|
|
|
+ </view>
|
|
|
<view class="pageView">
|
|
|
<view class="sidebar-left"></view>
|
|
|
<view class="body">
|
|
|
- <view class="head">
|
|
|
- <text>睿宝AI</text>
|
|
|
- </view>
|
|
|
<view class="list-wrap">
|
|
|
<scroll-view id="content-box" scroll-y="true" class="scrollview" :scroll-top="msgList.scrollTop">
|
|
|
<!-- 聊天主体 -->
|
|
@@ -40,7 +40,7 @@
|
|
|
confirm-type="send" @confirm="handleSend" maxlength="300" />
|
|
|
</view>
|
|
|
<view class="uni-button">
|
|
|
- <button class="send-btn" @click="handleSend" type="primary">发送</button>
|
|
|
+ <button class="send-btn" @click="handleSend" type="primary" :disabled="msgList.isClick">发送</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -105,7 +105,7 @@
|
|
|
|
|
|
obj.otherContent = await GetNewsList(data)
|
|
|
|
|
|
- await sleep(16000);
|
|
|
+ // await sleep(16000);
|
|
|
getChatContent(obj.otherContent, msgList.len)
|
|
|
|
|
|
|
|
@@ -146,9 +146,9 @@
|
|
|
|
|
|
// ------- 聊天逐字输出 -----------
|
|
|
// 延时函数
|
|
|
- const sleep = ((delaytime = 10000) => {
|
|
|
- return new Promise(resolve => setTimeout(resolve, delaytime));
|
|
|
- })
|
|
|
+ // const sleep = ((delaytime = 10000) => {
|
|
|
+ // return new Promise(resolve => setTimeout(resolve, delaytime));
|
|
|
+ // })
|
|
|
|
|
|
// 逐字显示内容
|
|
|
const getChatContent = ((text, index) => {
|
|
@@ -164,7 +164,7 @@
|
|
|
msgList.otherChatList[index - 1] = nowStr;
|
|
|
}
|
|
|
|
|
|
- }, 200);
|
|
|
+ }, 50);
|
|
|
console.log(msgList.timer)
|
|
|
msgList.textCount = 0
|
|
|
msgList.isloading[index - 1] = false
|