Commit 1ee96018 by Iteravse

输入框更新

parent 7d562b83
......@@ -690,34 +690,34 @@ export default {
});
return
}
that.inputVal = vocieData.message.transcription[0].text
that.inputVal += vocieData.message.transcription[0].text
//获取到用户说的话
that.socketTask.send({
data: JSON.stringify({
type: 0,
content: that.inputVal
}),
success: () => {
console.log('消息发送成功')
that.loading = true;
uni.showLoading({
title: vocieData.message,
mask: true, // 显示透明蒙层,防止触摸穿透
});
let str = '对方正在输入...'
let i = 6
that.timer = setInterval(() => {
if(i<10){
i += 1
}else{
i = 6
}
uni.setNavigationBarTitle({
title: str.substr(0,i)
});
}, 400);
}
});
// that.socketTask.send({
// data: JSON.stringify({
// type: 0,
// content: that.inputVal
// }),
// success: () => {
// console.log('消息发送成功')
// that.loading = true;
// uni.showLoading({
// title: vocieData.message,
// mask: true, // 显示透明蒙层,防止触摸穿透
// });
// let str = '对方正在输入...'
// let i = 6
// that.timer = setInterval(() => {
// if(i<10){
// i += 1
// }else{
// i = 6
// }
// uni.setNavigationBarTitle({
// title: str.substr(0,i)
// });
// }, 400);
// }
// });
}else{
that.loading = false;
uni.showToast({
......@@ -1020,13 +1020,25 @@ export default {
width: 100vw;
height: 100rpx;
position: fixed;
bottom: 6rpx;
bottom: 15rpx;
left: 0;
}
.chat-window-message {
font-size: 26rpx;
margin-left: 2vw;
margin-bottom: 6vh;
width: 70vw;
height: 6vh;
border-radius: 10rpx;
border: 1px solid #ffffff9c;
color: white;
text-indent: 10rpx;
padding-left: 10rpx;
}
.chat-window-message3 {
font-size: 26rpx;
margin-left: 2vw;
margin-bottom: 2vh;
width: 25vw;
height: 6vh;
......@@ -1038,14 +1050,14 @@ export default {
}
.activeAnimaite{
transition: all .5s;
transition: all .1s;
}
.chat-window-message2 {
font-size: 26rpx;
margin-left: 2vw;
margin-bottom: 2vh;
margin-bottom: 6vh;
width: 70vw;
height: 6vh;
border-radius: 10rpx;
......@@ -1070,8 +1082,8 @@ export default {
width: 90rpx;
height: 90rpx;
position: absolute;
bottom: 7rpx;
left: 50%;
bottom: 12rpx;
left: 89%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
border-radius: 50%;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2080,7 +2080,7 @@
}
.uni-btn[type=primary][disabled], .uni-btn[type=primary][disabled][loading], .uni-btn[type=primary][disabled]:not([hover-class]):active {
color: #fff;
border-color: #80adfa;
border-color: #80aefa;
background-color: #94bcff;
}
.uni-btn[type=primary][plain] {
......@@ -2140,7 +2140,7 @@
}
.uni-btn[type=success][disabled], .uni-btn[type=success][disabled][loading], .uni-btn[type=success][disabled]:not([hover-class]):active {
color: #fff;
border-color: #89c794;
border-color: #89c795;
background-color: #8cde9b;
}
.uni-btn[type=success][plain] {
......@@ -2320,7 +2320,7 @@
}
.uni-btn[type=info][disabled], .uni-btn[type=info][disabled][loading], .uni-btn[type=info][disabled]:not([hover-class]):active {
color: #fff;
border-color: #babcc1;
border-color: #babcc2;
background-color: #c7c9ce;
}
.uni-btn[type=info][plain] {
......@@ -2361,4 +2361,3 @@ page {
color: #333;
padding: 10px;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -20,12 +20,24 @@
width: 100vw;
height: 100rpx;
position: fixed;
bottom: 6rpx;
bottom: 15rpx;
left: 0;
}
.chat-window-message.data-v-57280228 {
font-size: 26rpx;
margin-left: 2vw;
margin-bottom: 6vh;
width: 70vw;
height: 6vh;
border-radius: 10rpx;
border: 1px solid #ffffff9c;
color: white;
text-indent: 10rpx;
padding-left: 10rpx;
}
.chat-window-message3.data-v-57280228 {
font-size: 26rpx;
margin-left: 2vw;
margin-bottom: 2vh;
width: 25vw;
height: 6vh;
......@@ -36,12 +48,12 @@
padding-left: 10rpx;
}
.activeAnimaite.data-v-57280228{
transition: all .5s;
transition: all .1s;
}
.chat-window-message2.data-v-57280228 {
font-size: 26rpx;
margin-left: 2vw;
margin-bottom: 2vh;
margin-bottom: 6vh;
width: 70vw;
height: 6vh;
border-radius: 10rpx;
......@@ -64,8 +76,8 @@
width: 90rpx;
height: 90rpx;
position: absolute;
bottom: 7rpx;
left: 50%;
bottom: 12rpx;
left: 89%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
border-radius: 50%;
......
......@@ -6,6 +6,11 @@
},
"setting": {
"urlCheck": false,
"es6": false,
"postcss": false,
"minified": false,
"newFeature": true,
"bigPackageSizeSupport": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
......
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "mindEpoch",
"projectname": "jueqing",
"setting": {
"compileHotReLoad": true,
"urlCheck": true
"compileHotReLoad": true
}
}
\ No newline at end of file
......@@ -67,8 +67,7 @@
transform-style: preserve-3d;
}
/* 3D Effects */
.swiper-3d.data-v-391a97dd,
.swiper-3d.swiper-css-mode .swiper-wrapper.data-v-391a97dd {
.swiper-3d.data-v-391a97dd, .swiper-3d.swiper-css-mode .swiper-wrapper.data-v-391a97dd {
-webkit-perspective: 1200px;
perspective: 1200px;
}
......@@ -140,7 +139,7 @@
touch-action: pan-x;
}
.swiper-centered > .swiper-wrapper.data-v-391a97dd::before {
content: '';
content: "";
flex-shrink: 0;
order: 9999;
}
......@@ -190,7 +189,7 @@
z-index: 0;
}
.swiper-cube .swiper-cube-shadow.data-v-391a97dd:before {
content: '';
content: "";
background: #000;
position: absolute;
left: 0;
......@@ -286,7 +285,7 @@
position: absolute;
top: 50%;
height: 80rpx;
margin-top: calc(0rpx - (80rpx / 2));
margin-top: -40rpx;
z-index: 10;
cursor: pointer;
display: flex;
......@@ -525,4 +524,3 @@
.swiper-scrollbar-lock.data-v-391a97dd {
display: none;
}
......@@ -89,8 +89,7 @@
transform-style: preserve-3d;
}
/* 3D Effects */
.swiper-3d.data-v-2ff4d8de,
.swiper-3d.swiper-css-mode .swiper-wrapper.data-v-2ff4d8de {
.swiper-3d.data-v-2ff4d8de, .swiper-3d.swiper-css-mode .swiper-wrapper.data-v-2ff4d8de {
-webkit-perspective: 1200px;
perspective: 1200px;
}
......@@ -162,7 +161,7 @@
touch-action: pan-x;
}
.swiper-centered > .swiper-wrapper.data-v-2ff4d8de::before {
content: '';
content: "";
flex-shrink: 0;
order: 9999;
}
......@@ -212,7 +211,7 @@
z-index: 0;
}
.swiper-cube .swiper-cube-shadow.data-v-2ff4d8de:before {
content: '';
content: "";
background: #000;
position: absolute;
left: 0;
......@@ -308,7 +307,7 @@
position: absolute;
top: 50%;
height: 80rpx;
margin-top: calc(0rpx - (80rpx / 2));
margin-top: -40rpx;
z-index: 10;
cursor: pointer;
display: flex;
......@@ -563,7 +562,7 @@
display: flex;
color: #1989fa;
font-size: 44rpx;
opacity: .35;
opacity: 0.35;
z-index: 10;
}
.swiper__next--button.data-v-2ff4d8de {
......@@ -582,7 +581,6 @@
display: flex;
color: #1989fa;
font-size: 44rpx;
opacity: .35;
opacity: 0.35;
z-index: 10;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment