修复bug

This commit is contained in:
weipengfei 2023-12-12 18:12:11 +08:00
parent b150e9ef02
commit 55433c05ab
1 changed files with 14 additions and 6 deletions

View File

@ -758,6 +758,7 @@
</div> </div>
</div> </div>
<div :style=" active === true ? 'height:' + footerConH + 'rem;' : 'height:' + footerH + 'rem;'"></div> <div :style=" active === true ? 'height:' + footerConH + 'rem;' : 'height:' + footerH + 'rem;'"></div>
<div :style=" active === true ? 'height: 0;' : 'height: 2rem;'"></div>
</scroll-view> </scroll-view>
</view> </view>
<view style="height: 100rpx;"></view> <view style="height: 100rpx;"></view>
@ -771,9 +772,9 @@
{{ speak }} {{ speak }}
</div> </div>
<view class="input_count"> <view class="input_count">
<input type="text" placeholder-class='placeholder' placeholder="输入内容" class="input" ref="input" <input type="text" placeholder-class='placeholder' :disabled="active" placeholder="输入内容" class="input" ref="input"
v-show="!voice" @input="bindInput" @keyup="keyup" @focus="focus" cursor-spacing="20" v-show="!voice" @input="bindInput" @keyup="keyup" @focus="focus" cursor-spacing="20"
v-model="textCon"> v-model="textCon" @click="handleClick">
<div class="send iconfont icon-fasong" :style="'color:'+iconColor" @click="sendTest"></div> <div class="send iconfont icon-fasong" :style="'color:'+iconColor" @click="sendTest"></div>
</view> </view>
</div> </div>
@ -1382,6 +1383,11 @@
focus: function() { focus: function() {
this.active = false; this.active = false;
}, },
handleClick(){
if(this.active){
this.active = false;
}
},
keyup: function() { keyup: function() {
if (this.$refs.input.value.length > 0) { if (this.$refs.input.value.length > 0) {
this.sendColor = true; this.sendColor = true;
@ -1537,7 +1543,7 @@
self.scrollTop = parseInt(scrollTop) + 100 self.scrollTop = parseInt(scrollTop) + 100
} }
}).exec() }).exec()
}, 1000) }, 200)
}, },
// //
bindScroll() { bindScroll() {
@ -1603,7 +1609,8 @@
margin-top: 20rpx; margin-top: 20rpx;
width: 710rpx; width: 710rpx;
position: fixed; position: fixed;
bottom: 120rpx; bottom: 180rpx;
bottom: calc(180rpx + env(safe-area-inset-bottom)); /* 适应底部安全距离 */
left: 20rpx; left: 20rpx;
.broadcast-details_box, .broadcast-details_box,
@ -1943,9 +1950,10 @@
transition: all 0.005s cubic-bezier(0.25, 0.5, 0.5, 0.9); transition: all 0.005s cubic-bezier(0.25, 0.5, 0.5, 0.9);
background-color: #fff; background-color: #fff;
position: fixed; position: fixed;
bottom: 0; // bottom:var(--status-bar-height);
bottom: 20rpx;
bottom: calc(20rpx + env(safe-area-inset-bottom) );
left: 0; left: 0;
margin-bottom: var(--status-bar-height);;
} }
.broadcast-details .footerCon.on { .broadcast-details .footerCon.on {