Feat(云灵AI):对话接口对接完成

This commit is contained in:
lifizer
2025-03-28 15:15:14 +08:00
parent aaf2e74cbb
commit d1bc3cc351
23 changed files with 564 additions and 131 deletions
+84 -42
View File
@@ -11,6 +11,10 @@ page {
position: relative;
min-height: 100vh;
background-color: #fff;
background-size: 100% 100vh;
background-image: url(https://wxapp.xdd618.com/api/file/pic/aiChat/bg.png);
background-repeat: no-repeat;
background-attachment: fixed;
.fix-tabbar-header {
position: fixed;
top: 0;
@@ -82,7 +86,6 @@ page {
z-index: 2;
min-height: 100vh;
box-sizing: border-box;
background: linear-gradient(180deg, #FFF0DC 0%, rgba(255,234,216,0.67) 57%, rgba(255,255,255,0) 100%);
}
.page-to-bottom {
position: fixed;
@@ -92,11 +95,32 @@ page {
z-index: 8;
display: flex;
align-items: center;
justify-content: center;
justify-content: flex-end;
padding: 0 24rpx;
.new-chat {
display: flex;
align-items: center;
height: 68rpx;
padding: 0 24rpx;
border-radius: 40rpx;
line-height: 68rpx;
font-size: 30rpx;
background-color: #fff;
box-shadow: 0rpx 6rpx 12rpx rgba(0,0,0,0.16);
.btn-icon {
display: block;
width: 40rpx;
height: 40rrpx;
margin: 0 8rpx 0 0;
}
}
.icon {
display: block;
width: 68rpx;
height: 68rpx;
margin: 0 0 0 24rpx;
border-radius: 50%;
box-shadow: 0rpx 6rpx 12rpx rgba(0,0,0,0.16);
}
}
.fix-page-bottom {
@@ -106,8 +130,6 @@ page {
right: 0;
z-index: 9;
padding: 24rpx 24rpx 48rpx 24rpx;
background-color: #fff;
box-shadow: 0rpx -20rpx 30rpx rgba(176,186,206,0.16);
transition: all 0.2s;
&.focus {
transform: translateY(-48rpx);
@@ -116,11 +138,34 @@ page {
position: relative;
z-index: 2;
min-height: 100rpx;
.history-wrap {
width: 98rpx;
height: 100rpx;
border-radius: 30rpx;
text-align: center;
line-height: 100rpx;
font-size: 30rpx;
color: #333;
background-color: #fff;
box-shadow: 0rpx 6rpx 20rpx rgba(19,27,65,0.16);
}
.input-container {
display: flex;
align-items: center;
justify-content: space-between;
height: 100rpx;
width: calc(100% - 122rpx);
padding: 6rpx 6rpx 6rpx 24rpx;
border-radius: 30rpx;
box-sizing: border-box;
background-color: #fff;
box-shadow: 0rpx 6rpx 20rpx rgba(19,27,65,0.16);
}
.input-model {
.icon {
display: block;
width: 68rpx;
height: 68rpx;
width: 40rpx;
height: 40rpx;
}
}
.input-wrap {
@@ -130,21 +175,16 @@ page {
position: relative;
z-index: 5;
width: 100%;
max-height: 50vh;
padding: 15rpx;
margin: 0 24rpx;
height: 88rpx;
border: 0;
box-sizing: border-box;
border-radius: 20rpx;
line-height: 50rpx;
line-height: 88rpx;
color: #333;
font-size: 30rpx;
overflow-y: auto;
box-shadow: 0rpx 6rpx 20rpx rgba(19,27,65,0.16);
}
.placeholder-txt {
position: absolute;
left: 40rpx;
left: 0;
top: 50%;
z-index: 2;
color: #999;
@@ -155,8 +195,8 @@ page {
.send-btn {
.icon {
display: block;
width: 100rpx;
height: 100rpx;
width: 88rpx;
height: 88rpx;
}
}
.sound-input-wrap {
@@ -374,30 +414,32 @@ page {
}
.suggestion-list {
.item {
display: inline-flex;
min-height: 44rpx;
padding: 12rpx 12rpx 12rpx 18rpx;
border-radius: 30rpx;
margin: 24rpx 24rpx 0 0;
font-size: 26rpx;
color: #333;
line-height: 38rpx;
overflow: hidden;
text-overflow: ellipsis;
background-color: #fff;
.label {
display: flex;
width: 100%;
.item-cont {
display: flex;
justify-content: center;
align-items: center;
width: 44rpx;
justify-content: space-between;
height: 44rpx;
margin: 0 16rpx 0 0;
border-radius: 16rpx;
background: rgba(249,248,246,0.39);
padding: 12rpx 20rpx;
border-radius: 30rpx;
margin: 24rpx 0 0 0;
font-size: 26rpx;
color: #333;
line-height: 44rpx;
background-color: #fff;
box-shadow: 0rpx 6rpx 12rpx rgba(0,0,0,0.1);
.txt {
flex: 1;
max-width: calc(100% - 80rpx);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.pic {
display: block;
width: 28rpx;
height: 28rpx;
width: 30rpx;
height: 30rpx;
}
}
}
@@ -414,7 +456,7 @@ page {
color: #fff;
font-size: 30rpx;
line-height: 48rpx;
background: linear-gradient(270deg, #FA9108 0%, #FFC25C 100%);
background: #3D4CF1;
box-shadow: 0rpx 6rpx 12rpx rgba(0,0,0,0.16);
.copy-btn {
display: inline-block;
@@ -429,12 +471,12 @@ page {
}
.bottom-btns {
display: flex;
justify-content: flex-end;
justify-content: flex-start;
padding: 20rpx 0 0 0;
.item {
display: flex;
align-items: center;
margin: 0 0 0 48rpx;
margin: 0 48rpx 0 0;
padding: 0;
border: 0;
border-radius: 0;
@@ -592,13 +634,13 @@ page {
word-break: normal;
white-space: initial;
.cursor {
color: #FA9108;
color: #3D4CF1;
opacity: 0;
}
}
.show-cursor {
.cursor {
color: #FA9108;
color: #3D4CF1;
opacity: 1;
animation: blinking 1s infinite;
}
@@ -633,7 +675,7 @@ page {
border-radius: 50%;
}
.loader::before {
border-color: #FA9108 #0000;
border-color: #3D4CF1 #0000;
animation: inherit;
animation-duration: .5s;
animation-direction: reverse;
@@ -661,7 +703,7 @@ page {
width: 8px;
margin: 0 24rpx;
border-radius: 6px;
background-color: #FA9108;
background-color: #3D4CF1;
}
.one {
height: 86rpx;