更新讯飞页面,修复bug

This commit is contained in:
weipengfei 2023-09-26 19:08:35 +08:00
parent b9e940e4b8
commit e658558d4b
1 changed files with 34 additions and 41 deletions

View File

@ -312,7 +312,7 @@
"pic": this.avatar
}
console.log(data);
this.TEXT = this.content;
this.TEXT = this.content+'';
this.talkList.push(data);
this.talkList.push({
"id": new Date().getTime(),
@ -323,17 +323,8 @@
this.n_content = '';
this.c_content = '';
this.socketing = true;
// return ;
this.$nextTick(() => {
//
this.content = '';
// uni.pageScrollTo({
// scrollTop: 999999, //
// duration: 0
// });
})
this.content = '';
this.sendToSpark();
},
async sendToSpark() {
// let myUrl = await this.getWebSocketUrl();
@ -627,16 +618,16 @@
color: #333;
.pic {
width: 92rpx;
height: 92rpx;
width: 62rpx;
height: 62rpx;
border-radius: 50%;
border: #fff solid 1px;
}
.content {
padding: 20rpx;
padding: 10rpx 16rpx;
border-radius: 4px;
max-width: 500rpx;
max-width: 600rpx;
word-break: break-all;
line-height: 52rpx;
position: relative;
@ -647,21 +638,22 @@
.content {
min-width: 20rpx;
min-height: 52rpx;
margin-left: 32rpx;
// margin-left: 32rpx;
margin-left: 16rpx;
background-color: #fff;
&::after {
content: '';
display: block;
width: 0;
height: 0;
border-top: 16rpx solid transparent;
border-bottom: 16rpx solid transparent;
border-right: 20rpx solid #fff;
position: absolute;
top: 30rpx;
left: -18rpx;
}
// &::after {
// content: '';
// display: block;
// width: 0;
// height: 0;
// border-top: 16rpx solid transparent;
// border-bottom: 16rpx solid transparent;
// border-right: 20rpx solid #fff;
// position: absolute;
// top: 30rpx;
// left: -18rpx;
// }
}
}
@ -673,22 +665,23 @@
.content {
min-width: 20rpx;
min-height: 52rpx;
margin-right: 32rpx;
// margin-right: 32rpx;
margin-right: 16rpx;
background-color: #2573fb;
color: #fff;
&::after {
content: '';
display: block;
width: 0;
height: 0;
border-top: 16rpx solid transparent;
border-bottom: 16rpx solid transparent;
border-left: 20rpx solid #2573fb;
position: absolute;
top: 30rpx;
right: -18rpx;
}
// &::after {
// content: '';
// display: block;
// width: 0;
// height: 0;
// border-top: 16rpx solid transparent;
// border-bottom: 16rpx solid transparent;
// border-left: 20rpx solid #2573fb;
// position: absolute;
// top: 30rpx;
// right: -18rpx;
// }
}
}
}