Commit 1ee96018 by Iteravse

输入框更新

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