Merge branch 'develop' of http://25.13.9.101:9000/K17_AITS/tra-app into develop
This commit is contained in:
@@ -99,8 +99,6 @@ const recordObjCom = ref({})
|
||||
const IsAndEnv = getPhoneEnvBool('AND')
|
||||
const initRecord = () => {
|
||||
recordObjCom.value = uni.getRecorderManager()
|
||||
// startRecord()
|
||||
// stopRecord()
|
||||
unref(recordObjCom)?.onStop((res, duration)=>{
|
||||
audioPath.value = res.tempFilePath
|
||||
if(!isOut.value){
|
||||
@@ -144,6 +142,7 @@ const startRecord = () => {
|
||||
}
|
||||
|
||||
const stopRecord = () => {
|
||||
// setTimeout(() => {
|
||||
try{
|
||||
if(unref(recordObjCom).stop){
|
||||
unref(recordObjCom).stop()
|
||||
@@ -153,12 +152,13 @@ const stopRecord = () => {
|
||||
}catch{
|
||||
closeModel()
|
||||
}
|
||||
// }, 500)
|
||||
}
|
||||
const closeModel = (cb = () => {}) => {
|
||||
setTimeout(() => {
|
||||
showTalkingModel.value = false
|
||||
cb && cb()
|
||||
},100)
|
||||
}, 350)
|
||||
}
|
||||
// #endif
|
||||
//#ifndef APP-PLUS
|
||||
|
||||
+29
-12
@@ -14,7 +14,7 @@
|
||||
<view class="message_div">
|
||||
<image src="@/static/images/index/message_b.png" class="message_img"></image>
|
||||
<view class="message_text">消息</view>
|
||||
<view class="message_num">30</view>
|
||||
<view class="message_num message_num_font">30</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<view class="message_div">
|
||||
<image src="@/static/images/index/message.png" class="message_img"></image>
|
||||
<view class="message_text">消息</view>
|
||||
<view class="message_num">
|
||||
<view class="message_num message_num_font">
|
||||
30
|
||||
</view>
|
||||
</view>
|
||||
@@ -593,15 +593,24 @@
|
||||
position: absolute;
|
||||
top: 2rpx;
|
||||
right: -4rpx;
|
||||
padding: 1rpx 1rpx 1rpx 2rpx;
|
||||
padding: 2rpx 3rpx 2rpx 3rpx;
|
||||
background-color: #ff1926;
|
||||
border-radius: 10rpx;
|
||||
width: 22rpx;
|
||||
height: 20rpx;
|
||||
font-size: 10rpx;
|
||||
// width: 22rpx;
|
||||
// height: 20rpx;
|
||||
// font-size: 10rpx;
|
||||
// font-size: 30rpx;
|
||||
color: #ffffff;
|
||||
|
||||
}
|
||||
.message_num_font {
|
||||
width: 22rpx;
|
||||
height: 22rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 16rpx;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -643,15 +652,23 @@
|
||||
position: absolute;
|
||||
top: 2rpx;
|
||||
right: -4rpx;
|
||||
padding: 1rpx 1rpx 1rpx 2rpx;
|
||||
padding: 2rpx 3rpx 2rpx 3rpx;
|
||||
background-color: #ff1926;
|
||||
border-radius: 10rpx;
|
||||
width: 22rpx;
|
||||
height: 20rpx;
|
||||
font-size: 10rpx;
|
||||
border-radius: 20rpx;
|
||||
// width: 22rpx;
|
||||
// height: 20rpx;
|
||||
// font-size: 10rpx;
|
||||
color: #ffffff;
|
||||
|
||||
}
|
||||
.message_num_font {
|
||||
width: 22rpx;
|
||||
height: 22rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 16rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -717,7 +734,7 @@
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
z-index: 20;
|
||||
|
||||
opacity: .9;
|
||||
.item {
|
||||
flex: 1;
|
||||
// background-color: red;
|
||||
|
||||
Reference in New Issue
Block a user